Skip to main content

tenant_vspcs

Creates, updates, deletes, gets or lists a tenant_vspcs resource.

Overview​

Nametenant_vspcs
TypeResource
Idovh.backup_services.tenant_vspcs

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
idstring (uuid)Unique identifier of the tenant
created_atstring (date-time)Date and time when the tenant is created (wire: createdAt)
current_stateobjectCurrent state of the tenant (wire: currentState)
current_tasksarrayList of tasks currently running for the tenant (wire: currentTasks)
iamobjectIAM resource metadata
resource_statusstringIndicates whether the vault is ready (CREATING, CREATION_PLANNED, DELETING, ERROR, OUT_OF_SYNC, READY, SUSPENDED, UNKNOWN, UPDATING) (wire: resourceStatus)
target_specobjectSpecification of the target for the tenant (wire: targetSpec)
updated_atstring (date-time)Date and time when the tenant is last updated (wire: updatedAt)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectbackup_services_id, vspc_tenant_idRetrieves details of a specific VSPC tenant
listselectbackup_services_idx_pagination_cursor, x_pagination_size, iam_tagsRetrieves list of VSPC tenants
updateupdatebackup_services_id, vspc_tenant_id, nameUpdates the display name of a VSPC tenant

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"}})
backup_services_idstring (uuid)Backup services ID (wire: backupServicesId)
vspc_tenant_idstring (uuid)Vspc tenant ID (wire: vspcTenantId)
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​

Retrieves details of a specific VSPC tenant

SELECT
id,
created_at,
current_state,
current_tasks,
iam,
resource_status,
target_spec,
updated_at
FROM ovh.backup_services.tenant_vspcs
WHERE backup_services_id = '{{ backup_services_id }}' -- required
AND vspc_tenant_id = '{{ vspc_tenant_id }}' -- required
;

UPDATE examples​

Updates the display name of a VSPC tenant

UPDATE ovh.backup_services.tenant_vspcs
SET
name = '{{ name }}'
WHERE
backup_services_id = '{{ backup_services_id }}' --required
AND vspc_tenant_id = '{{ vspc_tenant_id }}' --required
AND name = '{{ name }}' --required
RETURNING
id,
created_at,
current_state,
current_tasks,
resource_status,
target_spec,
updated_at;