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  149
 
Figure 104: CloseCSMSession request XML example. 
3.2.17.2 
Response 
The response of this method is same as that of 
. 
3.2.18 
Method AddPolicyObject 
This method can be used to add a new policy object. The supported list of policy objects are mentioned in section 
.  Modify  priviledge  is  needed  on  the  particular  object  to  add  the  object.  It  also  supports  addition  of 
heterogeneous bulk objects in a single call. A single call of the API happens within a single transaction and hence if 
addition of one of policy objects fails all previous successful insertions would be reverted back. This will behave in 
fail-fast mode. To understand the individual element details please go through section 
This method should be used in the following use-cases: 
1.  Create a new building block :- 
The data part of the supported building block is passed in the addPolicyObject request. 
2.  Create a overridden building block: 
In  CSM  the  overridden  building  block  is  stored  as  a  separate  building  block  with  separate  id. 
When creating a overridden building block for a device, then addPolicyObject should be used with 
node id as the device ID and parent ID  as the id of building block for which overridden value is 
created.  Also  all  the  data  part  should  be  sent  with  the  request,  where  some  values  would  differ 
from the parent building block. The parent building block’s  “isProperty” should be set to true to 
allow overrides. 
3.2.18.1 
Request 
The request takes in the policy objects and the CSMSession used to make this change. The following gives an 
example and the XSD of the request.