UNPKG

@pulumi/openstack

Version:

A Pulumi package for creating and managing OpenStack cloud resources.

107 lines (106 loc) 2.8 kB
import * as pulumi from "@pulumi/pulumi"; /** * Use this data source to get information about hypervisors * by hostname. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as openstack from "@pulumi/openstack"; * * const host01 = openstack.compute.getHypervisorV2({ * hostname: "host01", * }); * ``` */ export declare function getHypervisorV2(args?: GetHypervisorV2Args, opts?: pulumi.InvokeOptions): Promise<GetHypervisorV2Result>; /** * A collection of arguments for invoking getHypervisorV2. */ export interface GetHypervisorV2Args { /** * The hostname of the hypervisor. */ hostname?: string; /** * The region in which to obtain the V2 Compute client. * If omitted, the `region` argument of the provider is used. */ region?: string; } /** * A collection of values returned by getHypervisorV2. */ export interface GetHypervisorV2Result { /** * The amount in GigaBytes of local storage the hypervisor can provide */ readonly disk: number; /** * The IP address of the Hypervisor */ readonly hostIp: string; /** * See Argument Reference above. */ readonly hostname: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * The number in MegaBytes of memory the hypervisor can provide */ readonly memory: number; /** * See Argument Reference above. */ readonly region: string; /** * The state of the hypervisor (`up` or `down`) */ readonly state: string; /** * The status of the hypervisor (`enabled` or `disabled`) */ readonly status: string; /** * The type of the hypervisor (example: `QEMU`) */ readonly type: string; /** * The number of virtual CPUs the hypervisor can provide */ readonly vcpus: number; } /** * Use this data source to get information about hypervisors * by hostname. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as openstack from "@pulumi/openstack"; * * const host01 = openstack.compute.getHypervisorV2({ * hostname: "host01", * }); * ``` */ export declare function getHypervisorV2Output(args?: GetHypervisorV2OutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetHypervisorV2Result>; /** * A collection of arguments for invoking getHypervisorV2. */ export interface GetHypervisorV2OutputArgs { /** * The hostname of the hypervisor. */ hostname?: pulumi.Input<string>; /** * The region in which to obtain the V2 Compute client. * If omitted, the `region` argument of the provider is used. */ region?: pulumi.Input<string>; }