Cisco Cisco Security Manager 4.3 Guia De Especificação

Página de 217
 
 
 
  
 
Cisco Security Manager 4.4 API Specification (Version 1.1) 
 
OL- 29074-01 
Page  125
 
 
Figure 77: Method GetPolicyConfigByName Request Example  
Table 67: Method GetPolicyConfigByName Request URL Attribute Descriptions 
Method Details 
Definition 
policyConfigByNameRequest 
A name request and same attributes as previously defined and returned by the 
GetPolicyListByDeviceGID call. 
Element: policyType 
The policy type same as the types returned by the GetPolicyListByDeviceGID 
call. The list of allowable types are documented in the  
GetPolicyListByDeviceGID method section. 
HTTP Method 
POST 
HTTP Header: asCookie 
The cookie returned by the login method that identifies the authentication 
session 
Returns 
200 OK + XML 
 
401 Unauthorized 
 
 
Figure 78: PolicyConfigByName Request XML Schema   
 
 
<
xs:element
 name
="policyConfigByNameRequest"
 type
="PolicyConfigByNameRequest"/> 
 
<
xs:complexType
 name
="PolicyConfigByNameRequest"> 
 
 
<
xs:complexContent
 
 
 
<
xs:extension
 base
="BaseReqResp"> 
 
 
 
 
<
xs:sequence
 
 
 
 
 
<
xs:element
 name
="name"
 type
="xs:string" minOccurs="1" maxOccurs="1"/> 
 
 
 
 
 
<xs:element name="policyType" type="xs:string" minOccurs="1" maxOccurs="1"/> 
 
 
 
 
</
xs:sequence
 
 
 
</
xs:extension
 
 
</
xs:complexContent
 
</
xs:complexType
 
URL: 
 
https://hostname/nbi/configservice/getPolicyConfigByName 
 
HTTP Header: 
 
Set-Cookie: asCookie=732423sdfs73242; expires=Fri, 31-Dec-2010 23:59:59 GMT; path=/; 
domain=.hostdomain.com  
 
XML Argument: 
 
<?xml version=”1.0” encoding=”UTF-8”?> 
<policyConfigByNameRequest> 
 
<protVersion>1.0</protVersion> 
 
<reqId>123</reqId> 
   <name>global FW policy-1</name> 
 
<policyType>DeviceAccessRuleFirewallPolicy</policyType> 
</policyConfigByNameRequest>