ListAuditEntries
const url = 'https://example.com/hopbox.v1.AuditService/ListAuditEntries';const options = { method: 'POST', headers: { 'Connect-Protocol-Version': '1', 'Connect-Timeout-Ms': '1000', 'Content-Type': 'application/json' }, body: '{"orgId":"example","wholeInstall":true,"pageSize":1,"pageToken":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”Define the version of the Connect protocol
Define the version of the Connect protocol
Example
1Define the timeout, in ms
Define the timeout, in ms
Example
1000Request Bodyrequired
Section titled “Request Bodyrequired”ListAuditEntriesRequest selects the entries.
object
Org_id is the UUID of the org whose entries to read. Leave it out to read the personal org of the caller.
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.
Page_size is the most entries in one response, 1 to 500. 0 means 50.
Page_token is the next_page_token of the response before. Leave it empty for the newest entries.
Example generated
{ "orgId": "example", "wholeInstall": true, "pageSize": 1, "pageToken": "example"}Responses
Section titled “Responses”Success
ListAuditEntriesResponse holds one page of entries.
object
AuditEntry records one action.
object
Id is the UUID of the entry.
Org_id is the UUID of the org of the action. It is unset for an action on the whole install.
Actor is the caller that did the action.
object
Kind is the kind of caller, such as session, local_root, or system.
Account_id is the UUID of the account behind the call, or empty.
Credential_id is the UUID of the session, key, token, or server that made the call, or empty.
Action names the action, such as auth.sign_in.
Target_kind is the kind of object of the action, such as account. It is empty for an action without an object.
Target_id is the ID or the name of the object.
Details holds more facts about the action. It never holds a secret value.
object
Request_id is the ID of the API request, or empty.
Create_time is the time of the action.
Next_page_token reads the next, older page. It is empty on the last page.
Example
{ "entries": [ { "createTime": "2023-01-15T01:30:15.01Z" } ]}default
Section titled “default”Error
Error type returned by Connect: https://connectrpc.com/docs/go/errors/#http-representation
object
The status code, which should be an enum value of [google.rpc.Code][google.rpc.Code].
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.
A list of messages that carry the error details. There is no limit on the number of messages.
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
A URL that acts as a globally unique identifier for the type of the serialized message. For example: type.googleapis.com/google.rpc.ErrorInfo.
The Protobuf message, serialized as bytes and base64-encoded. The specific message type is identified by the type field.
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
Example
{ "code": "canceled"}