Skip to main content

migration_contract_agreements

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

Overview​

Namemigration_contract_agreements
TypeResource
Idovh.me.migration_contract_agreements

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
idintegerContract Agreement ID
contract_idintegerContract ID (wire: contractId)
agreedstringState of the agreement (ko, obsolete, ok, todo)
datestring (date-time)Date of creation if the agreement is not signed. Date of signature if the agreement is signed

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectcontract_id, migration_idRetrieve agreement for this 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"}})
contract_idintegerContract ID (wire: contractId)
migration_idintegerMigration ID (wire: migrationId)

SELECT examples​

Retrieve agreement for this contract (Beta version)

SELECT
id,
contract_id,
agreed,
date
FROM ovh.me.migration_contract_agreements
WHERE contract_id = '{{ contract_id }}' -- required
AND migration_id = '{{ migration_id }}' -- required
;