| GET,OPTIONS | /v1/audit/documentaccess |
|---|
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 DocumentAccessAuditRequest
Public Overridable Property FromUtc As Date?
Public Overridable Property ToUtc As Date?
Public Overridable Property ActorUserId As Guid?
Public Overridable Property AttachmentId As Guid?
Public Overridable Property EventType As String
Public Overridable Property MaxRows As Integer
End Class
Public Partial Class DocumentAccessAuditResponse
Public Overridable Property ResponseStatus As ResponseStatus
Public Overridable Property AuditLog As List(Of DocumentAccessAuditRow) = New List(Of DocumentAccessAuditRow)
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
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
End Namespace
End Namespace
VB.NET DocumentAccessAuditRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /v1/audit/documentaccess HTTP/1.1 Host: api.dev.dynamics.trendsic.com Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
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","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"}]}