GetAuditLogMd

Syntax

GetAuditLogMdResult GetAuditLogMd(AuditLogId tLog, GetAuditLogMdArg tArg)

Parameters

tLog. Access protocol moniker.

tArg. Operation execution parameters.

Description

The GetAuditLogMd operation gets parameters of access protocol work.

Comments

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.

Example

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.

SOAP request:

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<GetAuditLogMd xmlns="http://www.prognoz.ru/PP.SOM.Som">
<tLog xmlns=" ">
  <id>S1!M!S!A4</id>
  </tLog>
<tArg xmlns=" ">
<pattern>
<filter>
  <conditions>Get</conditions>
<condition>
  <userNames>Get</userNames>
  <stations>Get</stations>
  <osUsers>Get</osUsers>
  <userIPs>Get</userIPs>
  <operations>Get</operations>
  <classes>Get</classes>
  <objectKeys>Get</objectKeys>
  </condition>
  </filter>
  </pattern>
  </tArg>
  </GetAuditLogMd>
  </s:Body>
  </s:Envelope>

SOAP response:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<GetAuditLogMdResult xmlns="http://www.prognoz.ru/PP.SOM.Som" xmlns:q1="http://www.prognoz.ru/PP.SOM.Som" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<meta xmlns=" ">
<filter>
<conditions>
<Item>
  <isAnd>1</isAnd>
  <isNot>0</isNot>
  <minDate>2018-10-01T00:00:00.000</minDate>
  <maxDate>2018-12-01T00:00:00.000</maxDate>
  <includeFailedLogons>0</includeFailedLogons>
  <includeSucceededLogons>0</includeSucceededLogons>
  <userNames />
  <stations />
  <osUsers />
  <userIPs />
  <includeFailedOperations>1</includeFailedOperations>
  <includeSucceededOperations>1</includeSucceededOperations>
  <operations />
  <classes />
<nameFilter>
  <isOn>1</isOn>
  <value>report</value>
  <caseSensitive>0</caseSensitive>
  <wholeWordsOnly>0</wholeWordsOnly>
  </nameFilter>
<idFilter>
  <isOn>1</isOn>
  <value>report</value>
  <caseSensitive>0</caseSensitive>
  <wholeWordsOnly>0</wholeWordsOnly>
  </idFilter>
  <objectKeys />
  </Item>
  </conditions>
  <dateOrderAscending>1</dateOrderAscending>
  <top>0</top>
  </filter>
  </meta>
  </GetAuditLogMdResult>
  </soapenv:Body>
  </soapenv:Envelope>

JSON request:

{
"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"
}
}
}
}
}
}

JSON response:

{
"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:

Working with Repository