Cisco Cisco Prime Network Services Controller 3.2 開発者ガイド

ページ / 163
Page 48 
OL-30968-01 
The following example assigns the device profile my-profile-ref to the compute firewall test5, which was created in
 
 
Request 
 
<configConfMos 
cookie="<real_cookie>" 
inHierarchical="false"> 
<inConfigs> 
<pair key="org-root/cfw-test5/device-profile"> 
<logicalDeviceProfileAssociation 
dn="org-root/cfw-test5/device-profile" 
profileRef="my-profile-ref" 
status="created"/> 
</pair> 
 
</inConfigs> 
</configConfMos> 
 
Response 
 
<configConfMos 
cookie="<real_cookie>" 
commCookie="5/12/0/1571" 
srcExtSys="172.25.97.246" 
destExtSys="172.25.97.246" 
srcSvc="sam_extXMLApi" 
destSvc="resource-mgr_dme" 
response="yes"> 
<outConfigs> 
<pair key="org-root/cfw-test5/device-profile"> 
<logicalDeviceProfileAssociation 
descr="" 
dn="org-root/cfw-test5/device-profile" 
intId="10586" 
name="" 
profileRef="my-profile-ref" 
status="created"/> 
</pair> 
</outConfigs> 
</configConfMos> 
 
Query Firewall Instances 
The following example queries all firewall instances with the management IP address of 10.193.33.221 and obtains 
their attributes. 
Request 
 
POST URL: https://10.193.33.221/xmlIM/resource-mgr 
XML API payload: 
<configResolveClass 
cookie="<real_cookie>" 
classId="fwInstance" 
inHierarchical="false"> 
<inFilter> 
<eq class="fwInstance" 
property="mgmtIp" 
value="10.193.33.221" /> 
</inFilter> 
</configResolveClass> 
 
Response 
 
configResolveClass