Returns the workspace backup result
GEThttps://api.spectrocloud.com/v1/workspaces/:uid/backup
Authorization: ApiKey
name: ApiKeytype: apiKeydescription: API key authorization where API key can be generated from Palette console under Profile > My API Keysin: header
Returns the workspace backup result
Request
Path Parameters
uid stringrequired
Query Parameters
backupRequestUid string
Header Parameters
ProjectUid string
Scope the request to the specified project uid
Responses
- 200
OK
- application/json
- Schema
- Example (from schema)
Schema
metadata object
spec
status
{
"metadata": {
"annotations": {},
"creationTimestamp": "2023-12-01T21:31:49.229Z",
"deletionTimestamp": "2023-12-01T21:31:49.229Z",
"labels": {},
"lastModifiedTimestamp": "2023-12-01T21:31:49.229Z",
"name": "string",
"uid": "string"
},
"spec": {
"config": {
"backupConfig": {
"backupLocationName": "string",
"backupLocationUid": "string",
"backupName": "string",
"backupPrefix": "string",
"durationInHours": 0,
"includeAllDisks": true,
"includeClusterResources": true,
"locationType": "string",
"namespaces": [
"string"
],
"schedule": {
"scheduledRunTime": "string"
}
},
"clusterUids": [
"string"
],
"includeAllClusters": true
},
"workspaceUid": "string"
},
"status": {
"workspaceBackupStatuses": [
{
"actor": {
"actorType": "string",
"uid": "string"
},
"requestUid": "string",
"workspaceBackupConfig": {
"backupName": "string",
"backupState": {
"deleteState": "string",
"state": "string"
},
"backupTime": "2023-12-01T21:31:49.229Z",
"clusterBackupRefs": [
{
"backupStatusMeta": {
"backupName": "string",
"backupState": {
"backupTime": "2023-12-01T21:31:49.229Z",
"deleteState": "string",
"msg": "string",
"state": "string"
},
"backupedNamespaces": [
"string"
],
"expiryDate": "2023-12-01T21:31:49.229Z"
},
"backupUid": "string",
"clusterName": "string",
"clusterUid": "string"
}
],
"config": {
"backupName": "string",
"durationInHours": 0,
"includeAllDisks": true,
"includeClusterResources": true,
"namespaces": [
"string"
]
},
"requestTime": "2023-12-01T21:31:49.229Z"
}
}
]
}
}
- curl
- python
- go
- nodejs
- java
- CURL
curl -L -X GET 'https://api.spectrocloud.com/v1/workspaces/:uid/backup' \
-H 'Accept: application/json' \
-H 'ApiKey: <API_KEY_VALUE>'