AvailableFeature IsFeatureAvailable(MbId tMb, AvailableFeatureArg tArg)
tMb. Repository connection moniker.
tArg. Operation execution parameters.
The IsFeatureAvailable operation checks if any function can be executed in the platform.
To execute the operation, in the tMb field specify repository connection moniker, and in the tArg.available field specify empty values or default values for the fields, which values should be obtained. The moniker can be obtained on executing the OpenMetabase operation.
The operation results in the list of checkboxes that determine whether the specified functions can be executed in the platform.
Below is the example of checking if various functions can be executed in the platform. The request contains repository connection moniker and list of checked functions. The response contains information about whether checked functions can be executed.
{
"IsFeatureAvailable" :
{
"tMb" :
{
"id" : "BNOGMMLOBDOGGOAEMDJMHDAJJJIMPJPEILKBJNCDBHBDCHBC!M"
},
"tArg" :
{
"available" :
{
"pdf" : "false",
"AllowDevEnv" : "false",
"AllowPython" : "false"
}
}
}
}
{
"IsFeatureAvailableResult" :
{
"pdf" : "1",
"AllowDevEnv" : "1",
"AllowPython" : "1"
}
}
public static AvailableFeature IsFeatureAvailable(string moniker)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tGet = new IsFeatureAvailable()
{
tArg = new AvailableFeatureArg()
{
available = new AvailableFeature()
{
AllowDevEnv = new bool(),
AllowPython = new bool(),
pdf = new bool()
}
},
tMb = new MbId() { id = moniker }
};
// Get information about whether various functions can be executed in the platform
var result = somClient.IsFeatureAvailable(tGet);
return result;
}
See also: