Cisco Cisco ASA 5555-X Adaptive Security Appliance

下载
页码 37
 
About the ASA REST API v1.1.1 
Monitoring 
 
26 
MGMT-ACCESS-SSH-TIMEOUT - Invalid SSH timeout 
MGMT-ACCESS-HTTP-SESSION-TIMEOUT - Invalid HTTP session timeout 
MGMT-ACCESS-SSH-VERSION - Invalid SSH version 
Hosts 
/api/mgmtaccess/hosts 
Allows CRUD operations on mgmt access hosts for telnet, SSH, and HTTPS (ASDM) connections. 
Limitations: 
N/A 
Error Codes: 
MGMT-ACCESS-INVALID-TYPE - Invalid host type specified (must be telnet, ssh, or http) 
MGMT-ACCESS-DUPLICATE-HOST - Duplicate host exists 
Monitoring 
For health, performance and REST agent monitoring statistics these REST APIs can be used. 
Limitations: 
For cluster member and resource usage info, queries should be made to the cluster master only. 
Error Codes: 
"MONITORING_METRIC_NOT_SUPPORTED" 
"NOT_SUPPORTED_IN_SYSTEM_CONTEXT" 
Multi-context mode 
Only the Generic CLI Command Executer API and Token Authentication API are supported for the ASA in multi context 
mode. 
Notes: 
•  The REST agent can be enabled in multi-context mode. The REST agent CLIs are present only in system 
context. 
•  Generic CLI Command Executer API can be used to configure any context as 
https://<asa_admin_context_ip>/api/cli?context=<context_name> 
•  If token authentication is used, make sure to get the ‘token’ first, via 
https://<asa_admin_context_ip>/api/tokenservices. Note that, the token received for ‘admin’ context, can be 
used to configure any context as per above URL. 
•  If the ‘context’ query parameter is not present then it is assumed that, the request is for ‘admin’ context.