import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * **This datasource uses a Beta API** Use this data source to get the instance of a public cloud project. * * ## Example Usage * * To get information of an instance: * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as ovh from "@ovhcloud/pulumi-ovh"; * * const instance = ovh.CloudProject.getInstance({ * serviceName: "YYYY", * region: "XXXX", * instanceId: "ZZZZZ", * }); * ``` */ export declare function getInstance(args: GetInstanceArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getInstance. */ export interface GetInstanceArgs { /** * Instance id */ instanceId: string; /** * Instance region */ region: string; /** * The id of the public cloud project. If omitted, the `OVH_CLOUD_PROJECT_SERVICE` environment variable is used */ serviceName: string; } /** * A collection of values returned by getInstance. */ export interface GetInstanceResult { /** * Instance IP addresses */ readonly addresses: outputs.CloudProject.GetInstanceAddress[]; /** * Volumes attached to the instance */ readonly attachedVolumes: outputs.CloudProject.GetInstanceAttachedVolume[]; /** * Availability zone of the instance */ readonly availabilityZone: string; /** * Flavor id */ readonly flavorId: string; /** * Flavor name */ readonly flavorName: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * Image id */ readonly imageId: string; readonly instanceId: string; /** * Instance name */ readonly name: string; readonly region: string; readonly serviceName: string; /** * SSH Keypair */ readonly sshKey: string; /** * Instance status */ readonly status: string; /** * Instance task state */ readonly taskState: string; } /** * **This datasource uses a Beta API** Use this data source to get the instance of a public cloud project. * * ## Example Usage * * To get information of an instance: * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as ovh from "@ovhcloud/pulumi-ovh"; * * const instance = ovh.CloudProject.getInstance({ * serviceName: "YYYY", * region: "XXXX", * instanceId: "ZZZZZ", * }); * ``` */ export declare function getInstanceOutput(args: GetInstanceOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getInstance. */ export interface GetInstanceOutputArgs { /** * Instance id */ instanceId: pulumi.Input; /** * Instance region */ region: pulumi.Input; /** * The id of the public cloud project. If omitted, the `OVH_CLOUD_PROJECT_SERVICE` environment variable is used */ serviceName: pulumi.Input; }