filer_locations
Creates, updates, deletes, gets or lists a filer_locations resource.
Overview​
| Name | filer_locations |
| Type | Resource |
| Id | ovh.dedicated_cloud.filer_locations |
Fields​
The following fields are returned by SELECT queries:
- get
successful operation
| Name | Datatype | Description |
|---|---|---|
datacenter | string | Datacenter of the Filer. (bhs1, bhs2, bhs3, bhs4, bhs5, bhs6, bhs7, bhs8, cch01, crx1, crx2, dc1, eri1, eri2, frcrx41, frcrx42, frcrx43, gra04, gra1, gra2, gra3, gsw, hdf01, hil1, ieb01, itbsi01, itmil01, itzvf01, lil1-int1, lim1, lim2, lim3, mr901, p19, rbx, rbx-hz, rbx1, rbx10, rbx2, rbx3, rbx4, rbx5, rbx6, rbx7, rbx8, rbx9, sbg1, sbg2, sbg3, sbg4, sbg5, sgp02, sgp1, syd03, syd1, syd2, vin1, waw1, ynm1, yyz01) |
rack | string | Rack of the slave Filer. |
room | string | Room of the Filer. |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | filer_id, service_name | node | Get the datastore location. Returns the datacenter, room and rack of the datastore. Choose the master or slave node with node, master by default. |
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"}}) |
filer_id | integer | Filer Id (wire: filerId) |
service_name | string | Domain of the service (wire: serviceName) |
node | string | Filer cluster node used to get location (default value: master) |
SELECT examples​
- get
Get the datastore location. Returns the datacenter, room and rack of the datastore. Choose the master or slave node with node, master by default.
SELECT
datacenter,
rack,
room
FROM ovh.dedicated_cloud.filer_locations
WHERE filer_id = '{{ filer_id }}' -- required
AND service_name = '{{ service_name }}' -- required
AND node = '{{ node }}'
;