published on Thursday, May 28, 2026 by selectel
published on Thursday, May 28, 2026 by selectel
Creates and manages a server in Selectel Dedicated Servers using public API v1. For more information about Dedicated Servers, see the official Selectel documentation.
Example Usage
Server with multiple RAID
import * as pulumi from "@pulumi/pulumi";
import * as selectel from "@pulumi/selectel";
const serverMultiRaid = new selectel.DedicatedServerV1("server_multi_raid", {
projectId: project1.id,
configurationId: serverConfig.configurations[0].id,
locationId: serverLocation.locations[0].id,
osId: serverOs.os[0].id,
pricePlanName: "1 day",
partitionsConfigs: [{
softRaidConfigs: [
{
name: "boot-raid",
level: "raid1",
diskType: "SSD NVMe",
count: 2,
},
{
name: "data-raid",
level: "raid0",
diskType: "SSD NVMe",
count: 2,
},
],
diskPartitions: [
{
mount: "/boot",
size: 1,
raid: "boot-raid",
},
{
mount: "/",
size: -1,
raid: "boot-raid",
},
{
mount: "/data",
size: -1,
raid: "data-raid",
fsType: "xfs",
},
],
}],
});
import pulumi
import pulumi_selectel as selectel
server_multi_raid = selectel.DedicatedServerV1("server_multi_raid",
project_id=project1["id"],
configuration_id=server_config["configurations"][0]["id"],
location_id=server_location["locations"][0]["id"],
os_id=server_os["os"][0]["id"],
price_plan_name="1 day",
partitions_configs=[{
"soft_raid_configs": [
{
"name": "boot-raid",
"level": "raid1",
"disk_type": "SSD NVMe",
"count": 2,
},
{
"name": "data-raid",
"level": "raid0",
"disk_type": "SSD NVMe",
"count": 2,
},
],
"disk_partitions": [
{
"mount": "/boot",
"size": 1,
"raid": "boot-raid",
},
{
"mount": "/",
"size": -1,
"raid": "boot-raid",
},
{
"mount": "/data",
"size": -1,
"raid": "data-raid",
"fs_type": "xfs",
},
],
}])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/selectel/v8/selectel"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := selectel.NewDedicatedServerV1(ctx, "server_multi_raid", &selectel.DedicatedServerV1Args{
ProjectId: pulumi.Any(project1.Id),
ConfigurationId: pulumi.Any(serverConfig.Configurations[0].Id),
LocationId: pulumi.Any(serverLocation.Locations[0].Id),
OsId: pulumi.Any(serverOs.Os[0].Id),
PricePlanName: pulumi.String("1 day"),
PartitionsConfigs: selectel.DedicatedServerV1PartitionsConfigArray{
&selectel.DedicatedServerV1PartitionsConfigArgs{
SoftRaidConfigs: selectel.DedicatedServerV1PartitionsConfigSoftRaidConfigArray{
&selectel.DedicatedServerV1PartitionsConfigSoftRaidConfigArgs{
Name: pulumi.String("boot-raid"),
Level: pulumi.String("raid1"),
DiskType: pulumi.String("SSD NVMe"),
Count: pulumi.Float64(2),
},
&selectel.DedicatedServerV1PartitionsConfigSoftRaidConfigArgs{
Name: pulumi.String("data-raid"),
Level: pulumi.String("raid0"),
DiskType: pulumi.String("SSD NVMe"),
Count: pulumi.Float64(2),
},
},
DiskPartitions: selectel.DedicatedServerV1PartitionsConfigDiskPartitionArray{
&selectel.DedicatedServerV1PartitionsConfigDiskPartitionArgs{
Mount: pulumi.String("/boot"),
Size: pulumi.Float64(1),
Raid: pulumi.String("boot-raid"),
},
&selectel.DedicatedServerV1PartitionsConfigDiskPartitionArgs{
Mount: pulumi.String("/"),
Size: pulumi.Float64(-1),
Raid: pulumi.String("boot-raid"),
},
&selectel.DedicatedServerV1PartitionsConfigDiskPartitionArgs{
Mount: pulumi.String("/data"),
Size: pulumi.Float64(-1),
Raid: pulumi.String("data-raid"),
FsType: pulumi.String("xfs"),
},
},
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Selectel = Pulumi.Selectel;
return await Deployment.RunAsync(() =>
{
var serverMultiRaid = new Selectel.DedicatedServerV1("server_multi_raid", new()
{
ProjectId = project1.Id,
ConfigurationId = serverConfig.Configurations[0].Id,
LocationId = serverLocation.Locations[0].Id,
OsId = serverOs.Os[0].Id,
PricePlanName = "1 day",
PartitionsConfigs = new[]
{
new Selectel.Inputs.DedicatedServerV1PartitionsConfigArgs
{
SoftRaidConfigs = new[]
{
new Selectel.Inputs.DedicatedServerV1PartitionsConfigSoftRaidConfigArgs
{
Name = "boot-raid",
Level = "raid1",
DiskType = "SSD NVMe",
Count = 2,
},
new Selectel.Inputs.DedicatedServerV1PartitionsConfigSoftRaidConfigArgs
{
Name = "data-raid",
Level = "raid0",
DiskType = "SSD NVMe",
Count = 2,
},
},
DiskPartitions = new[]
{
new Selectel.Inputs.DedicatedServerV1PartitionsConfigDiskPartitionArgs
{
Mount = "/boot",
Size = 1,
Raid = "boot-raid",
},
new Selectel.Inputs.DedicatedServerV1PartitionsConfigDiskPartitionArgs
{
Mount = "/",
Size = -1,
Raid = "boot-raid",
},
new Selectel.Inputs.DedicatedServerV1PartitionsConfigDiskPartitionArgs
{
Mount = "/data",
Size = -1,
Raid = "data-raid",
FsType = "xfs",
},
},
},
},
});
});
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 serverMultiRaid = new DedicatedServerV1("serverMultiRaid", DedicatedServerV1Args.builder()
.projectId(project1.id())
.configurationId(serverConfig.configurations()[0].id())
.locationId(serverLocation.locations()[0].id())
.osId(serverOs.os()[0].id())
.pricePlanName("1 day")
.partitionsConfigs(DedicatedServerV1PartitionsConfigArgs.builder()
.softRaidConfigs(
DedicatedServerV1PartitionsConfigSoftRaidConfigArgs.builder()
.name("boot-raid")
.level("raid1")
.diskType("SSD NVMe")
.count(2.0)
.build(),
DedicatedServerV1PartitionsConfigSoftRaidConfigArgs.builder()
.name("data-raid")
.level("raid0")
.diskType("SSD NVMe")
.count(2.0)
.build())
.diskPartitions(
DedicatedServerV1PartitionsConfigDiskPartitionArgs.builder()
.mount("/boot")
.size(1.0)
.raid("boot-raid")
.build(),
DedicatedServerV1PartitionsConfigDiskPartitionArgs.builder()
.mount("/")
.size(-1.0)
.raid("boot-raid")
.build(),
DedicatedServerV1PartitionsConfigDiskPartitionArgs.builder()
.mount("/data")
.size(-1.0)
.raid("data-raid")
.fsType("xfs")
.build())
.build())
.build());
}
}
resources:
serverMultiRaid:
type: selectel:DedicatedServerV1
name: server_multi_raid
properties:
projectId: ${project1.id}
configurationId: ${serverConfig.configurations[0].id}
locationId: ${serverLocation.locations[0].id}
osId: ${serverOs.os[0].id}
pricePlanName: 1 day
partitionsConfigs:
- softRaidConfigs:
- name: boot-raid
level: raid1
diskType: SSD NVMe
count: 2
- name: data-raid
level: raid0
diskType: SSD NVMe
count: 2
diskPartitions:
- mount: /boot
size: 1
raid: boot-raid
- mount: /
size: -1
raid: boot-raid
- mount: /data
size: -1
raid: data-raid
fsType: xfs
Example coming soon!
Server with single disk configuration without RAID
import * as pulumi from "@pulumi/pulumi";
import * as selectel from "@pulumi/selectel";
const serverSingleDisk = new selectel.DedicatedServerV1("server_single_disk", {
projectId: project1.id,
configurationId: serverConfig.configurations[0].id,
locationId: serverLocation.locations[0].id,
osId: serverOs.os[0].id,
pricePlanName: "1 day",
partitionsConfigs: [{
diskConfigs: [
{
name: "system-disk",
diskType: "SSD NVMe",
},
{
name: "data-disk",
diskType: "HDD SATA",
},
],
diskPartitions: [
{
mount: "/boot",
size: 1,
diskName: "system-disk",
},
{
mount: "/",
size: -1,
diskName: "system-disk",
},
{
mount: "/data",
size: -1,
diskName: "data-disk",
fsType: "xfs",
},
],
}],
});
import pulumi
import pulumi_selectel as selectel
server_single_disk = selectel.DedicatedServerV1("server_single_disk",
project_id=project1["id"],
configuration_id=server_config["configurations"][0]["id"],
location_id=server_location["locations"][0]["id"],
os_id=server_os["os"][0]["id"],
price_plan_name="1 day",
partitions_configs=[{
"disk_configs": [
{
"name": "system-disk",
"disk_type": "SSD NVMe",
},
{
"name": "data-disk",
"disk_type": "HDD SATA",
},
],
"disk_partitions": [
{
"mount": "/boot",
"size": 1,
"disk_name": "system-disk",
},
{
"mount": "/",
"size": -1,
"disk_name": "system-disk",
},
{
"mount": "/data",
"size": -1,
"disk_name": "data-disk",
"fs_type": "xfs",
},
],
}])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/selectel/v8/selectel"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := selectel.NewDedicatedServerV1(ctx, "server_single_disk", &selectel.DedicatedServerV1Args{
ProjectId: pulumi.Any(project1.Id),
ConfigurationId: pulumi.Any(serverConfig.Configurations[0].Id),
LocationId: pulumi.Any(serverLocation.Locations[0].Id),
OsId: pulumi.Any(serverOs.Os[0].Id),
PricePlanName: pulumi.String("1 day"),
PartitionsConfigs: selectel.DedicatedServerV1PartitionsConfigArray{
&selectel.DedicatedServerV1PartitionsConfigArgs{
DiskConfigs: selectel.DedicatedServerV1PartitionsConfigDiskConfigArray{
&selectel.DedicatedServerV1PartitionsConfigDiskConfigArgs{
Name: pulumi.String("system-disk"),
DiskType: pulumi.String("SSD NVMe"),
},
&selectel.DedicatedServerV1PartitionsConfigDiskConfigArgs{
Name: pulumi.String("data-disk"),
DiskType: pulumi.String("HDD SATA"),
},
},
DiskPartitions: selectel.DedicatedServerV1PartitionsConfigDiskPartitionArray{
&selectel.DedicatedServerV1PartitionsConfigDiskPartitionArgs{
Mount: pulumi.String("/boot"),
Size: pulumi.Float64(1),
DiskName: pulumi.String("system-disk"),
},
&selectel.DedicatedServerV1PartitionsConfigDiskPartitionArgs{
Mount: pulumi.String("/"),
Size: pulumi.Float64(-1),
DiskName: pulumi.String("system-disk"),
},
&selectel.DedicatedServerV1PartitionsConfigDiskPartitionArgs{
Mount: pulumi.String("/data"),
Size: pulumi.Float64(-1),
DiskName: pulumi.String("data-disk"),
FsType: pulumi.String("xfs"),
},
},
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Selectel = Pulumi.Selectel;
return await Deployment.RunAsync(() =>
{
var serverSingleDisk = new Selectel.DedicatedServerV1("server_single_disk", new()
{
ProjectId = project1.Id,
ConfigurationId = serverConfig.Configurations[0].Id,
LocationId = serverLocation.Locations[0].Id,
OsId = serverOs.Os[0].Id,
PricePlanName = "1 day",
PartitionsConfigs = new[]
{
new Selectel.Inputs.DedicatedServerV1PartitionsConfigArgs
{
DiskConfigs = new[]
{
new Selectel.Inputs.DedicatedServerV1PartitionsConfigDiskConfigArgs
{
Name = "system-disk",
DiskType = "SSD NVMe",
},
new Selectel.Inputs.DedicatedServerV1PartitionsConfigDiskConfigArgs
{
Name = "data-disk",
DiskType = "HDD SATA",
},
},
DiskPartitions = new[]
{
new Selectel.Inputs.DedicatedServerV1PartitionsConfigDiskPartitionArgs
{
Mount = "/boot",
Size = 1,
DiskName = "system-disk",
},
new Selectel.Inputs.DedicatedServerV1PartitionsConfigDiskPartitionArgs
{
Mount = "/",
Size = -1,
DiskName = "system-disk",
},
new Selectel.Inputs.DedicatedServerV1PartitionsConfigDiskPartitionArgs
{
Mount = "/data",
Size = -1,
DiskName = "data-disk",
FsType = "xfs",
},
},
},
},
});
});
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 serverSingleDisk = new DedicatedServerV1("serverSingleDisk", DedicatedServerV1Args.builder()
.projectId(project1.id())
.configurationId(serverConfig.configurations()[0].id())
.locationId(serverLocation.locations()[0].id())
.osId(serverOs.os()[0].id())
.pricePlanName("1 day")
.partitionsConfigs(DedicatedServerV1PartitionsConfigArgs.builder()
.diskConfigs(
DedicatedServerV1PartitionsConfigDiskConfigArgs.builder()
.name("system-disk")
.diskType("SSD NVMe")
.build(),
DedicatedServerV1PartitionsConfigDiskConfigArgs.builder()
.name("data-disk")
.diskType("HDD SATA")
.build())
.diskPartitions(
DedicatedServerV1PartitionsConfigDiskPartitionArgs.builder()
.mount("/boot")
.size(1.0)
.diskName("system-disk")
.build(),
DedicatedServerV1PartitionsConfigDiskPartitionArgs.builder()
.mount("/")
.size(-1.0)
.diskName("system-disk")
.build(),
DedicatedServerV1PartitionsConfigDiskPartitionArgs.builder()
.mount("/data")
.size(-1.0)
.diskName("data-disk")
.fsType("xfs")
.build())
.build())
.build());
}
}
resources:
serverSingleDisk:
type: selectel:DedicatedServerV1
name: server_single_disk
properties:
projectId: ${project1.id}
configurationId: ${serverConfig.configurations[0].id}
locationId: ${serverLocation.locations[0].id}
osId: ${serverOs.os[0].id}
pricePlanName: 1 day
partitionsConfigs:
- diskConfigs:
- name: system-disk
diskType: SSD NVMe
- name: data-disk
diskType: HDD SATA
diskPartitions:
- mount: /boot
size: 1
diskName: system-disk
- mount: /
size: -1
diskName: system-disk
- mount: /data
size: -1
diskName: data-disk
fsType: xfs
Example coming soon!
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,
configuration_id: Optional[str] = None,
project_id: Optional[str] = None,
price_plan_name: Optional[str] = None,
location_id: Optional[str] = None,
os_host_name: Optional[str] = None,
private_subnet_id: Optional[str] = None,
os_password: Optional[str] = None,
partitions_configs: Optional[Sequence[DedicatedServerV1PartitionsConfigArgs]] = None,
power_state: Optional[str] = None,
force_update_additional_params: Optional[bool] = None,
private_subnet: Optional[str] = None,
add_private_vlan: Optional[bool] = None,
private_subnet_ip: Optional[str] = None,
dedicated_server_v1_id: Optional[str] = None,
public_subnet_id: Optional[str] = None,
public_subnet_ip: 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.
resource "selectel_dedicatedserverv1" "name" {
# resource properties
}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",
ConfigurationId = "string",
ProjectId = "string",
PricePlanName = "string",
LocationId = "string",
OsHostName = "string",
PrivateSubnetId = "string",
OsPassword = "string",
PartitionsConfigs = new[]
{
new Selectel.Inputs.DedicatedServerV1PartitionsConfigArgs
{
DiskConfigs = new[]
{
new Selectel.Inputs.DedicatedServerV1PartitionsConfigDiskConfigArgs
{
DiskType = "string",
Name = "string",
},
},
DiskPartitions = new[]
{
new Selectel.Inputs.DedicatedServerV1PartitionsConfigDiskPartitionArgs
{
Mount = "string",
DiskName = "string",
FsType = "string",
Raid = "string",
Size = 0,
SizePercent = 0,
},
},
SoftRaidConfigs = new[]
{
new Selectel.Inputs.DedicatedServerV1PartitionsConfigSoftRaidConfigArgs
{
DiskType = "string",
Level = "string",
Name = "string",
Count = 0,
},
},
},
},
PowerState = "string",
ForceUpdateAdditionalParams = false,
AddPrivateVlan = false,
PrivateSubnetIp = "string",
DedicatedServerV1Id = "string",
PublicSubnetId = "string",
PublicSubnetIp = "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"),
ConfigurationId: pulumi.String("string"),
ProjectId: pulumi.String("string"),
PricePlanName: pulumi.String("string"),
LocationId: pulumi.String("string"),
OsHostName: pulumi.String("string"),
PrivateSubnetId: pulumi.String("string"),
OsPassword: pulumi.String("string"),
PartitionsConfigs: selectel.DedicatedServerV1PartitionsConfigArray{
&selectel.DedicatedServerV1PartitionsConfigArgs{
DiskConfigs: selectel.DedicatedServerV1PartitionsConfigDiskConfigArray{
&selectel.DedicatedServerV1PartitionsConfigDiskConfigArgs{
DiskType: pulumi.String("string"),
Name: pulumi.String("string"),
},
},
DiskPartitions: selectel.DedicatedServerV1PartitionsConfigDiskPartitionArray{
&selectel.DedicatedServerV1PartitionsConfigDiskPartitionArgs{
Mount: pulumi.String("string"),
DiskName: pulumi.String("string"),
FsType: pulumi.String("string"),
Raid: 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"),
Count: pulumi.Float64(0),
},
},
},
},
PowerState: pulumi.String("string"),
ForceUpdateAdditionalParams: pulumi.Bool(false),
AddPrivateVlan: pulumi.Bool(false),
PrivateSubnetIp: pulumi.String("string"),
DedicatedServerV1Id: pulumi.String("string"),
PublicSubnetId: pulumi.String("string"),
PublicSubnetIp: 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"),
})
resource "selectel_dedicatedserverv1" "dedicatedServerV1Resource" {
os_id = "string"
configuration_id = "string"
project_id = "string"
price_plan_name = "string"
location_id = "string"
os_host_name = "string"
private_subnet_id = "string"
os_password = "string"
partitions_configs {
disk_configs {
disk_type = "string"
name = "string"
}
disk_partitions {
mount = "string"
disk_name = "string"
fs_type = "string"
raid = "string"
size = 0
size_percent = 0
}
soft_raid_configs {
disk_type = "string"
level = "string"
name = "string"
count = 0
}
}
power_state = "string"
force_update_additional_params = false
add_private_vlan = false
private_subnet_ip = "string"
dedicated_server_v1_id = "string"
public_subnet_id = "string"
public_subnet_ip = "string"
ssh_key = "string"
ssh_key_name = "string"
timeouts = {
create = "string"
delete = "string"
update = "string"
}
user_data = "string"
}
var dedicatedServerV1Resource = new DedicatedServerV1("dedicatedServerV1Resource", DedicatedServerV1Args.builder()
.osId("string")
.configurationId("string")
.projectId("string")
.pricePlanName("string")
.locationId("string")
.osHostName("string")
.privateSubnetId("string")
.osPassword("string")
.partitionsConfigs(DedicatedServerV1PartitionsConfigArgs.builder()
.diskConfigs(DedicatedServerV1PartitionsConfigDiskConfigArgs.builder()
.diskType("string")
.name("string")
.build())
.diskPartitions(DedicatedServerV1PartitionsConfigDiskPartitionArgs.builder()
.mount("string")
.diskName("string")
.fsType("string")
.raid("string")
.size(0.0)
.sizePercent(0.0)
.build())
.softRaidConfigs(DedicatedServerV1PartitionsConfigSoftRaidConfigArgs.builder()
.diskType("string")
.level("string")
.name("string")
.count(0.0)
.build())
.build())
.powerState("string")
.forceUpdateAdditionalParams(false)
.addPrivateVlan(false)
.privateSubnetIp("string")
.dedicatedServerV1Id("string")
.publicSubnetId("string")
.publicSubnetIp("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",
configuration_id="string",
project_id="string",
price_plan_name="string",
location_id="string",
os_host_name="string",
private_subnet_id="string",
os_password="string",
partitions_configs=[{
"disk_configs": [{
"disk_type": "string",
"name": "string",
}],
"disk_partitions": [{
"mount": "string",
"disk_name": "string",
"fs_type": "string",
"raid": "string",
"size": float(0),
"size_percent": float(0),
}],
"soft_raid_configs": [{
"disk_type": "string",
"level": "string",
"name": "string",
"count": float(0),
}],
}],
power_state="string",
force_update_additional_params=False,
add_private_vlan=False,
private_subnet_ip="string",
dedicated_server_v1_id="string",
public_subnet_id="string",
public_subnet_ip="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",
configurationId: "string",
projectId: "string",
pricePlanName: "string",
locationId: "string",
osHostName: "string",
privateSubnetId: "string",
osPassword: "string",
partitionsConfigs: [{
diskConfigs: [{
diskType: "string",
name: "string",
}],
diskPartitions: [{
mount: "string",
diskName: "string",
fsType: "string",
raid: "string",
size: 0,
sizePercent: 0,
}],
softRaidConfigs: [{
diskType: "string",
level: "string",
name: "string",
count: 0,
}],
}],
powerState: "string",
forceUpdateAdditionalParams: false,
addPrivateVlan: false,
privateSubnetIp: "string",
dedicatedServerV1Id: "string",
publicSubnetId: "string",
publicSubnetIp: "string",
sshKey: "string",
sshKeyName: "string",
timeouts: {
create: "string",
"delete": "string",
update: "string",
},
userData: "string",
});
type: selectel:DedicatedServerV1
properties:
addPrivateVlan: false
configurationId: string
dedicatedServerV1Id: string
forceUpdateAdditionalParams: false
locationId: string
osHostName: string
osId: string
osPassword: string
partitionsConfigs:
- diskConfigs:
- diskType: string
name: string
diskPartitions:
- diskName: string
fsType: string
mount: string
raid: string
size: 0
sizePercent: 0
softRaidConfigs:
- count: 0
diskType: string
level: string
name: string
powerState: string
pricePlanName: string
privateSubnetId: string
privateSubnetIp: string
projectId: string
publicSubnetId: string
publicSubnetIp: 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:
- Configuration
Id string - Unique identifier of the server configuration. Retrieved from the dedicated_configuration_v1 data source.
- Location
Id string - Pool where the server is located. Retrieved from the dedicated_location_v1 data source.
- Os
Id string - Unique identifier of the operating system to install. Changing this installs new os on a new server. Installing a new operating system deletes all data on the server. Retrieved from the dedicated_os_v1 data source.
- Price
Plan stringName - The name of the price plan. Available tariff plans are
1 day,1 month,3 months,6 months,12 months, and12 months • monthly payment. Learn more about tariff plans in the Payment model and prices of a dedicated server. - Project
Id string - Unique identifier of the associated project. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
- Add
Private boolVlan - Adds a private VLAN to the server. Boolean flag, the default value is false.
- Dedicated
Server stringV1Id - Unique identifier of the server.
- Force
Update boolAdditional Params - Enables or disables update of operating system parameters without changing os_id. The operating system parameters are os_password, user_data, ssh_key, ssh_key_name, partitions_config, and os_host_name. After updating operating system parameters, a new operating system will be installed. Installation of a new operating system will delete all data on the server.
- Os
Host stringName - Hostname for the server.
- Os
Password string - — (Optional) Password for the operating system user. After the operating system is installed, a password will be generated to connect to the server. To get the password, in the Control panel, go to Products → Dedicated Servers → Server page → Operating System tab → in the Password field. The password is available for 24 hours from the start of the operating system installation or configuration change. If you forget the server password, you can reset and restore it.
- Partitions
Configs List<DedicatedServer V1Partitions Config> - Configuration for disk partitions. Learn more about disk partitioning in the Install the OS by auto-installation.
- Power
State string - Power state of the server. Available values are on, off, and reboot. The default value is on. Cannot be set during server creation — servers are always created in the on state. Use power_state only for updating an existing server's power state. Changing power_state is mutually exclusive with changes of arguments: os_id, os_password, ssh_key, ssh_key_name, partitions_config, user_data, os_host_name and force_update_additional_params.
- Private
Subnet string - Private
Subnet stringId - Unique identifier of the private subnet to connect to the server. Changing this deletes the existing server and creates a new server. Retrieved from the selectel.DedicatedPrivateSubnetV1 data source.
- Private
Subnet stringIp - Private IP address to assign to the server within the private subnet. Must be used together with private_subnet_id.
- Public
Subnet stringId - Unique identifier of the public subnet to connect to the server. Retrieved from the selectel.getDedicatedPublicSubnetV1 data source.
- Public
Subnet stringIp - Public IP address to assign to the server within the public subnet.
- Ssh
Key string - The public SSH key to be added to the server.
- Ssh
Key stringName - Name of an existing SSH key to be added to the server. Learn more about add a public SSH key to the SSH key repository in the Create and host an SSH key on a dedicated server.
- Timeouts
Dedicated
Server V1Timeouts - — (Optional) Timeout values.
The default values are the following:
- create = "80m",
- update = "20m",
- delete = "5m".
- User
Data string - Custom configuration settings that automate perform common tasks or execute server setup scripts, reducing the time required to configure and deploy your infrastructure. Learn more about user data in the User data on a dedicated server.
- Configuration
Id string - Unique identifier of the server configuration. Retrieved from the dedicated_configuration_v1 data source.
- Location
Id string - Pool where the server is located. Retrieved from the dedicated_location_v1 data source.
- Os
Id string - Unique identifier of the operating system to install. Changing this installs new os on a new server. Installing a new operating system deletes all data on the server. Retrieved from the dedicated_os_v1 data source.
- Price
Plan stringName - The name of the price plan. Available tariff plans are
1 day,1 month,3 months,6 months,12 months, and12 months • monthly payment. Learn more about tariff plans in the Payment model and prices of a dedicated server. - Project
Id string - Unique identifier of the associated project. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
- Add
Private boolVlan - Adds a private VLAN to the server. Boolean flag, the default value is false.
- Dedicated
Server stringV1Id - Unique identifier of the server.
- Force
Update boolAdditional Params - Enables or disables update of operating system parameters without changing os_id. The operating system parameters are os_password, user_data, ssh_key, ssh_key_name, partitions_config, and os_host_name. After updating operating system parameters, a new operating system will be installed. Installation of a new operating system will delete all data on the server.
- Os
Host stringName - Hostname for the server.
- Os
Password string - — (Optional) Password for the operating system user. After the operating system is installed, a password will be generated to connect to the server. To get the password, in the Control panel, go to Products → Dedicated Servers → Server page → Operating System tab → in the Password field. The password is available for 24 hours from the start of the operating system installation or configuration change. If you forget the server password, you can reset and restore it.
- Partitions
Configs []DedicatedServer V1Partitions Config Args - Configuration for disk partitions. Learn more about disk partitioning in the Install the OS by auto-installation.
- Power
State string - Power state of the server. Available values are on, off, and reboot. The default value is on. Cannot be set during server creation — servers are always created in the on state. Use power_state only for updating an existing server's power state. Changing power_state is mutually exclusive with changes of arguments: os_id, os_password, ssh_key, ssh_key_name, partitions_config, user_data, os_host_name and force_update_additional_params.
- Private
Subnet string - Private
Subnet stringId - Unique identifier of the private subnet to connect to the server. Changing this deletes the existing server and creates a new server. Retrieved from the selectel.DedicatedPrivateSubnetV1 data source.
- Private
Subnet stringIp - Private IP address to assign to the server within the private subnet. Must be used together with private_subnet_id.
- Public
Subnet stringId - Unique identifier of the public subnet to connect to the server. Retrieved from the selectel.getDedicatedPublicSubnetV1 data source.
- Public
Subnet stringIp - Public IP address to assign to the server within the public subnet.
- Ssh
Key string - The public SSH key to be added to the server.
- Ssh
Key stringName - Name of an existing SSH key to be added to the server. Learn more about add a public SSH key to the SSH key repository in the Create and host an SSH key on a dedicated server.
- Timeouts
Dedicated
Server V1Timeouts Args - — (Optional) Timeout values.
The default values are the following:
- create = "80m",
- update = "20m",
- delete = "5m".
- User
Data string - Custom configuration settings that automate perform common tasks or execute server setup scripts, reducing the time required to configure and deploy your infrastructure. Learn more about user data in the User data on a dedicated server.
- configuration_
id string - Unique identifier of the server configuration. Retrieved from the dedicated_configuration_v1 data source.
- location_
id string - Pool where the server is located. Retrieved from the dedicated_location_v1 data source.
- os_
id string - Unique identifier of the operating system to install. Changing this installs new os on a new server. Installing a new operating system deletes all data on the server. Retrieved from the dedicated_os_v1 data source.
- price_
plan_ stringname - The name of the price plan. Available tariff plans are
1 day,1 month,3 months,6 months,12 months, and12 months • monthly payment. Learn more about tariff plans in the Payment model and prices of a dedicated server. - project_
id string - Unique identifier of the associated project. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
- add_
private_ boolvlan - Adds a private VLAN to the server. Boolean flag, the default value is false.
- dedicated_
server_ stringv1_ id - Unique identifier of the server.
- force_
update_ booladditional_ params - Enables or disables update of operating system parameters without changing os_id. The operating system parameters are os_password, user_data, ssh_key, ssh_key_name, partitions_config, and os_host_name. After updating operating system parameters, a new operating system will be installed. Installation of a new operating system will delete all data on the server.
- os_
host_ stringname - Hostname for the server.
- os_
password string - — (Optional) Password for the operating system user. After the operating system is installed, a password will be generated to connect to the server. To get the password, in the Control panel, go to Products → Dedicated Servers → Server page → Operating System tab → in the Password field. The password is available for 24 hours from the start of the operating system installation or configuration change. If you forget the server password, you can reset and restore it.
- partitions_
configs list(object) - Configuration for disk partitions. Learn more about disk partitioning in the Install the OS by auto-installation.
- power_
state string - Power state of the server. Available values are on, off, and reboot. The default value is on. Cannot be set during server creation — servers are always created in the on state. Use power_state only for updating an existing server's power state. Changing power_state is mutually exclusive with changes of arguments: os_id, os_password, ssh_key, ssh_key_name, partitions_config, user_data, os_host_name and force_update_additional_params.
- private_
subnet string - private_
subnet_ stringid - Unique identifier of the private subnet to connect to the server. Changing this deletes the existing server and creates a new server. Retrieved from the selectel.DedicatedPrivateSubnetV1 data source.
- private_
subnet_ stringip - Private IP address to assign to the server within the private subnet. Must be used together with private_subnet_id.
- public_
subnet_ stringid - Unique identifier of the public subnet to connect to the server. Retrieved from the selectel.getDedicatedPublicSubnetV1 data source.
- public_
subnet_ stringip - Public IP address to assign to the server within the public subnet.
- ssh_
key string - The public SSH key to be added to the server.
- ssh_
key_ stringname - Name of an existing SSH key to be added to the server. Learn more about add a public SSH key to the SSH key repository in the Create and host an SSH key on a dedicated server.
- timeouts object
- — (Optional) Timeout values.
The default values are the following:
- create = "80m",
- update = "20m",
- delete = "5m".
- user_
data string - Custom configuration settings that automate perform common tasks or execute server setup scripts, reducing the time required to configure and deploy your infrastructure. Learn more about user data in the User data on a dedicated server.
- configuration
Id String - Unique identifier of the server configuration. Retrieved from the dedicated_configuration_v1 data source.
- location
Id String - Pool where the server is located. Retrieved from the dedicated_location_v1 data source.
- os
Id String - Unique identifier of the operating system to install. Changing this installs new os on a new server. Installing a new operating system deletes all data on the server. Retrieved from the dedicated_os_v1 data source.
- price
Plan StringName - The name of the price plan. Available tariff plans are
1 day,1 month,3 months,6 months,12 months, and12 months • monthly payment. Learn more about tariff plans in the Payment model and prices of a dedicated server. - project
Id String - Unique identifier of the associated project. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
- add
Private BooleanVlan - Adds a private VLAN to the server. Boolean flag, the default value is false.
- dedicated
Server StringV1Id - Unique identifier of the server.
- force
Update BooleanAdditional Params - Enables or disables update of operating system parameters without changing os_id. The operating system parameters are os_password, user_data, ssh_key, ssh_key_name, partitions_config, and os_host_name. After updating operating system parameters, a new operating system will be installed. Installation of a new operating system will delete all data on the server.
- os
Host StringName - Hostname for the server.
- os
Password String - — (Optional) Password for the operating system user. After the operating system is installed, a password will be generated to connect to the server. To get the password, in the Control panel, go to Products → Dedicated Servers → Server page → Operating System tab → in the Password field. The password is available for 24 hours from the start of the operating system installation or configuration change. If you forget the server password, you can reset and restore it.
- partitions
Configs List<DedicatedServer V1Partitions Config> - Configuration for disk partitions. Learn more about disk partitioning in the Install the OS by auto-installation.
- power
State String - Power state of the server. Available values are on, off, and reboot. The default value is on. Cannot be set during server creation — servers are always created in the on state. Use power_state only for updating an existing server's power state. Changing power_state is mutually exclusive with changes of arguments: os_id, os_password, ssh_key, ssh_key_name, partitions_config, user_data, os_host_name and force_update_additional_params.
- private
Subnet String - private
Subnet StringId - Unique identifier of the private subnet to connect to the server. Changing this deletes the existing server and creates a new server. Retrieved from the selectel.DedicatedPrivateSubnetV1 data source.
- private
Subnet StringIp - Private IP address to assign to the server within the private subnet. Must be used together with private_subnet_id.
- public
Subnet StringId - Unique identifier of the public subnet to connect to the server. Retrieved from the selectel.getDedicatedPublicSubnetV1 data source.
- public
Subnet StringIp - Public IP address to assign to the server within the public subnet.
- ssh
Key String - The public SSH key to be added to the server.
- ssh
Key StringName - Name of an existing SSH key to be added to the server. Learn more about add a public SSH key to the SSH key repository in the Create and host an SSH key on a dedicated server.
- timeouts
Dedicated
Server V1Timeouts - — (Optional) Timeout values.
The default values are the following:
- create = "80m",
- update = "20m",
- delete = "5m".
- user
Data String - Custom configuration settings that automate perform common tasks or execute server setup scripts, reducing the time required to configure and deploy your infrastructure. Learn more about user data in the User data on a dedicated server.
- configuration
Id string - Unique identifier of the server configuration. Retrieved from the dedicated_configuration_v1 data source.
- location
Id string - Pool where the server is located. Retrieved from the dedicated_location_v1 data source.
- os
Id string - Unique identifier of the operating system to install. Changing this installs new os on a new server. Installing a new operating system deletes all data on the server. Retrieved from the dedicated_os_v1 data source.
- price
Plan stringName - The name of the price plan. Available tariff plans are
1 day,1 month,3 months,6 months,12 months, and12 months • monthly payment. Learn more about tariff plans in the Payment model and prices of a dedicated server. - project
Id string - Unique identifier of the associated project. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
- add
Private booleanVlan - Adds a private VLAN to the server. Boolean flag, the default value is false.
- dedicated
Server stringV1Id - Unique identifier of the server.
- force
Update booleanAdditional Params - Enables or disables update of operating system parameters without changing os_id. The operating system parameters are os_password, user_data, ssh_key, ssh_key_name, partitions_config, and os_host_name. After updating operating system parameters, a new operating system will be installed. Installation of a new operating system will delete all data on the server.
- os
Host stringName - Hostname for the server.
- os
Password string - — (Optional) Password for the operating system user. After the operating system is installed, a password will be generated to connect to the server. To get the password, in the Control panel, go to Products → Dedicated Servers → Server page → Operating System tab → in the Password field. The password is available for 24 hours from the start of the operating system installation or configuration change. If you forget the server password, you can reset and restore it.
- partitions
Configs DedicatedServer V1Partitions Config[] - Configuration for disk partitions. Learn more about disk partitioning in the Install the OS by auto-installation.
- power
State string - Power state of the server. Available values are on, off, and reboot. The default value is on. Cannot be set during server creation — servers are always created in the on state. Use power_state only for updating an existing server's power state. Changing power_state is mutually exclusive with changes of arguments: os_id, os_password, ssh_key, ssh_key_name, partitions_config, user_data, os_host_name and force_update_additional_params.
- private
Subnet string - private
Subnet stringId - Unique identifier of the private subnet to connect to the server. Changing this deletes the existing server and creates a new server. Retrieved from the selectel.DedicatedPrivateSubnetV1 data source.
- private
Subnet stringIp - Private IP address to assign to the server within the private subnet. Must be used together with private_subnet_id.
- public
Subnet stringId - Unique identifier of the public subnet to connect to the server. Retrieved from the selectel.getDedicatedPublicSubnetV1 data source.
- public
Subnet stringIp - Public IP address to assign to the server within the public subnet.
- ssh
Key string - The public SSH key to be added to the server.
- ssh
Key stringName - Name of an existing SSH key to be added to the server. Learn more about add a public SSH key to the SSH key repository in the Create and host an SSH key on a dedicated server.
- timeouts
Dedicated
Server V1Timeouts - — (Optional) Timeout values.
The default values are the following:
- create = "80m",
- update = "20m",
- delete = "5m".
- user
Data string - Custom configuration settings that automate perform common tasks or execute server setup scripts, reducing the time required to configure and deploy your infrastructure. Learn more about user data in the User data on a dedicated server.
- configuration_
id str - Unique identifier of the server configuration. Retrieved from the dedicated_configuration_v1 data source.
- location_
id str - Pool where the server is located. Retrieved from the dedicated_location_v1 data source.
- os_
id str - Unique identifier of the operating system to install. Changing this installs new os on a new server. Installing a new operating system deletes all data on the server. Retrieved from the dedicated_os_v1 data source.
- price_
plan_ strname - The name of the price plan. Available tariff plans are
1 day,1 month,3 months,6 months,12 months, and12 months • monthly payment. Learn more about tariff plans in the Payment model and prices of a dedicated server. - project_
id str - Unique identifier of the associated project. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
- add_
private_ boolvlan - Adds a private VLAN to the server. Boolean flag, the default value is false.
- dedicated_
server_ strv1_ id - Unique identifier of the server.
- force_
update_ booladditional_ params - Enables or disables update of operating system parameters without changing os_id. The operating system parameters are os_password, user_data, ssh_key, ssh_key_name, partitions_config, and os_host_name. After updating operating system parameters, a new operating system will be installed. Installation of a new operating system will delete all data on the server.
- os_
host_ strname - Hostname for the server.
- os_
password str - — (Optional) Password for the operating system user. After the operating system is installed, a password will be generated to connect to the server. To get the password, in the Control panel, go to Products → Dedicated Servers → Server page → Operating System tab → in the Password field. The password is available for 24 hours from the start of the operating system installation or configuration change. If you forget the server password, you can reset and restore it.
- partitions_
configs Sequence[DedicatedServer V1Partitions Config Args] - Configuration for disk partitions. Learn more about disk partitioning in the Install the OS by auto-installation.
- power_
state str - Power state of the server. Available values are on, off, and reboot. The default value is on. Cannot be set during server creation — servers are always created in the on state. Use power_state only for updating an existing server's power state. Changing power_state is mutually exclusive with changes of arguments: os_id, os_password, ssh_key, ssh_key_name, partitions_config, user_data, os_host_name and force_update_additional_params.
- private_
subnet str - private_
subnet_ strid - Unique identifier of the private subnet to connect to the server. Changing this deletes the existing server and creates a new server. Retrieved from the selectel.DedicatedPrivateSubnetV1 data source.
- private_
subnet_ strip - Private IP address to assign to the server within the private subnet. Must be used together with private_subnet_id.
- public_
subnet_ strid - Unique identifier of the public subnet to connect to the server. Retrieved from the selectel.getDedicatedPublicSubnetV1 data source.
- public_
subnet_ strip - Public IP address to assign to the server within the public subnet.
- ssh_
key str - The public SSH key to be added to the server.
- ssh_
key_ strname - Name of an existing SSH key to be added to the server. Learn more about add a public SSH key to the SSH key repository in the Create and host an SSH key on a dedicated server.
- timeouts
Dedicated
Server V1Timeouts Args - — (Optional) Timeout values.
The default values are the following:
- create = "80m",
- update = "20m",
- delete = "5m".
- user_
data str - Custom configuration settings that automate perform common tasks or execute server setup scripts, reducing the time required to configure and deploy your infrastructure. Learn more about user data in the User data on a dedicated server.
- configuration
Id String - Unique identifier of the server configuration. Retrieved from the dedicated_configuration_v1 data source.
- location
Id String - Pool where the server is located. Retrieved from the dedicated_location_v1 data source.
- os
Id String - Unique identifier of the operating system to install. Changing this installs new os on a new server. Installing a new operating system deletes all data on the server. Retrieved from the dedicated_os_v1 data source.
- price
Plan StringName - The name of the price plan. Available tariff plans are
1 day,1 month,3 months,6 months,12 months, and12 months • monthly payment. Learn more about tariff plans in the Payment model and prices of a dedicated server. - project
Id String - Unique identifier of the associated project. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
- add
Private BooleanVlan - Adds a private VLAN to the server. Boolean flag, the default value is false.
- dedicated
Server StringV1Id - Unique identifier of the server.
- force
Update BooleanAdditional Params - Enables or disables update of operating system parameters without changing os_id. The operating system parameters are os_password, user_data, ssh_key, ssh_key_name, partitions_config, and os_host_name. After updating operating system parameters, a new operating system will be installed. Installation of a new operating system will delete all data on the server.
- os
Host StringName - Hostname for the server.
- os
Password String - — (Optional) Password for the operating system user. After the operating system is installed, a password will be generated to connect to the server. To get the password, in the Control panel, go to Products → Dedicated Servers → Server page → Operating System tab → in the Password field. The password is available for 24 hours from the start of the operating system installation or configuration change. If you forget the server password, you can reset and restore it.
- partitions
Configs List<Property Map> - Configuration for disk partitions. Learn more about disk partitioning in the Install the OS by auto-installation.
- power
State String - Power state of the server. Available values are on, off, and reboot. The default value is on. Cannot be set during server creation — servers are always created in the on state. Use power_state only for updating an existing server's power state. Changing power_state is mutually exclusive with changes of arguments: os_id, os_password, ssh_key, ssh_key_name, partitions_config, user_data, os_host_name and force_update_additional_params.
- private
Subnet String - private
Subnet StringId - Unique identifier of the private subnet to connect to the server. Changing this deletes the existing server and creates a new server. Retrieved from the selectel.DedicatedPrivateSubnetV1 data source.
- private
Subnet StringIp - Private IP address to assign to the server within the private subnet. Must be used together with private_subnet_id.
- public
Subnet StringId - Unique identifier of the public subnet to connect to the server. Retrieved from the selectel.getDedicatedPublicSubnetV1 data source.
- public
Subnet StringIp - Public IP address to assign to the server within the public subnet.
- ssh
Key String - The public SSH key to be added to the server.
- ssh
Key StringName - Name of an existing SSH key to be added to the server. Learn more about add a public SSH key to the SSH key repository in the Create and host an SSH key on a dedicated server.
- timeouts Property Map
- — (Optional) Timeout values.
The default values are the following:
- create = "80m",
- update = "20m",
- delete = "5m".
- user
Data String - Custom configuration settings that automate perform common tasks or execute server setup scripts, reducing the time required to configure and deploy your infrastructure. Learn more about user data in the User data on a dedicated server.
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.
- Private
Ip string - Private IP address of the server.
- Private
Vlan double - Unique identifier of the VLAN of the private subnet assigned to the server. Returned when a private VLAN is configured or created for the server.
- Public
Ip string - Public IP address of the server.
- Id string
- The provider-assigned unique ID for this managed resource.
- Private
Ip string - Private IP address of the server.
- Private
Vlan float64 - Unique identifier of the VLAN of the private subnet assigned to the server. Returned when a private VLAN is configured or created for the server.
- Public
Ip string - Public IP address of the server.
- id string
- The provider-assigned unique ID for this managed resource.
- private_
ip string - Private IP address of the server.
- private_
vlan number - Unique identifier of the VLAN of the private subnet assigned to the server. Returned when a private VLAN is configured or created for the server.
- public_
ip string - Public IP address of the server.
- id String
- The provider-assigned unique ID for this managed resource.
- private
Ip String - Private IP address of the server.
- private
Vlan Double - Unique identifier of the VLAN of the private subnet assigned to the server. Returned when a private VLAN is configured or created for the server.
- public
Ip String - Public IP address of the server.
- id string
- The provider-assigned unique ID for this managed resource.
- private
Ip string - Private IP address of the server.
- private
Vlan number - Unique identifier of the VLAN of the private subnet assigned to the server. Returned when a private VLAN is configured or created for the server.
- public
Ip string - Public IP address of the server.
- id str
- The provider-assigned unique ID for this managed resource.
- private_
ip str - Private IP address of the server.
- private_
vlan float - Unique identifier of the VLAN of the private subnet assigned to the server. Returned when a private VLAN is configured or created for the server.
- public_
ip str - Public IP address of the server.
- id String
- The provider-assigned unique ID for this managed resource.
- private
Ip String - Private IP address of the server.
- private
Vlan Number - Unique identifier of the VLAN of the private subnet assigned to the server. Returned when a private VLAN is configured or created for the server.
- public
Ip String - Public IP address of the server.
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,
add_private_vlan: Optional[bool] = 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,
power_state: Optional[str] = None,
price_plan_name: Optional[str] = None,
private_ip: Optional[str] = None,
private_subnet: Optional[str] = None,
private_subnet_id: Optional[str] = None,
private_subnet_ip: Optional[str] = None,
private_vlan: Optional[float] = None,
project_id: Optional[str] = None,
public_ip: Optional[str] = None,
public_subnet_id: Optional[str] = None,
public_subnet_ip: Optional[str] = None,
ssh_key: Optional[str] = None,
ssh_key_name: Optional[str] = None,
timeouts: Optional[DedicatedServerV1TimeoutsArgs] = None,
user_data: Optional[str] = None) -> DedicatedServerV1func 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}import {
to = selectel_dedicatedserverv1.example
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.
- Add
Private boolVlan - Adds a private VLAN to the server. Boolean flag, the default value is false.
- Configuration
Id string - Unique identifier of the server configuration. Retrieved from the dedicated_configuration_v1 data source.
- Dedicated
Server stringV1Id - Unique identifier of the server.
- Force
Update boolAdditional Params - Enables or disables update of operating system parameters without changing os_id. The operating system parameters are os_password, user_data, ssh_key, ssh_key_name, partitions_config, and os_host_name. After updating operating system parameters, a new operating system will be installed. Installation of a new operating system will delete all data on the server.
- Location
Id string - Pool where the server is located. Retrieved from the dedicated_location_v1 data source.
- Os
Host stringName - Hostname for the server.
- Os
Id string - Unique identifier of the operating system to install. Changing this installs new os on a new server. Installing a new operating system deletes all data on the server. Retrieved from the dedicated_os_v1 data source.
- Os
Password string - — (Optional) Password for the operating system user. After the operating system is installed, a password will be generated to connect to the server. To get the password, in the Control panel, go to Products → Dedicated Servers → Server page → Operating System tab → in the Password field. The password is available for 24 hours from the start of the operating system installation or configuration change. If you forget the server password, you can reset and restore it.
- Partitions
Configs List<DedicatedServer V1Partitions Config> - Configuration for disk partitions. Learn more about disk partitioning in the Install the OS by auto-installation.
- Power
State string - Power state of the server. Available values are on, off, and reboot. The default value is on. Cannot be set during server creation — servers are always created in the on state. Use power_state only for updating an existing server's power state. Changing power_state is mutually exclusive with changes of arguments: os_id, os_password, ssh_key, ssh_key_name, partitions_config, user_data, os_host_name and force_update_additional_params.
- Price
Plan stringName - The name of the price plan. Available tariff plans are
1 day,1 month,3 months,6 months,12 months, and12 months • monthly payment. Learn more about tariff plans in the Payment model and prices of a dedicated server. - Private
Ip string - Private IP address of the server.
- Private
Subnet string - Private
Subnet stringId - Unique identifier of the private subnet to connect to the server. Changing this deletes the existing server and creates a new server. Retrieved from the selectel.DedicatedPrivateSubnetV1 data source.
- Private
Subnet stringIp - Private IP address to assign to the server within the private subnet. Must be used together with private_subnet_id.
- Private
Vlan double - Unique identifier of the VLAN of the private subnet assigned to the server. Returned when a private VLAN is configured or created for the server.
- Project
Id string - Unique identifier of the associated project. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
- Public
Ip string - Public IP address of the server.
- Public
Subnet stringId - Unique identifier of the public subnet to connect to the server. Retrieved from the selectel.getDedicatedPublicSubnetV1 data source.
- Public
Subnet stringIp - Public IP address to assign to the server within the public subnet.
- Ssh
Key string - The public SSH key to be added to the server.
- Ssh
Key stringName - Name of an existing SSH key to be added to the server. Learn more about add a public SSH key to the SSH key repository in the Create and host an SSH key on a dedicated server.
- Timeouts
Dedicated
Server V1Timeouts - — (Optional) Timeout values.
The default values are the following:
- create = "80m",
- update = "20m",
- delete = "5m".
- User
Data string - Custom configuration settings that automate perform common tasks or execute server setup scripts, reducing the time required to configure and deploy your infrastructure. Learn more about user data in the User data on a dedicated server.
- Add
Private boolVlan - Adds a private VLAN to the server. Boolean flag, the default value is false.
- Configuration
Id string - Unique identifier of the server configuration. Retrieved from the dedicated_configuration_v1 data source.
- Dedicated
Server stringV1Id - Unique identifier of the server.
- Force
Update boolAdditional Params - Enables or disables update of operating system parameters without changing os_id. The operating system parameters are os_password, user_data, ssh_key, ssh_key_name, partitions_config, and os_host_name. After updating operating system parameters, a new operating system will be installed. Installation of a new operating system will delete all data on the server.
- Location
Id string - Pool where the server is located. Retrieved from the dedicated_location_v1 data source.
- Os
Host stringName - Hostname for the server.
- Os
Id string - Unique identifier of the operating system to install. Changing this installs new os on a new server. Installing a new operating system deletes all data on the server. Retrieved from the dedicated_os_v1 data source.
- Os
Password string - — (Optional) Password for the operating system user. After the operating system is installed, a password will be generated to connect to the server. To get the password, in the Control panel, go to Products → Dedicated Servers → Server page → Operating System tab → in the Password field. The password is available for 24 hours from the start of the operating system installation or configuration change. If you forget the server password, you can reset and restore it.
- Partitions
Configs []DedicatedServer V1Partitions Config Args - Configuration for disk partitions. Learn more about disk partitioning in the Install the OS by auto-installation.
- Power
State string - Power state of the server. Available values are on, off, and reboot. The default value is on. Cannot be set during server creation — servers are always created in the on state. Use power_state only for updating an existing server's power state. Changing power_state is mutually exclusive with changes of arguments: os_id, os_password, ssh_key, ssh_key_name, partitions_config, user_data, os_host_name and force_update_additional_params.
- Price
Plan stringName - The name of the price plan. Available tariff plans are
1 day,1 month,3 months,6 months,12 months, and12 months • monthly payment. Learn more about tariff plans in the Payment model and prices of a dedicated server. - Private
Ip string - Private IP address of the server.
- Private
Subnet string - Private
Subnet stringId - Unique identifier of the private subnet to connect to the server. Changing this deletes the existing server and creates a new server. Retrieved from the selectel.DedicatedPrivateSubnetV1 data source.
- Private
Subnet stringIp - Private IP address to assign to the server within the private subnet. Must be used together with private_subnet_id.
- Private
Vlan float64 - Unique identifier of the VLAN of the private subnet assigned to the server. Returned when a private VLAN is configured or created for the server.
- Project
Id string - Unique identifier of the associated project. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
- Public
Ip string - Public IP address of the server.
- Public
Subnet stringId - Unique identifier of the public subnet to connect to the server. Retrieved from the selectel.getDedicatedPublicSubnetV1 data source.
- Public
Subnet stringIp - Public IP address to assign to the server within the public subnet.
- Ssh
Key string - The public SSH key to be added to the server.
- Ssh
Key stringName - Name of an existing SSH key to be added to the server. Learn more about add a public SSH key to the SSH key repository in the Create and host an SSH key on a dedicated server.
- Timeouts
Dedicated
Server V1Timeouts Args - — (Optional) Timeout values.
The default values are the following:
- create = "80m",
- update = "20m",
- delete = "5m".
- User
Data string - Custom configuration settings that automate perform common tasks or execute server setup scripts, reducing the time required to configure and deploy your infrastructure. Learn more about user data in the User data on a dedicated server.
- add_
private_ boolvlan - Adds a private VLAN to the server. Boolean flag, the default value is false.
- configuration_
id string - Unique identifier of the server configuration. Retrieved from the dedicated_configuration_v1 data source.
- dedicated_
server_ stringv1_ id - Unique identifier of the server.
- force_
update_ booladditional_ params - Enables or disables update of operating system parameters without changing os_id. The operating system parameters are os_password, user_data, ssh_key, ssh_key_name, partitions_config, and os_host_name. After updating operating system parameters, a new operating system will be installed. Installation of a new operating system will delete all data on the server.
- location_
id string - Pool where the server is located. Retrieved from the dedicated_location_v1 data source.
- os_
host_ stringname - Hostname for the server.
- os_
id string - Unique identifier of the operating system to install. Changing this installs new os on a new server. Installing a new operating system deletes all data on the server. Retrieved from the dedicated_os_v1 data source.
- os_
password string - — (Optional) Password for the operating system user. After the operating system is installed, a password will be generated to connect to the server. To get the password, in the Control panel, go to Products → Dedicated Servers → Server page → Operating System tab → in the Password field. The password is available for 24 hours from the start of the operating system installation or configuration change. If you forget the server password, you can reset and restore it.
- partitions_
configs list(object) - Configuration for disk partitions. Learn more about disk partitioning in the Install the OS by auto-installation.
- power_
state string - Power state of the server. Available values are on, off, and reboot. The default value is on. Cannot be set during server creation — servers are always created in the on state. Use power_state only for updating an existing server's power state. Changing power_state is mutually exclusive with changes of arguments: os_id, os_password, ssh_key, ssh_key_name, partitions_config, user_data, os_host_name and force_update_additional_params.
- price_
plan_ stringname - The name of the price plan. Available tariff plans are
1 day,1 month,3 months,6 months,12 months, and12 months • monthly payment. Learn more about tariff plans in the Payment model and prices of a dedicated server. - private_
ip string - Private IP address of the server.
- private_
subnet string - private_
subnet_ stringid - Unique identifier of the private subnet to connect to the server. Changing this deletes the existing server and creates a new server. Retrieved from the selectel.DedicatedPrivateSubnetV1 data source.
- private_
subnet_ stringip - Private IP address to assign to the server within the private subnet. Must be used together with private_subnet_id.
- private_
vlan number - Unique identifier of the VLAN of the private subnet assigned to the server. Returned when a private VLAN is configured or created for the server.
- project_
id string - Unique identifier of the associated project. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
- public_
ip string - Public IP address of the server.
- public_
subnet_ stringid - Unique identifier of the public subnet to connect to the server. Retrieved from the selectel.getDedicatedPublicSubnetV1 data source.
- public_
subnet_ stringip - Public IP address to assign to the server within the public subnet.
- ssh_
key string - The public SSH key to be added to the server.
- ssh_
key_ stringname - Name of an existing SSH key to be added to the server. Learn more about add a public SSH key to the SSH key repository in the Create and host an SSH key on a dedicated server.
- timeouts object
- — (Optional) Timeout values.
The default values are the following:
- create = "80m",
- update = "20m",
- delete = "5m".
- user_
data string - Custom configuration settings that automate perform common tasks or execute server setup scripts, reducing the time required to configure and deploy your infrastructure. Learn more about user data in the User data on a dedicated server.
- add
Private BooleanVlan - Adds a private VLAN to the server. Boolean flag, the default value is false.
- configuration
Id String - Unique identifier of the server configuration. Retrieved from the dedicated_configuration_v1 data source.
- dedicated
Server StringV1Id - Unique identifier of the server.
- force
Update BooleanAdditional Params - Enables or disables update of operating system parameters without changing os_id. The operating system parameters are os_password, user_data, ssh_key, ssh_key_name, partitions_config, and os_host_name. After updating operating system parameters, a new operating system will be installed. Installation of a new operating system will delete all data on the server.
- location
Id String - Pool where the server is located. Retrieved from the dedicated_location_v1 data source.
- os
Host StringName - Hostname for the server.
- os
Id String - Unique identifier of the operating system to install. Changing this installs new os on a new server. Installing a new operating system deletes all data on the server. Retrieved from the dedicated_os_v1 data source.
- os
Password String - — (Optional) Password for the operating system user. After the operating system is installed, a password will be generated to connect to the server. To get the password, in the Control panel, go to Products → Dedicated Servers → Server page → Operating System tab → in the Password field. The password is available for 24 hours from the start of the operating system installation or configuration change. If you forget the server password, you can reset and restore it.
- partitions
Configs List<DedicatedServer V1Partitions Config> - Configuration for disk partitions. Learn more about disk partitioning in the Install the OS by auto-installation.
- power
State String - Power state of the server. Available values are on, off, and reboot. The default value is on. Cannot be set during server creation — servers are always created in the on state. Use power_state only for updating an existing server's power state. Changing power_state is mutually exclusive with changes of arguments: os_id, os_password, ssh_key, ssh_key_name, partitions_config, user_data, os_host_name and force_update_additional_params.
- price
Plan StringName - The name of the price plan. Available tariff plans are
1 day,1 month,3 months,6 months,12 months, and12 months • monthly payment. Learn more about tariff plans in the Payment model and prices of a dedicated server. - private
Ip String - Private IP address of the server.
- private
Subnet String - private
Subnet StringId - Unique identifier of the private subnet to connect to the server. Changing this deletes the existing server and creates a new server. Retrieved from the selectel.DedicatedPrivateSubnetV1 data source.
- private
Subnet StringIp - Private IP address to assign to the server within the private subnet. Must be used together with private_subnet_id.
- private
Vlan Double - Unique identifier of the VLAN of the private subnet assigned to the server. Returned when a private VLAN is configured or created for the server.
- project
Id String - Unique identifier of the associated project. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
- public
Ip String - Public IP address of the server.
- public
Subnet StringId - Unique identifier of the public subnet to connect to the server. Retrieved from the selectel.getDedicatedPublicSubnetV1 data source.
- public
Subnet StringIp - Public IP address to assign to the server within the public subnet.
- ssh
Key String - The public SSH key to be added to the server.
- ssh
Key StringName - Name of an existing SSH key to be added to the server. Learn more about add a public SSH key to the SSH key repository in the Create and host an SSH key on a dedicated server.
- timeouts
Dedicated
Server V1Timeouts - — (Optional) Timeout values.
The default values are the following:
- create = "80m",
- update = "20m",
- delete = "5m".
- user
Data String - Custom configuration settings that automate perform common tasks or execute server setup scripts, reducing the time required to configure and deploy your infrastructure. Learn more about user data in the User data on a dedicated server.
- add
Private booleanVlan - Adds a private VLAN to the server. Boolean flag, the default value is false.
- configuration
Id string - Unique identifier of the server configuration. Retrieved from the dedicated_configuration_v1 data source.
- dedicated
Server stringV1Id - Unique identifier of the server.
- force
Update booleanAdditional Params - Enables or disables update of operating system parameters without changing os_id. The operating system parameters are os_password, user_data, ssh_key, ssh_key_name, partitions_config, and os_host_name. After updating operating system parameters, a new operating system will be installed. Installation of a new operating system will delete all data on the server.
- location
Id string - Pool where the server is located. Retrieved from the dedicated_location_v1 data source.
- os
Host stringName - Hostname for the server.
- os
Id string - Unique identifier of the operating system to install. Changing this installs new os on a new server. Installing a new operating system deletes all data on the server. Retrieved from the dedicated_os_v1 data source.
- os
Password string - — (Optional) Password for the operating system user. After the operating system is installed, a password will be generated to connect to the server. To get the password, in the Control panel, go to Products → Dedicated Servers → Server page → Operating System tab → in the Password field. The password is available for 24 hours from the start of the operating system installation or configuration change. If you forget the server password, you can reset and restore it.
- partitions
Configs DedicatedServer V1Partitions Config[] - Configuration for disk partitions. Learn more about disk partitioning in the Install the OS by auto-installation.
- power
State string - Power state of the server. Available values are on, off, and reboot. The default value is on. Cannot be set during server creation — servers are always created in the on state. Use power_state only for updating an existing server's power state. Changing power_state is mutually exclusive with changes of arguments: os_id, os_password, ssh_key, ssh_key_name, partitions_config, user_data, os_host_name and force_update_additional_params.
- price
Plan stringName - The name of the price plan. Available tariff plans are
1 day,1 month,3 months,6 months,12 months, and12 months • monthly payment. Learn more about tariff plans in the Payment model and prices of a dedicated server. - private
Ip string - Private IP address of the server.
- private
Subnet string - private
Subnet stringId - Unique identifier of the private subnet to connect to the server. Changing this deletes the existing server and creates a new server. Retrieved from the selectel.DedicatedPrivateSubnetV1 data source.
- private
Subnet stringIp - Private IP address to assign to the server within the private subnet. Must be used together with private_subnet_id.
- private
Vlan number - Unique identifier of the VLAN of the private subnet assigned to the server. Returned when a private VLAN is configured or created for the server.
- project
Id string - Unique identifier of the associated project. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
- public
Ip string - Public IP address of the server.
- public
Subnet stringId - Unique identifier of the public subnet to connect to the server. Retrieved from the selectel.getDedicatedPublicSubnetV1 data source.
- public
Subnet stringIp - Public IP address to assign to the server within the public subnet.
- ssh
Key string - The public SSH key to be added to the server.
- ssh
Key stringName - Name of an existing SSH key to be added to the server. Learn more about add a public SSH key to the SSH key repository in the Create and host an SSH key on a dedicated server.
- timeouts
Dedicated
Server V1Timeouts - — (Optional) Timeout values.
The default values are the following:
- create = "80m",
- update = "20m",
- delete = "5m".
- user
Data string - Custom configuration settings that automate perform common tasks or execute server setup scripts, reducing the time required to configure and deploy your infrastructure. Learn more about user data in the User data on a dedicated server.
- add_
private_ boolvlan - Adds a private VLAN to the server. Boolean flag, the default value is false.
- configuration_
id str - Unique identifier of the server configuration. Retrieved from the dedicated_configuration_v1 data source.
- dedicated_
server_ strv1_ id - Unique identifier of the server.
- force_
update_ booladditional_ params - Enables or disables update of operating system parameters without changing os_id. The operating system parameters are os_password, user_data, ssh_key, ssh_key_name, partitions_config, and os_host_name. After updating operating system parameters, a new operating system will be installed. Installation of a new operating system will delete all data on the server.
- location_
id str - Pool where the server is located. Retrieved from the dedicated_location_v1 data source.
- os_
host_ strname - Hostname for the server.
- os_
id str - Unique identifier of the operating system to install. Changing this installs new os on a new server. Installing a new operating system deletes all data on the server. Retrieved from the dedicated_os_v1 data source.
- os_
password str - — (Optional) Password for the operating system user. After the operating system is installed, a password will be generated to connect to the server. To get the password, in the Control panel, go to Products → Dedicated Servers → Server page → Operating System tab → in the Password field. The password is available for 24 hours from the start of the operating system installation or configuration change. If you forget the server password, you can reset and restore it.
- partitions_
configs Sequence[DedicatedServer V1Partitions Config Args] - Configuration for disk partitions. Learn more about disk partitioning in the Install the OS by auto-installation.
- power_
state str - Power state of the server. Available values are on, off, and reboot. The default value is on. Cannot be set during server creation — servers are always created in the on state. Use power_state only for updating an existing server's power state. Changing power_state is mutually exclusive with changes of arguments: os_id, os_password, ssh_key, ssh_key_name, partitions_config, user_data, os_host_name and force_update_additional_params.
- price_
plan_ strname - The name of the price plan. Available tariff plans are
1 day,1 month,3 months,6 months,12 months, and12 months • monthly payment. Learn more about tariff plans in the Payment model and prices of a dedicated server. - private_
ip str - Private IP address of the server.
- private_
subnet str - private_
subnet_ strid - Unique identifier of the private subnet to connect to the server. Changing this deletes the existing server and creates a new server. Retrieved from the selectel.DedicatedPrivateSubnetV1 data source.
- private_
subnet_ strip - Private IP address to assign to the server within the private subnet. Must be used together with private_subnet_id.
- private_
vlan float - Unique identifier of the VLAN of the private subnet assigned to the server. Returned when a private VLAN is configured or created for the server.
- project_
id str - Unique identifier of the associated project. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
- public_
ip str - Public IP address of the server.
- public_
subnet_ strid - Unique identifier of the public subnet to connect to the server. Retrieved from the selectel.getDedicatedPublicSubnetV1 data source.
- public_
subnet_ strip - Public IP address to assign to the server within the public subnet.
- ssh_
key str - The public SSH key to be added to the server.
- ssh_
key_ strname - Name of an existing SSH key to be added to the server. Learn more about add a public SSH key to the SSH key repository in the Create and host an SSH key on a dedicated server.
- timeouts
Dedicated
Server V1Timeouts Args - — (Optional) Timeout values.
The default values are the following:
- create = "80m",
- update = "20m",
- delete = "5m".
- user_
data str - Custom configuration settings that automate perform common tasks or execute server setup scripts, reducing the time required to configure and deploy your infrastructure. Learn more about user data in the User data on a dedicated server.
- add
Private BooleanVlan - Adds a private VLAN to the server. Boolean flag, the default value is false.
- configuration
Id String - Unique identifier of the server configuration. Retrieved from the dedicated_configuration_v1 data source.
- dedicated
Server StringV1Id - Unique identifier of the server.
- force
Update BooleanAdditional Params - Enables or disables update of operating system parameters without changing os_id. The operating system parameters are os_password, user_data, ssh_key, ssh_key_name, partitions_config, and os_host_name. After updating operating system parameters, a new operating system will be installed. Installation of a new operating system will delete all data on the server.
- location
Id String - Pool where the server is located. Retrieved from the dedicated_location_v1 data source.
- os
Host StringName - Hostname for the server.
- os
Id String - Unique identifier of the operating system to install. Changing this installs new os on a new server. Installing a new operating system deletes all data on the server. Retrieved from the dedicated_os_v1 data source.
- os
Password String - — (Optional) Password for the operating system user. After the operating system is installed, a password will be generated to connect to the server. To get the password, in the Control panel, go to Products → Dedicated Servers → Server page → Operating System tab → in the Password field. The password is available for 24 hours from the start of the operating system installation or configuration change. If you forget the server password, you can reset and restore it.
- partitions
Configs List<Property Map> - Configuration for disk partitions. Learn more about disk partitioning in the Install the OS by auto-installation.
- power
State String - Power state of the server. Available values are on, off, and reboot. The default value is on. Cannot be set during server creation — servers are always created in the on state. Use power_state only for updating an existing server's power state. Changing power_state is mutually exclusive with changes of arguments: os_id, os_password, ssh_key, ssh_key_name, partitions_config, user_data, os_host_name and force_update_additional_params.
- price
Plan StringName - The name of the price plan. Available tariff plans are
1 day,1 month,3 months,6 months,12 months, and12 months • monthly payment. Learn more about tariff plans in the Payment model and prices of a dedicated server. - private
Ip String - Private IP address of the server.
- private
Subnet String - private
Subnet StringId - Unique identifier of the private subnet to connect to the server. Changing this deletes the existing server and creates a new server. Retrieved from the selectel.DedicatedPrivateSubnetV1 data source.
- private
Subnet StringIp - Private IP address to assign to the server within the private subnet. Must be used together with private_subnet_id.
- private
Vlan Number - Unique identifier of the VLAN of the private subnet assigned to the server. Returned when a private VLAN is configured or created for the server.
- project
Id String - Unique identifier of the associated project. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
- public
Ip String - Public IP address of the server.
- public
Subnet StringId - Unique identifier of the public subnet to connect to the server. Retrieved from the selectel.getDedicatedPublicSubnetV1 data source.
- public
Subnet StringIp - Public IP address to assign to the server within the public subnet.
- ssh
Key String - The public SSH key to be added to the server.
- ssh
Key StringName - Name of an existing SSH key to be added to the server. Learn more about add a public SSH key to the SSH key repository in the Create and host an SSH key on a dedicated server.
- timeouts Property Map
- — (Optional) Timeout values.
The default values are the following:
- create = "80m",
- update = "20m",
- delete = "5m".
- user
Data String - Custom configuration settings that automate perform common tasks or execute server setup scripts, reducing the time required to configure and deploy your infrastructure. Learn more about user data in the User data on a dedicated server.
Supporting Types
DedicatedServerV1PartitionsConfig, DedicatedServerV1PartitionsConfigArgs
- Disk
Configs List<DedicatedServer V1Partitions Config Disk Config> - Configuration for individual disks without RAID. You can add configurations for multiple disks – each configuration in a separate block.
- Disk
Partitions List<DedicatedServer V1Partitions Config Disk Partition> - Configuration for disk partitions. You can add configurations for multiple disk partitions – each configuration in a separate block.
- Soft
Raid List<DedicatedConfigs Server V1Partitions Config Soft Raid Config> - Configuration for software RAID. You can add configurations for multiple RAID arrays – each configuration in a separate block. Creating multiple arrays requires 4 or more disks.
- Disk
Configs []DedicatedServer V1Partitions Config Disk Config - Configuration for individual disks without RAID. You can add configurations for multiple disks – each configuration in a separate block.
- Disk
Partitions []DedicatedServer V1Partitions Config Disk Partition - Configuration for disk partitions. You can add configurations for multiple disk partitions – each configuration in a separate block.
- Soft
Raid []DedicatedConfigs Server V1Partitions Config Soft Raid Config - Configuration for software RAID. You can add configurations for multiple RAID arrays – each configuration in a separate block. Creating multiple arrays requires 4 or more disks.
- disk_
configs list(object) - Configuration for individual disks without RAID. You can add configurations for multiple disks – each configuration in a separate block.
- disk_
partitions list(object) - Configuration for disk partitions. You can add configurations for multiple disk partitions – each configuration in a separate block.
- soft_
raid_ list(object)configs - Configuration for software RAID. You can add configurations for multiple RAID arrays – each configuration in a separate block. Creating multiple arrays requires 4 or more disks.
- disk
Configs List<DedicatedServer V1Partitions Config Disk Config> - Configuration for individual disks without RAID. You can add configurations for multiple disks – each configuration in a separate block.
- disk
Partitions List<DedicatedServer V1Partitions Config Disk Partition> - Configuration for disk partitions. You can add configurations for multiple disk partitions – each configuration in a separate block.
- soft
Raid List<DedicatedConfigs Server V1Partitions Config Soft Raid Config> - Configuration for software RAID. You can add configurations for multiple RAID arrays – each configuration in a separate block. Creating multiple arrays requires 4 or more disks.
- disk
Configs DedicatedServer V1Partitions Config Disk Config[] - Configuration for individual disks without RAID. You can add configurations for multiple disks – each configuration in a separate block.
- disk
Partitions DedicatedServer V1Partitions Config Disk Partition[] - Configuration for disk partitions. You can add configurations for multiple disk partitions – each configuration in a separate block.
- soft
Raid DedicatedConfigs Server V1Partitions Config Soft Raid Config[] - Configuration for software RAID. You can add configurations for multiple RAID arrays – each configuration in a separate block. Creating multiple arrays requires 4 or more disks.
- disk_
configs Sequence[DedicatedServer V1Partitions Config Disk Config] - Configuration for individual disks without RAID. You can add configurations for multiple disks – each configuration in a separate block.
- disk_
partitions Sequence[DedicatedServer V1Partitions Config Disk Partition] - Configuration for disk partitions. You can add configurations for multiple disk partitions – each configuration in a separate block.
- soft_
raid_ Sequence[Dedicatedconfigs Server V1Partitions Config Soft Raid Config] - Configuration for software RAID. You can add configurations for multiple RAID arrays – each configuration in a separate block. Creating multiple arrays requires 4 or more disks.
- disk
Configs List<Property Map> - Configuration for individual disks without RAID. You can add configurations for multiple disks – each configuration in a separate block.
- disk
Partitions List<Property Map> - Configuration for disk partitions. You can add configurations for multiple disk partitions – each configuration in a separate block.
- soft
Raid List<Property Map>Configs - Configuration for software RAID. You can add configurations for multiple RAID arrays – each configuration in a separate block. Creating multiple arrays requires 4 or more disks.
DedicatedServerV1PartitionsConfigDiskConfig, DedicatedServerV1PartitionsConfigDiskConfigArgs
DedicatedServerV1PartitionsConfigDiskPartition, DedicatedServerV1PartitionsConfigDiskPartitionArgs
- Mount string
- Mount point for a partition. Required mount points are /, /boot, swap. You can use additional mount points, for example, /data.
- Disk
Name string - Name of the disk on which to create the partition. RAID is not used.
- Fs
Type string - Filesystem type for the partition. Available file system types are swap, ext4, ext3, and xfs. The default value is ext4 for /, ext3 for /boot, swap for swap partition.
- Raid string
- RAID array name on which to create the partition. Required only when using RAID.
- Size double
- Size of the partition in GB. Use either size or size_percent. To use all the remaining space for the partition, specify -1.
- Size
Percent double - Size of the partition in percent (0-100). Use either size or size_percent.
- Mount string
- Mount point for a partition. Required mount points are /, /boot, swap. You can use additional mount points, for example, /data.
- Disk
Name string - Name of the disk on which to create the partition. RAID is not used.
- Fs
Type string - Filesystem type for the partition. Available file system types are swap, ext4, ext3, and xfs. The default value is ext4 for /, ext3 for /boot, swap for swap partition.
- Raid string
- RAID array name on which to create the partition. Required only when using RAID.
- Size float64
- Size of the partition in GB. Use either size or size_percent. To use all the remaining space for the partition, specify -1.
- Size
Percent float64 - Size of the partition in percent (0-100). Use either size or size_percent.
- mount string
- Mount point for a partition. Required mount points are /, /boot, swap. You can use additional mount points, for example, /data.
- disk_
name string - Name of the disk on which to create the partition. RAID is not used.
- fs_
type string - Filesystem type for the partition. Available file system types are swap, ext4, ext3, and xfs. The default value is ext4 for /, ext3 for /boot, swap for swap partition.
- raid string
- RAID array name on which to create the partition. Required only when using RAID.
- size number
- Size of the partition in GB. Use either size or size_percent. To use all the remaining space for the partition, specify -1.
- size_
percent number - Size of the partition in percent (0-100). Use either size or size_percent.
- mount String
- Mount point for a partition. Required mount points are /, /boot, swap. You can use additional mount points, for example, /data.
- disk
Name String - Name of the disk on which to create the partition. RAID is not used.
- fs
Type String - Filesystem type for the partition. Available file system types are swap, ext4, ext3, and xfs. The default value is ext4 for /, ext3 for /boot, swap for swap partition.
- raid String
- RAID array name on which to create the partition. Required only when using RAID.
- size Double
- Size of the partition in GB. Use either size or size_percent. To use all the remaining space for the partition, specify -1.
- size
Percent Double - Size of the partition in percent (0-100). Use either size or size_percent.
- mount string
- Mount point for a partition. Required mount points are /, /boot, swap. You can use additional mount points, for example, /data.
- disk
Name string - Name of the disk on which to create the partition. RAID is not used.
- fs
Type string - Filesystem type for the partition. Available file system types are swap, ext4, ext3, and xfs. The default value is ext4 for /, ext3 for /boot, swap for swap partition.
- raid string
- RAID array name on which to create the partition. Required only when using RAID.
- size number
- Size of the partition in GB. Use either size or size_percent. To use all the remaining space for the partition, specify -1.
- size
Percent number - Size of the partition in percent (0-100). Use either size or size_percent.
- mount str
- Mount point for a partition. Required mount points are /, /boot, swap. You can use additional mount points, for example, /data.
- disk_
name str - Name of the disk on which to create the partition. RAID is not used.
- fs_
type str - Filesystem type for the partition. Available file system types are swap, ext4, ext3, and xfs. The default value is ext4 for /, ext3 for /boot, swap for swap partition.
- raid str
- RAID array name on which to create the partition. Required only when using RAID.
- size float
- Size of the partition in GB. Use either size or size_percent. To use all the remaining space for the partition, specify -1.
- size_
percent float - Size of the partition in percent (0-100). Use either size or size_percent.
- mount String
- Mount point for a partition. Required mount points are /, /boot, swap. You can use additional mount points, for example, /data.
- disk
Name String - Name of the disk on which to create the partition. RAID is not used.
- fs
Type String - Filesystem type for the partition. Available file system types are swap, ext4, ext3, and xfs. The default value is ext4 for /, ext3 for /boot, swap for swap partition.
- raid String
- RAID array name on which to create the partition. Required only when using RAID.
- size Number
- Size of the partition in GB. Use either size or size_percent. To use all the remaining space for the partition, specify -1.
- size
Percent Number - Size of the partition in percent (0-100). Use either size or size_percent.
DedicatedServerV1PartitionsConfigSoftRaidConfig, DedicatedServerV1PartitionsConfigSoftRaidConfigArgs
- Disk
Type string - Type of disks to use in the RAID. Available values are SSD, NVMe, HDD.
- Level string
- RAID level. Available values are raid0, raid1, and raid10.
- Name string
- Name of the RAID array.
- Count double
- Number of disks to use in the RAID array. If not specified, the minimum number of disks depends on the selected RAID level: 2 — for RAID0 and RAID1, 4 — for RAID10.
- Disk
Type string - Type of disks to use in the RAID. Available values are SSD, NVMe, HDD.
- Level string
- RAID level. Available values are raid0, raid1, and raid10.
- Name string
- Name of the RAID array.
- Count float64
- Number of disks to use in the RAID array. If not specified, the minimum number of disks depends on the selected RAID level: 2 — for RAID0 and RAID1, 4 — for RAID10.
- disk_
type string - Type of disks to use in the RAID. Available values are SSD, NVMe, HDD.
- level string
- RAID level. Available values are raid0, raid1, and raid10.
- name string
- Name of the RAID array.
- count number
- Number of disks to use in the RAID array. If not specified, the minimum number of disks depends on the selected RAID level: 2 — for RAID0 and RAID1, 4 — for RAID10.
- disk
Type String - Type of disks to use in the RAID. Available values are SSD, NVMe, HDD.
- level String
- RAID level. Available values are raid0, raid1, and raid10.
- name String
- Name of the RAID array.
- count Double
- Number of disks to use in the RAID array. If not specified, the minimum number of disks depends on the selected RAID level: 2 — for RAID0 and RAID1, 4 — for RAID10.
- disk
Type string - Type of disks to use in the RAID. Available values are SSD, NVMe, HDD.
- level string
- RAID level. Available values are raid0, raid1, and raid10.
- name string
- Name of the RAID array.
- count number
- Number of disks to use in the RAID array. If not specified, the minimum number of disks depends on the selected RAID level: 2 — for RAID0 and RAID1, 4 — for RAID10.
- disk_
type str - Type of disks to use in the RAID. Available values are SSD, NVMe, HDD.
- level str
- RAID level. Available values are raid0, raid1, and raid10.
- name str
- Name of the RAID array.
- count float
- Number of disks to use in the RAID array. If not specified, the minimum number of disks depends on the selected RAID level: 2 — for RAID0 and RAID1, 4 — for RAID10.
- disk
Type String - Type of disks to use in the RAID. Available values are SSD, NVMe, HDD.
- level String
- RAID level. Available values are raid0, raid1, and raid10.
- name String
- Name of the RAID array.
- count Number
- Number of disks to use in the RAID array. If not specified, the minimum number of disks depends on the selected RAID level: 2 — for RAID0 and RAID1, 4 — for RAID10.
DedicatedServerV1Timeouts, DedicatedServerV1TimeoutsArgs
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 Management ⟶ User 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.
When importing a server, Terraform auto-generates the names of the following objects:
RAID array names — auto-generated based on the RAID level and disk type. For example, new-raid1, new-raid0.
disk names — auto-generated based on the disk type. For example, disk-ssd-1, disk-hdd-1.
$ pulumi import selectel:index/dedicatedServerV1:DedicatedServerV1 You may need to update your configuration to match these names or use followed by terraform state show to see the imported configuration.
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
selectelTerraform Provider.
published on Thursday, May 28, 2026 by selectel