Skip to content

ListAuditEntries

POST
/hopbox.v1.AuditService/ListAuditEntries
curl --request POST \
--url https://example.com/hopbox.v1.AuditService/ListAuditEntries \
--header 'Connect-Protocol-Version: 1' \
--header 'Connect-Timeout-Ms: 1000' \
--header 'Content-Type: application/json' \
--data '{ "orgId": "example", "wholeInstall": true, "pageSize": 1, "pageToken": "example" }'

ListAuditEntries returns audit entries, newest first. Org owners and org admins read the entries of their org. Instance admins read the entries of every org and of the whole install.

Connect-Protocol-Version
Connect-Protocol-Version

Define the version of the Connect protocol

number
Allowed value: 1

Define the version of the Connect protocol

Example

1
Connect-Timeout-Ms
Connect-Timeout-Ms

Define the timeout, in ms

number

Define the timeout, in ms

Example

1000
Media typeapplication/json
ListAuditEntriesRequest

ListAuditEntriesRequest selects the entries.

object
orgId
org_id

Org_id is the UUID of the org whose entries to read. Leave it out to read the personal org of the caller.

string | null
wholeInstall
whole_install

Whole_install reads the entries of every org and of the install. Only an instance admin may set it, and org_id must then be left out.

boolean
pageSize
page_size

Page_size is the most entries in one response, 1 to 500. 0 means 50.

integer format: int32
pageToken
page_token

Page_token is the next_page_token of the response before. Leave it empty for the newest entries.

string

Example generated

{
"orgId": "example",
"wholeInstall": true,
"pageSize": 1,
"pageToken": "example"
}

Success

Media typeapplication/json
ListAuditEntriesResponse

ListAuditEntriesResponse holds one page of entries.

object
entries
entries
Array<object>
AuditEntry

AuditEntry records one action.

object
id
id

Id is the UUID of the entry.

string
orgId
org_id

Org_id is the UUID of the org of the action. It is unset for an action on the whole install.

string | null
actor
actor

Actor is the caller that did the action.

object
kind
kind

Kind is the kind of caller, such as session, local_root, or system.

string
accountId
account_id

Account_id is the UUID of the account behind the call, or empty.

string
credentialId
credential_id

Credential_id is the UUID of the session, key, token, or server that made the call, or empty.

string
action
action

Action names the action, such as auth.sign_in.

string
targetKind
target_kind

Target_kind is the kind of object of the action, such as account. It is empty for an action without an object.

string
targetId
target_id

Target_id is the ID or the name of the object.

string
details
details

Details holds more facts about the action. It never holds a secret value.

object
key
additional properties
value
string
requestId
request_id

Request_id is the ID of the API request, or empty.

string
createTime
create_time

Create_time is the time of the action.

string format: date-time
nextPageToken
next_page_token

Next_page_token reads the next, older page. It is empty on the last page.

string

Example

{
"entries": [
{
"createTime": "2023-01-15T01:30:15.01Z"
}
]
}

Error

Media typeapplication/json
Connect Error
object
code

The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].

string
Allowed values: canceled unknown invalid_argument deadline_exceeded not_found already_exists permission_denied resource_exhausted failed_precondition aborted out_of_range unimplemented internal unavailable data_loss unauthenticated
message

A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the [google.rpc.Status.details][google.rpc.Status.details] field, or localized by the client.

string
details

A list of messages that carry the error details. There is no limit on the number of messages.

Array<object>

Contains an arbitrary serialized message along with a @type that describes the type of the serialized message, with an additional debug field for ConnectRPC error details.

object
type

A URL that acts as a globally unique identifier for the type of the serialized message. For example: type.googleapis.com/google.rpc.ErrorInfo.

string
value

The Protobuf message, serialized as bytes and base64-encoded. The specific message type is identified by the type field.

string format: byte
debug
Debug

Deserialized error detail payload. The ‘type’ field indicates the schema. This field is for easier debugging and should not be relied upon for application logic.

object
key
additional properties
any
key
additional properties
any
key
additional properties
any

Example

{
"code": "canceled"
}