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  228
 
 
Following is a typical flow to process policy data in a policy object model structured format
 
a.  Login (and setup a background thread or process to keep the session alive via a ping or heartbeat) 
b.  Use one of  GetGroupList (or) GetDeviceListBy Capability (or) GetDeviceListByGroup to get the list of 
devices in the system 
c.  For each of the devices in the list: 
i. 
Call GetPolicyListByDeviceGID to find out what “policy types” are configured/supported on a 
device 
ii. 
For each of these “Policy Types” call the GetPolicyConfigByDeviceGID or 
GetPolicyConfigByName (for named/shared policies)  
d.  Logout 
 
Client would additionally need to subscribe to events (see Event Service API in this document), to make the client 
refresh the configuration if the configuration gets updated. The GetDeviceConfigByGID and 
GetDeviceConfigByName  only return data that is archived inside CSM database. Any updates to the device outside 
of CSM (out of band) is not available and can only be fetched using the Utility Service API. 
 
8.1.3 Using CSMSession and Write APIs 
For all write APIs, it is mandatory to have a CSMSession in all CSM server modes. The following flowchart 
describes the flow that needs to be followed: