Cisco Cisco Security Manager 4.7 Guía Del Usuario

Descargar
Página de 290
 
 
 
  
 
Cisco Security Manager 4.7 API Specification (Version 2.0) 
 
OL- 32164-01 
Page  178
 
 
3.2.29.2 
Response 
The response is similar to 
. 
3.2.30 
Method DeletePolicyConfigByGID 
This method is used to delete a policy that is assigned to a device. Please see section 
 for the supported list. 
The following gives the example and XSD of the request and the response object. Policy specific details are under 
. 
 
3.2.30.1 
Request 
The request takes in the policy gid and the type of the policy to be deleted. 
 
Figure 141: deletePolicyConfigByGID Request Example 
 
Table 93: DeletePolicyConfigByGID Request XML attribute description 
HTTP/XML Content 
Definition 
deletePolicyConfigRequest 
Delete policy containing request arguments 
Element: csmSessionGID 
An element that uniquely defines a CSMSession 
ElementdeviceGID 
The GID of the device on which the policy is to be deleted. 
Elementname 
The  name  of  the  shared  policy,  if  the  request  is  for  shared  policy  instead  of 
device. 
Element: policyGID 
The GID of the policy to be deleted 
Element: policyType 
The type of the policy to be deleted 
URL: 
 
https://hostname/nbi/configservice/deletePolicyConfigByGID 
 
HTTP Header: 
 
Set-Cookie: asCookie=732423sdfs73242; expires=Fri, 3-Sep-2013 23:59:59 GMT; path=/; 
domain=.hostdomain.com  
 
XML Argument: 
 
<?xml version="1.0" encoding="UTF-8"?> 
<p:deletePolicyConfigRequest xmlns:p="csm"> 
<reqId>1234</reqId> 
<csmSessionGID>00000000-0000-0000-0000-073014444091</csmSessionGID> 
<deviceGID>00000000-0000-0000-0000-021045141429</deviceGID> 
<policyGID>00000000-0000-0000-0000-068719476750</policyGID> 
<policyType>DeviceAccessRuleFirewallPolicy</policyType> 
</p:deletePolicyConfigRequest>