GetAuditLogMdResult GetAuditLogMd(AuditLogId tLog, GetAuditLogMdArg tArg)
tLog. Access protocol moniker.
tArg. Operation execution parameters.
The GetAuditLogMd operation gets parameters of access protocol work.
This operation enables the user to get filtering parameters that are set in access protocol. To execute the operation, in the tLog field specify opened access protocol instance moniker, and in the tArg field specify parameters for getting filtering information. The moniker can be obtained on executing the OpenAuditLog operation.
Filtering parameters can be set using the SetAuditLogMd operation.
The example of setting records filter in access protocol. The request contains moniker of the access protocol and required filter parameters. The response contains the full list of filtering settings.
{
"GetAuditLogMd" :
{
"tLog" :
{
"id" : "S1!M!S!A4"
},
"tArg" :
{
"pattern" :
{
"filter" :
{
"conditions" : "Get",
"condition" :
{
"userNames" : "Get",
"stations" : "Get",
"osUsers" : "Get",
"userIPs" : "Get",
"operations" : "Get",
"classes" : "Get",
"objectKeys" : "Get"
}
}
}
}
}
}
{
"GetAuditLogMdResult" :
{
"meta" :
{
"filter" :
{
"conditions" :
{
"Item" :
{
"isAnd" : "1",
"isNot" : "0",
"minDate" : "2018-10-01T00:00:00.000",
"maxDate" : "2018-12-01T00:00:00.000",
"includeFailedLogons" : "0",
"includeSucceededLogons" : "0",
"userNames" : "",
"stations" : "",
"osUsers" : "",
"userIPs" : "",
"includeFailedOperations" : "1",
"includeSucceededOperations" : "1",
"operations" : "",
"classes" : "",
"nameFilter" :
{
"isOn" : "1",
"value" : "report",
"caseSensitive" : "0",
"wholeWordsOnly" : "0"
},
"idFilter" :
{
"isOn" : "1",
"value" : "report",
"caseSensitive" : "0",
"wholeWordsOnly" : "0"
},
"objectKeys" : ""
}
},
"dateOrderAscending" : "1",
"top" : "0"
}
}
}
}
public static GetAuditLogMdResult GetAuditLogFilter(string logId)
{
var somClient = new SomPortTypeClient(); //Proxy object for operation execution
//Operation execution parameters
var getAuditLogMd = new GetAuditLogMd()
{
tArg = new GetAuditLogMdArg()
{
pattern = new AuditLogMdPattern()
{
filter = new AuditLogFilterPattern()
{
conditions = ListOperation.Get,
condition = new AuditLogFilterConditionPattern()
{
classes = ListOperation.Get,
objectKeys = ListOperation.Get,
operations = ListOperation.Get,
osUsers = ListOperation.Get,
stations = ListOperation.Get,
userIPs = ListOperation.Get,
userNames = ListOperation.Get
}
}
}
},
tLog = new AuditLogId() { id = logId }
};
//Get filtering parameters in access protocol
var result = somClient.GetAuditLogMd(getAuditLogMd);
return result;
}
See also: