| GET,OPTIONS | /v1/audit/myfiles |
|---|
"use strict";
export class DocumentShareAccessLog {
/** @param {{DocumentShareAccessLogId?:number,DocumentShareId?:number,AttachmentId?:string,EventType?:string,Outcome?:string,DetailMessage?:string,IpAddress?:string,UserAgent?:string,ActorUserId?:string,ActorRole?:string,CreatedAtUtc?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {number} */
DocumentShareAccessLogId;
/** @type {?number} */
DocumentShareId;
/** @type {?string} */
AttachmentId;
/** @type {string} */
EventType;
/** @type {string} */
Outcome;
/** @type {string} */
DetailMessage;
/** @type {string} */
IpAddress;
/** @type {string} */
UserAgent;
/** @type {?string} */
ActorUserId;
/** @type {string} */
ActorRole;
/** @type {string} */
CreatedAtUtc;
}
export class DocumentAccessAuditRow extends DocumentShareAccessLog {
/** @param {{AccessChannel?:string,AttachmentName?:string,ActorName?:string,RecipientDisplayName?:string,RecipientEmail?:string,SensitivityTier?:string,IsSensitive?:boolean,DocumentShareAccessLogId?:number,DocumentShareId?:number,AttachmentId?:string,EventType?:string,Outcome?:string,DetailMessage?:string,IpAddress?:string,UserAgent?:string,ActorUserId?:string,ActorRole?:string,CreatedAtUtc?:string}} [init] */
constructor(init) { super(init); Object.assign(this, init) }
/** @type {string} */
AccessChannel;
/** @type {string} */
AttachmentName;
/** @type {string} */
ActorName;
/** @type {string} */
RecipientDisplayName;
/** @type {string} */
RecipientEmail;
/** @type {string} */
SensitivityTier;
/** @type {boolean} */
IsSensitive;
}
export class DocumentAccessAuditResponse {
/** @param {{ResponseStatus?:ResponseStatus,AuditLog?:DocumentAccessAuditRow[],Total?:number,PageTotal?:number,Page?:number,PageSize?:number,Downloads?:number,Views?:number,Blocked?:number,Documents?:number,Actors?:number}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {ResponseStatus} */
ResponseStatus;
/** @type {DocumentAccessAuditRow[]} */
AuditLog = [];
/** @type {number} */
Total;
/** @type {number} */
PageTotal;
/** @type {number} */
Page;
/** @type {number} */
PageSize;
/** @type {number} */
Downloads;
/** @type {number} */
Views;
/** @type {number} */
Blocked;
/** @type {number} */
Documents;
/** @type {number} */
Actors;
}
export class MyFilesAccessAuditRequest {
/** @param {{FromUtc?:string,ToUtc?:string,EventType?:string,Category?:string,AttachmentId?:string,Search?:string,ContentQuery?:string,Page?:number,PageSize?:number}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {?string} */
FromUtc;
/** @type {?string} */
ToUtc;
/** @type {string} */
EventType;
/** @type {string} */
Category;
/** @type {?string} */
AttachmentId;
/** @type {string} */
Search;
/** @type {string} */
ContentQuery;
/** @type {number} */
Page;
/** @type {number} */
PageSize;
}
JavaScript MyFilesAccessAuditRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /v1/audit/myfiles HTTP/1.1 Host: api.dev.dynamics.trendsic.com Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
ResponseStatus:
{
ErrorCode: String,
Message: String,
StackTrace: String,
Errors:
[
{
ErrorCode: String,
FieldName: String,
Message: String,
Meta:
{
String: String
}
}
],
Meta:
{
String: String
}
},
AuditLog:
[
{
AccessChannel: String,
AttachmentName: String,
ActorName: String,
RecipientDisplayName: String,
RecipientEmail: String,
SensitivityTier: String,
IsSensitive: False,
DocumentShareAccessLogId: 0,
DocumentShareId: 0,
AttachmentId: 00000000000000000000000000000000,
EventType: String,
Outcome: String,
DetailMessage: String,
IpAddress: String,
UserAgent: String,
ActorUserId: 00000000000000000000000000000000,
ActorRole: String,
CreatedAtUtc: 0001-01-01
}
],
Total: 0,
PageTotal: 0,
Page: 0,
PageSize: 0,
Downloads: 0,
Views: 0,
Blocked: 0,
Documents: 0,
Actors: 0
}