Skip to main content

tenant_vspc_backup_agents

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

Overview​

Nametenant_vspc_backup_agents
TypeResource
Idovh.backup_services.tenant_vspc_backup_agents

Fields​

The following fields are returned by SELECT queries:

successful operation

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

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectbackup_agent_id, backup_services_id, vspc_tenant_idGets specific backup agent details
listselectbackup_services_id, vspc_tenant_idx_pagination_cursor, x_pagination_sizeLists backup agents
createinsertbackup_services_id, vspc_tenant_idCreates backup agent
updateupdatebackup_agent_id, backup_services_id, vspc_tenant_idUpdates backup agent
deletedeletebackup_agent_id, backup_services_id, vspc_tenant_idDeletes backup agent

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_agent_idstring (uuid)Backup agent ID (wire: backupAgentId)
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 agent details

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

INSERT examples​

Creates backup agent

INSERT INTO ovh.backup_services.tenant_vspc_backup_agents (
display_name,
ips,
product_resource_name,
region,
backup_services_id,
vspc_tenant_id
)
SELECT
'{{ display_name }}',
'{{ ips }}',
'{{ product_resource_name }}',
'{{ region }}',
'{{ backup_services_id }}',
'{{ vspc_tenant_id }}'
;

UPDATE examples​

Updates backup agent

UPDATE ovh.backup_services.tenant_vspc_backup_agents
SET
display_name = '{{ display_name }}',
ips = '{{ ips }}',
policy = '{{ policy }}'
WHERE
backup_agent_id = '{{ backup_agent_id }}' --required
AND backup_services_id = '{{ backup_services_id }}' --required
AND vspc_tenant_id = '{{ vspc_tenant_id }}' --required;

DELETE examples​

Deletes backup agent

DELETE FROM ovh.backup_services.tenant_vspc_backup_agents
WHERE backup_agent_id = '{{ backup_agent_id }}' --required
AND backup_services_id = '{{ backup_services_id }}' --required
AND vspc_tenant_id = '{{ vspc_tenant_id }}' --required
;