OpenMbSecSnapshot

Syntax

OpenMbSecSnapshotResult OpenMbSecSnapshot(MbId tMbSec, OpenMbSecSnapshotArg tArg)

Parameters

tMon. Repository connection moniker.

tArg. Operation execution parameters.

Description

The OpenMbSecSnapshot operation opens the object that is used to work with repository security policy backups.

Comments

The object obtained on operation execution is used to:

To execute the operation, specify repository connection moniker in the tMbSec parameter. The moniker can be obtained on executing the OpenMetabase operation.

The OpenMbSecSnapshot operation results in the moniker of object for working with security policy backups. Further work is executed by means of the SetMbSecSnapshot and GetMbSecSnapshot operations.

To close the object and release server resources, use the CloseMbSecSnapshot operation.

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

SOAP response:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<OpenMbSecSnapshotResult 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">
<id xmlns="">
  <id>S1!M!S!SecSna1</id>
  </id>
  </OpenMbSecSnapshotResult>
  </soapenv:Body>
  </soapenv:Envelope>

JSON request:

{

 "OpenMbSecSnapshot" :

  {

   "tMbSec" :

    {

     "id" : "S1!M"

    },

   "tArg" : ""

  }

}

JSON response:

{

 "OpenMbSecSnapshotResult" :

  {

   "id" :

    {

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

    }

  }

}

public static OpenMbSecSnapshotResult OpenSnapshot(string mb)
{
    var somClient = new SomPortTypeClient(); //Proxy object for operation execution
    //Operation execution parameters
    var tOpen = new OpenMbSecSnapshot()
    {
        tArg = new OpenMbSecSnapshotArg(),
        tMbSec = new MbId() { id = mb }
    };
    //Open object to work with security policy backups
    var result = somClient.OpenMbSecSnapshot(tOpen);
    return result;
}

See also:

Operations for Working with Repository