Cisco Cisco Email Security Appliance C650 Guía Del Desarrollador
11
AsyncOS API for Cisco Email Security Appliances - Getting Started Guide
AsyncOS API Capabilities
"malicious_url": 0,
"bulk_mail": 0,
"blocked_reputation": 3
},
"uri":"/api/v1.0/stats/mail_incoming_traffic_summary?1d"
}
Top-N Report Type
The following example shows how to retrieve top five subjects of high volume mails for a specified
duration.
duration.
Sample Request
GET
/api/v1.0/stats/mail_subject_stats?duration=2014-04-23T00:00-00:00/2014-10-21T00:00-00:00&
max=5 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: Tue, 15 Jul 2014 08:26:46 GMT
Content-type: application/json
Content-Length: 182
Connection: close
{
"data":{
"num_msgs":{
"Buying judgments":44584,
"Additional Income":39691,
"Why pay more?":46044,
"Message contains":50460,
"Off shore":56954
}
},
"uri":"/api/v1.0/stats/mail_subject_stats?duration=2014-04-23T00:00-00:00/2014-10-21T00:00
-00:00&max=5"
}
Query-based Report Type
The following example shows how to retrieve aggregate Outgoing Sender report for IP addresses starting
with “
with “
2001::6
” for a specified duration.
Sample Request
GET
/api/v1.0/stats/mail_sender_ip_hostname_detail?duration=2014-04-23T00:00-00:00/2014-10-21T
00:00-00:00&entity=2001::63&starts_with=true HTTP/1.0
User-Agent: curl/7.30.0
Host: mail.example.com:8080
Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=
Accept: application/json