Skip to main content

migrations

Creates, updates, deletes, gets or lists a migrations resource.

Overview​

Namemigrations
TypeResource
Idovh.vmware_cloud_director.migrations

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
idstringUnique identifier of the VMware Cloud Director migration service
created_atstring (date-time)Datetime when migration was enabled (wire: createdAt)
current_stateobjectConfiguration currently in force on the platform. It catches up with targetSpec once the requested change has been applied. (wire: currentState)
current_tasksarrayAsynchronous operations ongoing on the VMware Cloud Director migration service (wire: currentTasks)
iamobjectIAM resource metadata
resource_statusstringReflects the readiness of the VMware Cloud Director migration service. A new target specification request will be accepted only in READY status. (CREATING, CREATION_PLANNED, DELETING, ERROR, OUT_OF_SYNC, READY, SUSPENDED, UNKNOWN, UPDATING) (wire: resourceStatus)
target_specobjectConfiguration you requested. While a change is still being applied it differs from currentState. (wire: targetSpec)
updated_atstring (date-time)Datetime when migration service is modified (wire: updatedAt)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectmigration_idReturns the migration service: migration cloud URL, organization ID and the IP blocks allowed to pair an on-premises site.
listselectx_pagination_cursor, x_pagination_size, iam_tagsReturns the migration services, with their status.
updateupdatemigration_id, target_specReplaces the IP blocks allowed to pair an on-premises site with the migration service. An IP block left out of the list is removed. Accepted only when the service is READY, then applied asynchronously: currentState catches up with targetSpec.

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"}})
migration_idstringMigration ID (wire: migrationId)
iam_tagsobjectFilter resources on IAM tags (wire: iamTags)
x_pagination_cursorstringPagination cursor (wire: X-Pagination-Cursor)
x_pagination_sizeintegerPagination size (wire: X-Pagination-Size)

SELECT examples​

Returns the migration service: migration cloud URL, organization ID and the IP blocks allowed to pair an on-premises site.

SELECT
id,
created_at,
current_state,
current_tasks,
iam,
resource_status,
target_spec,
updated_at
FROM ovh.vmware_cloud_director.migrations
WHERE migration_id = '{{ migration_id }}' -- required
;

UPDATE examples​

Replaces the IP blocks allowed to pair an on-premises site with the migration service. An IP block left out of the list is removed. Accepted only when the service is READY, then applied asynchronously: currentState catches up with targetSpec.

UPDATE ovh.vmware_cloud_director.migrations
SET
target_spec = '{{ target_spec }}'
WHERE
migration_id = '{{ migration_id }}' --required
AND target_spec = '{{ target_spec }}' --required
RETURNING
id,
created_at,
current_state,
current_tasks,
resource_status,
target_spec,
updated_at;