migration_contract_agreements
Creates, updates, deletes, gets or lists a migration_contract_agreements resource.
Overview​
| Name | migration_contract_agreements |
| Type | Resource |
| Id | ovh.me.migration_contract_agreements |
Fields​
The following fields are returned by SELECT queries:
- get
successful operation
| Name | Datatype | Description |
|---|---|---|
id | integer | Contract Agreement ID |
contract_id | integer | Contract ID (wire: contractId) |
agreed | string | State of the agreement (ko, obsolete, ok, todo) |
date | string (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:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | contract_id, migration_id | Retrieve 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.
| 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"}}) |
contract_id | integer | Contract ID (wire: contractId) |
migration_id | integer | Migration ID (wire: migrationId) |
SELECT examples​
- get
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
;