Cisco Cisco Prime Network Services Controller 3.0 Guide Du Développeur

Page de 103
Page 40 
OL-28369-01 
</inConfigs> 
</configConfMos> 
Response 
<configConfMos 
cookie="<real_cookie>" 
commCookie="7/15/0/1ba" 
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-Cola/fwdevprofile-myDeviceProfile"> 
<fwpolicyFirewallDeviceProfile 
coreFilePolicy=" 
descr="" 
dn="org-root/org-Cola/fwdevprofile-myDeviceProfile" 
dnsPolicy="" 
enablePolicyDecisionLog="no" 
faultPolicy="" 
httpPolicy="" 
httpsPolicy="" 
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>