eligibilities
Creates, updates, deletes, gets or lists an eligibilities resource.
Overview​
| Name | eligibilities |
| Type | Resource |
| Id | ovh.cloud.eligibilities |
Fields​
The following fields are returned by SELECT queries:
- get
successful operation
| Name | Datatype | Description |
|---|---|---|
actions_required | array | Actions to perform to be eligible (wire: actionsRequired) |
minimum_credit | object | Cloud project order (wire: minimumCredit) |
payment_methods_authorized | array | Payment method accepted to order Public Cloud project (wire: paymentMethodsAuthorized) |
voucher | object | Information about voucher code |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | voucher | Check project order eligibility. Returns the actions required before ordering a project, the minimum credit and the accepted payment methods. Give a voucher code to check its credit at the same time. (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"}}) |
service_name | string | The Public Cloud project ID. Resolved from OVH_CLOUD_PROJECT_SERVICE when set. |
voucher | string (password) | Voucher code |
SELECT examples​
- get
Check project order eligibility. Returns the actions required before ordering a project, the minimum credit and the accepted payment methods. Give a voucher code to check its credit at the same time. (Beta version)
SELECT
actions_required,
minimum_credit,
payment_methods_authorized,
voucher
FROM ovh.cloud.eligibilities
WHERE voucher = '{{ voucher }}'
;