Update Operation Rules
Select
This operation updates an operation rule. More Details
- application/json
Request Body
operationWindow object
name string requiredName of the Operation window
ruleId integer requiredID of the operation window
operations string[] requiredPossible values: [
OPERATION_ALL
,OPERATION_FULL_DATA_PROTECTION
,OPERATION_NON_FULL_DATA_PROTECTION
,OPERATION_SYNTHETIC_FULL
,OPERATION_TRANSACTION_LOG_BACKUP
,OPERATION_AUX_COPY
,OPERATION_BACKUP_COPY
,OPERATION_INSTALL_UPDATES
]Choose which operations which rule should be applied to. OPERATION_ALL for all commcell operations
dayTime object[] required
Add the time interval of the days in dayOfWeek that will be in blackout period
dayOfWeek string[] requiredPossible values: [
MONDAY
,TUESDAY
,WEDNESDAY
,THURSDAY
,FIRIDAY
,SATURDAY
,SUNDAY
]Select day of the week for rule
startTime integer requiredStart time (In number of mins from 12:00 AM) Example : 3600for 1 AM
endTime integer requiredEnd Time (In number of mins from 12:00 AM) Example : 3600 for 1 AM)
weekOfTheMonth string[] requiredPossible values: [
EVERY
,FIRST
,SECOND
,THIRD
,LAST
,FOURTH
]Select the week of the m
ruleEnabled boolean requiredEnable or disable the rule
doNotSubmitJob booleancompany object
Company details
providerId integerproviderDomainName stringentity object
Entity which rules should be applied
commCellId integerclientGroupId integerclientId integer
- 200
OK
- application/json
- Schema
- Example (from schema)
- Example 1
Schema
error object
errorCode integeroperationWindow object
ruleEnabled booleanendDate integername stringruleId integerstartDate integeroperations integer[]dayTime object[]
startTime integerendTime integerdayOfWeek integer[]
{
"error": {
"errorCode": 0
},
"operationWindow": {
"ruleEnabled": true,
"endDate": 0,
"name": "string",
"ruleId": 0,
"startDate": 0,
"operations": [
0
],
"dayTime": [
{
"startTime": 0,
"endTime": 0,
"dayOfWeek": [
0
]
}
]
}
}
{
"error": {
"errorCode": 0
},
"operationWindow": {
"ruleEnabled": true,
"endDate": 1520658000,
"name": "change_operationRule123",
"ruleId": 10,
"startDate": 1520571600,
"operations": [
1,
2
],
"dayTime": [
{
"startTime": 32400,
"endTime": 36000,
"dayOfWeek": [
1,
2,
3
]
}
]
}
}