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  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>   
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. 
 
 
Figure 147: CreateSharedPolicy Request Example 
 
Table 95: CreateSharedPolicy 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. 
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/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>