@pulumi/azure-native
Version:
[](https://slack.pulumi.com) [](https://npmjs.com/package/@pulumi/azure-native) [ • 2.32 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "../types/output";
/**
* Get a Snapshot
*
* Uses Azure REST API version 2023-07-01-preview.
*/
export declare function getSnapshot(args: GetSnapshotArgs, opts?: pulumi.InvokeOptions): Promise<GetSnapshotResult>;
export interface GetSnapshotArgs {
/**
* Pool Object
*/
poolName: string;
/**
* The name of the resource group. The name is case insensitive.
*/
resourceGroupName: string;
/**
* Volume Snapshot Resource
*/
snapshotName: string;
}
/**
* Concrete proxy resource types can be created by aliasing this type using a specific property type.
*/
export interface GetSnapshotResult {
/**
* The Azure API version of the resource.
*/
readonly azureApiVersion: string;
/**
* Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
*/
readonly id: string;
/**
* The name of the resource
*/
readonly name: string;
/**
* The status of the last operation.
*/
readonly provisioningState: string;
/**
* Reference to the source volume
*/
readonly source: string;
/**
* The status of the resource.
*/
readonly status: outputs.containerstorage.ResourceOperationalStatusResponse;
/**
* Azure Resource Manager metadata containing createdBy and modifiedBy information.
*/
readonly systemData: outputs.containerstorage.SystemDataResponse;
/**
* The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
*/
readonly type: string;
}
/**
* Get a Snapshot
*
* Uses Azure REST API version 2023-07-01-preview.
*/
export declare function getSnapshotOutput(args: GetSnapshotOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetSnapshotResult>;
export interface GetSnapshotOutputArgs {
/**
* Pool Object
*/
poolName: pulumi.Input<string>;
/**
* The name of the resource group. The name is case insensitive.
*/
resourceGroupName: pulumi.Input<string>;
/**
* Volume Snapshot Resource
*/
snapshotName: pulumi.Input<string>;
}