ApiManagementV1WorkspacesWorkspaceidAudit logs

List audit logs for this workspace

GET
/management/v1/workspaces/{workspaceId}/audit-logs
AuthorizationBearer <token>

Management token (nhm_...)

In: header

Path Parameters

workspaceIdstring

Query Parameters

page?integer
Default1
Range1 <= value
from?string

Start of date range (ISO 8601 with timezone offset)

Formatdate-time
to?string

End of date range (ISO 8601 with timezone offset)

Formatdate-time
action?string

Filter by action (e.g. endpoint.created)

resource_type?string

Filter by resource type (e.g. endpoint)

actor_type?string

Filter by actor type (e.g. user)

Response Body

curl -X GET "https://loading/management/v1/workspaces/string/audit-logs?page=1&from=2019-08-24T14%3A15%3A22Z&to=2019-08-24T14%3A15%3A22Z&action=string&resource_type=string&actor_type=string"
{
  "data": [
    {
      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
      "actorType": "string",
      "actorId": "string",
      "actorLabel": "string",
      "visibility": "string",
      "action": "string",
      "resourceType": "string",
      "resourceId": "string",
      "metadata": {},
      "createdAt": "2019-08-24T14:15:22Z"
    }
  ],
  "total": 0,
  "page": 0,
  "pageSize": 0
}

{
  "error": {
    "code": "unauthorized",
    "message": "Missing or invalid authorization header"
  }
}

{
  "error": {
    "code": "token_disabled",
    "message": "Management token is disabled"
  }
}