Cisco Cisco Security Manager 4.0 仕様ガイド

ページ / 217
 
 
 
  
 
Cisco Security Manager 4.4 API Specification (Version 1.1) 
 
OL- 29074-01 
Page  36
 
2.2.4.1 Request 
An example of the ping request is shown in the figure below.  The fields in these messages are described in the table 
below. 
 
Figure 19: ping Request Example  
Table 17: ping Request Elements and Attributes Descriptions 
HTTP/XML Argument 
Definition 
pingRequest 
XML argument that pings the CSM server 
HTTP Method 
PUT 
HTTP Header: asCookie 
The cookie returned by the login method that identifies the authentication 
session 
Returns 
200 OK + XML 
 
401 Unauthorized 
 
 
Figure 20: PingRequest XML Schema   
 
2.2.4.2 Response 
An example of the ping response is shown in the figure below.  The fields in these messages are described in the 
table below. 
<xs:element
 name
="
pingRequest
"
 type
="
PingRequest
"/>
 
<xs:complexType
 name
="
PingRequest
">
 
 
<xs:complexContent>
 
 
 
<xs:extension
 base
="
BaseReqResp
"/>
 
 
</xs:complexContent>
 
</xs:complexType>
 
 
 
URL: 
 
https://hostname/nbi/ping 
  
HTTP Header: 
 
Set-Cookie: asCookie=732423sdfs73242; expires=Fri, 31-Dec-2010 23:59:59 GMT; path=/; 
domain=.hostdomain.com  
 
XML Argument: 
 
<?xml version=”1.0” encoding=”UTF-8”?> 
 
<pingRequest> 
 
  <protVersion>1.0</protVersion> 
 
  <reqId>123</reqId> 
 
</pingRequest>