For AHV snapshot restore refer here
For VMware snapshot restore refer below:
-
AppProtection.SnapshotConfig
: Contains classesAppProtection.SnapshotConfig.Ahv
andAppProtection.SnapshotConfig.Vmware
for nutanix and vmware provider respectively.AppProtection.SnapshotConfig
defaults to Ahv class for backware compatibility. -
AppProtection.RestoreConfig
: Contains classesAppProtection.RestoreConfig.Ahv
andAppProtection.RestoreConfig.Vmware
for nutanix and vmware provider respectively.AppProtection.RestoreConfig
defaults to Ahv class for backware compatibility.
Sample Profile class containing snapshot/restore configs for VMWARE provider.
from calm.dsl.builtins import AppProtection
class VmwareProfile(Profile):
deployments = [VmwDeployment]
restore_configs = [
AppProtection.RestoreConfig.Vmware(name="r1",
target=ref(VmwDeployment))
]
snapshot_configs = [
AppProtection.SnapshotConfig.Vmware(name="s1",
restore_config=ref(restore_configs[0]),
policy=AppProtection.ProtectionPolicy("policy1", rule_name="rule_name"))
]