Getting BI Server Work Parameters

Below is the example of using the GetSvc operation to get information about BI server work parameters. The request contains a pattern with a list of parameters that must be obtained. The response contains requested information.

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">
<GetSvc xmlns="http://www.fsight.ru/PP.SOM.Som">
<tArg xmlns="">
<credentials>
<user>
  <id>sa</id>
  </user>
  <pass>Qwerty1</pass>
  </credentials>
<pattern>
  <log>true</log>
  <state>true</state>
  <pool>true</pool>
  </pattern>
  </tArg>
  </GetSvc>
  </s:Body>
  </s:Envelope>

SOAP response:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<GetSvcResult xmlns="http://www.fsight.ru/PP.SOM.Som" xmlns:q1="http://www.fsight.ru/PP.SOM.Som" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<meta xmlns="">
<log>
<activeFlags>
  <it>IsOn</it>
  </activeFlags>
  <filter />
  </log>
<state>
  <active>0</active>
<server>
  <type>Memory</type>
  <host />
  </server>
  </state>
<pool>
  <active>1</active>
  <connectionsLimit>50</connectionsLimit>
  </pool>
  </meta>
  </GetSvcResult>
  </soapenv:Body>
  </soapenv:Envelope>

JSON request:

{
"GetSvc" :
{
"tArg" :
{
"credentials" :
{
"user" :
{
"id" : "sa"
},
"pass" : "Qwerty1"
},
"pattern" :
{
"log" : "true",
"state" : "true",
"pool" : "true"
}
}
}
}

JSON response:

{
"GetSvcResult" :
{
"meta" :
{
"log" :
{
"activeFlags" :
{
"it" : "IsOn"
},
"filter" : ""
},
"state" :
{
"active" : "0",
"server" :
{
"type" : "Memory",
"host" : ""
}
},
"pool" :
{
"active" : "1",
"connectionsLimit" : "50"
}
}
}
}
public static GetSvcResult GetBIServerParams(string login, string password, MbId customSession = null)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tGet = new GetSvc()
{
tArg = new GetSvcArg()
{
credentials = new UserCreds()
{
user = new UserId() { id = login },
pass = password
},
pattern = new SvcPattern()
{
log = true,
logMb = customSession,
pool = true,
state = true
}
}
};
// Get BI server parameters
var result = somClient.GetSvc(tGet);
return result;
}

See also:

GetSvc: Operation