Skip to main content

order_rule_datacenter_aggregateds

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

Overview​

Nameorder_rule_datacenter_aggregateds
TypeResource
Idovh.vps.order_rule_datacenter_aggregateds

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
modelsarrayDatacenters rules of every requested VPS model

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectovh_subsidiary, plan_codesReturns, 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.

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"}})
ovh_subsidiarystringSubsidiary to sort datacenters (wire: ovhSubsidiary)
plan_codesstringComma separated VPS plan codes from order api to answer for (wire: planCodes)

SELECT examples​

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
;