HP Intelligent Management Center Licenses User Manual

Page 418

Advertising
background image

Response

HTTP/1.1 201 Created
Content-Type: application/xml
...
No message body is included.

5. Add a Layer 2 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>4001</aclName>
<aclType>4</aclType>
<aclDesc>acl_4001</aclDesc>
<aclRuleList>
<aclRule>
<trName/>
<action>1</action>
<sourceMacAddr/>
<destMacAddr/>
<priority>-1</priority>
<formatType>-1</formatType>
<srcVlanId>25</srcVlanId>
<l2ProtocolType>2</l2ProtocolType>
<l2ProtocolCode>12</l2ProtocolCode>
<l2ProtocolMask>12</l2ProtocolMask>
</aclRule>
</aclRuleList>
</acl>

Response

HTTP/1.1 201 Created
Content-Type: application/xml
...
No message body is included.

6. Add a user-defined ACL without rule strings 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>5001</aclName>
<aclType>5</aclType>
<aclDesc>acl_5001</aclDesc>
<aclRuleList>
<aclRule>
<trName/>
<action>0</action>
<ruleString/>
</aclRule>
</aclRuleList>
</acl>

418

ACL Management

Advertising