Create a Plan Rule
Select
Api to create plan rules. Request body will suggest plan against which rule need to be created 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
plan object required
id int32GUID stringname string- rank int32
Optional field to suggest priority/rank of the rule. If not present, we will process rule in the same order they are created.
workloads object[]
This will include list of apptypes that should be evaluated against workload apptype for plan association.
id int32name stringserverGroups object[]
This will include list of Server groups that should be evaluated against workload server group for plan association.
id int32GUID stringname stringregions object[]
This will include list of regions that should be evaluated against workload region for plan association.
id int32GUID stringname stringsolutions object[]
This will include list of solutions that should be evaluated against workload for plan association
id int32name stringcompany object
id int32name stringtags object[]
This will include list of tags that should be evaluated against workload for plan association
GUID stringGUID for the tag
id int32Id for the tag
name stringName for the plan rule tag which need to be matched against tag of the workload.
value stringPossible value that need to matched against value of tag associated to workload.
globalConfigInfo object
Only applicable to Global CommCells
name stringcommcells object[]
List of Service CommCells where the global configuration should be applied
id int32name stringguid stringscope stringThe entity level at which the config has to be applied.
scopeFilterQuery stringCommCellEntityCache filter query string using for filtering the scope
applyOnAllCommCells booleanDecides whether the global configuration should be applied to all the Service commcells, including the newly created ones
actionOnLocalEntity stringPossible values: [
CREATE_NEW
,TAKE_OVER
,FAIL_IF_EXIST
]Action that will be taken on the local entity that has the same name as the global entity that needs to be created
- 200
- 403
- 500
OK
- application/json
- Schema
- Example (from schema)
Schema
- id int32
- name string
{
"id": 0,
"name": "string"
}
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
}