| [ Web Proxy ] |
| Viewing: https://developers.cloudflare.com/api/resources/user/subresources/audit_logs/methods/list | [Back] [Original] |
Gets a list of audit logs for a user account. Can be filtered by who made the change, on which zone, and the timeframe of the change.
The preferred authorization scheme for interacting with the Cloudflare API. Create a token.
Authorization: Bearer Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYYThe previous authorization scheme for interacting with the Cloudflare API, used in conjunction with a Global API key.
X-Auth-Email: user@example.comThe previous authorization scheme for interacting with the Cloudflare API. When possible, use API tokens instead of Global API keys.
X-Auth-Key: 144c9defac04969c7bfad8efaa8ea194Account Settings WriteAccount Settings ReadLimits the returned results to logs older than the specified date. A full-date that conforms to RFC3339.
An object which can lend more context to the action being logged. This is a flexible value and varies between different actions.
curl https://api.cloudflare.com/client/v4/user/audit_logs \
-H "Authorization: Bearer $CLOUDFLARE_API_TOKEN"{
"errors": [
{
"code": 1000,
"message": "message",
"documentation_url": "documentation_url",
"source": {
"pointer": "pointer"
}
}
],
"messages": [
{
"code": 1000,
"message": "message",
"documentation_url": "documentation_url",
"source": {
"pointer": "pointer"
}
}
],
"result": [
{
"id": "d5b0f326-1232-4452-8858-1089bd7168ef",
"action": {
"result": true,
"type": "change_setting"
},
"actor": {
"id": "f6b5de0326bb5182b8a4840ee01ec774",
"email": "michelle@example.com",
"ip": "198.41.129.166",
"type": "user"
},
"interface": "API",
"metadata": {
"name": "security_level",
"type": "firewall",
"value": "high",
"zone_name": "example.com"
},
"newValue": "low",
"oldValue": "high",
"owner": {
"id": "023e105f4ecef8ad9ca31a8372d0c353"
},
"resource": {
"id": "023e105f4ecef8ad9ca31a8372d0c353",
"type": "zone"
},
"when": "2017-04-26T17:31:07Z"
}
],
"success": true
}{
"errors": [
{
"code": 1000,
"message": "message",
"documentation_url": "documentation_url",
"source": {
"pointer": "pointer"
}
}
],
"messages": [
{
"code": 1000,
"message": "message",
"documentation_url": "documentation_url",
"source": {
"pointer": "pointer"
}
}
],
"result": [
{
"id": "d5b0f326-1232-4452-8858-1089bd7168ef",
"action": {
"result": true,
"type": "change_setting"
},
"actor": {
"id": "f6b5de0326bb5182b8a4840ee01ec774",
"email": "michelle@example.com",
"ip": "198.41.129.166",
"type": "user"
},
"interface": "API",
"metadata": {
"name": "security_level",
"type": "firewall",
"value": "high",
"zone_name": "example.com"
},
"newValue": "low",
"oldValue": "high",
"owner": {
"id": "023e105f4ecef8ad9ca31a8372d0c353"
},
"resource": {
"id": "023e105f4ecef8ad9ca31a8372d0c353",
"type": "zone"
},
"when": "2017-04-26T17:31:07Z"
}
],
"success": true
}| Web Proxy Viewer | New URL | Original Page |