Audit operations - Gets Audit Records
Gets the audit records between a given date range If the number of records is more than a page full, a continuation token will be returned and the continuation token can be used to get the next set of audit records. This service only supports AuditRecord retrieval for the last 90 days and a maximum window of 30 days.
GET https://api.partnercenter.microsoft.com/auditactivity/v{version}/auditrecords?auditRequest.startDate={auditRequest.startDate}
GET https://api.partnercenter.microsoft.com/auditactivity/v{version}/auditrecords?auditRequest.filter.field={auditRequest.filter.field}&auditRequest.filter.value={auditRequest.filter.value}&auditRequest.filter.operator={auditRequest.filter.operator}&auditRequest.startDate={auditRequest.startDate}&auditRequest.endDate={auditRequest.endDate}&auditRequest.size={auditRequest.size}
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
version
|
path | True |
string |
|
audit
|
query | True |
string date-time |
|
audit
|
query |
string date-time |
||
audit
|
query |
string |
||
audit
|
query |
integer int32 |
||
audit
|
query |
string |
||
audit
|
query |
integer int32 |
Request Header
Name | Required | Type | Description |
---|---|---|---|
Authorization | True |
string |
Bearer authentication token |
ms-correlationid |
string |
Correlation Id |
|
ms-requestid |
string |
Request Id |
Responses
Name | Type | Description |
---|---|---|
200 OK |
The request was successful. The response body contains a list of the audit records that match the filter. A continuation token is included if the response is paged by the page size. This token can be passed to /auditRecords?seek= to seek audit results. Media Types: "application/json", "text/json" |
|
400 Bad Request |
There was a missing or an invalid input. The response body will provide the error details. Media Types: "application/json", "text/json" |
|
401 Unauthorized |
The request was not authenticated. The client needs to authenticate with the partner API service first. Media Types: "application/json", "text/json" |
|
403 Forbidden |
The request was authenticated but was refused since the caller does not have the rights to invoke it. Media Types: "application/json", "text/json" |
|
404 Not Found |
The resource is not found or not available with the given input parameters. Media Types: "application/json", "text/json" |
|
500 Internal Server Error |
The partner API service or one of its dependencies failed to fulfill the request. Callers may retry this. Media Types: "application/json", "text/json" |
Security
Authorization
Bearer authentication token
Type:
apiKey
In:
header
Definitions
Name | Description |
---|---|
Audit |
|
Key |
|
Link | |
Paged |
|
Resource |
|
Resource |
AuditRecord
Name | Type | Description |
---|---|---|
applicationId |
string |
|
attributes | ||
customerId |
string |
|
customerName |
string |
|
customizedData | ||
id |
string |
|
operationDate |
string |
|
operationStatus |
enum:
|
|
operationType |
enum:
|
|
originalCorrelationId |
string |
|
partnerId |
string |
|
resourceNewValue |
string |
|
resourceOldValue |
string |
|
resourceType |
enum:
|
|
sessionId |
string |
|
userPrincipalName |
string |
KeyValuePair[String,String]
Name | Type | Description |
---|---|---|
key |
string |
|
value |
string |
Link
Name | Type | Description |
---|---|---|
body |
string |
|
headers | ||
method |
string |
|
uri |
string |
PagedResourceCollection[AuditRecord]
Name | Type | Description |
---|---|---|
attributes | ||
continuationToken |
string |
|
items | ||
links | ||
totalCount |
integer |
ResourceAttributes
Name | Type | Description |
---|---|---|
etag |
string |
|
objectType |
string |
ResourceLinks
Name | Type | Description |
---|---|---|
next | ||
previous | ||
self |