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  172
 
HTTP/XML Content 
Definition 
Element: csmSessionGID 
An element that uniquely defines a CSMSession 
ElementdeviceGID 
The GID of the device on which the policy is to be created. 
Elementname 
The name of the shared policy, if the request is for shared policy instead of 
device. 
HTTP Method 
POST 
HTTP Header: asCookie 
The cookie returned by the login method that identifies the authentication 
session 
Returns 
200 OK + XML 
 
401 Unauthorized 
 
 
 
Figure 135: AddpolicyConfigByGID request XSD. 
 
3.2.26.2 
Response 
The response of the addpolicy contains the gid’s of the policy that got added and also the status code that determines 
the success or failure of the whole operation. If failure the reponse also contains the policy due to which it got failed 
along with the error codes. 
 
<
xs:element
 
name
=
"setPolicyConfigRequest" 
type
=
"SetPolicyConfigRequest" /> 
 
<
xs:complexType
 
name
=
"SetPolicyConfigRequest"> 
 
 
<
xs:complexContent
 
 
 
<
xs:extension
 
base
=
"BaseReqResp"> 
 
 
 
 
<
xs:sequence
 
minOccurs
=
"1" 
maxOccurs
=
"1"> 
 
 
 
 
 
<
xs:element
 
name
=
"csmSessionGID" 
type
=
"ObjectIdentifier" 
minOccurs
=
"1" 
maxOccurs
=
"1" /> 
 
 
 
 
 
<
xs:choice
 
minOccurs
=
"1" 
maxOccurs
=
"1"> 
 
 
 
 
 
 
<
xs:element
 
name
=
"deviceGID" 
type
=
"ObjectIdentifier" 
minOccurs
=
"1" 
maxOccurs
=
"1" /> 
 
 
 
 
 
 
<
xs:element
 
name
=
"name" 
type
=
"xs:string" 
minOccurs
=
"1" 
maxOccurs
=
"1" /> 
 
 
 
 
 
</
xs:choice
 
 
 
 
 
<
xs:choice
 
minOccurs
=
"1" 
maxOccurs
=
"1"> 
 
 
 
 
 
 
<
xs:element
 
name
=
"deviceAccessRuleUnifiedFirewallPolicy" 
type
=
"DeviceAccessRuleUnifiedFirewallPolicy" 
minOccurs
=
"0" 
 
 
 
 
 
 
 
maxOccurs
=
"500" /> 
 
 
 
 
 
 
<
xs:element
 
name
=
"deviceAccessRuleFirewallPolicy" 
type
=
"DeviceAccessRuleFirewallPolicy" 
minOccurs
=
"0" 
maxOccurs
=
"500" /> 
 
 
 
 
 
 
<
xs:element
 
name
=
"firewallACLSettingsPolicy" 
type
=
"FirewallACLSettingsPolicy" 
minOccurs
=
"0" 
maxOccurs
=
"500"> 
 
 
 
 
 
 
</
xs:element
 
 
 
 
 
</
xs:choice
 
 
 
 
</
xs:sequence
 
 
 
</
xs:extension
 
 
</
xs:complexContent
 
</
xs:complexType