Returned result, Example, Returned result example – HP Intelligent Management Center Licenses User Manual

Page 415: Status codes, Request

Advertising
background image

ACL rule sub-elements

String type.

Layer 2 protocol type.

l2ProtocolType

Long integer type.

Source MAC address mask.

sourceMacAddr

String type.

Source MAC address mask.

sourceMacWildcard

String type.

Destination MAC address.

destMacAddr

String type.

Destination MAC address mask.

destMacMask

String type.

Interface description.

ifdesc

String type.

Rule string.

ruleString

String type.

Returned Result

Status codes

201 (Created): Success.

Example

Add a standard ACL on the device whose device ID is 68.

Request

POST http://imc_host:8080/imcrs/acl/res/acl
accept: application/xml
...

<acl>
<parentId>68</parentId>
<aclName>2222</aclName>
<aclNameType>1</aclNameType>
<aclType>2</aclType>
<aclDesc>acl_2222</aclDesc>
<aclRuleList>
<aclRule>
<trName/>
<action>1</action>
<sourceAddr>192.168.10.0/255.255.10.10</sourceAddr>
<fragment>1</fragment>
<logging>1</logging>
<vpnIntance/>
</aclRule>
</aclRuleList>
</acl>

Add ACL on a Device

415

Advertising