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

112 lines (111 loc) 3.92 kB
import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * Returns a Storage Target from a cache. * * Uses Azure REST API version 2024-03-01. * * Other available API versions: 2023-05-01, 2023-11-01-preview, 2024-07-01, 2025-07-01. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native storagecache [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details. */ export declare function getStorageTarget(args: GetStorageTargetArgs, opts?: pulumi.InvokeOptions): Promise<GetStorageTargetResult>; export interface GetStorageTargetArgs { /** * Name of cache. Length of name must not be greater than 80 and chars must be from the [-0-9a-zA-Z_] char class. */ cacheName: string; /** * The name of the resource group. The name is case insensitive. */ resourceGroupName: string; /** * Name of Storage Target. */ storageTargetName: string; } /** * Type of the Storage Target. */ export interface GetStorageTargetResult { /** * The percentage of cache space allocated for this storage target */ readonly allocationPercentage: number; /** * The Azure API version of the resource. */ readonly azureApiVersion: string; /** * Properties when targetType is blobNfs. */ readonly blobNfs?: outputs.storagecache.BlobNfsTargetResponse; /** * Properties when targetType is clfs. */ readonly clfs?: outputs.storagecache.ClfsTargetResponse; /** * Resource ID of the Storage Target. */ readonly id: string; /** * List of cache namespace junctions to target for namespace associations. */ readonly junctions?: outputs.storagecache.NamespaceJunctionResponse[]; /** * Region name string. */ readonly location: string; /** * Name of the Storage Target. */ readonly name: string; /** * Properties when targetType is nfs3. */ readonly nfs3?: outputs.storagecache.Nfs3TargetResponse; /** * ARM provisioning state, see https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/Addendum.md#provisioningstate-property */ readonly provisioningState: string; /** * Storage target operational state. */ readonly state?: string; /** * The system meta data relating to this resource. */ readonly systemData: outputs.storagecache.SystemDataResponse; /** * Type of the Storage Target. */ readonly targetType: string; /** * Type of the Storage Target; Microsoft.StorageCache/Cache/StorageTarget */ readonly type: string; /** * Properties when targetType is unknown. */ readonly unknown?: outputs.storagecache.UnknownTargetResponse; } /** * Returns a Storage Target from a cache. * * Uses Azure REST API version 2024-03-01. * * Other available API versions: 2023-05-01, 2023-11-01-preview, 2024-07-01, 2025-07-01. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native storagecache [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details. */ export declare function getStorageTargetOutput(args: GetStorageTargetOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetStorageTargetResult>; export interface GetStorageTargetOutputArgs { /** * Name of cache. Length of name must not be greater than 80 and chars must be from the [-0-9a-zA-Z_] char class. */ cacheName: pulumi.Input<string>; /** * The name of the resource group. The name is case insensitive. */ resourceGroupName: pulumi.Input<string>; /** * Name of Storage Target. */ storageTargetName: pulumi.Input<string>; }