Cisco Cisco Email Security Appliance C650 Guide Du Développeur

Page de 15
 
6
AsyncOS API for Cisco Email Security Appliances - Getting Started Guide
 
  AsyncOS API Requests and Responses
HTTP Response Codes
The following is a list of HTTP response codes returned by AsyncOS API:
200
400
401
404
406
413
414
500
Message Body
n/a
The message body is in the format defined by the 
Content-Type header. The following are the 
components of the message body:
1.
URI. The URI you specified in the request to the 
API.
Example
"uri":"/api/v1.0/health/"
2.
Links or Data
Links. The list of next level resources in the 
hierarchy.
Example
"links": 
{"percentage_ram_utilization": 
"Percentage...}
Data. The reporting data provided by the 
API based on the specified URI.
Example
"data": {"percentage_diskio": 10}
3.
(Only for Error Events) Error. This component 
includes three subcomponents—message, code, 
and explanation. 
Example
"error": {"message": "Unexpected 
attribute - starts_with.", "code": "404", 
"explanation": "404 = Nothing matches the 
given URI."}
Note
If the message body contains empty braces 
({}), it means that the API could not find any 
records matching the query. 
Components
Values
Description