Skip to main content

Create an Operation Rule

Select

SaaS
Customer Managed

This operation creates an operation rule.

More Details

Request Body
  • operationWindow object required
  • endDate integer

    Epoch Date value at 12:00 AM of the particular end Date

  • name string
  • startDate integer

    Epoch Date value at 12:00 AM of the particular start Date

  • operations integer[]
  • dayTime object[] required

    Add the time interval of the days in dayOfWeek that will be in blackout period

  • startTime integer

    Time value

  • endTime integer
  • dayOfWeek string[] required

    Possible values: [MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY, SUNDAY]

    Select the Day of the week for the rule

  • weekOfTheMonth string[] required

    Possible values: [EVERY, FIRST, SECOND, THIRD, FOURTH, LAST]

    Select the week of the month for the blackout window. Select EVERY for all weeks

  • entity object
  • clientGroupId integer
  • clientId integer
Responses

OK


Schema
  • error object
  • errorCode integer
  • operationWindow object
  • endDate integer
  • name string
  • ruleId integer
  • startDate integer
  • operations integer[]
  • dayTime object[]
  • startTime integer
  • endTime integer
  • dayOfWeek integer[]
POST /operationwindow    

Authorization

type: apiKeyname: Authtokenin: header

Request

Click Edit to configure Base URL
https://CommandCenterHostName/commandcenter/api
Security Scheme
token
Body

{
"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
}
}'