import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * ## Import * * Dedicated servers can be imported using the `service_name`. Using the following configuration: * * terraform * * import { * * to = ovh_dedicated_server.server * * id = "" * * } * * You can then run: * * bash * * pulumi preview -generate-config-out=dedicated.tf * * pulumi up * * The file `dedicated.tf` will then contain the imported resource's configuration, that can be copied next to the `import` block above. See https://developer.hashicorp.com/terraform/language/import/generating-configuration for more details. */ export declare class Server extends pulumi.CustomResource { /** * Get an existing Server 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?: ServerState, opts?: pulumi.CustomResourceOptions): Server; /** * Returns true if the given object is an instance of Server. 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 Server; /** * Dedicated AZ localisation */ readonly availabilityZone: pulumi.Output; /** * Boot id of the server */ readonly bootId: pulumi.Output; /** * Boot script of the server */ readonly bootScript: pulumi.Output; /** * Dedicated server commercial range */ readonly commercialRange: pulumi.Output; /** * OS reinstallation customizations */ readonly customizations: pulumi.Output; /** * Dedicated datacenter localisation (bhs1,bhs2,...) */ readonly datacenter: pulumi.Output; /** * Resource display name */ readonly displayName: pulumi.Output; /** * Path of the EFI bootloader */ readonly efiBootloaderPath: pulumi.Output; /** * IAM resource information */ readonly iam: pulumi.Output; /** * Dedicated server ip (IPv4) */ readonly ip: pulumi.Output; /** * Whether we should avoid terminating the service when destroying the resource */ readonly keepServiceAfterDestroy: pulumi.Output; /** * Link speed of the server */ readonly linkSpeed: pulumi.Output; /** * Icmp monitoring state */ readonly monitoring: pulumi.Output; /** * Dedicated server name */ readonly name: pulumi.Output; readonly newUpgradeSystem: pulumi.Output; /** * Prevent datacenter intervention */ readonly noIntervention: pulumi.Output; /** * Details about an Order */ readonly order: pulumi.Output; /** * Operating system */ readonly os: pulumi.Output; /** * OVH subsidiaries */ readonly ovhSubsidiary: pulumi.Output; readonly planOptions: pulumi.Output; readonly plans: pulumi.Output; /** * Power state of the server (poweron, poweroff) */ readonly powerState: pulumi.Output; /** * Defines whether the server should not be reinstalled after creating the resource */ readonly preventInstallOnCreate: pulumi.Output; /** * Defines whether the server should not be reinstalled when importing the resource */ readonly preventInstallOnImport: pulumi.Output; /** * Does this server have professional use option */ readonly professionalUse: pulumi.Output; /** * Arbitrary properties to pass to cloud-init's config drive datasource * * @deprecated Attribute 'properties' is deprecated and has no effect */ readonly properties: pulumi.Output<{ [key: string]: string; } | undefined>; /** * Rack id of the server */ readonly rack: pulumi.Output; /** * Range of the dedicated server to order. Can be `standard` or `eco`. Defaults to `standard` */ readonly range: pulumi.Output; /** * Dedicated region localisation */ readonly region: pulumi.Output; /** * Rescue mail of the server */ readonly rescueMail: pulumi.Output; /** * Public SSH Key used in the rescue mode */ readonly rescueSshKey: pulumi.Output; /** * Dedicated server reverse */ readonly reverse: pulumi.Output; /** * Root device of the server */ readonly rootDevice: pulumi.Output; /** * Actions to run before destroying the resource */ readonly runActionsBeforeDestroys: pulumi.Output; /** * Server id */ readonly serverId: pulumi.Output; /** * The serviceName of your dedicated server */ readonly serviceName: pulumi.Output; /** * All states a Dedicated can be in (error, hacked, hackedBlocked, ok) */ readonly state: pulumi.Output; /** * OS reinstallation storage configurations */ readonly storages: pulumi.Output; /** * Dedicated server support level (critical, fastpath, gs, pro) */ readonly supportLevel: pulumi.Output; /** * Create a Server 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?: ServerArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Server resources. */ export interface ServerState { /** * Dedicated AZ localisation */ availabilityZone?: pulumi.Input; /** * Boot id of the server */ bootId?: pulumi.Input; /** * Boot script of the server */ bootScript?: pulumi.Input; /** * Dedicated server commercial range */ commercialRange?: pulumi.Input; /** * OS reinstallation customizations */ customizations?: pulumi.Input; /** * Dedicated datacenter localisation (bhs1,bhs2,...) */ datacenter?: pulumi.Input; /** * Resource display name */ displayName?: pulumi.Input; /** * Path of the EFI bootloader */ efiBootloaderPath?: pulumi.Input; /** * IAM resource information */ iam?: pulumi.Input; /** * Dedicated server ip (IPv4) */ ip?: pulumi.Input; /** * Whether we should avoid terminating the service when destroying the resource */ keepServiceAfterDestroy?: pulumi.Input; /** * Link speed of the server */ linkSpeed?: pulumi.Input; /** * Icmp monitoring state */ monitoring?: pulumi.Input; /** * Dedicated server name */ name?: pulumi.Input; newUpgradeSystem?: pulumi.Input; /** * Prevent datacenter intervention */ noIntervention?: pulumi.Input; /** * Details about an Order */ order?: pulumi.Input; /** * Operating system */ os?: pulumi.Input; /** * OVH subsidiaries */ ovhSubsidiary?: pulumi.Input; planOptions?: pulumi.Input[]>; plans?: pulumi.Input[]>; /** * Power state of the server (poweron, poweroff) */ powerState?: pulumi.Input; /** * Defines whether the server should not be reinstalled after creating the resource */ preventInstallOnCreate?: pulumi.Input; /** * Defines whether the server should not be reinstalled when importing the resource */ preventInstallOnImport?: pulumi.Input; /** * Does this server have professional use option */ professionalUse?: pulumi.Input; /** * Arbitrary properties to pass to cloud-init's config drive datasource * * @deprecated Attribute 'properties' is deprecated and has no effect */ properties?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * Rack id of the server */ rack?: pulumi.Input; /** * Range of the dedicated server to order. Can be `standard` or `eco`. Defaults to `standard` */ range?: pulumi.Input; /** * Dedicated region localisation */ region?: pulumi.Input; /** * Rescue mail of the server */ rescueMail?: pulumi.Input; /** * Public SSH Key used in the rescue mode */ rescueSshKey?: pulumi.Input; /** * Dedicated server reverse */ reverse?: pulumi.Input; /** * Root device of the server */ rootDevice?: pulumi.Input; /** * Actions to run before destroying the resource */ runActionsBeforeDestroys?: pulumi.Input[]>; /** * Server id */ serverId?: pulumi.Input; /** * The serviceName of your dedicated server */ serviceName?: pulumi.Input; /** * All states a Dedicated can be in (error, hacked, hackedBlocked, ok) */ state?: pulumi.Input; /** * OS reinstallation storage configurations */ storages?: pulumi.Input[]>; /** * Dedicated server support level (critical, fastpath, gs, pro) */ supportLevel?: pulumi.Input; } /** * The set of arguments for constructing a Server resource. */ export interface ServerArgs { /** * Boot id of the server */ bootId?: pulumi.Input; /** * Boot script of the server */ bootScript?: pulumi.Input; /** * OS reinstallation customizations */ customizations?: pulumi.Input; /** * Resource display name */ displayName?: pulumi.Input; /** * Path of the EFI bootloader */ efiBootloaderPath?: pulumi.Input; /** * Whether we should avoid terminating the service when destroying the resource */ keepServiceAfterDestroy?: pulumi.Input; /** * Icmp monitoring state */ monitoring?: pulumi.Input; /** * Prevent datacenter intervention */ noIntervention?: pulumi.Input; /** * Operating system */ os?: pulumi.Input; /** * OVH subsidiaries */ ovhSubsidiary?: pulumi.Input; planOptions?: pulumi.Input[]>; plans?: pulumi.Input[]>; /** * Defines whether the server should not be reinstalled after creating the resource */ preventInstallOnCreate?: pulumi.Input; /** * Defines whether the server should not be reinstalled when importing the resource */ preventInstallOnImport?: pulumi.Input; /** * Arbitrary properties to pass to cloud-init's config drive datasource * * @deprecated Attribute 'properties' is deprecated and has no effect */ properties?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * Range of the dedicated server to order. Can be `standard` or `eco`. Defaults to `standard` */ range?: pulumi.Input; /** * Rescue mail of the server */ rescueMail?: pulumi.Input; /** * Public SSH Key used in the rescue mode */ rescueSshKey?: pulumi.Input; /** * Root device of the server */ rootDevice?: pulumi.Input; /** * Actions to run before destroying the resource */ runActionsBeforeDestroys?: pulumi.Input[]>; /** * The serviceName of your dedicated server */ serviceName?: pulumi.Input; /** * All states a Dedicated can be in (error, hacked, hackedBlocked, ok) */ state?: pulumi.Input; /** * OS reinstallation storage configurations */ storages?: pulumi.Input[]>; }