@pulumi/azure-native
Version:
[](https://slack.pulumi.com) [](https://npmjs.com/package/@pulumi/azure-native) [ • 4.81 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "../types/output";
/**
* Provides the details of the backed up item. This is an asynchronous operation. To know the status of the operation,
* call the GetItemOperationResult 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 getProtectedItem(args: GetProtectedItemArgs, opts?: pulumi.InvokeOptions): Promise<GetProtectedItemResult>;
export interface GetProtectedItemArgs {
/**
* Container name associated with the backed up item.
*/
containerName: string;
/**
* Fabric name associated with the backed up item.
*/
fabricName: string;
/**
* OData filter options.
*/
filter?: string;
/**
* Backed up item name whose details are to be fetched.
*/
protectedItemName: 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 items.
*/
export interface GetProtectedItemResult {
/**
* 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;
/**
* ProtectedItemResource properties
*/
readonly properties: outputs.recoveryservices.AzureFileshareProtectedItemResponse | outputs.recoveryservices.AzureIaaSClassicComputeVMProtectedItemResponse | outputs.recoveryservices.AzureIaaSComputeVMProtectedItemResponse | outputs.recoveryservices.AzureIaaSVMProtectedItemResponse | outputs.recoveryservices.AzureSqlProtectedItemResponse | outputs.recoveryservices.AzureVmWorkloadProtectedItemResponse | outputs.recoveryservices.AzureVmWorkloadSAPAseDatabaseProtectedItemResponse | outputs.recoveryservices.AzureVmWorkloadSAPHanaDBInstanceProtectedItemResponse | outputs.recoveryservices.AzureVmWorkloadSAPHanaDatabaseProtectedItemResponse | outputs.recoveryservices.AzureVmWorkloadSQLDatabaseProtectedItemResponse | outputs.recoveryservices.DPMProtectedItemResponse | outputs.recoveryservices.GenericProtectedItemResponse | outputs.recoveryservices.MabFileFolderProtectedItemResponse;
/**
* 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 backed up item. This is an asynchronous operation. To know the status of the operation,
* call the GetItemOperationResult 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 getProtectedItemOutput(args: GetProtectedItemOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetProtectedItemResult>;
export interface GetProtectedItemOutputArgs {
/**
* Container name associated with the backed up item.
*/
containerName: pulumi.Input<string>;
/**
* Fabric name associated with the backed up item.
*/
fabricName: pulumi.Input<string>;
/**
* OData filter options.
*/
filter?: pulumi.Input<string>;
/**
* Backed up item name whose details are to be fetched.
*/
protectedItemName: 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>;
}