Cisco Cisco Email Security Appliance C650 Guía Del Desarrollador

Descargar
Página de 15
 
7
AsyncOS API for Cisco Email Security Appliances - Getting Started Guide
 
  AsyncOS API Capabilities
501
505 
For descriptions of these HTTP response codes, refer the following RFCs:
RFC1945
RFC7231
AsyncOS API Capabilities
You can use the AsyncOS API to perform the following actions:
Retrieve Current Health Parameters of the Appliance
You can retrieve the current key health parameters of the appliance such as RAM utilization, queue 
utilization, messages in work queue, and so on to assess the health of the appliance.
Example
Sample Request
GET /api/v1.0/health HTTP/1.0
User-Agent: curl/7.30.0
Host: mail.example.com:8080
Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=
Accept: application/json
Sample Response
HTTP/1.0 200 OK
Server: EmailAPI/1.0
Date: Wed, 02 Jul 2014 05:07:50 GMT
Content-type: application/json
Content-Length: 246
Connection: close
{
    "data":{
        "percentage_ram_utilization":10,
        "percentage_diskio":20,
        "resource_conservation":3,
Description
Retrieve the key health parameters of the Email Security 
appliance.
Synopsis
GET /api/v1.0/health
GET /api/v1.0/health/{parameter}
Request Headers
Host, Accept, Authorization
Response Headers
Content-Type, Content-Length, Connection