@pulumi/openstack
Version:
A Pulumi package for creating and managing OpenStack cloud resources.
102 lines (101 loc) • 3.01 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Use this data source to get the ID of an OpenStack Load Balancer flavor.
*
* > **Note:** This data source is deprecated, please use `openstack.loadbalancer.FlavorV2` instead.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as openstack from "@pulumi/openstack";
*
* const flavor1 = openstack.loadbalancer.getLbFlavorDeprecated({
* name: "flavor_1",
* });
* ```
*/
export declare function getLbFlavorDeprecated(args?: GetLbFlavorDeprecatedArgs, opts?: pulumi.InvokeOptions): Promise<GetLbFlavorDeprecatedResult>;
/**
* A collection of arguments for invoking getLbFlavorDeprecated.
*/
export interface GetLbFlavorDeprecatedArgs {
/**
* The ID of the flavor. Exactly one of `name`, `flavorId` is required to be set.
*/
flavorId?: string;
/**
* The name of the flavor. Exactly one of `name`, `flavorId` is required to be set.
*/
name?: string;
/**
* The region in which to obtain the V2 Load Balancer client.
* If omitted, the `region` argument of the provider is used.
*/
region?: string;
}
/**
* A collection of values returned by getLbFlavorDeprecated.
*/
export interface GetLbFlavorDeprecatedResult {
/**
* The description of the flavor.
*/
readonly description: string;
/**
* Is the flavor enabled.
*/
readonly enabled: boolean;
/**
* The ID of the flavor.
*/
readonly flavorId: string;
/**
* The ID of the flavor profile.
*/
readonly flavorProfileId: string;
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
/**
* The name of the flavor.
*/
readonly name: string;
readonly region: string;
}
/**
* Use this data source to get the ID of an OpenStack Load Balancer flavor.
*
* > **Note:** This data source is deprecated, please use `openstack.loadbalancer.FlavorV2` instead.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as openstack from "@pulumi/openstack";
*
* const flavor1 = openstack.loadbalancer.getLbFlavorDeprecated({
* name: "flavor_1",
* });
* ```
*/
export declare function getLbFlavorDeprecatedOutput(args?: GetLbFlavorDeprecatedOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetLbFlavorDeprecatedResult>;
/**
* A collection of arguments for invoking getLbFlavorDeprecated.
*/
export interface GetLbFlavorDeprecatedOutputArgs {
/**
* The ID of the flavor. Exactly one of `name`, `flavorId` is required to be set.
*/
flavorId?: pulumi.Input<string>;
/**
* The name of the flavor. Exactly one of `name`, `flavorId` is required to be set.
*/
name?: pulumi.Input<string>;
/**
* The region in which to obtain the V2 Load Balancer client.
* If omitted, the `region` argument of the provider is used.
*/
region?: pulumi.Input<string>;
}