List Audits
This API is used to list all audits from customer.
1. Request Definition
- API URL
https://base-api.swiftfederation.com/sfd/v1.1/audits/{customerId} https://base-api.swiftfederation.com/cdn/v1.1/audits/{customerId}
- Request Protocol
POST
- Request Header
- Request Body
Field Data Type Required Description startTime string M Start time. Format yyyy-MM-dd'T'HH:mm:ss'Z' UTC time. E.g. 2021-01-02T12:03:03Z endTime string M End time. Format yyyy-MM-dd'T'HH:mm:ss'Z' UTC time. E.g. 2021-02-01T12:03:03Z.Interval between start time and end time cannot be longer than 30 days. account string O Account clientIp string O Client IP
- Request Example
POST /sfd/v1.1/audits/3112 HTTP/1.1 Host: base-api.swiftfederation.com Authorization:HMAC-SHA256 V265i4K31j991E19:bc051d2e520a462e36455dc75b2bc68e9a135bbf4d2fefbf6d2fc1f28c5aa5dc Content-Type:application/json; charset=utf-8 X-SFD-Date:20220920T011000Z X-SFD-Nonce:69527
2. Response Definition
This section is intended to describe response header and body data definition.
2.1. Success Response
- Success Response Body
Field Data Type Description account string account clientIp string clientIp customerId Integer customer id operationType string eg: Login,Edit Customer detail string Modified content operationTime string Format yyyy-MM-dd'T'HH:mm:ss'Z' UTC time. E.g. 2021-01-02T12:03:03Z
- Success Response Body Example
[ { "account": "example@com.cn", "clientIp": "192.168.1.24", "customerId": 10025, "operationType":"Add Account" "detail": "account=irpan.pebriana@dens.tv, name=Irpan Pebriana, roles=[Solution Consultant:admin, Finance:view, Biz Ops:view], id=5621", "operationTime": "2025-03-01T18:02:11Z" }, { "account": "example@com.cn", "clientIp": "192.168.1.24", "customerId": 10025, "operationType":"Add Customer" "detail": "name=a1, products=[Content Delivery Network (CDN), Live Media Service (LMS)], id=34356, region=VN, industry=Live & On Demand Video", "operationTime": "2025-03-05T08:02:11Z" } ]
2.2. Error Response
- Error Response Code
- Error Response Example
HTTP/1.1 401 { "code":"AccessCredential.Invalid", "message":"Access key id is not correct.", "requestId":"aaaad71588f4ccea" }