Cisco Cisco Prime Network Services Controller 3.0 개발자 가이드
Page 42
OL-28369-01
<configConfMos
cookie="<real_cookie>">
<inConfigs>
<inConfigs>
<pair key="org-root/org-tenant0/objgrp-ftpPorts0">
<policyObjectGroup dn="org-root/org-tenant0/objgrp-ftpPorts0">
<policyObjectGroupExpression id="1" order="1" opr="eq">
<policyNetworkPort id="1" value="20" />
</policyObjectGroupExpression>
<policyObjectGroupExpression id="2" order="2" opr="eq">
<policyObjectGroupExpression id="2" order="2" opr="eq">
<policyNetworkPort id="1" value="21" />
</policyObjectGroupExpression>
</policyObjectGroup>
</pair>
</inConfigs>
</configConfMos>
Response
<configConfMos
cookie="<real_cookie>"
commCookie="7/15/0/1a4"
srcExtSys="10.193.33.221"
destExtSys="10.193.33.221"
srcSvc="sam_extXMLApi"
destSvc="policy-mgr_dme"
response="yes">
<outConfigs>
commCookie="7/15/0/1a4"
srcExtSys="10.193.33.221"
destExtSys="10.193.33.221"
srcSvc="sam_extXMLApi"
destSvc="policy-mgr_dme"
response="yes">
<outConfigs>
<pair key="org-root/org-tenant0/objgrp-ftpPorts0">
<policyObjectGroup
attributeName=""
descr=""
dn="org-root/org-tenant0/objgrp-ftpPorts0"
intId="24265"
name="ftpPorts0"
status="created"/>
descr=""
dn="org-root/org-tenant0/objgrp-ftpPorts0"
intId="24265"
name="ftpPorts0"
status="created"/>
</pair>
</outConfigs>
</configConfMos>
Attribute Dictionary
The following example creates a dictionary that defines the various attribute IDs and names.
Request
POST URL: https://10.193.33.221/xmlIM/policy-mgr
XML API payload:
<configConfMos
XML API payload:
<configConfMos
cookie="<real_cookie>">
<inConfigs>
<inConfigs>
<!-- Create Sample VnspCustomDictionary under org-tenant1 -->
<pair key="org-root/attr-dict-custom-userAttrs">
<policyVnspCustomDictionary dn="org-root/attr-dict-custom-userAttrs">
<policyVnspCustomAttr dataType="string" id="1" name="userAttr1" />
<policyVnspCustomAttr dataType="string" id="2" name="userAttr2" />
<policyVnspCustomAttr dataType="string" id="3" name="dept" />
<policyVnspCustomAttr dataType="string" id="4" name="production" />
<policyVnspCustomAttr dataType="string" id="2" name="userAttr2" />
<policyVnspCustomAttr dataType="string" id="3" name="dept" />
<policyVnspCustomAttr dataType="string" id="4" name="production" />
</policyVnspCustomDictionary>
</pair>