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.
{ "GetSvc" : { "tArg" : { "credentials" : { "user" : { "id" : "pprepository" }, "pass" : "pprepository" }, "pattern" : { "log" : "true", "state" : "true", "pool" : "true" } } } }
{ "GetSvcResult" : { "meta" : { "log" : { "activeFlags" : { "it" : "IsOn" }, "filter" : "" }, "state" : { "active" : "0", "server" : { "type" : "MemCached", "host" : "localhost", "port" : "11211" } }, "pool" : { "active" : "1", "connectionsLimit" : "10" } } } }
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: