order_rule_datacenter_aggregateds
Creates, updates, deletes, gets or lists an order_rule_datacenter_aggregateds resource.
Overview​
| Name | order_rule_datacenter_aggregateds |
| Type | Resource |
| Id | ovh.vps.order_rule_datacenter_aggregateds |
Fields​
The following fields are returned by SELECT queries:
- get
successful operation
| Name | Datatype | Description |
|---|---|---|
models | array | Datacenters rules of every requested VPS model |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | ovh_subsidiary, plan_codes | Returns, for every VPS model, the datacenters available for an order with their priority and stock status. |
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 | Subsidiary to sort datacenters (wire: ovhSubsidiary) |
plan_codes | string | Comma separated VPS plan codes from order api to answer for (wire: planCodes) |
SELECT examples​
- get
Returns, for every VPS model, the datacenters available for an order with their priority and stock status.
SELECT
models
FROM ovh.vps.order_rule_datacenter_aggregateds
WHERE ovh_subsidiary = '{{ ovh_subsidiary }}' -- required
AND plan_codes = '{{ plan_codes }}' -- required
;