Skip to main content

tenant_vspc_backup_licenses_backup_servers

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

Overview​

Nametenant_vspc_backup_licenses_backup_servers
TypeResource
Idovh.backup_services.tenant_vspc_backup_licenses_backup_servers

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
idstring (uuid)Unique identifier of the backup server
created_atstring (date-time)Date and time when you register the backup server (wire: createdAt)
current_stateobjectCurrent state of the backup server (wire: currentState)
current_tasksarrayCurrent tasks running on the backup server (wire: currentTasks)
statusstringShows whether the backup server is ready (CREATING, DELETING, DISABLED, ENABLED, ERROR, NOT_CONFIGURED, NOT_INSTALLED, UPDATING)
target_specobjectTarget specification for the backup server (wire: targetSpec)
updated_atstring (date-time)Date and time when you update the backup server (wire: updatedAt)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectbackup_licenses_id, backup_server_id, backup_services_id, vspc_tenant_idGets specific backup server details
listselectbackup_licenses_id, backup_services_id, vspc_tenant_idx_pagination_cursor, x_pagination_sizeLists backup servers of the Backup Licenses subscription
createinsertbackup_licenses_id, backup_services_id, vspc_tenant_id, external_ips, license_typeRegisters an additional backup server under the Backup Licenses subscription
updateupdatebackup_licenses_id, backup_server_id, backup_services_id, vspc_tenant_id, external_ips, license_typeUpdates a backup server; IP and display name changes apply immediately, a license type change is applied on the 1st of the next month
deletedeletebackup_licenses_id, backup_server_id, backup_services_id, vspc_tenant_idDeregisters a backup server from the Backup Licenses subscription; the subscription and license types are retained

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_licenses_idstringBackup licenses ID (wire: backupLicensesId)
backup_server_idstring (uuid)Backup server ID (wire: backupServerId)
backup_services_idstring (uuid)Backup services ID (wire: backupServicesId)
vspc_tenant_idstring (uuid)Vspc tenant ID (wire: vspcTenantId)
x_pagination_cursorstringPagination cursor (wire: X-Pagination-Cursor)
x_pagination_sizeintegerPagination size (wire: X-Pagination-Size)

SELECT examples​

Gets specific backup server details

SELECT
id,
created_at,
current_state,
current_tasks,
status,
target_spec,
updated_at
FROM ovh.backup_services.tenant_vspc_backup_licenses_backup_servers
WHERE backup_licenses_id = '{{ backup_licenses_id }}' -- required
AND backup_server_id = '{{ backup_server_id }}' -- required
AND backup_services_id = '{{ backup_services_id }}' -- required
AND vspc_tenant_id = '{{ vspc_tenant_id }}' -- required
;

INSERT examples​

Registers an additional backup server under the Backup Licenses subscription

INSERT INTO ovh.backup_services.tenant_vspc_backup_licenses_backup_servers (
display_name,
external_ips,
license_type,
private_ips,
backup_licenses_id,
backup_services_id,
vspc_tenant_id
)
SELECT
'{{ display_name }}',
'{{ external_ips }}' /* required */,
'{{ license_type }}' /* required */,
'{{ private_ips }}',
'{{ backup_licenses_id }}',
'{{ backup_services_id }}',
'{{ vspc_tenant_id }}'
RETURNING
id,
created_at,
current_state,
current_tasks,
status,
target_spec,
updated_at
;

UPDATE examples​

Updates a backup server; IP and display name changes apply immediately, a license type change is applied on the 1st of the next month

UPDATE ovh.backup_services.tenant_vspc_backup_licenses_backup_servers
SET
display_name = '{{ display_name }}',
external_ips = '{{ external_ips }}',
license_type = '{{ license_type }}',
private_ips = '{{ private_ips }}'
WHERE
backup_licenses_id = '{{ backup_licenses_id }}' --required
AND backup_server_id = '{{ backup_server_id }}' --required
AND backup_services_id = '{{ backup_services_id }}' --required
AND vspc_tenant_id = '{{ vspc_tenant_id }}' --required
AND external_ips = '{{ external_ips }}' --required
AND license_type = '{{ license_type }}' --required
RETURNING
id,
created_at,
current_state,
current_tasks,
status,
target_spec,
updated_at;

DELETE examples​

Deregisters a backup server from the Backup Licenses subscription; the subscription and license types are retained

DELETE FROM ovh.backup_services.tenant_vspc_backup_licenses_backup_servers
WHERE backup_licenses_id = '{{ backup_licenses_id }}' --required
AND backup_server_id = '{{ backup_server_id }}' --required
AND backup_services_id = '{{ backup_services_id }}' --required
AND vspc_tenant_id = '{{ vspc_tenant_id }}' --required
;