Server Group Preview
Select
SaaS
Customer Managed
Get a preview of servers affected with create server group operation
- application/json
Request Body
clientScope object
serverGroupRule object
- confirmRuleChange boolean
Confirm that server group rule impacts server of a specific company smart client group only
- serverGroupId int32
Id of Smart Client Group
Responses
- 200
- 400
Success
- application/json
- Schema
- Example (from schema)
Schema
servers object[]
{
"servers": [
{
"id": 0,
"name": "string"
}
]
}
Bad Request
- application/json
- Schema
- Example (from schema)
Schema
- errorMessage string
- errorCode int32
{
"errorMessage": "string",
"errorCode": 0
}
POST /v4/servergroup/preview
Authorization
type: apiKeyname: Authtokenin: header
Request
Request
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/V4/ServerGroup/Preview' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"clientScope": {
"clientScopeType": "COMMCELL",
"entityInfo": {
"id": 0,
"name": "string"
}
},
"serverGroupRule": {
"match": "AND",
"ruleGroup": [
{
"match": "AND",
"rules": [
{
"ruleName": "APP_TYPE",
"ruleValue": "string",
"ruleSecValue": "string",
"matchCondition": "IS_TRUE"
}
]
}
]
},
"confirmRuleChange": true,
"serverGroupId": 0
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/V4/ServerGroup/Preview' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"clientScope": {
"clientScopeType": "COMMCELL",
"entityInfo": {
"id": 0,
"name": "string"
}
},
"serverGroupRule": {
"match": "AND",
"ruleGroup": [
{
"match": "AND",
"rules": [
{
"ruleName": "APP_TYPE",
"ruleValue": "string",
"ruleSecValue": "string",
"matchCondition": "IS_TRUE"
}
]
}
]
},
"confirmRuleChange": true,
"serverGroupId": 0
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/V4/ServerGroup/Preview' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"clientScope": {
"clientScopeType": "COMMCELL",
"entityInfo": {
"id": 0,
"name": "string"
}
},
"serverGroupRule": {
"match": "AND",
"ruleGroup": [
{
"match": "AND",
"rules": [
{
"ruleName": "APP_TYPE",
"ruleValue": "string",
"ruleSecValue": "string",
"matchCondition": "IS_TRUE"
}
]
}
]
},
"confirmRuleChange": true,
"serverGroupId": 0
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/V4/ServerGroup/Preview' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"clientScope": {
"clientScopeType": "COMMCELL",
"entityInfo": {
"id": 0,
"name": "string"
}
},
"serverGroupRule": {
"match": "AND",
"ruleGroup": [
{
"match": "AND",
"rules": [
{
"ruleName": "APP_TYPE",
"ruleValue": "string",
"ruleSecValue": "string",
"matchCondition": "IS_TRUE"
}
]
}
]
},
"confirmRuleChange": true,
"serverGroupId": 0
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/V4/ServerGroup/Preview' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"clientScope": {
"clientScopeType": "COMMCELL",
"entityInfo": {
"id": 0,
"name": "string"
}
},
"serverGroupRule": {
"match": "AND",
"ruleGroup": [
{
"match": "AND",
"rules": [
{
"ruleName": "APP_TYPE",
"ruleValue": "string",
"ruleSecValue": "string",
"matchCondition": "IS_TRUE"
}
]
}
]
},
"confirmRuleChange": true,
"serverGroupId": 0
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/V4/ServerGroup/Preview' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"clientScope": {
"clientScopeType": "COMMCELL",
"entityInfo": {
"id": 0,
"name": "string"
}
},
"serverGroupRule": {
"match": "AND",
"ruleGroup": [
{
"match": "AND",
"rules": [
{
"ruleName": "APP_TYPE",
"ruleValue": "string",
"ruleSecValue": "string",
"matchCondition": "IS_TRUE"
}
]
}
]
},
"confirmRuleChange": true,
"serverGroupId": 0
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/V4/ServerGroup/Preview' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"clientScope": {
"clientScopeType": "COMMCELL",
"entityInfo": {
"id": 0,
"name": "string"
}
},
"serverGroupRule": {
"match": "AND",
"ruleGroup": [
{
"match": "AND",
"rules": [
{
"ruleName": "APP_TYPE",
"ruleValue": "string",
"ruleSecValue": "string",
"matchCondition": "IS_TRUE"
}
]
}
]
},
"confirmRuleChange": true,
"serverGroupId": 0
}'