Cisco Cisco Security Manager 4.11 Guía Del Usuario
![Cisco](https://files.manualsbrain.com/attachments/7380d0050044647c30f5c24bbbf5d0c0b6d9bb84/common/fit/150/50/faa183d287233c52228cfea3dbc2a127fe780f60564fcb0955d9c3d1cd23/brand_logo.png)
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
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
Element: csmSessionGID
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
overwritten
HTTP Method
POST
HTTP Header: asCookie
The cookie returned by the login method that identifies the authentication
session
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>
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>