@pulumi/openstack
Version:
A Pulumi package for creating and managing OpenStack cloud resources.
80 lines (79 loc) • 2.48 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Use this data source to get a list of Block Storage availability zones from OpenStack
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as openstack from "@pulumi/openstack";
*
* const zones = openstack.blockstorage.getAvailabilityZonesV3({});
* ```
*/
export declare function getAvailabilityZonesV3(args?: GetAvailabilityZonesV3Args, opts?: pulumi.InvokeOptions): Promise<GetAvailabilityZonesV3Result>;
/**
* A collection of arguments for invoking getAvailabilityZonesV3.
*/
export interface GetAvailabilityZonesV3Args {
/**
* The region in which to obtain the Block Storage client.
* If omitted, the `region` argument of the provider is used.
*/
region?: string;
/**
* The `state` of the availability zones to match. Can
* either be `available` or `unavailable`. Default is `available`.
*/
state?: string;
}
/**
* A collection of values returned by getAvailabilityZonesV3.
*/
export interface GetAvailabilityZonesV3Result {
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
/**
* The names of the availability zones, ordered alphanumerically, that
* match the queried `state`.
*/
readonly names: string[];
/**
* See Argument Reference above.
*/
readonly region: string;
/**
* See Argument Reference above.
*/
readonly state?: string;
}
/**
* Use this data source to get a list of Block Storage availability zones from OpenStack
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as openstack from "@pulumi/openstack";
*
* const zones = openstack.blockstorage.getAvailabilityZonesV3({});
* ```
*/
export declare function getAvailabilityZonesV3Output(args?: GetAvailabilityZonesV3OutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetAvailabilityZonesV3Result>;
/**
* A collection of arguments for invoking getAvailabilityZonesV3.
*/
export interface GetAvailabilityZonesV3OutputArgs {
/**
* The region in which to obtain the Block Storage client.
* If omitted, the `region` argument of the provider is used.
*/
region?: pulumi.Input<string>;
/**
* The `state` of the availability zones to match. Can
* either be `available` or `unavailable`. Default is `available`.
*/
state?: pulumi.Input<string>;
}