Details on the various actions that can be performed on the Instance Audit Logs resource, including the expected parameters and the potential responses.
Returns the audit logs for the instance
var params = {
instanceId: myInstanceId
};
// with callbacks
client.instanceAuditLogs.get(params, function (err, result) {
if (err) { return console.error(err); }
console.log(result);
});
// with promises
client.instanceAuditLogs.get(params)
.then(console.log)
.catch(console.error);
The client must be configured with a valid api access token to call this action. The token must include at least one of the following scopes: all.Instance, all.Instance.read, all.User, all.User.read, instanceAuditLogs.*, or instanceAuditLogs.get.
Name | Type | Required | Description | Default | Example |
---|---|---|---|---|---|
instanceId | string | Y | ID associated with the instance | 575ec7417ae143cd83dc4a96 | |
sortField | string | N | Field to sort the results by. Accepted values are: creationDate, responseStatus, actorName | creationDate | creationDate |
sortDirection | string | N | Direction to sort the results by. Accepted values are: asc, desc | desc | asc |
page | string | N | Which page of results to return | 0 | 0 |
perPage | string | N | How many items to return per page | 100 | 10 |
start | string | N | Start of time range for audit log query | 1465790400000 | |
end | string | N | End of time range for audit log query | 1465790400000 | |
auditLogFilter | Instance Audit Log Filter | N | Filters for the audit log query | Instance Audit Log Filter Example | |
losantdomain | string | N | Domain scope of request (rarely needed) | example.com |
Code | Type | Description |
---|---|---|
200 | Instance Audit Logs | Collection of instance audit logs |
Code | Type | Description |
---|---|---|
400 | Error | Error if malformed request |
404 | Error | Error if instance was not found |