UNPKG

@pulumi/openstack

Version:

A Pulumi package for creating and managing OpenStack cloud resources.

164 lines (163 loc) 5.43 kB
import * as pulumi from "@pulumi/pulumi"; /** * Manages a V3 block storage volume type resource within OpenStack. * * > **Note:** This usually requires admin privileges. * * ## Example Usage * * ### Basic Volume Type * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as openstack from "@pulumi/openstack"; * * const volumeType1 = new openstack.blockstorage.VolumeTypeV3("volume_type_1", { * name: "volume_type_1", * description: "Volume type 1", * extraSpecs: { * capabilities: "gpu", * volume_backend_name: "ssd", * }, * }); * ``` * * ### Volume Type with multiattach enabled * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as openstack from "@pulumi/openstack"; * * const multiattach = new openstack.blockstorage.VolumeTypeV3("multiattach", { * name: "multiattach", * description: "Multiattach-enabled volume type", * extraSpecs: { * multiattach: "<is> True", * }, * }); * ``` * * ## Import * * Volume types can be imported using the `volume_type_id`, e.g. * * ```sh * $ pulumi import openstack:blockstorage/volumeTypeV3:VolumeTypeV3 volume_type_1 941793f0-0a34-4bc4-b72e-a6326ae58283 * ``` */ export declare class VolumeTypeV3 extends pulumi.CustomResource { /** * Get an existing VolumeTypeV3 resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: VolumeTypeV3State, opts?: pulumi.CustomResourceOptions): VolumeTypeV3; /** * Returns true if the given object is an instance of VolumeTypeV3. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is VolumeTypeV3; /** * Human-readable description of the port. Changing * this updates the `description` of an existing volume type. */ readonly description: pulumi.Output<string>; /** * Key/Value pairs of metadata for the volume type. */ readonly extraSpecs: pulumi.Output<{ [key: string]: string; }>; /** * Whether the volume type is public. Changing * this updates the `isPublic` of an existing volume type. */ readonly isPublic: pulumi.Output<boolean>; /** * Name of the volume type. Changing this * updates the `name` of an existing volume type. */ readonly name: pulumi.Output<string>; /** * The region in which to create the volume. If * omitted, the `region` argument of the provider is used. Changing this * creates a new quotaset. */ readonly region: pulumi.Output<string>; /** * Create a VolumeTypeV3 resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args?: VolumeTypeV3Args, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering VolumeTypeV3 resources. */ export interface VolumeTypeV3State { /** * Human-readable description of the port. Changing * this updates the `description` of an existing volume type. */ description?: pulumi.Input<string>; /** * Key/Value pairs of metadata for the volume type. */ extraSpecs?: pulumi.Input<{ [key: string]: pulumi.Input<string>; }>; /** * Whether the volume type is public. Changing * this updates the `isPublic` of an existing volume type. */ isPublic?: pulumi.Input<boolean>; /** * Name of the volume type. Changing this * updates the `name` of an existing volume type. */ name?: pulumi.Input<string>; /** * The region in which to create the volume. If * omitted, the `region` argument of the provider is used. Changing this * creates a new quotaset. */ region?: pulumi.Input<string>; } /** * The set of arguments for constructing a VolumeTypeV3 resource. */ export interface VolumeTypeV3Args { /** * Human-readable description of the port. Changing * this updates the `description` of an existing volume type. */ description?: pulumi.Input<string>; /** * Key/Value pairs of metadata for the volume type. */ extraSpecs?: pulumi.Input<{ [key: string]: pulumi.Input<string>; }>; /** * Whether the volume type is public. Changing * this updates the `isPublic` of an existing volume type. */ isPublic?: pulumi.Input<boolean>; /** * Name of the volume type. Changing this * updates the `name` of an existing volume type. */ name?: pulumi.Input<string>; /** * The region in which to create the volume. If * omitted, the `region` argument of the provider is used. Changing this * creates a new quotaset. */ region?: pulumi.Input<string>; }