UNPKG

@pulumi/azure-native

Version:

[![Slack](http://www.pulumi.com/images/docs/badges/slack.svg)](https://slack.pulumi.com) [![NPM version](https://badge.fury.io/js/%40pulumi%2Fazure-native.svg)](https://npmjs.com/package/@pulumi/azure-native) [![Python version](https://badge.fury.io/py/pu

88 lines (87 loc) 3.88 kB
import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * Provides the details of the backup policies associated to Recovery Services Vault. This is an asynchronous * operation. Status of the operation can be fetched using GetPolicyOperationResult API. * * Uses Azure REST API version 2024-10-01. * * Other available API versions: 2023-02-01, 2023-04-01, 2023-06-01, 2023-08-01, 2024-01-01, 2024-02-01, 2024-04-01, 2024-04-30-preview, 2024-07-30-preview, 2024-11-01-preview, 2025-01-01, 2025-02-01, 2025-02-28-preview. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native recoveryservices [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details. */ export declare function getProtectionPolicy(args: GetProtectionPolicyArgs, opts?: pulumi.InvokeOptions): Promise<GetProtectionPolicyResult>; export interface GetProtectionPolicyArgs { /** * Backup policy information to be fetched. */ policyName: string; /** * The name of the resource group where the recovery services vault is present. */ resourceGroupName: string; /** * The name of the recovery services vault. */ vaultName: string; } /** * Base class for backup policy. Workload-specific backup policies are derived from this class. */ export interface GetProtectionPolicyResult { /** * The Azure API version of the resource. */ readonly azureApiVersion: string; /** * Optional ETag. */ readonly eTag?: string; /** * Resource Id represents the complete path to the resource. */ readonly id: string; /** * Resource location. */ readonly location?: string; /** * Resource name associated with the resource. */ readonly name: string; /** * ProtectionPolicyResource properties */ readonly properties: outputs.recoveryservices.AzureFileShareProtectionPolicyResponse | outputs.recoveryservices.AzureIaaSVMProtectionPolicyResponse | outputs.recoveryservices.AzureSqlProtectionPolicyResponse | outputs.recoveryservices.AzureVmWorkloadProtectionPolicyResponse | outputs.recoveryservices.GenericProtectionPolicyResponse | outputs.recoveryservices.MabProtectionPolicyResponse; /** * Resource tags. */ readonly tags?: { [key: string]: string; }; /** * Resource type represents the complete path of the form Namespace/ResourceType/ResourceType/... */ readonly type: string; } /** * Provides the details of the backup policies associated to Recovery Services Vault. This is an asynchronous * operation. Status of the operation can be fetched using GetPolicyOperationResult API. * * Uses Azure REST API version 2024-10-01. * * Other available API versions: 2023-02-01, 2023-04-01, 2023-06-01, 2023-08-01, 2024-01-01, 2024-02-01, 2024-04-01, 2024-04-30-preview, 2024-07-30-preview, 2024-11-01-preview, 2025-01-01, 2025-02-01, 2025-02-28-preview. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native recoveryservices [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details. */ export declare function getProtectionPolicyOutput(args: GetProtectionPolicyOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetProtectionPolicyResult>; export interface GetProtectionPolicyOutputArgs { /** * Backup policy information to be fetched. */ policyName: pulumi.Input<string>; /** * The name of the resource group where the recovery services vault is present. */ resourceGroupName: pulumi.Input<string>; /** * The name of the recovery services vault. */ vaultName: pulumi.Input<string>; }