ProtectionIntentOperations interface

Interface representing a ProtectionIntent operations.

Properties

createOrUpdate

Create Intent for Enabling backup of an item. This is a synchronous operation.

delete

Used to remove intent from an item

get

Provides the details of the protection intent up item. This is an asynchronous operation. To know the status of the operation, call the GetItemOperationResult API.

validate

It will validate followings

  1. Vault capacity
  2. VM is already protected
  3. Any VM related configuration passed in properties.

Property Details

createOrUpdate

Create Intent for Enabling backup of an item. This is a synchronous operation.

createOrUpdate: (vaultName: string, resourceGroupName: string, fabricName: string, intentObjectName: string, parameters: ProtectionIntentResource, options?: ProtectionIntentCreateOrUpdateOptionalParams) => Promise<ProtectionIntentResource>

Property Value

(vaultName: string, resourceGroupName: string, fabricName: string, intentObjectName: string, parameters: ProtectionIntentResource, options?: ProtectionIntentCreateOrUpdateOptionalParams) => Promise<ProtectionIntentResource>

delete

Used to remove intent from an item

delete: (vaultName: string, resourceGroupName: string, fabricName: string, intentObjectName: string, options?: ProtectionIntentDeleteOptionalParams) => Promise<void>

Property Value

(vaultName: string, resourceGroupName: string, fabricName: string, intentObjectName: string, options?: ProtectionIntentDeleteOptionalParams) => Promise<void>

get

Provides the details of the protection intent up item. This is an asynchronous operation. To know the status of the operation, call the GetItemOperationResult API.

get: (vaultName: string, resourceGroupName: string, fabricName: string, intentObjectName: string, options?: ProtectionIntentGetOptionalParams) => Promise<ProtectionIntentResource>

Property Value

(vaultName: string, resourceGroupName: string, fabricName: string, intentObjectName: string, options?: ProtectionIntentGetOptionalParams) => Promise<ProtectionIntentResource>

validate

It will validate followings

  1. Vault capacity
  2. VM is already protected
  3. Any VM related configuration passed in properties.
validate: (azureRegion: string, parameters: PreValidateEnableBackupRequest, options?: ProtectionIntentValidateOptionalParams) => Promise<PreValidateEnableBackupResponse>

Property Value

(azureRegion: string, parameters: PreValidateEnableBackupRequest, options?: ProtectionIntentValidateOptionalParams) => Promise<PreValidateEnableBackupResponse>