Cisco Cisco Security Manager 4.11 Guía Del Usuario

Descargar
Página de 301
 
 
 
  
 
Cisco Security Manager 4.11 API Specification (Version 2.3) 
 
Page  154
 
 
Figure 112: ModifyPolicyObject Response XSD. 
3.2.20 
Method DeletePolicyObject 
This method is used to delete the policyobject given it’s unique GID. This supports bulk delete and happens in a 
single transaction, and works in fail fast mode. The method can be used in the following scenarios: 
1.  Delete a Building Block: 
The gid of the policy object along with the type of the object needs to be passed. 
2.  Delete a override: 
If for a particular device the overridden value is to be removed and the global value needs to be 
retained the gid of the overridden building block needs to be passed on to this defect. 
 
3.2.20.1 
Request 
The request of deletePolicyObject is also of type “
ManagePolicyObjectRequest”.
 But it is sufficient to mention the 
type and id of the policy object. The following gives an example request and the xsd. 
 
 
Figure 113: DeletePolicyObject Request XML Example 
 
 
Figure 114: DeletePolicyObject Request XSD 
<xs:element name="modifyPolicyObjectResponse" type="ManagePolicyObjectResponse" /> 
URL: 
 
 
HTTP Header: 
 
Set-Cookie: asCookie=732423sdfs73242; expires=Fri, 3-Sep-2013 23:59:59 GMT; path=/; 
domain=.hostdomain.com  
 
XML Argument: 
 
 
<csm:deletePolicyObjectRequest  xmlns:csm="csm"> 
        <csmSessionGID>00000000-0000-0000-0000-231928234184</csmSessionGID> 
 
        <servicePolicyObject> 
          <gid>193273528324</gid> 
        </servicePolicyObject>  
        <timeRangePolicyObject> 
          <gid>231928234007</gid> 
        </timeRangePolicyObject>  
        <timeRangePolicyObject> 
          <gid>231928234091</gid> 
        </timeRangePolicyObject> 
 
</csm:deletePolicyObjectRequest>
 
<xs:element name="deletePolicyObjectRequest" type="ManagePolicyObjectRequest" />