INC-FAULT

Modify Filtering Rule by ID

Modify a filtering rule specified by its ID.

Interface URI

/fault/trapRule/{id}

Access Method

HTTP
PUT
Message body
PUT http://localhsot:8080/imcrs/fault/trapRule/1
accept: application/xml
...
    
Parameters
Subelements for modifying a filtering rule
id Rule ID.
Long integer type. Required. No default value.
startDay Start date of the rule's validity period.
String type.
trapOId Trap OID.
String type.
displayName Device name.
String type. Required. No default value.
devID Device ID.
Integer type. Required. No default value.
faultOid Event OID.
String type.
position Parameter position.
Integer type.
value Parameter value.
String type.
name Parameter name.
String type.
exectimeType Validity period configuration type.
Integer type.
ifDesc Interface description.
String type.
deviceId Device ID.
Integer type.
endTime End time of the rule's validity period.
String type.
selectedWeekDay Weekdays on which the rule is in effect.
String type. The value is a comma-separated list of digits in the range of 0 to 6 (inclusive). A maximum of 7 digits can be specified.
trapGroup Trap group to which the rule is applied.
Integer type. Valid values are 0 (UP/DOWN trap group), 1 (MNS trap group), and -1 (By event).
endDay End date of the rule's validity period.
String type.
startTime Start time of the rule's validity period.
String type.
trapRuleName Rule name.
String type.

Example

Modify a filtering rule.

Request
PUT http://localhost:8080/imcrs/fault/trapRule/2020890362
accept: application/xml
...

  <trapRule>
     <trapOId> </trapOId>
     <startDay>1</startDay>
     <trapDevice>
     	<displayName> </displayName>
     	<devID> </devID>
     	<trapFilterEventParasInfo>
     		<faultOid> </faultOid>
     		<position> </position>
     		<value> </value>
     		<name> </name>
     	</trapFilterEventParasInfo>
     </trapDevice>
     <exectimeType> </exectimeType>
     <trapInterfaces>
     	<ifDesc> </ifDesc>
     	<deviceId> </deviceId>
     </trapInterfaces>
     <endTime>24</endTime>
     <selectedWeekDay>1</selectedWeekDay>
     <endDay>1</endDay>
     <trapGroup>1</trapGroup>
     <startTime>2</startTime>
     <trapRuleName>test</trapRuleName>
  <trapRule>
   

Return Values

Status codes
  • 204: Success.
The message body is empty.
HTTP/1.1 204
http://localhost:8080/imcrs/fault/trapRule