Cisco Cisco Prime Network Services Controller 3.2 Developer's Guide

Page of 163
Page 76 
OL-30968-01 
intId="25326" 
logProfilePolicy="" 
name="myDeviceProfile" 
snmpPolicy="mysnmp" 
status="created" 
syslogPolicy="mysyslog" 
telnetPolicy="" 
timezone="America/Los_Angeles"/> 
</pair>  
</outConfigs>  
</configConfMos> 
Zone 
The following example creates two zones: trustedClients-0 and trustedServers-0. A set of attributes with values is 
also assigned. 
Note  In the Prime Network Services Controller UI, a zone is represented as a vZone (virtual Zone). 
Request 
 
POST URL: https://10.193.33.221/xmlIM/policy-mgr 
XML API payload: 
<configConfMos 
cookie="<real_cookie>"> 
<inConfigs> 
<pair key="org-root/org-tenant1/zone-trustedClients-0"> 
<!-- Create a zone of all VMs in the 192.168.1.0/24 subnet --> 
<policyZone dn="org-root/org-tenant1/zone-trustedClients-0"> 
<policyZoneCondition id="1" order="1"> 
<policyZoneExpression opr="prefix"> 
<policyIPAddress id="1" value="192.168.1.0" 
<policyIPSubnet id="1" value="255.255.255.0" /> 
</policyZoneExpression> 
</policyZoneCondition> 
</policyZone> 
</pair> 
<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" --> 
<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> 
<pair key="org-root/org-tenant0/zone-zone0"> 
<policyZone