Cisco Cisco Security Manager 4.7 Guia De Especificaciones

Descargar
Página de 217
 
 
 
  
 
Cisco Security Manager 4.4 API Specification (Version 1.1) 
 
OL- 29074-01 
Page  31
 
 
Figure 11: LoginRequest XML Schema   
 
2.2.2.2 Response 
The Login API validates the user credentials and returns a session token as a secure cookie. The session value is 
stored under the “asCookie” key. This session has a default session inactivity timeout of 15 minutes. An example of 
the HTTP Header and XML content response is shown in figure below.  The fields in these messages are described 
in table below.  
 
serviceVersion will be 1.1 for the following Services for:  
- Config Service 
- Events Service 
- Utility Service 
Figure 12: login Response Example 
<xs:element
 name
="
loginRequest
"
 type
="
LoginRequest
"/>
 
<xs:complexType
 name
="
LoginRequest
">
 
 
<xs:complexContent>
 
 
 
<xs:extension
 base
="
BaseReqResp
">
 
 
 
 
<xs:sequence>
 
 
 
 
 
<xs:element
 name
="
username
"
 type
="
xs:string
"
 minOccurs
="
1
"
 maxOccurs
="
1
"/>
 
 
 
 
 
<xs:element
 name
="
password
"
 type
="
xs:string
"
 minOccurs
="
1
"
 maxOccurs
="
1
"/>
 
 
 
 
 
<xs:element
 name
="
heartbeatRequested
"
 type
="
xs:boolean
"
 minOccurs
="
0
"
 
maxOccurs
="
1
"/> 
 
 
 
 
<
xs:element
 
name
="callbackUrl" 
type
="xs:string" 
minOccurs
="0" 
maxOccurs
="1"/> 
 
 
 
</xs:sequence>
 
 
 
</xs:extension>
 
 
</xs:complexContent>
 
</xs:complexType>
 
 
HTTP Header: 
 
Set-Cookie: asCookie=732423sdfs73242; expires=Fri, 31-Dec-2010 23:59:59 GMT; path=/; 
domain=.hostdomain.com  
 
XML Content: 
 
<?xml version=”1.0” encoding=”UTF-8”?> 
<loginResponse> 
<protVersion>1.0</protVersion> 
<serviceVersion>1.0.1</serviceVersion> 
<sessionTimeoutInMins>15<sessionTimeoutInMins> 
</loginResponse>