incident_sbg_migrate_services
Creates, updates, deletes, gets or lists an incident_sbg_migrate_services resource.
Overview​
| Name | incident_sbg_migrate_services |
| Type | Resource |
| Id | ovh.me.incident_sbg_migrate_services |
Fields​
The following fields are returned by SELECT queries:
- list
Service you may migrate to a given offer
| Name | Datatype | Description |
|---|---|---|
order_id | integer | ID of an ongoing migration order (wire: orderId) |
addons | array | Options to migrate linked to the original service |
proposed_offer | object | Proposed commercial offer to replace the service (wire: proposedOffer) |
service_to_migrate | object | Description of the service to migrate (wire: serviceToMigrate) |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list | select | Get all services you can migrate (Alpha version) | ||
create | insert | Ask for impacted services migration (Alpha version) |
Parameters​
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
api_host | string | The OVHcloud API host. Selected by OVH_ENDPOINT (ovh-eu, ovh-ca or ovh-us; default ovh-eu). (default: api.eu.ovhcloud.com, x-stackQL-envVarSelector: {"envVar":"OVH_ENDPOINT","default":"ovh-eu","values":{"ovh-eu":"api.eu.ovhcloud.com","ovh-ca":"api.ca.ovhcloud.com","ovh-us":"api.us.ovhcloud.com"}}) |
SELECT examples​
- list
Get all services you can migrate (Alpha version)
SELECT
order_id,
addons,
proposed_offer,
service_to_migrate
FROM ovh.me.incident_sbg_migrate_services
;
INSERT examples​
- create
- Manifest
Ask for impacted services migration (Alpha version)
INSERT INTO ovh.me.incident_sbg_migrate_services (
dry_run,
service_ids
)
SELECT
{{ dry_run }},
'{{ service_ids }}'
RETURNING
order
;
# Description fields are for documentation purposes
- name: incident_sbg_migrate_services
props:
- name: dry_run
value: {{ dry_run }}
description: |
If false, the order will be registered; if true, the order will be returned but not registered. Useful to compute prices
- name: service_ids
value:
- {{ service_ids }}
description: |
IDs of the services to migrate