Retrieve account records
GET /audit/{accountId}
Retrieves account records by a specified account public ID.
Token usage: NetApp Console user token.
Parameters
| Name | Type | In | Required | Description |
|---|---|---|---|---|
accountId |
string |
path |
True |
|
fromLastModified |
number |
query |
False |
|
toLastModified |
number |
query |
False |
|
fromStartTime |
number |
query |
False |
|
qAction |
string |
query |
False |
|
qService |
string |
query |
False |
|
qStatus |
string |
query |
False |
|
qAgent |
string |
query |
False |
|
qResource |
string |
query |
False |
|
qUser |
string |
query |
False |
|
includeUserAudits |
boolean |
query |
False |
|
toStartTime |
number |
query |
False |
|
offset |
number |
query |
False |
|
includeUserData |
boolean |
query |
False |
Response
Status: 200,
| Name | Type | Required | Description |
|---|---|---|---|
accountId |
string |
True |
|
startTime |
number |
True |
The start time of the event. Unix epoch in milliseconds |
endTime |
number |
True |
The start time of the event. Unix epoch in milliseconds |
action |
string |
True |
Action name of the event. |
status |
string |
True |
Status of the operation. |
requestId |
string |
True |
RequestId of the operation. globally unique for the service. |
service |
string |
True |
Service in which the operation was performed. |
principalId |
string |
True |
Id of the entity performing the operation. |
userEmail |
string |
False |
Email-id of the entity performing the operation. |
agentName |
string |
False |
Name of the agent which performed the operation. |
agentId |
string |
False |
Id of the agent which performed the operation. |
resourceName |
string |
False |
Name of the resource acted upon by the operation. |
resourceId |
string |
False |
Id of the resource acted upon by the operation. |
errors |
array[string] |
False |
Array of error message/s if exists. that related to this auditGroup |
requestData |
string |
False |
Parameters related to request of operation. a string, can be JSON string |
responseData |
string |
False |
Response of the operation. Must be a string, can be JSON in a string. |
workspaceId |
string |
False |
Id of the workspace in which the resource is contained. |
hasRecords |
boolean |
True |
|
hasFailedRecord |
boolean |
True |
|
lastModified |
number |
True |
Last modified time. Unix epoch in milliseconds |
Example response
{
"accountId": "string",
"startTime": 1676559600,
"endTime": 1676669600,
"action": "Create Replication Vsa",
"status": "success",
"requestId": "c53qRZlA",
"service": "fsx",
"principalId": "auth0|5cd02b613c58e90888cd5741",
"userEmail": "abcd@efgh.com",
"agentName": "agent-1",
"agentId": "123-456-769",
"resourceName": "CVO",
"resourceId": "resource-123",
"errors": "[error1,error2]",
"requestData": "\"{\"replicationRequest\":{\"policyName\":\"MirrorAllSnapshots\",\"destinationWorkingEnvironmentId\":\"VsaWorkingEnvironment-LspTA9zs\",\"sourceWorkingEnvironmentId\":\"VsaWorkingEnvironment-bMyCULIC\",\"destinationInterclusterLifIps\":[\"10.0.0.35\"],\"sourceInterclusterLifIps\":[\"1.1.1.1\"],\"maxTransferRate\":null,\"scheduleName\":\"weekly\"},\"replicationVolume\":{\"destinationProviderVolumeType\":\"Standard_LRS\",\"destinationVolumeName\":\"vol2_1000g_case3_copy\",\"sourceVolumeName\":\"vol2_1000g\",\"advancedMode\":false,\"numOfDisksApprovedToAdd\":1,\"destinationCapacityTier\":null,\"destinationAggregateName\":\"aggr2\",\"sourceSvmName\":\"svm_srcVsa1\"}}\"",
"responseData": "\"{\"response\":{\"policyName\":\"MirrorAllSnapshots\",\"destinationWorkingEnvironmentId\":\"VsaWorkingEnvironment-LspTA9zs\",\"sourceWorkingEnvironmentId\":\"VsaWorkingEnvironment-bMyCULIC\",\"destinationInterclusterLifIps\":[\"10.0.0.35\"],\"sourceInterclusterLifIps\":[\"1.1.1.1\"],\"maxTransferRate\":null,\"scheduleName\":\"weekly\"},\"replicationVolume\":{\"destinationProviderVolumeType\":\"Standard_LRS\",\"destinationVolumeName\":\"vol2_1000g_case3_copy\",\"sourceVolumeName\":\"vol2_1000g\",\"advancedMode\":false,\"numOfDisksApprovedToAdd\":1,\"destinationCapacityTier\":null,\"destinationAggregateName\":\"aggr2\",\"sourceSvmName\":\"svm_srcVsa1\"}}\"",
"workspaceId": "workspace-3778fs72",
"hasRecords": true,
"hasFailedRecord": false,
"lastModified": 1684050775135
}