UNPKG

@pulumi/openstack

Version:

A Pulumi package for creating and managing OpenStack cloud resources.

155 lines (154 loc) 4.1 kB
import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Use this data source to get the details of a running server * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as openstack from "@pulumi/openstack"; * * const instance = openstack.compute.getInstanceV2({ * id: "2ba26dc6-a12d-4889-8f25-794ea5bf4453", * }); * ``` */ export declare function getInstanceV2(args: GetInstanceV2Args, opts?: pulumi.InvokeOptions): Promise<GetInstanceV2Result>; /** * A collection of arguments for invoking getInstanceV2. */ export interface GetInstanceV2Args { /** * The UUID of the instance */ id: string; /** * An array of maps, detailed below. */ networks?: inputs.compute.GetInstanceV2Network[]; /** * The region in which to obtain the V2 Compute client. * If omitted, the `region` argument of the provider is used. */ region?: string; /** * The user data added when the server was created. */ userData?: string; } /** * A collection of values returned by getInstanceV2. */ export interface GetInstanceV2Result { /** * The first IPv4 address assigned to this server. */ readonly accessIpV4: string; /** * The first IPv6 address assigned to this server. */ readonly accessIpV6: string; /** * The availability zone of this server. */ readonly availabilityZone: string; /** * The creation time of the instance. */ readonly created: string; /** * The flavor ID used to create the server. */ readonly flavorId: string; /** * The flavor name used to create the server. */ readonly flavorName: string; readonly id: string; /** * The image ID used to create the server. */ readonly imageId: string; /** * The image name used to create the server. */ readonly imageName: string; /** * The name of the key pair assigned to this server. */ readonly keyPair: string; /** * A set of key/value pairs made available to the server. */ readonly metadata: { [key: string]: string; }; /** * The name of the network */ readonly name: string; /** * An array of maps, detailed below. */ readonly networks: outputs.compute.GetInstanceV2Network[]; readonly powerState: string; /** * See Argument Reference above. */ readonly region: string; /** * An array of security group names associated with this server. */ readonly securityGroups: string[]; /** * A set of string tags assigned to this server. */ readonly tags: string[]; /** * The time when the instance was last updated. */ readonly updated: string; /** * The user data added when the server was created. */ readonly userData: string; } /** * Use this data source to get the details of a running server * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as openstack from "@pulumi/openstack"; * * const instance = openstack.compute.getInstanceV2({ * id: "2ba26dc6-a12d-4889-8f25-794ea5bf4453", * }); * ``` */ export declare function getInstanceV2Output(args: GetInstanceV2OutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetInstanceV2Result>; /** * A collection of arguments for invoking getInstanceV2. */ export interface GetInstanceV2OutputArgs { /** * The UUID of the instance */ id: pulumi.Input<string>; /** * An array of maps, detailed below. */ networks?: pulumi.Input<pulumi.Input<inputs.compute.GetInstanceV2NetworkArgs>[]>; /** * The region in which to obtain the V2 Compute client. * If omitted, the `region` argument of the provider is used. */ region?: pulumi.Input<string>; /** * The user data added when the server was created. */ userData?: pulumi.Input<string>; }