GetMaintenanceMode

Syntax

MaintenanceModeState GetMaintenanceMode(MbId tMb)

Parameters

tMb. Moniker of opened repository connection.

Description

The GetMaintenanceMode operation gets information about maintenance mode status in the repository.

Comments

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:

Example

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.

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">
<GetMaintenanceMode xmlns="http://www.fsight.ru/PP.SOM.Som">
<tMb xmlns="">
  <id>NEJOFNHNBNFGGOAEGABOLMDNHJDHEPEEHIDONAKOKJMGBMEK!M</id>
  </tMb>
  </GetMaintenanceMode>
  </s:Body>
  </s:Envelope>

SOAP response:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<GetMaintenanceModeResult 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">
  <active xmlns="">1</active>
  </GetMaintenanceModeResult>
  </soapenv:Body>
  </soapenv:Envelope>

JSON request:

{
"GetMaintenanceMode" :
{
"tMb" :
{
"id" : "NEJOFNHNBNFGGOAEGABOLMDNHJDHEPEEHIDONAKOKJMGBMEK!M"
}
}
}

JSON response:

{
"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:

Working with Repository