Skip to main content

notebook_backups

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

Overview​

Namenotebook_backups
TypeResource
Idovh.cloud_ai.notebook_backups

Fields​

The following fields are returned by SELECT queries:

successful operation

NameDatatypeDescription
idstringBackup Id
created_atstring (date-time)Backup creation date (wire: createdAt)
eviction_datestring (date-time)date at which the notebook backup will be evicted/deleted according to applicable notebook workspace backup retention policy (wire: evictionDate)
updated_atstring (date-time)Backup last update date (wire: updatedAt)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectbackup_id, notebook_id, service_nameGet details for a single AI Solutions notebook backup
listselectnotebook_id, service_nameorder, page, size, sort, updated_after, updated_beforeList all backups of an AI Solutions notebook
forkexecbackupId, notebookId, service_nameStarts a new AI Solutions notebook from a backup

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"}})
backupIdstringBackup ID
backup_idstringBackup ID (wire: backupId)
notebookIdstringNotebook ID
notebook_idstringNotebook ID (wire: notebookId)
service_namestringThe Public Cloud project ID. Resolved from OVH_CLOUD_PROJECT_SERVICE when set.
orderstringOrder the result set
pageintegerPage of the result set
sizeintegerSize of the result set
sortstringSort the result with this field
updated_afterstring (date-time)Filter on updatedAt property (>) (wire: updatedAfter)
updated_beforestring (date-time)Filter on updatedAt property (<) (wire: updatedBefore)

SELECT examples​

Get details for a single AI Solutions notebook backup

SELECT
id,
created_at,
eviction_date,
updated_at
FROM ovh.cloud_ai.notebook_backups
WHERE backup_id = '{{ backup_id }}' -- required
AND notebook_id = '{{ notebook_id }}' -- required
AND service_name = '{{ service_name }}' -- required unless OVH_CLOUD_PROJECT_SERVICE is set
;

Lifecycle Methods​

EXEC variables use wire (API) names.

Starts a new AI Solutions notebook from a backup

EXEC ovh.cloud_ai.notebook_backups.fork
@backupId='{{ backupId }}' --required,
@notebookId='{{ notebookId }}' --required,
@service_name='{{ service_name }}' --required unless OVH_CLOUD_PROJECT_SERVICE is set
@@json=
'{
"name": "{{ name }}"
}'
;