Skip to main content

vector_database_backups

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

Overview

Namevector_database_backups
TypeResource
Iddigitalocean.databases.vector_database_backups

Fields

The following fields are returned by SELECT queries:

A successful response.

NameDatatypeDescription
backup_idstringThe backup ID being restored. (example: 123e4567-e89b-12d3-a456-426614174000)
errorstringError message if the restore failed. (example: example string)
statusstringCurrent status: STARTED, TRANSFERRING, TRANSFERRED, FINALIZING, SUCCESS, FAILED, CANCELLING, CANCELED. (example: example string)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
vector_databases_get_restore_statusselectid, backup_idTo check the status of a restore operation, send a GET request to /v2/vector-databases/{id}/backups/{backup_id}/restore. The response body contains the current status of the restore.
vector_databases_list_backupsselectidTo list the available backups for a vector database, send a GET request to /v2/vector-databases/{id}/backups. Only backups with a status of SUCCESS are returned.
vector_databases_post_restore_backupexecid, backup_idTo restore a vector database from a backup, send a POST request to /v2/vector-databases/{id}/backups/{backup_id}/restore. The restore runs asynchronously; use the restore-status endpoint to monitor its 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
backup_idstringRequired. ID of the backup to restore from. (example: "example string")
idstringRequired. ID of the vector database. (example: "example string")

SELECT examples

To check the status of a restore operation, send a GET request to /v2/vector-databases/{id}/backups/{backup_id}/restore. The response body contains the current status of the restore.

SELECT
backup_id,
error,
status
FROM digitalocean.databases.vector_database_backups
WHERE id = '{{ id }}' -- required
AND backup_id = '{{ backup_id }}' -- required
;

Lifecycle Methods

To restore a vector database from a backup, send a POST request to /v2/vector-databases/{id}/backups/{backup_id}/restore. The restore runs asynchronously; use the restore-status endpoint to monitor its progress.

EXEC digitalocean.databases.vector_database_backups.vector_databases_post_restore_backup
@id='{{ id }}' --required,
@backup_id='{{ backup_id }}' --required
@@json=
'{
"backup_id": "{{ backup_id }}",
"id": "{{ id }}"
}'
;