Export & Import Audits

Background

The new audits for Export and Import operations also have corresponding REST APIs to programatically fetch the audit entries.

REST APIs

Title Replication Audits for a Cluster
Example See below.
URL api/atlas/admin/expimp/audit
Method GET
URL Parameters sourceClusterName: Name of source cluster.
targetClusterName: Name of target cluster.
userName: Name of the user who initiated the operation.
operation: EXPORT or IMPORT operation type.
startTime: Time, in milliseconds, when operation was started.
endTime: Time, in milliseconds, when operation ended.
limit: Number of results to be returned
offset: Offset
Data Parameters None
Success Response List of ExportImportAuditEntry
Error Response Errors Returned as AtlasBaseException
Notes None
CURL

curl -X GET -u admin:admin -H “Content-Type: application/json” -H “Cache-Control: no-cache” ‘http://localhost:21000/api/atlas/admin/expimp/audit?sourceClusterName=cl2

{
    "queryType": "BASIC",
    "searchParameters": {
        "typeName": "ReplicationAuditEntry",
        "excludeDeletedEntities": false,
        "includeClassificationAttributes": false,
        "includeSubTypes": true,
        "includeSubClassifications": true,
        "limit": 100,
        "offset": 0,
        "entityFilters": {
            "attributeName": "name",
            "operator": "eq",
            "attributeValue": "cl2",
            "criterion": []
        }
    },
    "entities": [{
        "typeName": "ReplicationAuditEntry",
        "attributes": {
            "owner": null,
            "uniqueName": "cl2:EXPORT:1533037289411",
            "createTime": null,
            "name": "cl2",
            "description": null
        },
        "guid": "04844141-af72-498a-9d26-f70f91e8adf8",
        "status": "ACTIVE",
        "displayText": "cl2",
        "classificationNames": []
    }, {
        "typeName": "ReplicationAuditEntry",
        "attributes": {
            "owner": null,
            "uniqueName": "cl2:EXPORT:1533037368407",
            "createTime": null,
            "name": "cl2",
            "description": null
        },
        "guid": "837abe66-20c8-4296-8678-e715498bf8fb",
        "status": "ACTIVE",
        "displayText": "cl2",
        "classificationNames": []
    }]
}