Skip to main content

organization_virtual_data_center_computes

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

Overview​

Nameorganization_virtual_data_center_computes
TypeResource
Idovh.vmware_cloud_director.organization_virtual_data_center_computes

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
idstring (uuid)Unique identifier
current_stateobjectConfiguration currently in force on the platform. It catches up with targetSpec once the requested change has been applied. (wire: currentState)
current_tasksarrayAsynchronous operations ongoing on the organization Virtual DataCenter compute resource (wire: currentTasks)
resource_statusstringReflects the readiness of the organization Virtual DataCenter compute 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_atstring (date-time)Date and time this resource was last modified (wire: updatedAt)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectcompute_id, organization_id, virtual_data_center_idReturns the compute resource: profile, vCPU count, memory quota and billing type.
listselectorganization_id, virtual_data_center_idx_pagination_cursor, x_pagination_sizeReturns the compute resources of the virtual datacenter.
deletedeletecompute_id, organization_id, virtual_data_center_idDeletes the compute 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.

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"}})
compute_idstring (uuid)Compute ID (wire: computeId)
organization_idstringOrganization ID (wire: organizationId)
virtual_data_center_idstringVirtual data center ID (wire: virtualDataCenterId)
x_pagination_cursorstringPagination cursor (wire: X-Pagination-Cursor)
x_pagination_sizeintegerPagination size (wire: X-Pagination-Size)

SELECT examples​

Returns the compute resource: profile, vCPU count, memory quota and billing type.

SELECT
id,
current_state,
current_tasks,
resource_status,
updated_at
FROM ovh.vmware_cloud_director.organization_virtual_data_center_computes
WHERE compute_id = '{{ compute_id }}' -- required
AND organization_id = '{{ organization_id }}' -- required
AND virtual_data_center_id = '{{ virtual_data_center_id }}' -- required
;

DELETE examples​

Deletes the compute resource from the virtual datacenter.

DELETE FROM ovh.vmware_cloud_director.organization_virtual_data_center_computes
WHERE compute_id = '{{ compute_id }}' --required
AND organization_id = '{{ organization_id }}' --required
AND virtual_data_center_id = '{{ virtual_data_center_id }}' --required
;