1. Packages
  2. Selectel Provider
  3. API Docs
  4. DedicatedServerV1
selectel 7.0.1-alpha published on Thursday, Sep 25, 2025 by selectel

selectel.DedicatedServerV1

Explore with Pulumi AI

selectel logo
selectel 7.0.1-alpha published on Thursday, Sep 25, 2025 by selectel

    Creates and manages a server in Selectel Dedicated Servers.

    Example Usage

    Example coming soon!
    
    Example coming soon!
    
    Example coming soon!
    
    Example coming soon!
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.selectel.DedicatedServerV1;
    import com.pulumi.selectel.DedicatedServerV1Args;
    import com.pulumi.selectel.inputs.DedicatedServerV1PartitionsConfigArgs;
    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) {
            var server1 = new DedicatedServerV1("server1", DedicatedServerV1Args.builder()
                .projectId(selectel_vpc_project_v2.project_1().id())
                .configurationId(data.selectel_dedicated_configuration_v1().server_config().configurations()[0].id())
                .locationId(data.selectel_dedicated_location_v1().server_location().locations()[0].id())
                .osId(data.selectel_dedicated_os_v1().server_os().os()[0].id())
                .pricePlanName("1 день")
                .osHostName("Turing")
                .publicSubnetId(data.selectel_dedicated_public_subnet_v1().subnets().subnets()[0].id())
                .privateSubnet("192.168.0.0/16")
                .sshKeyName("deploy-ed25519")
                .osPassword("Passw0rd!")
                .userData(Files.readString(Paths.get("init-script-dir/init.sh")))
                .partitionsConfigs(DedicatedServerV1PartitionsConfigArgs.builder()
                    .softRaidConfigs(DedicatedServerV1PartitionsConfigSoftRaidConfigArgs.builder()
                        .name("first-raid")
                        .level("raid1")
                        .diskType("SSD NVMe M.2")
                        .build())
                    .diskPartitions(                
                        DedicatedServerV1PartitionsConfigDiskPartitionArgs.builder()
                            .mount("/boot")
                            .size(1)
                            .raid("first-raid")
                            .build(),
                        DedicatedServerV1PartitionsConfigDiskPartitionArgs.builder()
                            .mount("swap")
                            .sizePercent(10.5)
                            .raid("first-raid")
                            .build(),
                        DedicatedServerV1PartitionsConfigDiskPartitionArgs.builder()
                            .mount("/")
                            .size(-1)
                            .raid("first-raid")
                            .build(),
                        DedicatedServerV1PartitionsConfigDiskPartitionArgs.builder()
                            .mount("second_folder")
                            .size(400)
                            .raid("first-raid")
                            .fsType("xfs")
                            .build())
                    .build())
                .timeouts(DedicatedServerV1TimeoutsArgs.builder()
                    .create("80m")
                    .update("20m")
                    .delete("5m")
                    .build())
                .build());
    
        }
    }
    
    resources:
      server1:
        type: selectel:DedicatedServerV1
        properties:
          projectId: ${selectel_vpc_project_v2.project_1.id}
          configurationId: ${data.selectel_dedicated_configuration_v1.server_config.configurations[0].id}
          locationId: ${data.selectel_dedicated_location_v1.server_location.locations[0].id}
          osId: ${data.selectel_dedicated_os_v1.server_os.os[0].id}
          pricePlanName: 1 день
          osHostName: Turing
          publicSubnetId: ${data.selectel_dedicated_public_subnet_v1.subnets.subnets[0].id}
          privateSubnet: 192.168.0.0/16
          sshKeyName: deploy-ed25519
          osPassword: Passw0rd!
          userData:
            fn::readFile: init-script-dir/init.sh
          partitionsConfigs:
            - softRaidConfigs:
                - name: first-raid
                  level: raid1
                  diskType: SSD NVMe M.2
              diskPartitions:
                - mount: /boot
                  size: 1
                  raid: first-raid
                - mount: swap
                  sizePercent: 10.5
                  raid: first-raid
                - mount: /
                  size: -1
                  raid: first-raid
                - mount: second_folder
                  size: 400
                  raid: first-raid
                  fsType: xfs
          # Optional: You can choose your own timeout values or remove them.
          #   # 
          #   # Current values represent default values.
          timeouts:
            - create: 80m
              update: 20m
              delete: 5m
    

    Create DedicatedServerV1 Resource

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

    Constructor syntax

    new DedicatedServerV1(name: string, args: DedicatedServerV1Args, opts?: CustomResourceOptions);
    @overload
    def DedicatedServerV1(resource_name: str,
                          args: DedicatedServerV1Args,
                          opts: Optional[ResourceOptions] = None)
    
    @overload
    def DedicatedServerV1(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          os_id: Optional[str] = None,
                          project_id: Optional[str] = None,
                          price_plan_name: Optional[str] = None,
                          location_id: Optional[str] = None,
                          configuration_id: Optional[str] = None,
                          os_host_name: Optional[str] = None,
                          os_password: Optional[str] = None,
                          partitions_configs: Optional[Sequence[DedicatedServerV1PartitionsConfigArgs]] = None,
                          force_update_additional_params: Optional[bool] = None,
                          private_subnet: Optional[str] = None,
                          dedicated_server_v1_id: Optional[str] = None,
                          public_subnet_id: Optional[str] = None,
                          ssh_key: Optional[str] = None,
                          ssh_key_name: Optional[str] = None,
                          timeouts: Optional[DedicatedServerV1TimeoutsArgs] = None,
                          user_data: Optional[str] = None)
    func NewDedicatedServerV1(ctx *Context, name string, args DedicatedServerV1Args, opts ...ResourceOption) (*DedicatedServerV1, error)
    public DedicatedServerV1(string name, DedicatedServerV1Args args, CustomResourceOptions? opts = null)
    public DedicatedServerV1(String name, DedicatedServerV1Args args)
    public DedicatedServerV1(String name, DedicatedServerV1Args args, CustomResourceOptions options)
    
    type: selectel:DedicatedServerV1
    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 DedicatedServerV1Args
    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 DedicatedServerV1Args
    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 DedicatedServerV1Args
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DedicatedServerV1Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DedicatedServerV1Args
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

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

    var dedicatedServerV1Resource = new Selectel.DedicatedServerV1("dedicatedServerV1Resource", new()
    {
        OsId = "string",
        ProjectId = "string",
        PricePlanName = "string",
        LocationId = "string",
        ConfigurationId = "string",
        OsHostName = "string",
        OsPassword = "string",
        PartitionsConfigs = new[]
        {
            new Selectel.Inputs.DedicatedServerV1PartitionsConfigArgs
            {
                DiskPartitions = new[]
                {
                    new Selectel.Inputs.DedicatedServerV1PartitionsConfigDiskPartitionArgs
                    {
                        Mount = "string",
                        Raid = "string",
                        FsType = "string",
                        Size = 0,
                        SizePercent = 0,
                    },
                },
                SoftRaidConfigs = new[]
                {
                    new Selectel.Inputs.DedicatedServerV1PartitionsConfigSoftRaidConfigArgs
                    {
                        DiskType = "string",
                        Level = "string",
                        Name = "string",
                    },
                },
            },
        },
        ForceUpdateAdditionalParams = false,
        PrivateSubnet = "string",
        DedicatedServerV1Id = "string",
        PublicSubnetId = "string",
        SshKey = "string",
        SshKeyName = "string",
        Timeouts = new Selectel.Inputs.DedicatedServerV1TimeoutsArgs
        {
            Create = "string",
            Delete = "string",
            Update = "string",
        },
        UserData = "string",
    });
    
    example, err := selectel.NewDedicatedServerV1(ctx, "dedicatedServerV1Resource", &selectel.DedicatedServerV1Args{
    	OsId:            pulumi.String("string"),
    	ProjectId:       pulumi.String("string"),
    	PricePlanName:   pulumi.String("string"),
    	LocationId:      pulumi.String("string"),
    	ConfigurationId: pulumi.String("string"),
    	OsHostName:      pulumi.String("string"),
    	OsPassword:      pulumi.String("string"),
    	PartitionsConfigs: selectel.DedicatedServerV1PartitionsConfigArray{
    		&selectel.DedicatedServerV1PartitionsConfigArgs{
    			DiskPartitions: selectel.DedicatedServerV1PartitionsConfigDiskPartitionArray{
    				&selectel.DedicatedServerV1PartitionsConfigDiskPartitionArgs{
    					Mount:       pulumi.String("string"),
    					Raid:        pulumi.String("string"),
    					FsType:      pulumi.String("string"),
    					Size:        pulumi.Float64(0),
    					SizePercent: pulumi.Float64(0),
    				},
    			},
    			SoftRaidConfigs: selectel.DedicatedServerV1PartitionsConfigSoftRaidConfigArray{
    				&selectel.DedicatedServerV1PartitionsConfigSoftRaidConfigArgs{
    					DiskType: pulumi.String("string"),
    					Level:    pulumi.String("string"),
    					Name:     pulumi.String("string"),
    				},
    			},
    		},
    	},
    	ForceUpdateAdditionalParams: pulumi.Bool(false),
    	PrivateSubnet:               pulumi.String("string"),
    	DedicatedServerV1Id:         pulumi.String("string"),
    	PublicSubnetId:              pulumi.String("string"),
    	SshKey:                      pulumi.String("string"),
    	SshKeyName:                  pulumi.String("string"),
    	Timeouts: &selectel.DedicatedServerV1TimeoutsArgs{
    		Create: pulumi.String("string"),
    		Delete: pulumi.String("string"),
    		Update: pulumi.String("string"),
    	},
    	UserData: pulumi.String("string"),
    })
    
    var dedicatedServerV1Resource = new DedicatedServerV1("dedicatedServerV1Resource", DedicatedServerV1Args.builder()
        .osId("string")
        .projectId("string")
        .pricePlanName("string")
        .locationId("string")
        .configurationId("string")
        .osHostName("string")
        .osPassword("string")
        .partitionsConfigs(DedicatedServerV1PartitionsConfigArgs.builder()
            .diskPartitions(DedicatedServerV1PartitionsConfigDiskPartitionArgs.builder()
                .mount("string")
                .raid("string")
                .fsType("string")
                .size(0.0)
                .sizePercent(0.0)
                .build())
            .softRaidConfigs(DedicatedServerV1PartitionsConfigSoftRaidConfigArgs.builder()
                .diskType("string")
                .level("string")
                .name("string")
                .build())
            .build())
        .forceUpdateAdditionalParams(false)
        .privateSubnet("string")
        .dedicatedServerV1Id("string")
        .publicSubnetId("string")
        .sshKey("string")
        .sshKeyName("string")
        .timeouts(DedicatedServerV1TimeoutsArgs.builder()
            .create("string")
            .delete("string")
            .update("string")
            .build())
        .userData("string")
        .build());
    
    dedicated_server_v1_resource = selectel.DedicatedServerV1("dedicatedServerV1Resource",
        os_id="string",
        project_id="string",
        price_plan_name="string",
        location_id="string",
        configuration_id="string",
        os_host_name="string",
        os_password="string",
        partitions_configs=[{
            "disk_partitions": [{
                "mount": "string",
                "raid": "string",
                "fs_type": "string",
                "size": 0,
                "size_percent": 0,
            }],
            "soft_raid_configs": [{
                "disk_type": "string",
                "level": "string",
                "name": "string",
            }],
        }],
        force_update_additional_params=False,
        private_subnet="string",
        dedicated_server_v1_id="string",
        public_subnet_id="string",
        ssh_key="string",
        ssh_key_name="string",
        timeouts={
            "create": "string",
            "delete": "string",
            "update": "string",
        },
        user_data="string")
    
    const dedicatedServerV1Resource = new selectel.DedicatedServerV1("dedicatedServerV1Resource", {
        osId: "string",
        projectId: "string",
        pricePlanName: "string",
        locationId: "string",
        configurationId: "string",
        osHostName: "string",
        osPassword: "string",
        partitionsConfigs: [{
            diskPartitions: [{
                mount: "string",
                raid: "string",
                fsType: "string",
                size: 0,
                sizePercent: 0,
            }],
            softRaidConfigs: [{
                diskType: "string",
                level: "string",
                name: "string",
            }],
        }],
        forceUpdateAdditionalParams: false,
        privateSubnet: "string",
        dedicatedServerV1Id: "string",
        publicSubnetId: "string",
        sshKey: "string",
        sshKeyName: "string",
        timeouts: {
            create: "string",
            "delete": "string",
            update: "string",
        },
        userData: "string",
    });
    
    type: selectel:DedicatedServerV1
    properties:
        configurationId: string
        dedicatedServerV1Id: string
        forceUpdateAdditionalParams: false
        locationId: string
        osHostName: string
        osId: string
        osPassword: string
        partitionsConfigs:
            - diskPartitions:
                - fsType: string
                  mount: string
                  raid: string
                  size: 0
                  sizePercent: 0
              softRaidConfigs:
                - diskType: string
                  level: string
                  name: string
        pricePlanName: string
        privateSubnet: string
        projectId: string
        publicSubnetId: string
        sshKey: string
        sshKeyName: string
        timeouts:
            create: string
            delete: string
            update: string
        userData: string
    

    DedicatedServerV1 Resource Properties

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

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The DedicatedServerV1 resource accepts the following input properties:

    ConfigurationId string
    Unique identifier of the server configuration.
    LocationId string
    Pool where the server is located.
    OsId string
    Unique identifier of the operating system to install. Changing this installs new os on a new server. NOTE: installing new os will delete all data on the server.
    PricePlanName string
    The name of the price plan.
    ProjectId string
    Unique identifier of the associated project. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
    DedicatedServerV1Id string
    Unique identifier of the server.
    ForceUpdateAdditionalParams bool
    Enables update for additional os params (os_password, user_data, ssh_key, ssh_key_name, partitions_config, os_host_name) without changing os_id. NOTE: installing new os will delete all data on the server.
    OsHostName string
    Hostname for the server.
    OsPassword string
    Password for the OS user.
    PartitionsConfigs List<DedicatedServerV1PartitionsConfig>
    Configuration for disk partitions.
    PrivateSubnet string
    Private subnet to connect the server to.
    PublicSubnetId string
    ID of the public subnet to connect the server to.
    SshKey string
    The public SSH key to be added to the server.
    SshKeyName string
    The name of an existing SSH key to be added to the server.
    Timeouts DedicatedServerV1Timeouts
    UserData string
    These are custom configuration settings that automatically perform common tasks or run server setup scripts, reducing the time it takes to configure and deploy your infrastructure.
    ConfigurationId string
    Unique identifier of the server configuration.
    LocationId string
    Pool where the server is located.
    OsId string
    Unique identifier of the operating system to install. Changing this installs new os on a new server. NOTE: installing new os will delete all data on the server.
    PricePlanName string
    The name of the price plan.
    ProjectId string
    Unique identifier of the associated project. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
    DedicatedServerV1Id string
    Unique identifier of the server.
    ForceUpdateAdditionalParams bool
    Enables update for additional os params (os_password, user_data, ssh_key, ssh_key_name, partitions_config, os_host_name) without changing os_id. NOTE: installing new os will delete all data on the server.
    OsHostName string
    Hostname for the server.
    OsPassword string
    Password for the OS user.
    PartitionsConfigs []DedicatedServerV1PartitionsConfigArgs
    Configuration for disk partitions.
    PrivateSubnet string
    Private subnet to connect the server to.
    PublicSubnetId string
    ID of the public subnet to connect the server to.
    SshKey string
    The public SSH key to be added to the server.
    SshKeyName string
    The name of an existing SSH key to be added to the server.
    Timeouts DedicatedServerV1TimeoutsArgs
    UserData string
    These are custom configuration settings that automatically perform common tasks or run server setup scripts, reducing the time it takes to configure and deploy your infrastructure.
    configurationId String
    Unique identifier of the server configuration.
    locationId String
    Pool where the server is located.
    osId String
    Unique identifier of the operating system to install. Changing this installs new os on a new server. NOTE: installing new os will delete all data on the server.
    pricePlanName String
    The name of the price plan.
    projectId String
    Unique identifier of the associated project. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
    dedicatedServerV1Id String
    Unique identifier of the server.
    forceUpdateAdditionalParams Boolean
    Enables update for additional os params (os_password, user_data, ssh_key, ssh_key_name, partitions_config, os_host_name) without changing os_id. NOTE: installing new os will delete all data on the server.
    osHostName String
    Hostname for the server.
    osPassword String
    Password for the OS user.
    partitionsConfigs List<DedicatedServerV1PartitionsConfig>
    Configuration for disk partitions.
    privateSubnet String
    Private subnet to connect the server to.
    publicSubnetId String
    ID of the public subnet to connect the server to.
    sshKey String
    The public SSH key to be added to the server.
    sshKeyName String
    The name of an existing SSH key to be added to the server.
    timeouts DedicatedServerV1Timeouts
    userData String
    These are custom configuration settings that automatically perform common tasks or run server setup scripts, reducing the time it takes to configure and deploy your infrastructure.
    configurationId string
    Unique identifier of the server configuration.
    locationId string
    Pool where the server is located.
    osId string
    Unique identifier of the operating system to install. Changing this installs new os on a new server. NOTE: installing new os will delete all data on the server.
    pricePlanName string
    The name of the price plan.
    projectId string
    Unique identifier of the associated project. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
    dedicatedServerV1Id string
    Unique identifier of the server.
    forceUpdateAdditionalParams boolean
    Enables update for additional os params (os_password, user_data, ssh_key, ssh_key_name, partitions_config, os_host_name) without changing os_id. NOTE: installing new os will delete all data on the server.
    osHostName string
    Hostname for the server.
    osPassword string
    Password for the OS user.
    partitionsConfigs DedicatedServerV1PartitionsConfig[]
    Configuration for disk partitions.
    privateSubnet string
    Private subnet to connect the server to.
    publicSubnetId string
    ID of the public subnet to connect the server to.
    sshKey string
    The public SSH key to be added to the server.
    sshKeyName string
    The name of an existing SSH key to be added to the server.
    timeouts DedicatedServerV1Timeouts
    userData string
    These are custom configuration settings that automatically perform common tasks or run server setup scripts, reducing the time it takes to configure and deploy your infrastructure.
    configuration_id str
    Unique identifier of the server configuration.
    location_id str
    Pool where the server is located.
    os_id str
    Unique identifier of the operating system to install. Changing this installs new os on a new server. NOTE: installing new os will delete all data on the server.
    price_plan_name str
    The name of the price plan.
    project_id str
    Unique identifier of the associated project. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
    dedicated_server_v1_id str
    Unique identifier of the server.
    force_update_additional_params bool
    Enables update for additional os params (os_password, user_data, ssh_key, ssh_key_name, partitions_config, os_host_name) without changing os_id. NOTE: installing new os will delete all data on the server.
    os_host_name str
    Hostname for the server.
    os_password str
    Password for the OS user.
    partitions_configs Sequence[DedicatedServerV1PartitionsConfigArgs]
    Configuration for disk partitions.
    private_subnet str
    Private subnet to connect the server to.
    public_subnet_id str
    ID of the public subnet to connect the server to.
    ssh_key str
    The public SSH key to be added to the server.
    ssh_key_name str
    The name of an existing SSH key to be added to the server.
    timeouts DedicatedServerV1TimeoutsArgs
    user_data str
    These are custom configuration settings that automatically perform common tasks or run server setup scripts, reducing the time it takes to configure and deploy your infrastructure.
    configurationId String
    Unique identifier of the server configuration.
    locationId String
    Pool where the server is located.
    osId String
    Unique identifier of the operating system to install. Changing this installs new os on a new server. NOTE: installing new os will delete all data on the server.
    pricePlanName String
    The name of the price plan.
    projectId String
    Unique identifier of the associated project. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
    dedicatedServerV1Id String
    Unique identifier of the server.
    forceUpdateAdditionalParams Boolean
    Enables update for additional os params (os_password, user_data, ssh_key, ssh_key_name, partitions_config, os_host_name) without changing os_id. NOTE: installing new os will delete all data on the server.
    osHostName String
    Hostname for the server.
    osPassword String
    Password for the OS user.
    partitionsConfigs List<Property Map>
    Configuration for disk partitions.
    privateSubnet String
    Private subnet to connect the server to.
    publicSubnetId String
    ID of the public subnet to connect the server to.
    sshKey String
    The public SSH key to be added to the server.
    sshKeyName String
    The name of an existing SSH key to be added to the server.
    timeouts Property Map
    userData String
    These are custom configuration settings that automatically perform common tasks or run server setup scripts, reducing the time it takes to configure and deploy your infrastructure.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing DedicatedServerV1 Resource

    Get an existing DedicatedServerV1 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?: DedicatedServerV1State, opts?: CustomResourceOptions): DedicatedServerV1
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            configuration_id: Optional[str] = None,
            dedicated_server_v1_id: Optional[str] = None,
            force_update_additional_params: Optional[bool] = None,
            location_id: Optional[str] = None,
            os_host_name: Optional[str] = None,
            os_id: Optional[str] = None,
            os_password: Optional[str] = None,
            partitions_configs: Optional[Sequence[DedicatedServerV1PartitionsConfigArgs]] = None,
            price_plan_name: Optional[str] = None,
            private_subnet: Optional[str] = None,
            project_id: Optional[str] = None,
            public_subnet_id: Optional[str] = None,
            ssh_key: Optional[str] = None,
            ssh_key_name: Optional[str] = None,
            timeouts: Optional[DedicatedServerV1TimeoutsArgs] = None,
            user_data: Optional[str] = None) -> DedicatedServerV1
    func GetDedicatedServerV1(ctx *Context, name string, id IDInput, state *DedicatedServerV1State, opts ...ResourceOption) (*DedicatedServerV1, error)
    public static DedicatedServerV1 Get(string name, Input<string> id, DedicatedServerV1State? state, CustomResourceOptions? opts = null)
    public static DedicatedServerV1 get(String name, Output<String> id, DedicatedServerV1State state, CustomResourceOptions options)
    resources:  _:    type: selectel:DedicatedServerV1    get:      id: ${id}
    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:
    ConfigurationId string
    Unique identifier of the server configuration.
    DedicatedServerV1Id string
    Unique identifier of the server.
    ForceUpdateAdditionalParams bool
    Enables update for additional os params (os_password, user_data, ssh_key, ssh_key_name, partitions_config, os_host_name) without changing os_id. NOTE: installing new os will delete all data on the server.
    LocationId string
    Pool where the server is located.
    OsHostName string
    Hostname for the server.
    OsId string
    Unique identifier of the operating system to install. Changing this installs new os on a new server. NOTE: installing new os will delete all data on the server.
    OsPassword string
    Password for the OS user.
    PartitionsConfigs List<DedicatedServerV1PartitionsConfig>
    Configuration for disk partitions.
    PricePlanName string
    The name of the price plan.
    PrivateSubnet string
    Private subnet to connect the server to.
    ProjectId string
    Unique identifier of the associated project. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
    PublicSubnetId string
    ID of the public subnet to connect the server to.
    SshKey string
    The public SSH key to be added to the server.
    SshKeyName string
    The name of an existing SSH key to be added to the server.
    Timeouts DedicatedServerV1Timeouts
    UserData string
    These are custom configuration settings that automatically perform common tasks or run server setup scripts, reducing the time it takes to configure and deploy your infrastructure.
    ConfigurationId string
    Unique identifier of the server configuration.
    DedicatedServerV1Id string
    Unique identifier of the server.
    ForceUpdateAdditionalParams bool
    Enables update for additional os params (os_password, user_data, ssh_key, ssh_key_name, partitions_config, os_host_name) without changing os_id. NOTE: installing new os will delete all data on the server.
    LocationId string
    Pool where the server is located.
    OsHostName string
    Hostname for the server.
    OsId string
    Unique identifier of the operating system to install. Changing this installs new os on a new server. NOTE: installing new os will delete all data on the server.
    OsPassword string
    Password for the OS user.
    PartitionsConfigs []DedicatedServerV1PartitionsConfigArgs
    Configuration for disk partitions.
    PricePlanName string
    The name of the price plan.
    PrivateSubnet string
    Private subnet to connect the server to.
    ProjectId string
    Unique identifier of the associated project. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
    PublicSubnetId string
    ID of the public subnet to connect the server to.
    SshKey string
    The public SSH key to be added to the server.
    SshKeyName string
    The name of an existing SSH key to be added to the server.
    Timeouts DedicatedServerV1TimeoutsArgs
    UserData string
    These are custom configuration settings that automatically perform common tasks or run server setup scripts, reducing the time it takes to configure and deploy your infrastructure.
    configurationId String
    Unique identifier of the server configuration.
    dedicatedServerV1Id String
    Unique identifier of the server.
    forceUpdateAdditionalParams Boolean
    Enables update for additional os params (os_password, user_data, ssh_key, ssh_key_name, partitions_config, os_host_name) without changing os_id. NOTE: installing new os will delete all data on the server.
    locationId String
    Pool where the server is located.
    osHostName String
    Hostname for the server.
    osId String
    Unique identifier of the operating system to install. Changing this installs new os on a new server. NOTE: installing new os will delete all data on the server.
    osPassword String
    Password for the OS user.
    partitionsConfigs List<DedicatedServerV1PartitionsConfig>
    Configuration for disk partitions.
    pricePlanName String
    The name of the price plan.
    privateSubnet String
    Private subnet to connect the server to.
    projectId String
    Unique identifier of the associated project. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
    publicSubnetId String
    ID of the public subnet to connect the server to.
    sshKey String
    The public SSH key to be added to the server.
    sshKeyName String
    The name of an existing SSH key to be added to the server.
    timeouts DedicatedServerV1Timeouts
    userData String
    These are custom configuration settings that automatically perform common tasks or run server setup scripts, reducing the time it takes to configure and deploy your infrastructure.
    configurationId string
    Unique identifier of the server configuration.
    dedicatedServerV1Id string
    Unique identifier of the server.
    forceUpdateAdditionalParams boolean
    Enables update for additional os params (os_password, user_data, ssh_key, ssh_key_name, partitions_config, os_host_name) without changing os_id. NOTE: installing new os will delete all data on the server.
    locationId string
    Pool where the server is located.
    osHostName string
    Hostname for the server.
    osId string
    Unique identifier of the operating system to install. Changing this installs new os on a new server. NOTE: installing new os will delete all data on the server.
    osPassword string
    Password for the OS user.
    partitionsConfigs DedicatedServerV1PartitionsConfig[]
    Configuration for disk partitions.
    pricePlanName string
    The name of the price plan.
    privateSubnet string
    Private subnet to connect the server to.
    projectId string
    Unique identifier of the associated project. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
    publicSubnetId string
    ID of the public subnet to connect the server to.
    sshKey string
    The public SSH key to be added to the server.
    sshKeyName string
    The name of an existing SSH key to be added to the server.
    timeouts DedicatedServerV1Timeouts
    userData string
    These are custom configuration settings that automatically perform common tasks or run server setup scripts, reducing the time it takes to configure and deploy your infrastructure.
    configuration_id str
    Unique identifier of the server configuration.
    dedicated_server_v1_id str
    Unique identifier of the server.
    force_update_additional_params bool
    Enables update for additional os params (os_password, user_data, ssh_key, ssh_key_name, partitions_config, os_host_name) without changing os_id. NOTE: installing new os will delete all data on the server.
    location_id str
    Pool where the server is located.
    os_host_name str
    Hostname for the server.
    os_id str
    Unique identifier of the operating system to install. Changing this installs new os on a new server. NOTE: installing new os will delete all data on the server.
    os_password str
    Password for the OS user.
    partitions_configs Sequence[DedicatedServerV1PartitionsConfigArgs]
    Configuration for disk partitions.
    price_plan_name str
    The name of the price plan.
    private_subnet str
    Private subnet to connect the server to.
    project_id str
    Unique identifier of the associated project. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
    public_subnet_id str
    ID of the public subnet to connect the server to.
    ssh_key str
    The public SSH key to be added to the server.
    ssh_key_name str
    The name of an existing SSH key to be added to the server.
    timeouts DedicatedServerV1TimeoutsArgs
    user_data str
    These are custom configuration settings that automatically perform common tasks or run server setup scripts, reducing the time it takes to configure and deploy your infrastructure.
    configurationId String
    Unique identifier of the server configuration.
    dedicatedServerV1Id String
    Unique identifier of the server.
    forceUpdateAdditionalParams Boolean
    Enables update for additional os params (os_password, user_data, ssh_key, ssh_key_name, partitions_config, os_host_name) without changing os_id. NOTE: installing new os will delete all data on the server.
    locationId String
    Pool where the server is located.
    osHostName String
    Hostname for the server.
    osId String
    Unique identifier of the operating system to install. Changing this installs new os on a new server. NOTE: installing new os will delete all data on the server.
    osPassword String
    Password for the OS user.
    partitionsConfigs List<Property Map>
    Configuration for disk partitions.
    pricePlanName String
    The name of the price plan.
    privateSubnet String
    Private subnet to connect the server to.
    projectId String
    Unique identifier of the associated project. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
    publicSubnetId String
    ID of the public subnet to connect the server to.
    sshKey String
    The public SSH key to be added to the server.
    sshKeyName String
    The name of an existing SSH key to be added to the server.
    timeouts Property Map
    userData String
    These are custom configuration settings that automatically perform common tasks or run server setup scripts, reducing the time it takes to configure and deploy your infrastructure.

    Supporting Types

    DedicatedServerV1PartitionsConfig, DedicatedServerV1PartitionsConfigArgs

    diskPartitions List<Property Map>
    List of disk partitions.
    softRaidConfigs List<Property Map>
    Configuration for software RAID.

    DedicatedServerV1PartitionsConfigDiskPartition, DedicatedServerV1PartitionsConfigDiskPartitionArgs

    Mount string
    Mount point for the partition.
    Raid string
    The RAID array name to create the partition on.
    FsType string
    Filesystem type for the partition.
    Size double
    Size of the partition in GB. Use only size or size_percent.
    SizePercent double
    Size of the partition in percent. Use only size or size_percent.
    Mount string
    Mount point for the partition.
    Raid string
    The RAID array name to create the partition on.
    FsType string
    Filesystem type for the partition.
    Size float64
    Size of the partition in GB. Use only size or size_percent.
    SizePercent float64
    Size of the partition in percent. Use only size or size_percent.
    mount String
    Mount point for the partition.
    raid String
    The RAID array name to create the partition on.
    fsType String
    Filesystem type for the partition.
    size Double
    Size of the partition in GB. Use only size or size_percent.
    sizePercent Double
    Size of the partition in percent. Use only size or size_percent.
    mount string
    Mount point for the partition.
    raid string
    The RAID array name to create the partition on.
    fsType string
    Filesystem type for the partition.
    size number
    Size of the partition in GB. Use only size or size_percent.
    sizePercent number
    Size of the partition in percent. Use only size or size_percent.
    mount str
    Mount point for the partition.
    raid str
    The RAID array name to create the partition on.
    fs_type str
    Filesystem type for the partition.
    size float
    Size of the partition in GB. Use only size or size_percent.
    size_percent float
    Size of the partition in percent. Use only size or size_percent.
    mount String
    Mount point for the partition.
    raid String
    The RAID array name to create the partition on.
    fsType String
    Filesystem type for the partition.
    size Number
    Size of the partition in GB. Use only size or size_percent.
    sizePercent Number
    Size of the partition in percent. Use only size or size_percent.

    DedicatedServerV1PartitionsConfigSoftRaidConfig, DedicatedServerV1PartitionsConfigSoftRaidConfigArgs

    DiskType string
    Type of disks to use in the RAID.
    Level string
    RAID level.
    Name string
    Name of the RAID array.
    DiskType string
    Type of disks to use in the RAID.
    Level string
    RAID level.
    Name string
    Name of the RAID array.
    diskType String
    Type of disks to use in the RAID.
    level String
    RAID level.
    name String
    Name of the RAID array.
    diskType string
    Type of disks to use in the RAID.
    level string
    RAID level.
    name string
    Name of the RAID array.
    disk_type str
    Type of disks to use in the RAID.
    level str
    RAID level.
    name str
    Name of the RAID array.
    diskType String
    Type of disks to use in the RAID.
    level String
    RAID level.
    name String
    Name of the RAID array.

    DedicatedServerV1Timeouts, DedicatedServerV1TimeoutsArgs

    Create string
    Delete string
    Update string
    Create string
    Delete string
    Update string
    create String
    delete String
    update String
    create string
    delete string
    update string
    create str
    delete str
    update str
    create String
    delete String
    update String

    Import

    You can import a server:

    export OS_DOMAIN_NAME=<account_id>

    export OS_USERNAME=

    export OS_PASSWORD=

    export INFRA_PROJECT_ID=<selectel_project_id>

    $ pulumi import selectel:index/dedicatedServerV1:DedicatedServerV1 server_1 <server_id>
    

    where:

    • <account_id> — Selectel account ID. The account ID is in the top right corner of the Control panel. Learn more about Registration.

    • <username> — Name of the service user. To get the name, in the Control panel, go to Identity & Access ManagementUser management ⟶ the Service users tab ⟶ copy the name of the required user. Learn more about Service users.

    • <password> — Password of the service user.

    • <selectel_project_id> — Unique identifier of the associated project. To get the ID, in the Control panel, go to Servers and colocation ⟶ project name ⟶ copy the ID of the required project. Learn more about Projects.

    • <server_id> — Unique identifier of the server.

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

    Package Details

    Repository
    selectel selectel/terraform-provider-selectel
    License
    Notes
    This Pulumi package is based on the selectel Terraform Provider.
    selectel logo
    selectel 7.0.1-alpha published on Thursday, Sep 25, 2025 by selectel