SetMbSecSnapshotResult SetMbSecSnapshot(MbSecSnapshotId tMbSecSnapshot, SetMbSecSnapshotArg tArg)
tMbSecSnapshot. Moniker of the object that is used to work with security policy backups.
tArg. Operation execution parameters.
The SetMbSecSnapshot operation is used to work with security policy backups.
The operation is used to create security policy backups and restore security policy from backup. To execute the operation, specify in the tMbSecSnapshot field moniker of the object that is used to create a security policy backup. Depending on the executed operation, also specify the following fields:
Create a backup. In the tArg.meta.execute.command field set the Save value, and in the tArg.pattern.execute field tArg.pattern.all field set the true value. After executing the operation the meta.execute.savedSnapshot field contains the moniker of the binary file, to which the security policy backup was saved. This moniker can be used in the GetBinary operation to get a file or further in the SetMbSecSnapshot operation to restore security policy.
Restore from backup. In the tArg.meta.execute.command field set the Load value, in the tArg.meta.execute.snapshotToLoad field specify moniker of the binary file, which contains a security policy backup; in the tArg.pattern.execute field tArg.pattern.all field set the true value. The tArg.pattern.executePatt field can also be used to specify the pattern, according to which the information about restoring security policy is obtained.
The operation execution mode is set in the tArg.meta.execute.async field. If the operation is executed asynchronously, the GetMbSecSnapshot operation can be used to check execution status.
If a backup is created, the operation results in the binary file moniker. If security policy is restored, the operation results in the report with results. To make the report available after operation execution, define the tArg.metaGet.log field.
Various methods of using this operation are given in the following examples:
Example name |
Creating a Security Policy Backup |
Restoring Security Policy from Backup |
See also: