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  193
 
3.2.38.1 
Request 
 
This request takes name of the shared policy along with hierarchy , policy Type and device GID list. To overwrite 
the local policies in device
 inheritLocalPolicy
 Tag should be configured as false 
 
Figure 162: AssignSharedPolicy Request Example 
Table 104: AssignSharedPolicy Request Elements and Attribute Description 
XML Element & Attributes 
Definition 
ElementcsmSessionGID 
An element that provides the unique GID of the csmSession. 
Element: 
policyName
 
Name of the shared policy with hierarchy. 
Element: policyType 
The type of the policy to be create. 
Element: deviceGIDs 
 List of  devices device GID to be assigned 
Element: inheritLocalPolicy 
 True if local policies needs to be inherited , False if local policies can be 
overwritten 
HTTP Method 
POST 
HTTP Header: asCookie 
The cookie returned by the login method that identifies the authentication 
session 
Returns 
200 OK + XML 
 
401 Unauthorized 
 
 
URL: 
 
https://hostname/nbi/configservice/assignSharedPolicy 
 
<?xml version="1.0" encoding="UTF-8"?> 
<ns1:assignSharedPolicyConfigRequest xmlns:ns1="csm"> 
<csmSessionGID>00000000-0000-0000-0000-042949672963</csmSessionGID> 
<policyName>test-config</policyName> 
<policyType>DeviceAccessRuleUnifiedFirewallPolicy</policyType> 
<deviceGIDs> 
         <gid>00000000-0000-0000-0000-017179869219</gid> 
</deviceGIDs> 
<inheritLocalPolicy>false</inheritLocalPolicy> 
</ns1:assignSharedPolicyConfigRequest>