Below is the example of using the GetSystemInfo operation to get information about repository connection. The request contains the repository connection moniker. The response contains information about platform version that is installed in the server and settings of the specified repository connection.
{
"GetSystemInfo" :
{
"tArg" :
{
"metabase" :
{
"id" : "LLCHGEDPNCCCGOAEHNAGCAHDLNEBJEHEMLCCONMKIJBCOLEH!M"
},
"allowMetabaseNotFound" : "true"
}
}
}
{
"GetSystemInfoResult" :
{
"version" : "Release 10.4.10052.0 Master x64",
"release" : "10.4",
"platformInfo" : "x64",
"osType" : "Windows",
"osInfo" : "Windows 10 x64",
"metabaseSessionTimeout" : "00:30:00.000",
"metabaseStoreBinaryCount" : "0",
"metabaseLocale" : "1049",
"metabaseConnectionPoolMaxCount" : "50"
}
}
public static GetSystemInfoResult GetConnectedInfo(string mb = null)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tGet = new GetSystemInfo()
{
tArg = new GetSystemInfoArg()
{
metabase = (mb != null ? new MbId() { id = mb } : null ),
allowMetabaseNotFound = true
}
};
// Get connection information
var result = somClient.GetSystemInfo(tGet);
return result;
}
See also: