List audit log events Run in API Explorer
List audit log events for a given namespace.
Query parameters
-
action name one of ["repo.tag.push", ...]. Optional parameter to filter specific audit log actions.
-
name. Optional parameter to filter audit log events to a specific name. For repository events, this is the name of the repository. For organization events, this is the name of the organization. For team member events, this is the username of the team member.
-
actor name. Optional parameter to filter audit log events to the specific user who triggered the event.
-
Start of the time window you wish to query audit events for.
-
End of the time window you wish to query audit events for.
-
page - specify page number. Page number to get.
Default value is
1
. -
page_size - specify page size. Number of events to return per page.
Default value is
25
.
curl \
--request GET 'https://hub.docker.com/v2/auditlogs/{account}' \
--header "Authorization: Bearer $ACCESS_TOKEN"
{
"logs": [
{
"data": {
"tag": "latest",
"digest": "sha256:c1ae9c435032a276f80220c7d9b40f76266bbe79243d34f9cda30b76fe114dfa"
},
"name": "docker/example",
"actor": "docker",
"action": "repo.tag.push",
"account": "docker",
"timestamp": "2021-02-19T01:34:35Z",
"action_description": "pushed the tag latest with the digest sha256:c1ae9c435032a to the repository docker/example\n"
}
]
}
{
"error": false,
"detail": "Rate limit exceeded"
}
{
"code": 42,
"message": "string",
"details": [
{
"type_url": "string",
"value": "string"
}
]
}