Skip to main content

organizations

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

Overview​

Nameorganizations
TypeResource
Idovh.vmware_cloud_director.organizations

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
idstringUnique 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 VMware Cloud Director organization (wire: currentTasks)
iamobjectIAM resource metadata
resource_statusstringReflects the readiness of the VMware Cloud Director organization. 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)
target_specobjectConfiguration you requested. While a change is still being applied it differs from currentState. (wire: targetSpec)
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
getselectorganization_idReturns the organization: name, region, billing type, API and web interface URLs, and requested specification.
listselectx_pagination_cursor, x_pagination_size, iam_tagsReturns the organizations, with their state and specification.
updateupdateorganization_id, target_specUpdates the full name and description of the organization. Accepted only when the organization is READY, then applied asynchronously: currentState catches up with targetSpec.
passwordexecorganizationIdResets the password of the organization administrator. The new password is sent by email to the admin contact.

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"}})
organizationIdstringOrganization ID
organization_idstringOrganization ID (wire: organizationId)
iam_tagsobjectFilter resources on IAM tags (wire: iamTags)
x_pagination_cursorstringPagination cursor (wire: X-Pagination-Cursor)
x_pagination_sizeintegerPagination size (wire: X-Pagination-Size)

SELECT examples​

Returns the organization: name, region, billing type, API and web interface URLs, and requested specification.

SELECT
id,
current_state,
current_tasks,
iam,
resource_status,
target_spec,
updated_at
FROM ovh.vmware_cloud_director.organizations
WHERE organization_id = '{{ organization_id }}' -- required
;

UPDATE examples​

Updates the full name and description of the organization. Accepted only when the organization is READY, then applied asynchronously: currentState catches up with targetSpec.

UPDATE ovh.vmware_cloud_director.organizations
SET
target_spec = '{{ target_spec }}'
WHERE
organization_id = '{{ organization_id }}' --required
AND target_spec = '{{ target_spec }}' --required
RETURNING
id,
current_state,
current_tasks,
resource_status,
target_spec,
updated_at;

Lifecycle Methods​

EXEC variables use wire (API) names.

Resets the password of the organization administrator. The new password is sent by email to the admin contact.

EXEC ovh.vmware_cloud_director.organizations.password
@organizationId='{{ organizationId }}' --required
;