Skip to main content

tenant_vspc_managed_backups

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

Overview​

Nametenant_vspc_managed_backups
TypeResource
Idovh.backup_services.tenant_vspc_managed_backups

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
idstringUnique identifier of the Managed Backup service, formatted managed-backup- followed by the service name of the protected Hosted Private Cloud
created_atstring (date-time)Date and time when the service is created (wire: createdAt)
current_stateobjectCurrent state of the service (wire: currentState)
current_tasksarrayCurrent tasks running on the service (wire: currentTasks)
iamobjectIAM resource metadata
resource_statusstringIndicates the readiness of the service. SUSPENDED while backup schedules are stopped. (CREATING, CREATION_PLANNED, DELETING, ERROR, OUT_OF_SYNC, READY, SUSPENDED, UNKNOWN, UPDATING) (wire: resourceStatus)
target_specobjectTarget specification for the service (wire: targetSpec)
updated_atstring (date-time)Date and time when the service is last updated (wire: updatedAt)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectbackup_services_id, managed_backup_id, vspc_tenant_idRetrieves a Managed Backup service of the VSPC tenant
listselectbackup_services_id, vspc_tenant_idx_pagination_cursor, x_pagination_size, iam_tagsRetrieves the Managed Backup services of the VSPC tenant, one per protected Hosted Private Cloud; empty when the Managed Backup add-on is not enabled
updateupdatebackup_services_id, managed_backup_id, vspc_tenant_id, display_nameUpdates the display name of a Managed Backup service
reset_passwordexecbackupServicesId, managedBackupId, vspcTenantIdThe account is the one reported in currentState.vbrLogin. The new password is generated by the platform and delivered to the contacts of your account. It is never returned by the API. Accepted on a READY or SUSPENDED service without a password reset already in progress.

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"}})
backupServicesIdstring (uuid)Backup services ID
backup_services_idstring (uuid)Backup services ID (wire: backupServicesId)
managedBackupIdstringManaged backup ID
managed_backup_idstringManaged backup ID (wire: managedBackupId)
vspcTenantIdstring (uuid)Vspc tenant ID
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 a Managed Backup service of the VSPC tenant

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

UPDATE examples​

Updates the display name of a Managed Backup service

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

Lifecycle Methods​

EXEC variables use wire (API) names.

The account is the one reported in currentState.vbrLogin. The new password is generated by the platform and delivered to the contacts of your account. It is never returned by the API. Accepted on a READY or SUSPENDED service without a password reset already in progress.

EXEC ovh.backup_services.tenant_vspc_managed_backups.reset_password
@backupServicesId='{{ backupServicesId }}' --required,
@managedBackupId='{{ managedBackupId }}' --required,
@vspcTenantId='{{ vspcTenantId }}' --required
;