CloseRub

Syntax

bool CloseRub(RubId tRub)

Parameters

tRub. Time series database open instance moniker.

Description

The CloseRub operation closes a time series database.

Comments

To execute the operation, in the tRub parameter specify moniker of the time series database instance to be closed. The moniker can be obtained on executing the OpenRub operation. The operation results in the logical True if the object was closed successfully.

Example

Below is the example of closing time series database instance. The request contains time series database moniker. The response contains whether closing was successful.

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">
<CloseRub xmlns="http://www.fsight.ru/PP.SOM.Som">
<tRub xmlns="">
  <id>S1!M!S!R1</id>
  </tRub>
  </CloseRub>
  </s:Body>
  </s:Envelope>

SOAP response:

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

JSON request:

{
"CloseRub" :
{
"tRub" :
{
"id" : "S1!M!S!R1"
}
}
}

JSON response:

{
"CloseRubResult" : "1"
}
public static bool CloseRub(RubId moniker)
{
var somClient = new SomPortTypeClient(); //Proxy object for operation execution
//Operation execution parameters
var tClose = new CloseRub()
{
tRub = moniker
};
//Close time series database instance
var b = somClient.CloseRub(tClose);
return b;
}

See also:

Working with Time Series Database