organization_virtual_data_center_storages
Creates, updates, deletes, gets or lists an organization_virtual_data_center_storages resource.
Overview​
| Name | organization_virtual_data_center_storages |
| Type | Resource |
| Id | ovh.vmware_cloud_director.organization_virtual_data_center_storages |
Fields​
The following fields are returned by SELECT queries:
- get
- list
successful operation
| Name | Datatype | Description |
|---|---|---|
id | string (uuid) | Unique identifier |
current_state | object | Configuration currently in force on the platform. It catches up with targetSpec once the requested change has been applied. (wire: currentState) |
current_tasks | array | Asynchronous operations ongoing on the organization Virtual DataCenter storage resource (wire: currentTasks) |
resource_status | string | Reflects the readiness of the organization Virtual DataCenter storage resource. A new target specification request will be accepted only in READY status. (CREATING, CREATION_PLANNED, DELETING, ERROR, OUT_OF_SYNC, READY, SUSPENDED, UNKNOWN, UPDATING) (wire: resourceStatus) |
updated_at | string (date-time) | Date and time this resource was last modified (wire: updatedAt) |
Organization Virtual DataCenter storage resource
| Name | Datatype | Description |
|---|---|---|
id | string (uuid) | Unique identifier |
current_state | object | Configuration currently in force on the platform. It catches up with targetSpec once the requested change has been applied. (wire: currentState) |
current_tasks | array | Asynchronous operations ongoing on the organization Virtual DataCenter storage resource (wire: currentTasks) |
resource_status | string | Reflects the readiness of the organization Virtual DataCenter storage resource. A new target specification request will be accepted only in READY status. (CREATING, CREATION_PLANNED, DELETING, ERROR, OUT_OF_SYNC, READY, SUSPENDED, UNKNOWN, UPDATING) (wire: resourceStatus) |
updated_at | string (date-time) | Date and time this resource was last modified (wire: updatedAt) |
Methods​
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get | select | organization_id, storage_id, virtual_data_center_id | Returns the storage resource: profile, type, capacity and billing type. | |
list | select | organization_id, virtual_data_center_id | x_pagination_cursor, x_pagination_size | Returns the storage resources of the virtual datacenter. |
delete | delete | organization_id, storage_id, virtual_data_center_id | Deletes the storage resource from the virtual datacenter. |
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"}}) |
organization_id | string | Organization ID (wire: organizationId) |
storage_id | string (uuid) | Storage ID (wire: storageId) |
virtual_data_center_id | string | Virtual data center ID (wire: virtualDataCenterId) |
x_pagination_cursor | string | Pagination cursor (wire: X-Pagination-Cursor) |
x_pagination_size | integer | Pagination size (wire: X-Pagination-Size) |
SELECT examples​
- get
- list
Returns the storage resource: profile, type, capacity and billing type.
SELECT
id,
current_state,
current_tasks,
resource_status,
updated_at
FROM ovh.vmware_cloud_director.organization_virtual_data_center_storages
WHERE organization_id = '{{ organization_id }}' -- required
AND storage_id = '{{ storage_id }}' -- required
AND virtual_data_center_id = '{{ virtual_data_center_id }}' -- required
;
Returns the storage resources of the virtual datacenter.
SELECT
id,
current_state,
current_tasks,
resource_status,
updated_at
FROM ovh.vmware_cloud_director.organization_virtual_data_center_storages
WHERE organization_id = '{{ organization_id }}' -- required
AND virtual_data_center_id = '{{ virtual_data_center_id }}' -- required
AND x_pagination_cursor = '{{ x_pagination_cursor }}'
AND x_pagination_size = '{{ x_pagination_size }}'
;
DELETE examples​
- delete
Deletes the storage resource from the virtual datacenter.
DELETE FROM ovh.vmware_cloud_director.organization_virtual_data_center_storages
WHERE organization_id = '{{ organization_id }}' --required
AND storage_id = '{{ storage_id }}' --required
AND virtual_data_center_id = '{{ virtual_data_center_id }}' --required
;