Update a Plan Rule
Select
SaaS
Customer Managed
Api to update existing plan rules. Request body will suggest which rule need to be updated and type of entities(workloads type, server groups, regions and all) that need to be referenced for applying that rule against a workload.
- application/json
Request Body
rule object required
- ruleStatus string
Possible values: [
DISABLED
,ENABLED
,INCOMPLETE
]Plan rule status
plan object
workloads object[]
serverGroups object[]
regions object[]
- rank int32
[Optional] - This field will suggest rank/priority of rule.
solutions object[]
tags object[]
Responses
- 200
- 400
- 403
- 500
OK
- 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
}
Internal Server Error
- application/json
- Schema
- Example (from schema)
Schema
- errorMessage string
- errorCode int32
{
"errorMessage": "string",
"errorCode": 0
}
PUT /v4/plan/rule
Authorization
type: apiKeyname: Authtokenin: header
Request
Request
curl -L -X PUT 'https://CommandCenterHostName/commandcenter/api/V4/Plan/Rule' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"rule": {
"id": 0,
"GUID": "string",
"name": "string"
},
"ruleStatus": "DISABLED",
"plan": {
"id": 0,
"GUID": "string",
"name": "string"
},
"workloads": [
{
"id": 0,
"name": "string"
}
],
"serverGroups": [
{
"id": 0,
"GUID": "string",
"name": "string"
}
],
"regions": [
{
"id": 0,
"GUID": "string",
"name": "string"
}
],
"rank": 0,
"solutions": [
{
"id": 0,
"name": "string"
}
],
"tags": [
{
"GUID": "string",
"id": 0,
"name": "string",
"value": "string"
}
]
}'
curl -L -X PUT 'https://CommandCenterHostName/commandcenter/api/V4/Plan/Rule' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"rule": {
"id": 0,
"GUID": "string",
"name": "string"
},
"ruleStatus": "DISABLED",
"plan": {
"id": 0,
"GUID": "string",
"name": "string"
},
"workloads": [
{
"id": 0,
"name": "string"
}
],
"serverGroups": [
{
"id": 0,
"GUID": "string",
"name": "string"
}
],
"regions": [
{
"id": 0,
"GUID": "string",
"name": "string"
}
],
"rank": 0,
"solutions": [
{
"id": 0,
"name": "string"
}
],
"tags": [
{
"GUID": "string",
"id": 0,
"name": "string",
"value": "string"
}
]
}'
curl -L -X PUT 'https://CommandCenterHostName/commandcenter/api/V4/Plan/Rule' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"rule": {
"id": 0,
"GUID": "string",
"name": "string"
},
"ruleStatus": "DISABLED",
"plan": {
"id": 0,
"GUID": "string",
"name": "string"
},
"workloads": [
{
"id": 0,
"name": "string"
}
],
"serverGroups": [
{
"id": 0,
"GUID": "string",
"name": "string"
}
],
"regions": [
{
"id": 0,
"GUID": "string",
"name": "string"
}
],
"rank": 0,
"solutions": [
{
"id": 0,
"name": "string"
}
],
"tags": [
{
"GUID": "string",
"id": 0,
"name": "string",
"value": "string"
}
]
}'
curl -L -X PUT 'https://CommandCenterHostName/commandcenter/api/V4/Plan/Rule' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"rule": {
"id": 0,
"GUID": "string",
"name": "string"
},
"ruleStatus": "DISABLED",
"plan": {
"id": 0,
"GUID": "string",
"name": "string"
},
"workloads": [
{
"id": 0,
"name": "string"
}
],
"serverGroups": [
{
"id": 0,
"GUID": "string",
"name": "string"
}
],
"regions": [
{
"id": 0,
"GUID": "string",
"name": "string"
}
],
"rank": 0,
"solutions": [
{
"id": 0,
"name": "string"
}
],
"tags": [
{
"GUID": "string",
"id": 0,
"name": "string",
"value": "string"
}
]
}'
curl -L -X PUT 'https://CommandCenterHostName/commandcenter/api/V4/Plan/Rule' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"rule": {
"id": 0,
"GUID": "string",
"name": "string"
},
"ruleStatus": "DISABLED",
"plan": {
"id": 0,
"GUID": "string",
"name": "string"
},
"workloads": [
{
"id": 0,
"name": "string"
}
],
"serverGroups": [
{
"id": 0,
"GUID": "string",
"name": "string"
}
],
"regions": [
{
"id": 0,
"GUID": "string",
"name": "string"
}
],
"rank": 0,
"solutions": [
{
"id": 0,
"name": "string"
}
],
"tags": [
{
"GUID": "string",
"id": 0,
"name": "string",
"value": "string"
}
]
}'
curl -L -X PUT 'https://CommandCenterHostName/commandcenter/api/V4/Plan/Rule' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"rule": {
"id": 0,
"GUID": "string",
"name": "string"
},
"ruleStatus": "DISABLED",
"plan": {
"id": 0,
"GUID": "string",
"name": "string"
},
"workloads": [
{
"id": 0,
"name": "string"
}
],
"serverGroups": [
{
"id": 0,
"GUID": "string",
"name": "string"
}
],
"regions": [
{
"id": 0,
"GUID": "string",
"name": "string"
}
],
"rank": 0,
"solutions": [
{
"id": 0,
"name": "string"
}
],
"tags": [
{
"GUID": "string",
"id": 0,
"name": "string",
"value": "string"
}
]
}'
curl -L -X PUT 'https://CommandCenterHostName/commandcenter/api/V4/Plan/Rule' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"rule": {
"id": 0,
"GUID": "string",
"name": "string"
},
"ruleStatus": "DISABLED",
"plan": {
"id": 0,
"GUID": "string",
"name": "string"
},
"workloads": [
{
"id": 0,
"name": "string"
}
],
"serverGroups": [
{
"id": 0,
"GUID": "string",
"name": "string"
}
],
"regions": [
{
"id": 0,
"GUID": "string",
"name": "string"
}
],
"rank": 0,
"solutions": [
{
"id": 0,
"name": "string"
}
],
"tags": [
{
"GUID": "string",
"id": 0,
"name": "string",
"value": "string"
}
]
}'