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 183
3.2.34
Method CreateSharedPolicy
This method is used to create a shared policy. Qualified shared policy name should be given in the policyName Tag.
If shared policy name should be created under an existing parent policy, then it has to be given in the following
format <parent-policy-name>//<New-shared-policy-name>
If shared policy name should be created under an existing parent policy, then it has to be given in the following
format <parent-policy-name>//<New-shared-policy-name>
3.2.34.1
Request
The request takes name of the shared policy along with hierarchy. Following gives an example of the request and its
XSD.
XSD.
Figure 147: CreateSharedPolicy Request Example
Table 95: CreateSharedPolicy 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.
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/createSharedPolicy
<?xml version="1.0" encoding="UTF-8"?>
<csm:setSharedPolicyConfigRequest xmlns:csm="csm">
<csmSessionGID>00000000-0000-0000-0000-081604378631</csmSessionGID>
<policyName>Global//India//CTS</policyName>
<policyType>DeviceAccessRuleUnifiedFirewallPolicy</policyType>
</csm:setSharedPolicyConfigRequest>
https://hostname/nbi/configservice/createSharedPolicy
<?xml version="1.0" encoding="UTF-8"?>
<csm:setSharedPolicyConfigRequest xmlns:csm="csm">
<csmSessionGID>00000000-0000-0000-0000-081604378631</csmSessionGID>
<policyName>Global//India//CTS</policyName>
<policyType>DeviceAccessRuleUnifiedFirewallPolicy</policyType>
</csm:setSharedPolicyConfigRequest>