Namespace Level Restore - Restore backed up Namespaces of the application group
Select
SaaS
Customer Managed
API to run Namespace Level Restore for an application group
Path Parameters
- applicationGroupId int32 required
ID of the application group to restore from
- application/json
Request Body
- restoreApplications boolean
Default value:
true
Restore Applications of the Namespace
namespaces object[]
- inPlace boolean
Run In-Place restore job
destinationCluster object
accessNode object
- overwrite boolean
Default value:
false
Overwrite if already present
timeRange object
- modifier string
Specify list of resource modifier YAML as a string
Responses
- 200
- 404
- 500
Success
- application/json
- Schema
- Example (from schema)
Schema
- taskId int32
- jobIds string[]
JobIds for the immediate run request
{
"taskId": 0,
"jobIds": [
"string"
]
}
Requested Details not found
- application/json
- Schema
- Example (from schema)
Schema
- errorMessage string
- errorCode int32
{
"errorMessage": "string",
"errorCode": 0
}
Server Error
- application/json
- Schema
- Example (from schema)
Schema
- errorMessage string
- errorCode int32
{
"errorMessage": "string",
"errorCode": 0
}
POST /v5/kubernetes/applicationgroup/:applicationgroupid/restore/namespace
Authorization
type: apiKeyname: Authtokenin: header
Request
Request
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/V5/Kubernetes/ApplicationGroup/:applicationGroupId/Restore/Namespace' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"restoreApplications": true,
"namespaces": [
{
"GUID": "string",
"name": "string"
}
],
"inPlace": true,
"destinationCluster": {
"id": 0,
"name": "string"
},
"accessNode": {
"id": 0,
"name": "string"
},
"overwrite": false,
"timeRange": {
"fromTime": "string",
"toTime": "string"
},
"modifier": "apiVersion: v1\r\nkind: List\r\nitems:\r\n - apiVersion: k8s.cv.io/v1\r\n kind: RestoreModifier\r\n metadata:\r\n name: test-mod\r\n namespace: cv-config\r\n spec:\r\n modifiers:\r\n - action: Add\r\n parameters: Exact\r\n path: /new\r\n selectorId: 9fb3a4a2-0f03-4dc0-93d4-4eabffe31b35\r\n value: value\r\n selectors:\r\n - id: 9fb3a4a2-0f03-4dc0-93d4-4eabffe31b35\r\n name: Pod\r\n\r\n"
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/V5/Kubernetes/ApplicationGroup/:applicationGroupId/Restore/Namespace' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"restoreApplications": true,
"namespaces": [
{
"GUID": "string",
"name": "string"
}
],
"inPlace": true,
"destinationCluster": {
"id": 0,
"name": "string"
},
"accessNode": {
"id": 0,
"name": "string"
},
"overwrite": false,
"timeRange": {
"fromTime": "string",
"toTime": "string"
},
"modifier": "apiVersion: v1\r\nkind: List\r\nitems:\r\n - apiVersion: k8s.cv.io/v1\r\n kind: RestoreModifier\r\n metadata:\r\n name: test-mod\r\n namespace: cv-config\r\n spec:\r\n modifiers:\r\n - action: Add\r\n parameters: Exact\r\n path: /new\r\n selectorId: 9fb3a4a2-0f03-4dc0-93d4-4eabffe31b35\r\n value: value\r\n selectors:\r\n - id: 9fb3a4a2-0f03-4dc0-93d4-4eabffe31b35\r\n name: Pod\r\n\r\n"
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/V5/Kubernetes/ApplicationGroup/:applicationGroupId/Restore/Namespace' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"restoreApplications": true,
"namespaces": [
{
"GUID": "string",
"name": "string"
}
],
"inPlace": true,
"destinationCluster": {
"id": 0,
"name": "string"
},
"accessNode": {
"id": 0,
"name": "string"
},
"overwrite": false,
"timeRange": {
"fromTime": "string",
"toTime": "string"
},
"modifier": "apiVersion: v1\r\nkind: List\r\nitems:\r\n - apiVersion: k8s.cv.io/v1\r\n kind: RestoreModifier\r\n metadata:\r\n name: test-mod\r\n namespace: cv-config\r\n spec:\r\n modifiers:\r\n - action: Add\r\n parameters: Exact\r\n path: /new\r\n selectorId: 9fb3a4a2-0f03-4dc0-93d4-4eabffe31b35\r\n value: value\r\n selectors:\r\n - id: 9fb3a4a2-0f03-4dc0-93d4-4eabffe31b35\r\n name: Pod\r\n\r\n"
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/V5/Kubernetes/ApplicationGroup/:applicationGroupId/Restore/Namespace' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"restoreApplications": true,
"namespaces": [
{
"GUID": "string",
"name": "string"
}
],
"inPlace": true,
"destinationCluster": {
"id": 0,
"name": "string"
},
"accessNode": {
"id": 0,
"name": "string"
},
"overwrite": false,
"timeRange": {
"fromTime": "string",
"toTime": "string"
},
"modifier": "apiVersion: v1\r\nkind: List\r\nitems:\r\n - apiVersion: k8s.cv.io/v1\r\n kind: RestoreModifier\r\n metadata:\r\n name: test-mod\r\n namespace: cv-config\r\n spec:\r\n modifiers:\r\n - action: Add\r\n parameters: Exact\r\n path: /new\r\n selectorId: 9fb3a4a2-0f03-4dc0-93d4-4eabffe31b35\r\n value: value\r\n selectors:\r\n - id: 9fb3a4a2-0f03-4dc0-93d4-4eabffe31b35\r\n name: Pod\r\n\r\n"
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/V5/Kubernetes/ApplicationGroup/:applicationGroupId/Restore/Namespace' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"restoreApplications": true,
"namespaces": [
{
"GUID": "string",
"name": "string"
}
],
"inPlace": true,
"destinationCluster": {
"id": 0,
"name": "string"
},
"accessNode": {
"id": 0,
"name": "string"
},
"overwrite": false,
"timeRange": {
"fromTime": "string",
"toTime": "string"
},
"modifier": "apiVersion: v1\r\nkind: List\r\nitems:\r\n - apiVersion: k8s.cv.io/v1\r\n kind: RestoreModifier\r\n metadata:\r\n name: test-mod\r\n namespace: cv-config\r\n spec:\r\n modifiers:\r\n - action: Add\r\n parameters: Exact\r\n path: /new\r\n selectorId: 9fb3a4a2-0f03-4dc0-93d4-4eabffe31b35\r\n value: value\r\n selectors:\r\n - id: 9fb3a4a2-0f03-4dc0-93d4-4eabffe31b35\r\n name: Pod\r\n\r\n"
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/V5/Kubernetes/ApplicationGroup/:applicationGroupId/Restore/Namespace' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"restoreApplications": true,
"namespaces": [
{
"GUID": "string",
"name": "string"
}
],
"inPlace": true,
"destinationCluster": {
"id": 0,
"name": "string"
},
"accessNode": {
"id": 0,
"name": "string"
},
"overwrite": false,
"timeRange": {
"fromTime": "string",
"toTime": "string"
},
"modifier": "apiVersion: v1\r\nkind: List\r\nitems:\r\n - apiVersion: k8s.cv.io/v1\r\n kind: RestoreModifier\r\n metadata:\r\n name: test-mod\r\n namespace: cv-config\r\n spec:\r\n modifiers:\r\n - action: Add\r\n parameters: Exact\r\n path: /new\r\n selectorId: 9fb3a4a2-0f03-4dc0-93d4-4eabffe31b35\r\n value: value\r\n selectors:\r\n - id: 9fb3a4a2-0f03-4dc0-93d4-4eabffe31b35\r\n name: Pod\r\n\r\n"
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/V5/Kubernetes/ApplicationGroup/:applicationGroupId/Restore/Namespace' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"restoreApplications": true,
"namespaces": [
{
"GUID": "string",
"name": "string"
}
],
"inPlace": true,
"destinationCluster": {
"id": 0,
"name": "string"
},
"accessNode": {
"id": 0,
"name": "string"
},
"overwrite": false,
"timeRange": {
"fromTime": "string",
"toTime": "string"
},
"modifier": "apiVersion: v1\r\nkind: List\r\nitems:\r\n - apiVersion: k8s.cv.io/v1\r\n kind: RestoreModifier\r\n metadata:\r\n name: test-mod\r\n namespace: cv-config\r\n spec:\r\n modifiers:\r\n - action: Add\r\n parameters: Exact\r\n path: /new\r\n selectorId: 9fb3a4a2-0f03-4dc0-93d4-4eabffe31b35\r\n value: value\r\n selectors:\r\n - id: 9fb3a4a2-0f03-4dc0-93d4-4eabffe31b35\r\n name: Pod\r\n\r\n"
}'