1. Packages
  2. OVH
  3. API Docs
  4. Dedicated
  5. ServerInstallTask
OVHCloud v0.42.0 published on Tuesday, Apr 9, 2024 by OVHcloud

ovh.Dedicated.ServerInstallTask

Explore with Pulumi AI

ovh logo
OVHCloud v0.42.0 published on Tuesday, Apr 9, 2024 by OVHcloud

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ovh from "@ovhcloud/pulumi-ovh";
    import * as ovh from "@pulumi/ovh";
    
    const rescue = ovh.Dedicated.getServerBoots({
        serviceName: "nsxxxxxxx.ip-xx-xx-xx.eu",
        bootType: "rescue",
    });
    const key = new ovh.me.SshKey("key", {
        keyName: "mykey",
        key: "ssh-ed25519 AAAAC3...",
    });
    const debian = new ovh.me.InstallationTemplate("debian", {
        baseTemplateName: "debian11_64",
        templateName: "mydebian11",
        defaultLanguage: "en",
        customization: {
            sshKeyName: key.keyName,
        },
    });
    const serverInstall = new ovh.dedicated.ServerInstallTask("serverInstall", {
        serviceName: "nsxxxxxxx.ip-xx-xx-xx.eu",
        templateName: debian.templateName,
        bootidOnDestroy: rescue.then(rescue => rescue.results?.[0]),
        details: {
            customHostname: "mytest",
        },
    });
    
    import pulumi
    import pulumi_ovh as ovh
    
    rescue = ovh.Dedicated.get_server_boots(service_name="nsxxxxxxx.ip-xx-xx-xx.eu",
        boot_type="rescue")
    key = ovh.me.SshKey("key",
        key_name="mykey",
        key="ssh-ed25519 AAAAC3...")
    debian = ovh.me.InstallationTemplate("debian",
        base_template_name="debian11_64",
        template_name="mydebian11",
        default_language="en",
        customization=ovh.me.InstallationTemplateCustomizationArgs(
            ssh_key_name=key.key_name,
        ))
    server_install = ovh.dedicated.ServerInstallTask("serverInstall",
        service_name="nsxxxxxxx.ip-xx-xx-xx.eu",
        template_name=debian.template_name,
        bootid_on_destroy=rescue.results[0],
        details=ovh.dedicated.ServerInstallTaskDetailsArgs(
            custom_hostname="mytest",
        ))
    
    package main
    
    import (
    	"github.com/ovh/pulumi-ovh/sdk/go/ovh/Dedicated"
    	"github.com/ovh/pulumi-ovh/sdk/go/ovh/Me"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		rescue, err := Dedicated.GetServerBoots(ctx, &dedicated.GetServerBootsArgs{
    			ServiceName: "nsxxxxxxx.ip-xx-xx-xx.eu",
    			BootType:    pulumi.StringRef("rescue"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		key, err := Me.NewSshKey(ctx, "key", &Me.SshKeyArgs{
    			KeyName: pulumi.String("mykey"),
    			Key:     pulumi.String("ssh-ed25519 AAAAC3..."),
    		})
    		if err != nil {
    			return err
    		}
    		debian, err := Me.NewInstallationTemplate(ctx, "debian", &Me.InstallationTemplateArgs{
    			BaseTemplateName: pulumi.String("debian11_64"),
    			TemplateName:     pulumi.String("mydebian11"),
    			DefaultLanguage:  pulumi.String("en"),
    			Customization: &me.InstallationTemplateCustomizationArgs{
    				SshKeyName: key.KeyName,
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = Dedicated.NewServerInstallTask(ctx, "serverInstall", &Dedicated.ServerInstallTaskArgs{
    			ServiceName:     pulumi.String("nsxxxxxxx.ip-xx-xx-xx.eu"),
    			TemplateName:    debian.TemplateName,
    			BootidOnDestroy: pulumi.Int(rescue.Results[0]),
    			Details: &dedicated.ServerInstallTaskDetailsArgs{
    				CustomHostname: pulumi.String("mytest"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Ovh = Pulumi.Ovh;
    
    return await Deployment.RunAsync(() => 
    {
        var rescue = Ovh.Dedicated.GetServerBoots.Invoke(new()
        {
            ServiceName = "nsxxxxxxx.ip-xx-xx-xx.eu",
            BootType = "rescue",
        });
    
        var key = new Ovh.Me.SshKey("key", new()
        {
            KeyName = "mykey",
            Key = "ssh-ed25519 AAAAC3...",
        });
    
        var debian = new Ovh.Me.InstallationTemplate("debian", new()
        {
            BaseTemplateName = "debian11_64",
            TemplateName = "mydebian11",
            DefaultLanguage = "en",
            Customization = new Ovh.Me.Inputs.InstallationTemplateCustomizationArgs
            {
                SshKeyName = key.KeyName,
            },
        });
    
        var serverInstall = new Ovh.Dedicated.ServerInstallTask("serverInstall", new()
        {
            ServiceName = "nsxxxxxxx.ip-xx-xx-xx.eu",
            TemplateName = debian.TemplateName,
            BootidOnDestroy = rescue.Apply(getServerBootsResult => getServerBootsResult.Results[0]),
            Details = new Ovh.Dedicated.Inputs.ServerInstallTaskDetailsArgs
            {
                CustomHostname = "mytest",
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ovh.Dedicated.DedicatedFunctions;
    import com.pulumi.ovh.Dedicated.inputs.GetServerBootsArgs;
    import com.pulumi.ovh.Me.SshKey;
    import com.pulumi.ovh.Me.SshKeyArgs;
    import com.pulumi.ovh.Me.InstallationTemplate;
    import com.pulumi.ovh.Me.InstallationTemplateArgs;
    import com.pulumi.ovh.Me.inputs.InstallationTemplateCustomizationArgs;
    import com.pulumi.ovh.Dedicated.ServerInstallTask;
    import com.pulumi.ovh.Dedicated.ServerInstallTaskArgs;
    import com.pulumi.ovh.Dedicated.inputs.ServerInstallTaskDetailsArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var rescue = DedicatedFunctions.getServerBoots(GetServerBootsArgs.builder()
                .serviceName("nsxxxxxxx.ip-xx-xx-xx.eu")
                .bootType("rescue")
                .build());
    
            var key = new SshKey("key", SshKeyArgs.builder()        
                .keyName("mykey")
                .key("ssh-ed25519 AAAAC3...")
                .build());
    
            var debian = new InstallationTemplate("debian", InstallationTemplateArgs.builder()        
                .baseTemplateName("debian11_64")
                .templateName("mydebian11")
                .defaultLanguage("en")
                .customization(InstallationTemplateCustomizationArgs.builder()
                    .sshKeyName(key.keyName())
                    .build())
                .build());
    
            var serverInstall = new ServerInstallTask("serverInstall", ServerInstallTaskArgs.builder()        
                .serviceName("nsxxxxxxx.ip-xx-xx-xx.eu")
                .templateName(debian.templateName())
                .bootidOnDestroy(rescue.applyValue(getServerBootsResult -> getServerBootsResult.results()[0]))
                .details(ServerInstallTaskDetailsArgs.builder()
                    .customHostname("mytest")
                    .build())
                .build());
    
        }
    }
    
    resources:
      key:
        type: ovh:Me:SshKey
        properties:
          keyName: mykey
          key: ssh-ed25519 AAAAC3...
      debian:
        type: ovh:Me:InstallationTemplate
        properties:
          baseTemplateName: debian11_64
          templateName: mydebian11
          defaultLanguage: en
          customization:
            sshKeyName: ${key.keyName}
      serverInstall:
        type: ovh:Dedicated:ServerInstallTask
        properties:
          serviceName: nsxxxxxxx.ip-xx-xx-xx.eu
          templateName: ${debian.templateName}
          bootidOnDestroy: ${rescue.results[0]}
          details:
            customHostname: mytest
    variables:
      rescue:
        fn::invoke:
          Function: ovh:Dedicated:getServerBoots
          Arguments:
            serviceName: nsxxxxxxx.ip-xx-xx-xx.eu
            bootType: rescue
    

    Create ServerInstallTask Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new ServerInstallTask(name: string, args: ServerInstallTaskArgs, opts?: CustomResourceOptions);
    @overload
    def ServerInstallTask(resource_name: str,
                          args: ServerInstallTaskArgs,
                          opts: Optional[ResourceOptions] = None)
    
    @overload
    def ServerInstallTask(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          service_name: Optional[str] = None,
                          template_name: Optional[str] = None,
                          bootid_on_destroy: Optional[int] = None,
                          details: Optional[_dedicated.ServerInstallTaskDetailsArgs] = None,
                          partition_scheme_name: Optional[str] = None)
    func NewServerInstallTask(ctx *Context, name string, args ServerInstallTaskArgs, opts ...ResourceOption) (*ServerInstallTask, error)
    public ServerInstallTask(string name, ServerInstallTaskArgs args, CustomResourceOptions? opts = null)
    public ServerInstallTask(String name, ServerInstallTaskArgs args)
    public ServerInstallTask(String name, ServerInstallTaskArgs args, CustomResourceOptions options)
    
    type: ovh:Dedicated:ServerInstallTask
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args ServerInstallTaskArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args ServerInstallTaskArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args ServerInstallTaskArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ServerInstallTaskArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ServerInstallTaskArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

    The following reference example uses placeholder values for all input properties.

    var serverInstallTaskResource = new Ovh.Dedicated.ServerInstallTask("serverInstallTaskResource", new()
    {
        ServiceName = "string",
        TemplateName = "string",
        BootidOnDestroy = 0,
        Details = new Ovh.Dedicated.Inputs.ServerInstallTaskDetailsArgs
        {
            CustomHostname = "string",
            DiskGroupId = 0,
            InstallSqlServer = false,
            Language = "string",
            NoRaid = false,
            PostInstallationScriptLink = "string",
            PostInstallationScriptReturn = "string",
            SoftRaidDevices = 0,
            SshKeyName = "string",
            UseSpla = false,
        },
        PartitionSchemeName = "string",
    });
    
    example, err := Dedicated.NewServerInstallTask(ctx, "serverInstallTaskResource", &Dedicated.ServerInstallTaskArgs{
    	ServiceName:     pulumi.String("string"),
    	TemplateName:    pulumi.String("string"),
    	BootidOnDestroy: pulumi.Int(0),
    	Details: &dedicated.ServerInstallTaskDetailsArgs{
    		CustomHostname:               pulumi.String("string"),
    		DiskGroupId:                  pulumi.Int(0),
    		InstallSqlServer:             pulumi.Bool(false),
    		Language:                     pulumi.String("string"),
    		NoRaid:                       pulumi.Bool(false),
    		PostInstallationScriptLink:   pulumi.String("string"),
    		PostInstallationScriptReturn: pulumi.String("string"),
    		SoftRaidDevices:              pulumi.Int(0),
    		SshKeyName:                   pulumi.String("string"),
    		UseSpla:                      pulumi.Bool(false),
    	},
    	PartitionSchemeName: pulumi.String("string"),
    })
    
    var serverInstallTaskResource = new ServerInstallTask("serverInstallTaskResource", ServerInstallTaskArgs.builder()        
        .serviceName("string")
        .templateName("string")
        .bootidOnDestroy(0)
        .details(ServerInstallTaskDetailsArgs.builder()
            .customHostname("string")
            .diskGroupId(0)
            .installSqlServer(false)
            .language("string")
            .noRaid(false)
            .postInstallationScriptLink("string")
            .postInstallationScriptReturn("string")
            .softRaidDevices(0)
            .sshKeyName("string")
            .useSpla(false)
            .build())
        .partitionSchemeName("string")
        .build());
    
    server_install_task_resource = ovh.dedicated.ServerInstallTask("serverInstallTaskResource",
        service_name="string",
        template_name="string",
        bootid_on_destroy=0,
        details=ovh.dedicated.ServerInstallTaskDetailsArgs(
            custom_hostname="string",
            disk_group_id=0,
            install_sql_server=False,
            language="string",
            no_raid=False,
            post_installation_script_link="string",
            post_installation_script_return="string",
            soft_raid_devices=0,
            ssh_key_name="string",
            use_spla=False,
        ),
        partition_scheme_name="string")
    
    const serverInstallTaskResource = new ovh.dedicated.ServerInstallTask("serverInstallTaskResource", {
        serviceName: "string",
        templateName: "string",
        bootidOnDestroy: 0,
        details: {
            customHostname: "string",
            diskGroupId: 0,
            installSqlServer: false,
            language: "string",
            noRaid: false,
            postInstallationScriptLink: "string",
            postInstallationScriptReturn: "string",
            softRaidDevices: 0,
            sshKeyName: "string",
            useSpla: false,
        },
        partitionSchemeName: "string",
    });
    
    type: ovh:Dedicated:ServerInstallTask
    properties:
        bootidOnDestroy: 0
        details:
            customHostname: string
            diskGroupId: 0
            installSqlServer: false
            language: string
            noRaid: false
            postInstallationScriptLink: string
            postInstallationScriptReturn: string
            softRaidDevices: 0
            sshKeyName: string
            useSpla: false
        partitionSchemeName: string
        serviceName: string
        templateName: string
    

    ServerInstallTask Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The ServerInstallTask resource accepts the following input properties:

    ServiceName string
    The service_name of your dedicated server.
    TemplateName string
    Template name.
    BootidOnDestroy int
    If set, reboot the server on the specified boot id during destroy phase.
    Details ServerInstallTaskDetails
    see details block below.
    PartitionSchemeName string
    Partition scheme name.
    ServiceName string
    The service_name of your dedicated server.
    TemplateName string
    Template name.
    BootidOnDestroy int
    If set, reboot the server on the specified boot id during destroy phase.
    Details ServerInstallTaskDetailsArgs
    see details block below.
    PartitionSchemeName string
    Partition scheme name.
    serviceName String
    The service_name of your dedicated server.
    templateName String
    Template name.
    bootidOnDestroy Integer
    If set, reboot the server on the specified boot id during destroy phase.
    details ServerInstallTaskDetails
    see details block below.
    partitionSchemeName String
    Partition scheme name.
    serviceName string
    The service_name of your dedicated server.
    templateName string
    Template name.
    bootidOnDestroy number
    If set, reboot the server on the specified boot id during destroy phase.
    details ServerInstallTaskDetails
    see details block below.
    partitionSchemeName string
    Partition scheme name.
    service_name str
    The service_name of your dedicated server.
    template_name str
    Template name.
    bootid_on_destroy int
    If set, reboot the server on the specified boot id during destroy phase.
    details dedicated.ServerInstallTaskDetailsArgs
    see details block below.
    partition_scheme_name str
    Partition scheme name.
    serviceName String
    The service_name of your dedicated server.
    templateName String
    Template name.
    bootidOnDestroy Number
    If set, reboot the server on the specified boot id during destroy phase.
    details Property Map
    see details block below.
    partitionSchemeName String
    Partition scheme name.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ServerInstallTask resource produces the following output properties:

    Comment string
    Details of this task. (should be Install asked)
    DoneDate string
    Completion date in RFC3339 format.
    Function string
    Function name (should be hardInstall).
    Id string
    The provider-assigned unique ID for this managed resource.
    LastUpdate string
    Last update in RFC3339 format.
    StartDate string
    Task creation date in RFC3339 format.
    Status string
    Task status (should be done)
    Comment string
    Details of this task. (should be Install asked)
    DoneDate string
    Completion date in RFC3339 format.
    Function string
    Function name (should be hardInstall).
    Id string
    The provider-assigned unique ID for this managed resource.
    LastUpdate string
    Last update in RFC3339 format.
    StartDate string
    Task creation date in RFC3339 format.
    Status string
    Task status (should be done)
    comment String
    Details of this task. (should be Install asked)
    doneDate String
    Completion date in RFC3339 format.
    function String
    Function name (should be hardInstall).
    id String
    The provider-assigned unique ID for this managed resource.
    lastUpdate String
    Last update in RFC3339 format.
    startDate String
    Task creation date in RFC3339 format.
    status String
    Task status (should be done)
    comment string
    Details of this task. (should be Install asked)
    doneDate string
    Completion date in RFC3339 format.
    function string
    Function name (should be hardInstall).
    id string
    The provider-assigned unique ID for this managed resource.
    lastUpdate string
    Last update in RFC3339 format.
    startDate string
    Task creation date in RFC3339 format.
    status string
    Task status (should be done)
    comment str
    Details of this task. (should be Install asked)
    done_date str
    Completion date in RFC3339 format.
    function str
    Function name (should be hardInstall).
    id str
    The provider-assigned unique ID for this managed resource.
    last_update str
    Last update in RFC3339 format.
    start_date str
    Task creation date in RFC3339 format.
    status str
    Task status (should be done)
    comment String
    Details of this task. (should be Install asked)
    doneDate String
    Completion date in RFC3339 format.
    function String
    Function name (should be hardInstall).
    id String
    The provider-assigned unique ID for this managed resource.
    lastUpdate String
    Last update in RFC3339 format.
    startDate String
    Task creation date in RFC3339 format.
    status String
    Task status (should be done)

    Look up Existing ServerInstallTask Resource

    Get an existing ServerInstallTask resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: ServerInstallTaskState, opts?: CustomResourceOptions): ServerInstallTask
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            bootid_on_destroy: Optional[int] = None,
            comment: Optional[str] = None,
            details: Optional[_dedicated.ServerInstallTaskDetailsArgs] = None,
            done_date: Optional[str] = None,
            function: Optional[str] = None,
            last_update: Optional[str] = None,
            partition_scheme_name: Optional[str] = None,
            service_name: Optional[str] = None,
            start_date: Optional[str] = None,
            status: Optional[str] = None,
            template_name: Optional[str] = None) -> ServerInstallTask
    func GetServerInstallTask(ctx *Context, name string, id IDInput, state *ServerInstallTaskState, opts ...ResourceOption) (*ServerInstallTask, error)
    public static ServerInstallTask Get(string name, Input<string> id, ServerInstallTaskState? state, CustomResourceOptions? opts = null)
    public static ServerInstallTask get(String name, Output<String> id, ServerInstallTaskState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    BootidOnDestroy int
    If set, reboot the server on the specified boot id during destroy phase.
    Comment string
    Details of this task. (should be Install asked)
    Details ServerInstallTaskDetails
    see details block below.
    DoneDate string
    Completion date in RFC3339 format.
    Function string
    Function name (should be hardInstall).
    LastUpdate string
    Last update in RFC3339 format.
    PartitionSchemeName string
    Partition scheme name.
    ServiceName string
    The service_name of your dedicated server.
    StartDate string
    Task creation date in RFC3339 format.
    Status string
    Task status (should be done)
    TemplateName string
    Template name.
    BootidOnDestroy int
    If set, reboot the server on the specified boot id during destroy phase.
    Comment string
    Details of this task. (should be Install asked)
    Details ServerInstallTaskDetailsArgs
    see details block below.
    DoneDate string
    Completion date in RFC3339 format.
    Function string
    Function name (should be hardInstall).
    LastUpdate string
    Last update in RFC3339 format.
    PartitionSchemeName string
    Partition scheme name.
    ServiceName string
    The service_name of your dedicated server.
    StartDate string
    Task creation date in RFC3339 format.
    Status string
    Task status (should be done)
    TemplateName string
    Template name.
    bootidOnDestroy Integer
    If set, reboot the server on the specified boot id during destroy phase.
    comment String
    Details of this task. (should be Install asked)
    details ServerInstallTaskDetails
    see details block below.
    doneDate String
    Completion date in RFC3339 format.
    function String
    Function name (should be hardInstall).
    lastUpdate String
    Last update in RFC3339 format.
    partitionSchemeName String
    Partition scheme name.
    serviceName String
    The service_name of your dedicated server.
    startDate String
    Task creation date in RFC3339 format.
    status String
    Task status (should be done)
    templateName String
    Template name.
    bootidOnDestroy number
    If set, reboot the server on the specified boot id during destroy phase.
    comment string
    Details of this task. (should be Install asked)
    details ServerInstallTaskDetails
    see details block below.
    doneDate string
    Completion date in RFC3339 format.
    function string
    Function name (should be hardInstall).
    lastUpdate string
    Last update in RFC3339 format.
    partitionSchemeName string
    Partition scheme name.
    serviceName string
    The service_name of your dedicated server.
    startDate string
    Task creation date in RFC3339 format.
    status string
    Task status (should be done)
    templateName string
    Template name.
    bootid_on_destroy int
    If set, reboot the server on the specified boot id during destroy phase.
    comment str
    Details of this task. (should be Install asked)
    details dedicated.ServerInstallTaskDetailsArgs
    see details block below.
    done_date str
    Completion date in RFC3339 format.
    function str
    Function name (should be hardInstall).
    last_update str
    Last update in RFC3339 format.
    partition_scheme_name str
    Partition scheme name.
    service_name str
    The service_name of your dedicated server.
    start_date str
    Task creation date in RFC3339 format.
    status str
    Task status (should be done)
    template_name str
    Template name.
    bootidOnDestroy Number
    If set, reboot the server on the specified boot id during destroy phase.
    comment String
    Details of this task. (should be Install asked)
    details Property Map
    see details block below.
    doneDate String
    Completion date in RFC3339 format.
    function String
    Function name (should be hardInstall).
    lastUpdate String
    Last update in RFC3339 format.
    partitionSchemeName String
    Partition scheme name.
    serviceName String
    The service_name of your dedicated server.
    startDate String
    Task creation date in RFC3339 format.
    status String
    Task status (should be done)
    templateName String
    Template name.

    Supporting Types

    ServerInstallTaskDetails, ServerInstallTaskDetailsArgs

    CustomHostname string
    Set up the server using the provided hostname instead of the default hostname.
    DiskGroupId int
    Disk group id.
    InstallSqlServer bool
    set to true to install sql server (Windows template only).
    Language string
    language.
    NoRaid bool
    set to true to disable RAID.
    PostInstallationScriptLink string
    Indicate the URL where your postinstall customisation script is located.
    PostInstallationScriptReturn string
    Indicate the string returned by your postinstall customisation script on successful execution. Advice: your script should return a unique validation string in case of succes. A good example is 'loh1Xee7eo OK OK OK UGh8Ang1Gu'.
    SoftRaidDevices int
    soft raid devices.
    SshKeyName string
    Name of the ssh key that should be installed. Password login will be disabled.
    UseSpla bool
    set to true to use SPLA.
    CustomHostname string
    Set up the server using the provided hostname instead of the default hostname.
    DiskGroupId int
    Disk group id.
    InstallSqlServer bool
    set to true to install sql server (Windows template only).
    Language string
    language.
    NoRaid bool
    set to true to disable RAID.
    PostInstallationScriptLink string
    Indicate the URL where your postinstall customisation script is located.
    PostInstallationScriptReturn string
    Indicate the string returned by your postinstall customisation script on successful execution. Advice: your script should return a unique validation string in case of succes. A good example is 'loh1Xee7eo OK OK OK UGh8Ang1Gu'.
    SoftRaidDevices int
    soft raid devices.
    SshKeyName string
    Name of the ssh key that should be installed. Password login will be disabled.
    UseSpla bool
    set to true to use SPLA.
    customHostname String
    Set up the server using the provided hostname instead of the default hostname.
    diskGroupId Integer
    Disk group id.
    installSqlServer Boolean
    set to true to install sql server (Windows template only).
    language String
    language.
    noRaid Boolean
    set to true to disable RAID.
    postInstallationScriptLink String
    Indicate the URL where your postinstall customisation script is located.
    postInstallationScriptReturn String
    Indicate the string returned by your postinstall customisation script on successful execution. Advice: your script should return a unique validation string in case of succes. A good example is 'loh1Xee7eo OK OK OK UGh8Ang1Gu'.
    softRaidDevices Integer
    soft raid devices.
    sshKeyName String
    Name of the ssh key that should be installed. Password login will be disabled.
    useSpla Boolean
    set to true to use SPLA.
    customHostname string
    Set up the server using the provided hostname instead of the default hostname.
    diskGroupId number
    Disk group id.
    installSqlServer boolean
    set to true to install sql server (Windows template only).
    language string
    language.
    noRaid boolean
    set to true to disable RAID.
    postInstallationScriptLink string
    Indicate the URL where your postinstall customisation script is located.
    postInstallationScriptReturn string
    Indicate the string returned by your postinstall customisation script on successful execution. Advice: your script should return a unique validation string in case of succes. A good example is 'loh1Xee7eo OK OK OK UGh8Ang1Gu'.
    softRaidDevices number
    soft raid devices.
    sshKeyName string
    Name of the ssh key that should be installed. Password login will be disabled.
    useSpla boolean
    set to true to use SPLA.
    custom_hostname str
    Set up the server using the provided hostname instead of the default hostname.
    disk_group_id int
    Disk group id.
    install_sql_server bool
    set to true to install sql server (Windows template only).
    language str
    language.
    no_raid bool
    set to true to disable RAID.
    post_installation_script_link str
    Indicate the URL where your postinstall customisation script is located.
    post_installation_script_return str
    Indicate the string returned by your postinstall customisation script on successful execution. Advice: your script should return a unique validation string in case of succes. A good example is 'loh1Xee7eo OK OK OK UGh8Ang1Gu'.
    soft_raid_devices int
    soft raid devices.
    ssh_key_name str
    Name of the ssh key that should be installed. Password login will be disabled.
    use_spla bool
    set to true to use SPLA.
    customHostname String
    Set up the server using the provided hostname instead of the default hostname.
    diskGroupId Number
    Disk group id.
    installSqlServer Boolean
    set to true to install sql server (Windows template only).
    language String
    language.
    noRaid Boolean
    set to true to disable RAID.
    postInstallationScriptLink String
    Indicate the URL where your postinstall customisation script is located.
    postInstallationScriptReturn String
    Indicate the string returned by your postinstall customisation script on successful execution. Advice: your script should return a unique validation string in case of succes. A good example is 'loh1Xee7eo OK OK OK UGh8Ang1Gu'.
    softRaidDevices Number
    soft raid devices.
    sshKeyName String
    Name of the ssh key that should be installed. Password login will be disabled.
    useSpla Boolean
    set to true to use SPLA.

    Import

    Installation task can be imported using the service_name (nsXXXX.ip...) of the baremetal server, the template_name used and ths task_id, separated by “/” E.g.,

    bash

    $ pulumi import ovh:Dedicated/serverInstallTask:ServerInstallTask ovh_dedicated_server_install_task nsXXXX.ipXXXX/template_name/12345
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    ovh ovh/pulumi-ovh
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the ovh Terraform Provider.
    ovh logo
    OVHCloud v0.42.0 published on Tuesday, Apr 9, 2024 by OVHcloud