order_rule_availabilities
Creates, updates, deletes, gets or lists an order_rule_availabilities resource.
Overview​
| Name | order_rule_availabilities |
| Type | Resource |
| Id | ovh.cloud.order_rule_availabilities |
Fields​
The following fields are returned by SELECT queries:
- get
successful operation
| Name | Datatype | Description |
|---|---|---|
plans | array | Plan availability |
products | array | Product availability |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | ovh_subsidiary | addon_family, plan_code | Get product availability |
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"}}) |
ovh_subsidiary | string | OVH subsidiary (wire: ovhSubsidiary) |
service_name | string | The Public Cloud project ID. Resolved from OVH_CLOUD_PROJECT_SERVICE when set. |
addon_family | string | Addon family filter (wire: addonFamily) |
plan_code | string | Plan code filter (wire: planCode) |
SELECT examples​
- get
Get product availability
SELECT
plans,
products
FROM ovh.cloud.order_rule_availabilities
WHERE ovh_subsidiary = '{{ ovh_subsidiary }}' -- required
AND addon_family = '{{ addon_family }}'
AND plan_code = '{{ plan_code }}'
;