BackupPolicies interface
Interface representing a BackupPolicies.
Methods
create |
Creates or Updates a backup policy belonging to a backup vault |
delete(string, string, string, Backup |
Deletes a backup policy belonging to a backup vault |
get(string, string, string, Backup |
Gets a backup policy belonging to a backup vault |
list(string, string, Backup |
Returns list of backup policies belonging to a backup vault |
Method Details
createOrUpdate(string, string, string, BaseBackupPolicyResource, BackupPoliciesCreateOrUpdateOptionalParams)
Creates or Updates a backup policy belonging to a backup vault
function createOrUpdate(resourceGroupName: string, vaultName: string, backupPolicyName: string, parameters: BaseBackupPolicyResource, options?: BackupPoliciesCreateOrUpdateOptionalParams): Promise<BaseBackupPolicyResource>
Parameters
- resourceGroupName
-
string
The name of the resource group. The name is case insensitive.
- vaultName
-
string
The name of the backup vault.
- backupPolicyName
-
string
Name of the policy
- parameters
- BaseBackupPolicyResource
Request body for operation
The options parameters.
Returns
Promise<BaseBackupPolicyResource>
delete(string, string, string, BackupPoliciesDeleteOptionalParams)
Deletes a backup policy belonging to a backup vault
function delete(resourceGroupName: string, vaultName: string, backupPolicyName: string, options?: BackupPoliciesDeleteOptionalParams): Promise<void>
Parameters
- resourceGroupName
-
string
The name of the resource group. The name is case insensitive.
- vaultName
-
string
The name of the backup vault.
- backupPolicyName
-
string
The options parameters.
Returns
Promise<void>
get(string, string, string, BackupPoliciesGetOptionalParams)
Gets a backup policy belonging to a backup vault
function get(resourceGroupName: string, vaultName: string, backupPolicyName: string, options?: BackupPoliciesGetOptionalParams): Promise<BaseBackupPolicyResource>
Parameters
- resourceGroupName
-
string
The name of the resource group. The name is case insensitive.
- vaultName
-
string
The name of the backup vault.
- backupPolicyName
-
string
- options
- BackupPoliciesGetOptionalParams
The options parameters.
Returns
Promise<BaseBackupPolicyResource>
list(string, string, BackupPoliciesListOptionalParams)
Returns list of backup policies belonging to a backup vault
function list(resourceGroupName: string, vaultName: string, options?: BackupPoliciesListOptionalParams): PagedAsyncIterableIterator<BaseBackupPolicyResource, BaseBackupPolicyResource[], PageSettings>
Parameters
- resourceGroupName
-
string
The name of the resource group. The name is case insensitive.
- vaultName
-
string
The name of the backup vault.
- options
- BackupPoliciesListOptionalParams
The options parameters.