UNPKG

@pulumiverse/scaleway

Version:

A Pulumi package for creating and managing Scaleway cloud resources.

128 lines 4.45 kB
import * as pulumi from "@pulumi/pulumi"; import * as outputs from "./types/output"; /** * Gets information about a baremetal server. * For more information, see the [API documentation](https://developers.scaleway.com/en/products/baremetal/api). * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@pulumiverse/scaleway"; * * // Get info by server name * const byName = scaleway.elasticmetal.getServer({ * name: "foobar", * zone: "fr-par-2", * }); * // Get info by server id * const byId = scaleway.elasticmetal.getServer({ * serverId: "11111111-1111-1111-1111-111111111111", * }); * ``` */ /** @deprecated scaleway.index/getbaremetalserver.getBaremetalServer has been deprecated in favor of scaleway.elasticmetal/getserver.getServer */ export declare function getBaremetalServer(args?: GetBaremetalServerArgs, opts?: pulumi.InvokeOptions): Promise<GetBaremetalServerResult>; /** * A collection of arguments for invoking getBaremetalServer. */ export interface GetBaremetalServerArgs { /** * The server name. Only one of `name` and `serverId` should be specified. */ name?: string; /** * The ID of the project the baremetal server is associated with. */ projectId?: string; serverId?: string; /** * `zone`) The zone in which the server exists. */ zone?: string; } /** * A collection of values returned by getBaremetalServer. */ export interface GetBaremetalServerResult { readonly cloudInit: string; readonly description: string; readonly domain: string; readonly hostname: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly installConfigAfterward: boolean; readonly ips: outputs.GetBaremetalServerIp[]; readonly ipv4s: outputs.GetBaremetalServerIpv4[]; readonly ipv6s: outputs.GetBaremetalServerIpv6[]; readonly name?: string; readonly offer: string; readonly offerId: string; readonly offerName: string; readonly options: outputs.GetBaremetalServerOption[]; readonly organizationId: string; readonly os: string; readonly osName: string; readonly partitioning: string; readonly password: string; readonly passwordWo: string; readonly passwordWoVersion: number; readonly privateIps: outputs.GetBaremetalServerPrivateIp[]; readonly privateNetworks: outputs.GetBaremetalServerPrivateNetwork[]; readonly projectId?: string; readonly protected: boolean; readonly reinstallOnConfigChanges: boolean; readonly serverId?: string; readonly servicePassword: string; readonly servicePasswordWo: string; readonly servicePasswordWoVersion: number; readonly serviceUser: string; readonly sshKeyIds: string[]; readonly tags: string[]; readonly user: string; readonly zone?: string; } /** * Gets information about a baremetal server. * For more information, see the [API documentation](https://developers.scaleway.com/en/products/baremetal/api). * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@pulumiverse/scaleway"; * * // Get info by server name * const byName = scaleway.elasticmetal.getServer({ * name: "foobar", * zone: "fr-par-2", * }); * // Get info by server id * const byId = scaleway.elasticmetal.getServer({ * serverId: "11111111-1111-1111-1111-111111111111", * }); * ``` */ /** @deprecated scaleway.index/getbaremetalserver.getBaremetalServer has been deprecated in favor of scaleway.elasticmetal/getserver.getServer */ export declare function getBaremetalServerOutput(args?: GetBaremetalServerOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetBaremetalServerResult>; /** * A collection of arguments for invoking getBaremetalServer. */ export interface GetBaremetalServerOutputArgs { /** * The server name. Only one of `name` and `serverId` should be specified. */ name?: pulumi.Input<string | undefined>; /** * The ID of the project the baremetal server is associated with. */ projectId?: pulumi.Input<string | undefined>; serverId?: pulumi.Input<string | undefined>; /** * `zone`) The zone in which the server exists. */ zone?: pulumi.Input<string | undefined>; } //# sourceMappingURL=getBaremetalServer.d.ts.map