import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * Creates and manages Scaleway Compute Baremetal servers. For more information, see [the documentation](https://www.scaleway.com/en/developers/api/elastic-metal/). * * ## Example Usage * * ### Basic * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@ediri/scaleway"; * import * as scaleway from "@pulumi/scaleway"; * * const main = scaleway.getIamSshKey({ * name: "main", * }); * const base = new scaleway.BaremetalServer("base", { * zone: "fr-par-2", * offer: "GP-BM1-S", * os: "d17d6872-0412-45d9-a198-af82c34d3c5c", * sshKeyIds: [data.scaleway_account_ssh_key.main.id], * }); * ``` * * ### Without install config * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@ediri/scaleway"; * import * as scaleway from "@pulumi/scaleway"; * * const myOffer = scaleway.getBaremetalOffer({ * zone: "fr-par-2", * name: "EM-B112X-SSD", * }); * const base = new scaleway.BaremetalServer("base", { * zone: "fr-par-2", * offer: myOffer.then(myOffer => myOffer.offerId), * installConfigAfterward: true, * }); * ``` * * ## Import * * Baremetal servers can be imported using the `{zone}/{id}`, e.g. * * bash * * ```sh * $ pulumi import scaleway:index/baremetalServer:BaremetalServer web fr-par-2/11111111-1111-1111-1111-111111111111 * ``` */ export declare class BaremetalServer extends pulumi.CustomResource { /** * Get an existing BaremetalServer 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, state?: BaremetalServerState, opts?: pulumi.CustomResourceOptions): BaremetalServer; /** * Returns true if the given object is an instance of BaremetalServer. 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 BaremetalServer; /** * A description for the server. */ readonly description: pulumi.Output; /** * The domain of the server. */ readonly domain: pulumi.Output; /** * The hostname of the server. */ readonly hostname: pulumi.Output; /** * If True, this boolean allows to create a server without the install config if you want to provide it later. */ readonly installConfigAfterward: pulumi.Output; /** * (List of) The IPs of the server. */ readonly ips: pulumi.Output; /** * (List of) The IPv4 addresses of the server. */ readonly ipv4s: pulumi.Output; /** * (List of) The IPv6 addresses of the server. */ readonly ipv6s: pulumi.Output; /** * The name of the server. */ readonly name: pulumi.Output; /** * The offer name or UUID of the baremetal server. * Use [this endpoint](https://www.scaleway.com/en/developers/api/elastic-metal/#path-servers-get-a-specific-elastic-metal-server) to find the right offer. * * > **Important:** Updates to `offer` will recreate the server. */ readonly offer: pulumi.Output; /** * The ID of the offer. */ readonly offerId: pulumi.Output; /** * The name of the offer. */ readonly offerName: pulumi.Output; /** * The options to enable on the server. * > The `options` block supports: */ readonly options: pulumi.Output; /** * The organization ID the server is associated with. */ readonly organizationId: pulumi.Output; /** * The UUID of the os to install on the server. * Use [this endpoint](https://www.scaleway.com/en/developers/api/elastic-metal/#path-os-list-available-oses) to find the right OS ID. * > **Important:** Updates to `os` will reinstall the server. */ readonly os: pulumi.Output; /** * The name of the os. */ readonly osName: pulumi.Output; /** * The partitioning schema in json format */ readonly partitioning: pulumi.Output; /** * Password used for the installation. May be required depending on used os. */ readonly password: pulumi.Output; /** * The private networks to attach to the server. For more information, see [the documentation](https://www.scaleway.com/en/docs/compute/elastic-metal/how-to/use-private-networks/) */ readonly privateNetworks: pulumi.Output; /** * `projectId`) The ID of the project the server is associated with. */ readonly projectId: pulumi.Output; /** * If True, this boolean allows to reinstall the server on install config changes. * > **Important:** Updates to `sshKeyIds`, `user`, `password`, `serviceUser` or `servicePassword` will not take effect on the server, it requires to reinstall it. To do so please set 'reinstall_on_config_changes' argument to true. */ readonly reinstallOnConfigChanges: pulumi.Output; /** * Password used for the service to install. May be required depending on used os. */ readonly servicePassword: pulumi.Output; /** * User used for the service to install. */ readonly serviceUser: pulumi.Output; /** * List of SSH keys allowed to connect to the server. */ readonly sshKeyIds: pulumi.Output; /** * The tags associated with the server. */ readonly tags: pulumi.Output; /** * User used for the installation. */ readonly user: pulumi.Output; /** * `zone`) The zone in which the server should be created. */ readonly zone: pulumi.Output; /** * Create a BaremetalServer 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: BaremetalServerArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering BaremetalServer resources. */ export interface BaremetalServerState { /** * A description for the server. */ description?: pulumi.Input; /** * The domain of the server. */ domain?: pulumi.Input; /** * The hostname of the server. */ hostname?: pulumi.Input; /** * If True, this boolean allows to create a server without the install config if you want to provide it later. */ installConfigAfterward?: pulumi.Input; /** * (List of) The IPs of the server. */ ips?: pulumi.Input[]>; /** * (List of) The IPv4 addresses of the server. */ ipv4s?: pulumi.Input[]>; /** * (List of) The IPv6 addresses of the server. */ ipv6s?: pulumi.Input[]>; /** * The name of the server. */ name?: pulumi.Input; /** * The offer name or UUID of the baremetal server. * Use [this endpoint](https://www.scaleway.com/en/developers/api/elastic-metal/#path-servers-get-a-specific-elastic-metal-server) to find the right offer. * * > **Important:** Updates to `offer` will recreate the server. */ offer?: pulumi.Input; /** * The ID of the offer. */ offerId?: pulumi.Input; /** * The name of the offer. */ offerName?: pulumi.Input; /** * The options to enable on the server. * > The `options` block supports: */ options?: pulumi.Input[]>; /** * The organization ID the server is associated with. */ organizationId?: pulumi.Input; /** * The UUID of the os to install on the server. * Use [this endpoint](https://www.scaleway.com/en/developers/api/elastic-metal/#path-os-list-available-oses) to find the right OS ID. * > **Important:** Updates to `os` will reinstall the server. */ os?: pulumi.Input; /** * The name of the os. */ osName?: pulumi.Input; /** * The partitioning schema in json format */ partitioning?: pulumi.Input; /** * Password used for the installation. May be required depending on used os. */ password?: pulumi.Input; /** * The private networks to attach to the server. For more information, see [the documentation](https://www.scaleway.com/en/docs/compute/elastic-metal/how-to/use-private-networks/) */ privateNetworks?: pulumi.Input[]>; /** * `projectId`) The ID of the project the server is associated with. */ projectId?: pulumi.Input; /** * If True, this boolean allows to reinstall the server on install config changes. * > **Important:** Updates to `sshKeyIds`, `user`, `password`, `serviceUser` or `servicePassword` will not take effect on the server, it requires to reinstall it. To do so please set 'reinstall_on_config_changes' argument to true. */ reinstallOnConfigChanges?: pulumi.Input; /** * Password used for the service to install. May be required depending on used os. */ servicePassword?: pulumi.Input; /** * User used for the service to install. */ serviceUser?: pulumi.Input; /** * List of SSH keys allowed to connect to the server. */ sshKeyIds?: pulumi.Input[]>; /** * The tags associated with the server. */ tags?: pulumi.Input[]>; /** * User used for the installation. */ user?: pulumi.Input; /** * `zone`) The zone in which the server should be created. */ zone?: pulumi.Input; } /** * The set of arguments for constructing a BaremetalServer resource. */ export interface BaremetalServerArgs { /** * A description for the server. */ description?: pulumi.Input; /** * The hostname of the server. */ hostname?: pulumi.Input; /** * If True, this boolean allows to create a server without the install config if you want to provide it later. */ installConfigAfterward?: pulumi.Input; /** * The name of the server. */ name?: pulumi.Input; /** * The offer name or UUID of the baremetal server. * Use [this endpoint](https://www.scaleway.com/en/developers/api/elastic-metal/#path-servers-get-a-specific-elastic-metal-server) to find the right offer. * * > **Important:** Updates to `offer` will recreate the server. */ offer: pulumi.Input; /** * The options to enable on the server. * > The `options` block supports: */ options?: pulumi.Input[]>; /** * The UUID of the os to install on the server. * Use [this endpoint](https://www.scaleway.com/en/developers/api/elastic-metal/#path-os-list-available-oses) to find the right OS ID. * > **Important:** Updates to `os` will reinstall the server. */ os?: pulumi.Input; /** * The partitioning schema in json format */ partitioning?: pulumi.Input; /** * Password used for the installation. May be required depending on used os. */ password?: pulumi.Input; /** * The private networks to attach to the server. For more information, see [the documentation](https://www.scaleway.com/en/docs/compute/elastic-metal/how-to/use-private-networks/) */ privateNetworks?: pulumi.Input[]>; /** * `projectId`) The ID of the project the server is associated with. */ projectId?: pulumi.Input; /** * If True, this boolean allows to reinstall the server on install config changes. * > **Important:** Updates to `sshKeyIds`, `user`, `password`, `serviceUser` or `servicePassword` will not take effect on the server, it requires to reinstall it. To do so please set 'reinstall_on_config_changes' argument to true. */ reinstallOnConfigChanges?: pulumi.Input; /** * Password used for the service to install. May be required depending on used os. */ servicePassword?: pulumi.Input; /** * User used for the service to install. */ serviceUser?: pulumi.Input; /** * List of SSH keys allowed to connect to the server. */ sshKeyIds?: pulumi.Input[]>; /** * The tags associated with the server. */ tags?: pulumi.Input[]>; /** * User used for the installation. */ user?: pulumi.Input; /** * `zone`) The zone in which the server should be created. */ zone?: pulumi.Input; }