CloseMbSecSnapshot

Syntax

bool CloseMbSecSnapshot(MbSecSnapshotId tMbSecSnapshot)

Parameters

tMbSecSnapshot. Moniker of the object that is used to work with security policy backups.

Description

The CloseMbSecSnapshot operation closes the object that is used to work with security policy backups.

Comments

To execute the operation, specify opened object moniker in the tMbSecSnapshot field. The moniker can be obtained on executing the OpenMbSecSnapshot operation. The operation results in the logical True if the object is successfully closed, and server resources are successfully released.

Example

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">
<CloseMbSecSnapshot xmlns="http://www.prognoz.ru/PP.SOM.Som">
<tMbSecSnapshot xmlns="">
  <id>S1!M!S!SecSna1</id>
  </tMbSecSnapshot>
  </CloseMbSecSnapshot>
  </s:Body>
  </s:Envelope>

SOAP response:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
  <CloseMbSecSnapshotResult xmlns="http://www.prognoz.ru/PP.SOM.Som" xmlns:q1="http://www.prognoz.ru/PP.SOM.Som" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">1</CloseMbSecSnapshotResult>
  </soapenv:Body>
  </soapenv:Envelope>

JSON request:

{

 "CloseMbSecSnapshot" :

  {

   "tMbSecSnapshot" :

    {

     "id" : "S1!M!S!SecSna1"

    }

  }

}

JSON response:

{

 "CloseMbSecSnapshotResult" : "1"

}

public static bool CloseSnapshot(string secSnapshot)
{
var somClient = new SomPortTypeClient(); //Proxy object for operation execution
//Operation execution parameters
var tClose = new CloseMbSecSnapshot()
{
tMbSecSnapshot = new MbSecSnapshotId() { id = secSnapshot }
};
//Close object for working with security policy
var b = somClient.CloseMbSecSnapshot(tClose);
return b;
}

See also:

Operations for Working with Repository