Skip to main content

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

Request Body
  • restoreApplications boolean

    Default value: true

    Restore Applications of the Namespace

  • namespaces object[]
  • GUID string required
  • name string
  • inPlace boolean

    Run In-Place restore job

  • destinationCluster object
  • id int32
  • name string
  • accessNode object
  • id int32
  • name string
  • overwrite boolean

    Default value: false

    Overwrite if already present

  • timeRange object

    Time range is for time related token rule values to specify from and to time in unix timestamp format.

  • fromTime string

    From time value in unix timestamp format

  • toTime string

    To time value in unix timestamp format

  • modifier string

    Specify list of resource modifier YAML as a string

Responses

Success


Schema
  • taskId int32
  • jobIds string[]

    JobIds for the immediate run request

POST /v5/kubernetes/applicationgroup/:applicationgroupid/restore/namespace    

Authorization

type: apiKeyname: Authtokenin: header

Request

Click Edit to configure Base URL
https://CommandCenterHostName/commandcenter/api
Security Scheme
token
applicationGroupId — path required
Body

{
"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"
}'