Update the server group
Select
SaaS
Customer Managed
Used to update server associations for a server group
Path Parameters
- serverGroupId int32 required
Id of the serverGroupId whose details have to be fetched
- application/json
Request Body
serverGroup object
- serverGroupType string
Possible values: [
MANUAL
,AUTOMATIC
,VIRTUAL_MACHINE
] - description string
automaticAssociation object
virtualAssociation object
manualAssociation object
Responses
- 200
- 400
- 403
- 404
- 500
Success
- application/json
- Schema
- Example (from schema)
Schema
- errorMessage string
- errorCode int32
{
"errorMessage": "string",
"errorCode": 0
}
Bad Request
- application/json
- Schema
- Example (from schema)
Schema
- errorMessage string
- errorCode int32
{
"errorMessage": "string",
"errorCode": 0
}
Forbidden
- application/json
- Schema
- Example (from schema)
Schema
- errorMessage string
- errorCode int32
{
"errorMessage": "string",
"errorCode": 0
}
Requested Details not found
Internal Server Error
- application/json
- Schema
- Example (from schema)
Schema
- errorMessage string
- errorCode int32
{
"errorMessage": "string",
"errorCode": 0
}
PUT /v4/servergroup/:servergroupid
Authorization
type: apiKeyname: Authtokenin: header
Request
Request
curl -L -X PUT 'https://CommandCenterHostName/commandcenter/api/V4/ServerGroup/:serverGroupId' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"serverGroup": {
"id": 0,
"name": "string"
},
"serverGroupType": "MANUAL",
"description": "string",
"automaticAssociation": {
"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
},
"virtualAssociation": {
"virtualInstance": "NONE",
"virtualServers": [
{
"id": 0,
"name": "string"
}
],
"rules": {
"matchRule": "ALL",
"rules": [
{
"name": "string",
"type": "NONE",
"value": "string",
"condition": "CONTAINS",
"GUID": "string",
"displayName": "string"
}
]
},
"clientAssociation": [
{
"associationRule": [
{
"name": "string",
"GUID": "string",
"type": "NONE",
"guestCredentialAssocId": 0,
"guestCredentials": {
"userName": "string",
"password": "string"
},
"existingCredential": {
"credentialId": 0,
"credentialName": "string"
}
}
],
"associatedClient": {
"clientID": 0
}
}
]
},
"manualAssociation": {
"associatedservers": [
{
"id": 0,
"name": "string"
}
]
}
}'
curl -L -X PUT 'https://CommandCenterHostName/commandcenter/api/V4/ServerGroup/:serverGroupId' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"serverGroup": {
"id": 0,
"name": "string"
},
"serverGroupType": "MANUAL",
"description": "string",
"automaticAssociation": {
"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
},
"virtualAssociation": {
"virtualInstance": "NONE",
"virtualServers": [
{
"id": 0,
"name": "string"
}
],
"rules": {
"matchRule": "ALL",
"rules": [
{
"name": "string",
"type": "NONE",
"value": "string",
"condition": "CONTAINS",
"GUID": "string",
"displayName": "string"
}
]
},
"clientAssociation": [
{
"associationRule": [
{
"name": "string",
"GUID": "string",
"type": "NONE",
"guestCredentialAssocId": 0,
"guestCredentials": {
"userName": "string",
"password": "string"
},
"existingCredential": {
"credentialId": 0,
"credentialName": "string"
}
}
],
"associatedClient": {
"clientID": 0
}
}
]
},
"manualAssociation": {
"associatedservers": [
{
"id": 0,
"name": "string"
}
]
}
}'
curl -L -X PUT 'https://CommandCenterHostName/commandcenter/api/V4/ServerGroup/:serverGroupId' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"serverGroup": {
"id": 0,
"name": "string"
},
"serverGroupType": "MANUAL",
"description": "string",
"automaticAssociation": {
"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
},
"virtualAssociation": {
"virtualInstance": "NONE",
"virtualServers": [
{
"id": 0,
"name": "string"
}
],
"rules": {
"matchRule": "ALL",
"rules": [
{
"name": "string",
"type": "NONE",
"value": "string",
"condition": "CONTAINS",
"GUID": "string",
"displayName": "string"
}
]
},
"clientAssociation": [
{
"associationRule": [
{
"name": "string",
"GUID": "string",
"type": "NONE",
"guestCredentialAssocId": 0,
"guestCredentials": {
"userName": "string",
"password": "string"
},
"existingCredential": {
"credentialId": 0,
"credentialName": "string"
}
}
],
"associatedClient": {
"clientID": 0
}
}
]
},
"manualAssociation": {
"associatedservers": [
{
"id": 0,
"name": "string"
}
]
}
}'
curl -L -X PUT 'https://CommandCenterHostName/commandcenter/api/V4/ServerGroup/:serverGroupId' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"serverGroup": {
"id": 0,
"name": "string"
},
"serverGroupType": "MANUAL",
"description": "string",
"automaticAssociation": {
"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
},
"virtualAssociation": {
"virtualInstance": "NONE",
"virtualServers": [
{
"id": 0,
"name": "string"
}
],
"rules": {
"matchRule": "ALL",
"rules": [
{
"name": "string",
"type": "NONE",
"value": "string",
"condition": "CONTAINS",
"GUID": "string",
"displayName": "string"
}
]
},
"clientAssociation": [
{
"associationRule": [
{
"name": "string",
"GUID": "string",
"type": "NONE",
"guestCredentialAssocId": 0,
"guestCredentials": {
"userName": "string",
"password": "string"
},
"existingCredential": {
"credentialId": 0,
"credentialName": "string"
}
}
],
"associatedClient": {
"clientID": 0
}
}
]
},
"manualAssociation": {
"associatedservers": [
{
"id": 0,
"name": "string"
}
]
}
}'
curl -L -X PUT 'https://CommandCenterHostName/commandcenter/api/V4/ServerGroup/:serverGroupId' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"serverGroup": {
"id": 0,
"name": "string"
},
"serverGroupType": "MANUAL",
"description": "string",
"automaticAssociation": {
"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
},
"virtualAssociation": {
"virtualInstance": "NONE",
"virtualServers": [
{
"id": 0,
"name": "string"
}
],
"rules": {
"matchRule": "ALL",
"rules": [
{
"name": "string",
"type": "NONE",
"value": "string",
"condition": "CONTAINS",
"GUID": "string",
"displayName": "string"
}
]
},
"clientAssociation": [
{
"associationRule": [
{
"name": "string",
"GUID": "string",
"type": "NONE",
"guestCredentialAssocId": 0,
"guestCredentials": {
"userName": "string",
"password": "string"
},
"existingCredential": {
"credentialId": 0,
"credentialName": "string"
}
}
],
"associatedClient": {
"clientID": 0
}
}
]
},
"manualAssociation": {
"associatedservers": [
{
"id": 0,
"name": "string"
}
]
}
}'
curl -L -X PUT 'https://CommandCenterHostName/commandcenter/api/V4/ServerGroup/:serverGroupId' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"serverGroup": {
"id": 0,
"name": "string"
},
"serverGroupType": "MANUAL",
"description": "string",
"automaticAssociation": {
"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
},
"virtualAssociation": {
"virtualInstance": "NONE",
"virtualServers": [
{
"id": 0,
"name": "string"
}
],
"rules": {
"matchRule": "ALL",
"rules": [
{
"name": "string",
"type": "NONE",
"value": "string",
"condition": "CONTAINS",
"GUID": "string",
"displayName": "string"
}
]
},
"clientAssociation": [
{
"associationRule": [
{
"name": "string",
"GUID": "string",
"type": "NONE",
"guestCredentialAssocId": 0,
"guestCredentials": {
"userName": "string",
"password": "string"
},
"existingCredential": {
"credentialId": 0,
"credentialName": "string"
}
}
],
"associatedClient": {
"clientID": 0
}
}
]
},
"manualAssociation": {
"associatedservers": [
{
"id": 0,
"name": "string"
}
]
}
}'
curl -L -X PUT 'https://CommandCenterHostName/commandcenter/api/V4/ServerGroup/:serverGroupId' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"serverGroup": {
"id": 0,
"name": "string"
},
"serverGroupType": "MANUAL",
"description": "string",
"automaticAssociation": {
"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
},
"virtualAssociation": {
"virtualInstance": "NONE",
"virtualServers": [
{
"id": 0,
"name": "string"
}
],
"rules": {
"matchRule": "ALL",
"rules": [
{
"name": "string",
"type": "NONE",
"value": "string",
"condition": "CONTAINS",
"GUID": "string",
"displayName": "string"
}
]
},
"clientAssociation": [
{
"associationRule": [
{
"name": "string",
"GUID": "string",
"type": "NONE",
"guestCredentialAssocId": 0,
"guestCredentials": {
"userName": "string",
"password": "string"
},
"existingCredential": {
"credentialId": 0,
"credentialName": "string"
}
}
],
"associatedClient": {
"clientID": 0
}
}
]
},
"manualAssociation": {
"associatedservers": [
{
"id": 0,
"name": "string"
}
]
}
}'