Skip to main content

incident_sbg_migrate_services

Creates, updates, deletes, gets or lists an incident_sbg_migrate_services resource.

Overview​

Nameincident_sbg_migrate_services
TypeResource
Idovh.me.incident_sbg_migrate_services

Fields​

The following fields are returned by SELECT queries:

Service you may migrate to a given offer

NameDatatypeDescription
order_idintegerID of an ongoing migration order (wire: orderId)
addonsarrayOptions to migrate linked to the original service
proposed_offerobjectProposed commercial offer to replace the service (wire: proposedOffer)
service_to_migrateobjectDescription of the service to migrate (wire: serviceToMigrate)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectGet all services you can migrate (Alpha version)
createinsertAsk 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.

NameDatatypeDescription
api_hoststringThe 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​

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​

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
;