Skip to main content

Create a new Kubernetes application group

Select

SaaS
Customer Managed

API to create new Kubernetes application group

Request Body
  • name string

    Specify new name to rename an Application Group

  • plan object
  • id int32
  • name string
  • content object

    Item describing the content for Application Group

  • overwrite boolean

    Default value: false

    Specifies whether content has to be overwritten or appended

  • applications object[]

    List of applications to be added as content

  • GUID string required

    GUID value of the Kubernetes Application to be associated as content

  • type string required

    Possible values: [NAMESPACE, APPLICATION, PVC, LABELS]

    Type of the Kubernetes application

  • name string

    Name of the application

  • labelSelectors object[]

    List of label selectors to be added as content

  • selectorValue string required

    Value of the label selector in key=value format

  • selectorLevel string required

    Possible values: [Application, Volumes, Namespace]

    Selector level of the label selector

  • filters object

    Item to describe the applications and label selectors for filters

  • overwrite boolean

    Default value: false

    Specifies whether content has to be overwritten or appended

  • skipStatelessApps boolean

    Default value: false

    Specify whether to skip backup of stateless applications

  • applications object[]

    List of applications to be added as content

  • GUID string required

    GUID value of the Kubernetes Application to be associated as content

  • type string required

    Possible values: [NAMESPACE, APPLICATION, PVC, LABELS]

    Type of the Kubernetes application

  • name string

    Name of the application

  • labelSelectors object[]

    List of label selectors to be added as content

  • selectorValue string required

    Value of the label selector in key=value format

  • selectorLevel string required

    Possible values: [Application, Volumes, Namespace]

    Selector level of the label selector

  • cluster object
  • id int32
  • name string
Responses

OK


Schema
  • id int32
  • name string
POST /v5/kubernetes/applicationgroup    

Authorization

type: apiKeyname: Authtokenin: header

Request

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

{
"name": "string",
"plan": {
"id": 0,
"name": "string"
},
"content": {
"overwrite": false,
"applications": [
{
"GUID": "string",
"type": "NAMESPACE",
"name": "string"
}
],
"labelSelectors": [
{
"selectorValue": "string",
"selectorLevel": "Application"
}
]
},
"filters": {
"overwrite": false,
"skipStatelessApps": false,
"applications": [
{
"GUID": "string",
"type": "NAMESPACE",
"name": "string"
}
],
"labelSelectors": [
{
"selectorValue": "string",
"selectorLevel": "Application"
}
]
},
"cluster": {
"id": 0,
"name": "string"
}
}
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/V5/Kubernetes/ApplicationGroup' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"name": "string",
"plan": {
"id": 0,
"name": "string"
},
"content": {
"overwrite": false,
"applications": [
{
"GUID": "string",
"type": "NAMESPACE",
"name": "string"
}
],
"labelSelectors": [
{
"selectorValue": "string",
"selectorLevel": "Application"
}
]
},
"filters": {
"overwrite": false,
"skipStatelessApps": false,
"applications": [
{
"GUID": "string",
"type": "NAMESPACE",
"name": "string"
}
],
"labelSelectors": [
{
"selectorValue": "string",
"selectorLevel": "Application"
}
]
},
"cluster": {
"id": 0,
"name": "string"
}
}'