Skip to main content

List Audits

Retrieves the audits records for the specified customer.

Request

Request-Line

GET /sfd/v2.0/customers/{customerId}/audits HTTP/1.1

Request Parameters

Path Parameters

ParameterTypeRequiredDescription
customerIdIntegerMandatoryCustomer ID.

Query Parameters

ParameterTypeRequiredDescription
startTimeStringMandatoryStart time in UTC, ISO-8601 format yyyy-MM-dd'T'HH:mm:ss'Z' (no milliseconds). Example: 2025-03-01T18:00:00Z.
endTimeStringMandatoryEnd time in UTC, ISO-8601 format yyyy-MM-dd'T'HH:mm:ss'Z' (no milliseconds). Example: 2025-03-05T09:00:00Z.
accountStringOptionalAccount.
clientIpStringOptionalClient IP address.

Response

Response Body

ParameterTypeRequiredDescription
ArrayMandatoryArray of Audit.

Object: Audit

Property nameTypeRequiredDescription
accountStringMandatoryAccount.
clientIpStringMandatoryClient IP address.
customerIdIntegerMandatoryCustomer ID.
operationTypeStringMandatoryOperation type. Examples: Login, Edit Customer.
detailStringOptionalDetailed description of the operation. Note: The content may contain HTML tags.
operationTimeStringMandatoryOperation timestamp in UTC, ISO-8601 format yyyy-MM-dd'T'HH:mm:ss'Z' (no milliseconds). Example: 2025-03-01T18:02:11Z.

Status Codes, Error Codes and Error Messages

Status CodeError CodeError Message
400Request.BadRequestBad request.
400Audit.InvalidThe Audit query parameters are incorrect.
400Time.InvalidThe time format is incorrect.
400Time.InvalidThe start time cannot be later than the end time.
400Time.ValueNotSupportedThe difference between EndTime and StartTime cannot exceed 30 days.

Examples

List Audits

Request

GET /sfd/v2.0/customers/10025/audits?startTime=2025-03-01T18%3A00%3A00Z&endTime=2025-04-01T00%3A00%3A00Z&account=foo%40example.com&clientIp=192.168.1.24 HTTP/1.1

Successful Response Body

[
{
"account": "foo@example.com",
"clientIp": "192.168.1.24",
"customerId": 10025,
"operationType": "Add Account",
"detail": "account=admin@example.com, name=Example Admin, roles=[Solution Consultant:admin, Finance:view, Biz Ops:view], id=5621",
"operationTime": "2025-03-01T18:02:11Z"
},
{
"account": "foo@example.com",
"clientIp": "192.168.1.24",
"customerId": 10025,
"operationType": "Add Customer",
"detail": "name=Example Corp, products=[Content Delivery Network (CDN), Live Media Service (LMS)], id=34356, region=VN, industry=Live & On Demand Video",
"operationTime": "2025-03-05T08:02:11Z"
}
]