Skip to main content

agreements

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

Overview​

Nameagreements
TypeResource
Idovh.me.agreements

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
idintegerId of the contract
contract_idintegerId of the agreed contract (wire: contractId)
agreedstringState of the agreement (ko, obsolete, ok, todo)
datestring (date-time)Date the agreed contract was effective

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectidGet this object properties
listselectagreed, contract_id, x_pagination_modeList of contracts signed between you and OVH
acceptexecidAccept this contract

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"}})
idintegerId of the contract
agreedstringFilter the value of agreed property (like)
contract_idintegerFilter the value of contractId property (like) (wire: contractId)
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​

Get this object properties

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

Lifecycle Methods​

EXEC variables use wire (API) names.

Accept this contract

EXEC ovh.me.agreements.accept
@id='{{ id }}' --required
;