Cisco Cisco Security Manager 4.12 User Guide
Cisco Security Manager 4.12 API Specification (Version 2.4)
Page 191
XML Element & Attributes
Definition
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
Figure 159: InheritSharedPolicy Request XSD
3.2.37.2
Response
The response of the inherit shared policy have description that “ shared policy inherited successfully” for
inheritance and “ shared policy uninherited successfully” for uninheritance.Status code will descripe the overall
status of the operation.
inheritance and “ shared policy uninherited successfully” for uninheritance.Status code will descripe the overall
status of the operation.
Figure 160: InheritSharedPolicy Response Example for Inheritance
<
xs:element
name
=
"inheritSharedPolicyConfigRe quest"
ty pe
=
"InheritSharedPolicyConfigRequest"
/>
<
xs:complexTy pe
name
=
"InheritSharedPolicyConfigRequest"
>
<
xs:complexContent
>
<
xs:extension
base
=
"BaseReqResp"
>
<
xs:sequence
minOccurs
=
"1"
maxOccurs
=
"1"
>
<
xs:element
name
=
"csmSessionGID"
ty pe
=
"ObjectIdentifier"
minOccurs
=
"1"
maxOccurs
=
"1"
/>
<!-- Name of the shared policy with hirarchy -->
<
xs:element
name
=
"policyName"
ty pe
=
"xs:string"
minOccurs
=
"1"
maxOccurs
=
"1"
/>
<!-- Name of the parent shared policy with hirarchy -->
<
xs:element
name
=
"parentPolicyName"
ty pe
=
"xs:string"
minOccurs
=
"0"
maxOccurs
=
"1"
/>
<!-- create Inheritance or remov e Inheritance based on noInheritance
boolean v alue -->
<
xs:element
name
=
"inherit"
ty pe
=
"xs:boolean"
minOccurs
=
"1"
maxOccurs
=
"1"
/>
<!-- Ty pe of shared policy -->
<
xs:element
name
=
"policyType"
ty pe
=
"xs:string"
minOccurs
=
"1"
maxOccurs
=
"1"
/>
</
xs:sequence
>
</
xs:extension
>
</
xs:complexContent
>
</
xs:complexTy pe
>
<?xml version="1.0" encoding="UTF-8"?>
<ns1:sharedPolicyConfigResponse>
<ns1:sharedPolicyConfigResponse>
<protVersion>1.0</protVersion>
<statusCode>SUCCESS</statusCode>
<statusCode>SUCCESS</statusCode>
<description>Shared policy inherited successfully</description>
</ns1:sharedPolicyConfigResponse>
</ns1:sharedPolicyConfigResponse>