Cisco Cisco ASA 5580 Adaptive Security Appliance

Page of 28
 
About the ASA REST API v1.2.2 
REST API Agent in ASA 
 
In addition to the error code, the returned response may contain a body, which includes an error object providing more 
details about the error. 
HTTP success codes will be reported based on these standards: 
 
 
JSON Error/Warning Response Schema 

  "level"  : "string", 
  "code"   : "string", 
  "context": "string", 
  "details": "string" 
}  
 
 
 
REST API Agent in ASA 
Installing and Enabling the ASA REST API Agent 
For physical ASAs, the REST API Agent is published separately from other ASA images on cisco.com. That is, shipped 
physical ASA images do not include the REST API plug-in package. The REST API package must be downloaded to the 
HTTP Success Code in HTTP header  Description 
200 Success OK 
The resource was retrieved successfully using GET method. 
201 Created 
The resource was created successfully using POST method. 
204 No Content 
The resource was updated successfully using PUT or PATCH method, or deleted 
successfully (DELETE). 
Property 
Type 
Description 
level 
String  "Error," "Warning" or "Info." 
code 
String  Response code, such as "READ-ONLY-FIELD", or a code specific to a particular feature.  
context 
String  The name of the attribute to which this Error/Warning/Info response applies. 
details 
String  Detailed message for this Error/Warning/Info response.