MaintenanceModeState GetMaintenanceMode(MbId tMb)
tMb. Moniker of opened repository connection.
The GetMaintenanceMode operation gets information about maintenance mode status in the repository.
To execute the operation, in the tMb field specify moniker of opened repository connection. The moniker can be obtained on executing the OpenMetabase operation.
After executing the operation the active field contains information about maintenance mode status:
True. Maintenance mode is enabled.
False. Maintenance mode is not enabled.
Below is the example of getting maintenance mode status in the repository. The request contains moniker of opened repository connection. The response contains the obtained maintenance mode status.
{
"GetMaintenanceMode" :
{
"tMb" :
{
"id" : "NEJOFNHNBNFGGOAEGABOLMDNHJDHEPEEHIDONAKOKJMGBMEK!M"
}
}
}
{
"GetMaintenanceModeResult" :
{
"active" : "1"
}
}
public static MaintenanceModeState GetMaintenanceMode(string moniker)
{
var somClient = new SomPortTypeClient(); // Proxy object for operation execution
// Operation execution parameters
var tGet = new GetMaintenanceMode()
{
tMb = new MbId() { id = moniker }
};
// Get information about maintenance mode status
var result = somClient.GetMaintenanceMode(tGet);
return result;
}
See also: