@pulumi/gcp
Version:
A Pulumi package for creating and managing Google Cloud Platform resources.
116 lines • 4.04 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "../types/output";
/**
* Provides access to available Google Compute Storage Pool resources for a given project and zone.
* See more about [Hyperdisk Storage Pools](https://cloud.google.com/compute/docs/disks/storage-pools) in the upstream docs.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const myPool = gcp.compute.getStoragePool({
* name: "my-storage-pool",
* zone: "us-central1-a",
* });
* export const poolCapacity = myPool.then(myPool => myPool.poolProvisionedCapacityGb);
* export const poolType = myPool.then(myPool => myPool.storagePoolType);
* ```
*
* ## Note
*
* * `deletionProtection` is always set to false on the data source and will not be represetative of the actual value on `gcp.compute.StoragePool` reaosure being read
*/
export declare function getStoragePool(args: GetStoragePoolArgs, opts?: pulumi.InvokeOptions): Promise<GetStoragePoolResult>;
/**
* A collection of arguments for invoking getStoragePool.
*/
export interface GetStoragePoolArgs {
/**
* The name of the Storage Pool.
*/
name: string;
/**
* The project in which the Storage Pool exists. If it is not provided, the provider project is used.
*/
project?: string;
/**
* The zone where the Storage Pool resides.
*/
zone: string;
}
/**
* A collection of values returned by getStoragePool.
*/
export interface GetStoragePoolResult {
readonly capacityProvisioningType: string;
readonly creationTimestamp: string;
readonly deletionPolicy: string;
readonly deletionProtection: boolean;
readonly description: string;
readonly effectiveLabels: {
[key: string]: string;
};
readonly id: string;
readonly kind: string;
readonly labelFingerprint: string;
readonly labels: {
[key: string]: string;
};
readonly name: string;
readonly params: outputs.compute.GetStoragePoolParam[];
readonly performanceProvisioningType: string;
readonly poolProvisionedCapacityGb: string;
readonly poolProvisionedIops: string;
readonly poolProvisionedThroughput: string;
readonly project?: string;
readonly pulumiLabels: {
[key: string]: string;
};
readonly resourceStatuses: outputs.compute.GetStoragePoolResourceStatus[];
readonly statuses: outputs.compute.GetStoragePoolStatus[];
readonly storagePoolType: string;
readonly zone: string;
}
/**
* Provides access to available Google Compute Storage Pool resources for a given project and zone.
* See more about [Hyperdisk Storage Pools](https://cloud.google.com/compute/docs/disks/storage-pools) in the upstream docs.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const myPool = gcp.compute.getStoragePool({
* name: "my-storage-pool",
* zone: "us-central1-a",
* });
* export const poolCapacity = myPool.then(myPool => myPool.poolProvisionedCapacityGb);
* export const poolType = myPool.then(myPool => myPool.storagePoolType);
* ```
*
* ## Note
*
* * `deletionProtection` is always set to false on the data source and will not be represetative of the actual value on `gcp.compute.StoragePool` reaosure being read
*/
export declare function getStoragePoolOutput(args: GetStoragePoolOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetStoragePoolResult>;
/**
* A collection of arguments for invoking getStoragePool.
*/
export interface GetStoragePoolOutputArgs {
/**
* The name of the Storage Pool.
*/
name: pulumi.Input<string>;
/**
* The project in which the Storage Pool exists. If it is not provided, the provider project is used.
*/
project?: pulumi.Input<string | undefined>;
/**
* The zone where the Storage Pool resides.
*/
zone: pulumi.Input<string>;
}
//# sourceMappingURL=getStoragePool.d.ts.map