UNPKG

@pulumi/openstack

Version:

A Pulumi package for creating and managing OpenStack cloud resources.

98 lines (97 loc) 2.67 kB
import * as pulumi from "@pulumi/pulumi"; /** * Use this data source to get the ID of an OpenStack Load Balancer flavor. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as openstack from "@pulumi/openstack"; * * const flavor1 = openstack.loadbalancer.getFlavorV2({ * name: "flavor_1", * }); * ``` */ export declare function getFlavorV2(args?: GetFlavorV2Args, opts?: pulumi.InvokeOptions): Promise<GetFlavorV2Result>; /** * A collection of arguments for invoking getFlavorV2. */ export interface GetFlavorV2Args { /** * 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 getFlavorV2. */ export interface GetFlavorV2Result { /** * 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. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as openstack from "@pulumi/openstack"; * * const flavor1 = openstack.loadbalancer.getFlavorV2({ * name: "flavor_1", * }); * ``` */ export declare function getFlavorV2Output(args?: GetFlavorV2OutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetFlavorV2Result>; /** * A collection of arguments for invoking getFlavorV2. */ export interface GetFlavorV2OutputArgs { /** * 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>; }