datacenter_availabilities
Creates, updates, deletes, gets or lists a datacenter_availabilities resource.
Overview​
| Name | datacenter_availabilities |
| Type | Resource |
| Id | ovh.dedicated_server.datacenter_availabilities |
Fields​
The following fields are returned by SELECT queries:
- list
A structure describing the availabilities of dedicated server
| Name | Datatype | Description |
|---|---|---|
datacenters | array | The hardware availability for each datacenter |
fqn | string | Fully qualified and unique name of the hardware |
gpu | string | Name of the gpu hardware part |
memory | string | Name of the memory hardware part |
plan_code | string | Plan code in which the hardware is involved (wire: planCode) |
server | string | Name of the base hardware |
storage | string | Name of the storage hardware part |
system_storage | string | Name of the system storage hardware part (wire: systemStorage) |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list | select | datacenters, exclude_datacenters, gpu, memory, plan_code, server, storage, system_storage | Returns the availability of each server hardware configuration in each datacenter. Filter by plan code or hardware part, and choose datacenters with datacenters and excludeDatacenters. This call does not require authentication. |
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"}}) |
datacenters | string | The names of datacenters separated by commas |
exclude_datacenters | boolean | If true, all datacenters are returned except those listed in datacenters parameter (wire: excludeDatacenters) |
gpu | string | The name of the gpu hardware part |
memory | string | The name of the memory hardware part |
plan_code | string | The plan code in which the hardware is involved (wire: planCode) |
server | string | The name of the base hardware |
storage | string | The name of the storage hardware part |
system_storage | string | The name of the system storage hardware part (wire: systemStorage) |
SELECT examples​
- list
Returns the availability of each server hardware configuration in each datacenter. Filter by plan code or hardware part, and choose datacenters with datacenters and excludeDatacenters. This call does not require authentication.
SELECT
datacenters,
fqn,
gpu,
memory,
plan_code,
server,
storage,
system_storage
FROM ovh.dedicated_server.datacenter_availabilities
WHERE datacenters = '{{ datacenters }}'
AND exclude_datacenters = '{{ exclude_datacenters }}'
AND gpu = '{{ gpu }}'
AND memory = '{{ memory }}'
AND plan_code = '{{ plan_code }}'
AND server = '{{ server }}'
AND storage = '{{ storage }}'
AND system_storage = '{{ system_storage }}'
;