List audit log actions Run in API Explorer

GET /v2/auditlogs/{account}/actions

List audit log actions for a namespace to be used as a filter for querying audit log events.

Path parameters

  • account string Required

    Namespace to query audit log actions for.

Responses

  • 200 application/json

    A successful response.

    Hide response attribute Show response attribute object
    • actions object

      Map of audit log actions.

      Hide actions attribute Show actions attribute object
      • * object Additional properties
        Hide * attributes Show * attributes object
        • actions array[object]

          List of audit log actions.

          Audit Log action

          Hide actions attributes Show actions attributes object
          • name string

            Name of audit log action.

          • description string

            Description of audit log action.

          • label string

            Label for audit log action.

        • label string

          Grouping label for a particular set of audit log actions.

  • 429 application/json
  • 500 application/json
  • default application/json

    An unexpected error response.

    Hide response attributes Show response attributes object
    • code integer(int32)
    • message string
    • details array[object]
      Hide details attributes Show details attributes object
      • type_url string
      • value string(byte)
GET /v2/auditlogs/{account}/actions
curl \
 --request GET 'https://hub.docker.com/v2/auditlogs/{account}/actions' \
 --header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "actions": {
    "org": {
      "label": "Organization",
      "actions": [
        {
          "name": "team.create",
          "label": "Team Created",
          "description": "contains team create events"
        },
        {
          "name": "team.delete",
          "label": "Team Deleted",
          "description": "contains team delete events"
        },
        {
          "name": "team.member.add",
          "label": "Team Member Added",
          "description": "contains team member add events"
        },
        {
          "name": "team.member.remove",
          "label": "Team Member Removed",
          "description": "contains team member remove events"
        },
        {
          "name": "team.member.invite",
          "label": "Team Member Invited",
          "description": "contains team member invite events"
        },
        {
          "name": "member.removed",
          "label": "Organization Member Removed",
          "description": "contains org member remove events"
        },
        {
          "name": "create",
          "label": "Organization Created",
          "description": "contains organization create events"
        }
      ]
    },
    "repo": {
      "label": "Repository",
      "actions": [
        {
          "name": "create",
          "label": "Repository Created",
          "description": "contains repository create events"
        },
        {
          "name": "delete",
          "label": "Repository Deleted",
          "description": "contains repository delete events"
        },
        {
          "name": "change_privacy",
          "label": "Privacy Changed",
          "description": "contains repository privacy change events"
        },
        {
          "name": "tag.push",
          "label": "Tag Pushed",
          "description": "contains image tag push events"
        },
        {
          "name": "tag.delete",
          "label": "Tag Deleted",
          "description": "contains image tag delete events"
        }
      ]
    }
  }
}
Response examples (429)
{
  "error": false,
  "detail": "Rate limit exceeded"
}
Response examples (default)
{
  "code": 42,
  "message": "string",
  "details": [
    {
      "type_url": "string",
      "value": "string"
    }
  ]
}