| GET,OPTIONS | /v1/audit/myfiles |
|---|
Imports System
Imports System.IO
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports CRM.AgencyPlatform.API.Internal
Namespace Global
Namespace CRM.AgencyPlatform.API.Internal
Public Partial Class DocumentAccessAuditResponse
Public Overridable Property ResponseStatus As ResponseStatus
Public Overridable Property AuditLog As List(Of DocumentAccessAuditRow) = New List(Of DocumentAccessAuditRow)
Public Overridable Property Total As Long
Public Overridable Property PageTotal As Long
Public Overridable Property Page As Integer
Public Overridable Property PageSize As Integer
Public Overridable Property Downloads As Long
Public Overridable Property Views As Long
Public Overridable Property Blocked As Long
Public Overridable Property Documents As Long
Public Overridable Property Actors As Long
End Class
Public Partial Class DocumentAccessAuditRow
Inherits DocumentShareAccessLog
Public Overridable Property AccessChannel As String
Public Overridable Property AttachmentName As String
Public Overridable Property ActorName As String
Public Overridable Property RecipientDisplayName As String
Public Overridable Property RecipientEmail As String
Public Overridable Property SensitivityTier As String
Public Overridable Property IsSensitive As Boolean
End Class
Public Partial Class DocumentShareAccessLog
Public Overridable Property DocumentShareAccessLogId As Long
Public Overridable Property DocumentShareId As Integer?
Public Overridable Property AttachmentId As Guid?
Public Overridable Property EventType As String
Public Overridable Property Outcome As String
Public Overridable Property DetailMessage As String
Public Overridable Property IpAddress As String
Public Overridable Property UserAgent As String
Public Overridable Property ActorUserId As Guid?
Public Overridable Property ActorRole As String
Public Overridable Property CreatedAtUtc As Date
End Class
Public Partial Class MyFilesAccessAuditRequest
Public Overridable Property FromUtc As Date?
Public Overridable Property ToUtc As Date?
Public Overridable Property EventType As String
Public Overridable Property Category As String
Public Overridable Property AttachmentId As Guid?
Public Overridable Property Search As String
Public Overridable Property ContentQuery As String
Public Overridable Property Page As Integer
Public Overridable Property PageSize As Integer
End Class
End Namespace
End Namespace
VB.NET MyFilesAccessAuditRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
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/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
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-01T00:00:00.0000000"}],"Total":0,"PageTotal":0,"Page":0,"PageSize":0,"Downloads":0,"Views":0,"Blocked":0,"Documents":0,"Actors":0}