agreements
Creates, updates, deletes, gets or lists an agreements resource.
Overview​
| Name | agreements |
| Type | Resource |
| Id | ovh.cloud.agreements |
Fields​
The following fields are returned by SELECT queries:
- get
successful operation
| Name | Datatype | Description |
|---|---|---|
agreements_to_validate | array | Agreements to validate (wire: agreementsToValidate) |
agreements_validated | array | Agreements already validated (wire: agreementsValidated) |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | product | Get agreements related to a product (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"}}) |
product | string | Name of a product supported by cloud projects |
service_name | string | The Public Cloud project ID. Resolved from OVH_CLOUD_PROJECT_SERVICE when set. |
SELECT examples​
- get
Get agreements related to a product (Beta version)
SELECT
agreements_to_validate,
agreements_validated
FROM ovh.cloud.agreements
WHERE product = '{{ product }}' -- required
;