Cisco Cisco ASA 5555-X Adaptive Security Appliance

下载
页码 28
 
About the ASA REST API v1.2.2 
Special APIs 
 
24 
 
entryMessages is an array of objects, with each object corresponding to a bulk request entry. 
Generic CLI Command Executer API 
This special API can take single- or multi-line CLI commands and present the CLI output as the API response. 
POST URL: /api/cli
 
Request payload format: 
"commands": ["command-1", "command-2",…, "command-n"]  
 
Response format: 
"response": ["command-1 response", "command-2 response",…, "command-n response"]  
Limitations 
The debug commands are not supported in CLI pass-through. All debug commands are per terminal session, and not a 
global configuration. So, if debug commands are sent over CLI pass-through, either they might return an error or 
success response, but they do not have any effect on the device. 
Token Authentication API 
The REST API client needs to send a POST request to '/api/tokenservices' with user information in the basic 
authentication header to get a token for that user. Subsequently, the REST API client can use this token in an 'X-Auth-
Token' request header for any subsequent REST API calls. The 'token' will be valid until either it is explicitly invalidated 
by a 'DELETE /api/tokenservices/<token>' request, using user information in the basic authentication header, or until the 
session times out. 
POST URL: /api/tokenservices 
Request payload is empty. The user information should be in the basic authentication header. 
Response could be: 
Reason 
HTTP Status Code