OpenMbSecSnapshotResult OpenMbSecSnapshot(MbId tMbSec, OpenMbSecSnapshotArg tArg)
tMon. Repository connection moniker.
tArg. Operation execution parameters.
The OpenMbSecSnapshot operation opens the object that is used to work with repository security policy backups.
The object obtained on operation execution is used to:
Create a security policy backup and save it as a binary file at the server.
Restore security policy from binary file.
Monitor security policy backup creation and restore security policy from backup.
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.
{ "OpenMbSecSnapshot" : { "tMbSec" : { "id" : "S1!M" }, "tArg" : "" }}
{ "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 for working with backup copies of security policy
var result = somClient.OpenMbSecSnapshot(tOpen);
return result;
}
See also: