Skip to main content

tenants

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

Overview​

Nametenants
TypeResource
Idovh.backup_services.tenants

Fields​

The following fields are returned by SELECT queries:

successful operation

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

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectbackup_services_idRetrieves the details of your backup tenant
listselectx_pagination_cursor, x_pagination_size, iam_tagsRetrieves the backup tenants you manage

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)
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 the details of your backup tenant

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