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

Page de 103
Page 39 
OL-28369-01 
srcSvc="sam_extXMLApi" 
destSvc="policy-mgr_dme" 
response="yes"> 
<outConfigs> 
<pair key="org-root/logprof-debugLog"> 
<policyLogProfile 
adminState="enabled" 
backupCount="4" 
descr="" 
dn="org-root/logprof-debugLog" 
intId="10514" 
level="debug1" 
name="debugLog" 
size="10000000" 
status="created"/> 
</pair> 
</outConfigs> 
</configConfMos> 
Device Profiles 
This action creates a device profile named myDeviceProfile. It enables the profile and designates the contents of 
the profile. 
Request 
POST URL: https://10.193.33.221/xmlIM/policy-mgr 
XML API payload: 
<configConfMos 
cookie="<real_cookie>"> 
<inConfigs> 
<pair key="org-root/org-Cola/fwdevprofile-myDeviceProfile"> 
<fwpolicyFirewallDeviceProfile 
dn="org-root/org-Cola/fwdevprofile-myDeviceProfile" 
snmpPolicy="mysnmp" 
syslogPolicy="mysyslog" 
timezone="America/Los_Angeles" > 
<commDns 
name="somedns.com" 
domain="somedns.com"/> 
<!-- The order attribute means the device should first use the DNS provider with the 
smallest "order" value. If that DNS server is not responsive, use the DNS provider 
with the next smaller number. --> 
<commDnsProvider 
hostip="171.70.168.183" 
order="1"/> 
<commDnsProvider 
hostip="171.68.226.120" 
order="2"/> 
<commDnsProvider 
hostip="64.102.6.247" 
order="3"/> 
<commNtpProvider 
name="somentp.com" 
order="1"/> 
<commNtpProvider 
name="north-america.pool.ntp.org" 
order="2"/> 
</fwpolicyFirewallDeviceProfile> 
</pair>