Create an Operation Rule
Select
SaaS
Customer Managed
This operation creates an operation rule.
- application/json
Request Body
operationWindow object required
entity object
Responses
- 200
OK
- application/json
- Schema
- Example (from schema)
- Example 1
Schema
error object
operationWindow object
{
"error": {
"errorCode": 0
},
"operationWindow": {
"endDate": 0,
"name": "string",
"ruleId": 0,
"startDate": 0,
"operations": [
0
],
"dayTime": [
{
"startTime": 0,
"endTime": 0,
"dayOfWeek": [
0
]
}
]
}
}
{
"error": {
"errorCode": 0
},
"operationWindow": {
"endDate": 0,
"name": "Test_1",
"ruleId": 1,
"startDate": 0,
"operations": [
1,
2
],
"dayTime": [
{
"startTime": 46800,
"endTime": 50400,
"dayOfWeek": [
1,
2
]
}
]
}
}
POST /operationwindow
Authorization
type: apiKeyname: Authtokenin: header
Request
Request
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/OperationWindow' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"operationWindow": {
"endDate": 0,
"name": "string",
"startDate": 0,
"operations": [
0
],
"dayTime": [
{
"startTime": 0,
"endTime": 0,
"dayOfWeek": [
"MONDAY"
],
"weekOfTheMonth": [
"EVERY"
]
}
]
},
"entity": {
"clientGroupId": 0,
"clientId": 0
}
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/OperationWindow' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"operationWindow": {
"endDate": 0,
"name": "string",
"startDate": 0,
"operations": [
0
],
"dayTime": [
{
"startTime": 0,
"endTime": 0,
"dayOfWeek": [
"MONDAY"
],
"weekOfTheMonth": [
"EVERY"
]
}
]
},
"entity": {
"clientGroupId": 0,
"clientId": 0
}
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/OperationWindow' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"operationWindow": {
"endDate": 0,
"name": "string",
"startDate": 0,
"operations": [
0
],
"dayTime": [
{
"startTime": 0,
"endTime": 0,
"dayOfWeek": [
"MONDAY"
],
"weekOfTheMonth": [
"EVERY"
]
}
]
},
"entity": {
"clientGroupId": 0,
"clientId": 0
}
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/OperationWindow' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"operationWindow": {
"endDate": 0,
"name": "string",
"startDate": 0,
"operations": [
0
],
"dayTime": [
{
"startTime": 0,
"endTime": 0,
"dayOfWeek": [
"MONDAY"
],
"weekOfTheMonth": [
"EVERY"
]
}
]
},
"entity": {
"clientGroupId": 0,
"clientId": 0
}
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/OperationWindow' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"operationWindow": {
"endDate": 0,
"name": "string",
"startDate": 0,
"operations": [
0
],
"dayTime": [
{
"startTime": 0,
"endTime": 0,
"dayOfWeek": [
"MONDAY"
],
"weekOfTheMonth": [
"EVERY"
]
}
]
},
"entity": {
"clientGroupId": 0,
"clientId": 0
}
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/OperationWindow' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"operationWindow": {
"endDate": 0,
"name": "string",
"startDate": 0,
"operations": [
0
],
"dayTime": [
{
"startTime": 0,
"endTime": 0,
"dayOfWeek": [
"MONDAY"
],
"weekOfTheMonth": [
"EVERY"
]
}
]
},
"entity": {
"clientGroupId": 0,
"clientId": 0
}
}'
curl -L -X POST 'https://CommandCenterHostName/commandcenter/api/OperationWindow' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authtoken: <API_KEY_VALUE>' \
--data-raw '{
"operationWindow": {
"endDate": 0,
"name": "string",
"startDate": 0,
"operations": [
0
],
"dayTime": [
{
"startTime": 0,
"endTime": 0,
"dayOfWeek": [
"MONDAY"
],
"weekOfTheMonth": [
"EVERY"
]
}
]
},
"entity": {
"clientGroupId": 0,
"clientId": 0
}
}'