Skip to main content

migration_contracts

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

Overview​

Namemigration_contracts
TypeResource
Idovh.me.migration_contracts

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
idintegerID
namestringName
activebooleanStatus
datestring (date)Date
pdfstringPDF URL
textstringText of the contract

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectcontract_id, migration_idRetrieve detail about a contract for a billing country migration (Beta version)
listselectmigration_idx_pagination_modeRetrieve all contracts for a billing country migration (Beta version)
acceptexeccontractId, migrationIdAccept contract (Beta 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"}})
contractIdintegerContract ID
contract_idintegerContract ID (wire: contractId)
migrationIdintegerMigration ID
migration_idintegerMigration ID (wire: migrationId)
x_pagination_modestringSent as CachedObjectList-Pages by default so the list returns the full objects rather than their identifiers. (wire: X-Pagination-Mode)

SELECT examples​

Retrieve detail about a contract for a billing country migration (Beta version)

SELECT
id,
name,
active,
date,
pdf,
text
FROM ovh.me.migration_contracts
WHERE contract_id = '{{ contract_id }}' -- required
AND migration_id = '{{ migration_id }}' -- required
;

Lifecycle Methods​

EXEC variables use wire (API) names.

Accept contract (Beta version)

EXEC ovh.me.migration_contracts.accept
@contractId='{{ contractId }}' --required,
@migrationId='{{ migrationId }}' --required
;