Cisco Cisco Prime Network Services Controller 3.0 Developer's Guide
Page 41
OL-28369-01
<pair key="org-root/org-tenant1/zone-trustedServers-0">
<!-- Create a zone of all VMs attached to a VNSP where the "appType" is set to
"BuildServer" -->
"BuildServer" -->
<policyZone dn="org-root/org-tenant1/zone-trustedServers-0">
<policyZoneCondition id="1" order="1">
<policyZoneExpression opr="eq">
<policyParentAppName id="1" value="BuildServer" />
</policyZoneExpression>
</policyZoneCondition>
</policyZone>
</pair>
</inConfigs>
</configConfMos>
Response
<configConfMos
cookie="<real_cookie>"
commCookie="7/15/0/1a6"
srcExtSys="10.193.33.221"
destExtSys="10.193.33.221"
srcSvc="sam_extXMLApi"
destSvc="policy-mgr_dme"
response="yes">
<outConfigs>
commCookie="7/15/0/1a6"
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/zone-zone0">
<policyZone
descr=""
dn="org-root/org-tenant0/zone-zone0"
intId="24295"
name="zone0"
status="created"/>
dn="org-root/org-tenant0/zone-zone0"
intId="24295"
name="zone0"
status="created"/>
</pair>
<pair key="org-root/org-tenant1/zone-trustedServers-0">
<pair key="org-root/org-tenant1/zone-trustedServers-0">
<policyZone
descr=""
dn="org-root/org-tenant1/zone-trustedServers-0"
intId="24404"
name="trustedServers-0"
status="created"/>
dn="org-root/org-tenant1/zone-trustedServers-0"
intId="24404"
name="trustedServers-0"
status="created"/>
</pair>
<pair key="org-root/org-tenant1/zone-trustedClients-0">
<pair key="org-root/org-tenant1/zone-trustedClients-0">
<policyZone
descr=""
dn="org-root/org-tenant1/zone-trustedClients-0"
intId="24408"
name="trustedClients-0"
status="created"/>
dn="org-root/org-tenant1/zone-trustedClients-0"
intId="24408"
name="trustedClients-0"
status="created"/>
</pair>
</outConfigs>
</configConfMos>
Object Group
The following example creates an object group named ftpPorts0 and assigns a set of attributes.
Request
POST URL: https://10.193.33.221/xmlIM/policy-mgr
XML API payload:
XML API payload: