Skip to main content

backups

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

Overview​

Namebackups
TypeResource
Idvercel.edge_config.backups

Fields​

The following fields are returned by SELECT queries:

The object the API responds with when requesting a Global Config backup

NameDatatypeDescription
idstring
backupobject
last_modifiednumber (wire: lastModified)
metadataobject
userobject

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectedge_config_id, edge_config_backup_version_idteam_id, slugRetrieves a specific version of a Global Config from backup storage.
listselectedge_config_idnext, limit, metadata, team_id, slugReturns backups of a Global Config.
restoreexecedge_config_id, edge_config_backup_version_idteamId, slugRestores a Global Config 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
edge_config_backup_version_idstring
edge_config_idstring
limitnumber
metadatastring
nextstring
slugstringThe Team slug to perform the request on behalf of.
teamIdstringThe Team identifier to perform the request on behalf of.
team_idstringThe Team identifier to perform the request on behalf of. (wire: teamId)

SELECT examples​

Retrieves a specific version of a Global Config from backup storage.

SELECT
id,
backup,
last_modified,
metadata,
user
FROM vercel.edge_config.backups
WHERE edge_config_id = '{{ edge_config_id }}' -- required
AND edge_config_backup_version_id = '{{ edge_config_backup_version_id }}' -- required
AND team_id = '{{ team_id }}'
AND slug = '{{ slug }}'
;

Lifecycle Methods​

EXEC variables use wire (API) names.

Restores a Global Config backup.

EXEC vercel.edge_config.backups.restore
@edge_config_id='{{ edge_config_id }}' --required,
@edge_config_backup_version_id='{{ edge_config_backup_version_id }}' --required,
@teamId='{{ teamId }}',
@slug='{{ slug }}'
;