Getting Audit Items

In this article

    You can get a list of audit items, that is, a list of users and groups for which Veeam Backup for Microsoft Office 365 sends audit notifications.

    Request

    GET https://<hostname>:4443/v5/Organizations/{organizationId}/AuditItems

    Request Headers

    The request header must contain an authorization token of the current session.

    Request Parameters

    The following parameter must be specified in the URL of the request:

    Parameter

    Type

    Description

    organizationId

    string

    Specifies the identification number of the Office 365 organization. For more information on how to get this parameter, see Getting Organizations.

    Request Body

    None.

    Response

    The server returns the following response to the client.

    Response Codes

    A successfully completed operation returns a response code 200 OK.

    Response Headers

    The response to this request contains the following headers. The response may also include additional standard HTTPS headers.

    Header

    Description

    Content-length

    The length of the response body.

    Content-type

    The media type and syntax of the response body message: application/json; charset=utf-8

    Response Body

    In the response body, the server returns a resource representation of the /Organizations/{organizationId}/AuditItems resource. The response body contains the following properties:

    Property

    Type

    Description

    user

    User

    Representation of a user added as an audit item.

    group

    Group

    Representation of a group added as an audit item.

    id

    String

    Identification number of the audit item.

    type

    String

    Type of the audit item. Possible values:

    • User
    • Group

    _links

    Dictionary of string [key] and Object [value]

    Links to related resources (navigation property).

    Examples

    Example 1

    The example returns a resource representation of audit items created in Veeam Backup for Microsoft Office 365.

    Request:

    GET https://abc.tech.local:4443/v5/Organizations/967093a9-cf39-43e5-84cb-646ccd4993df/AuditItems

     

    Request Header:

    Authorization: Bearer <Access-Token>

     

    Response:

    200 OK

     

    Response Body:

    [

     {

       "user": {

         "id": "fac93c3f-9f27-426a-97e6-c607c4610e7200000000-0000-0000-0000-000000000000",

         "displayName": "Admin",

         "name": "Admin@abc.onmicrosoft.com",

         "_links": {}

       },

       "id": "a581ee43-e944-4976-8bf1-2f7479ab918efac93c3f-9f27-426a-97e6-c607c4610e7200000000-0000-0000-0000-000000000000",

       "type": "User",

       "_links": {

         "organization": {

           "href": "https://abc.tech.local:4443/v5/organizations/967093a9-cf39-43e5-84cb-646ccd4993df"

         },

         "user": {

           "href": "https://abc.tech.local:4443/v5/organizations/967093a9-cf39-43e5-84cb-646ccd4993df/users/fac93c3f-9f27-426a-97e6-c607c4610e7200000000-0000-0000-0000-000000000000"

         }

       }

     }

    ]