selectel.DedicatedServerV1
Explore with Pulumi AI
Creates and manages a server in Selectel Dedicated Servers.
Example Usage
Example coming soon!
Example coming soon!
Example coming soon!
Example coming soon!
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.selectel.DedicatedServerV1;
import com.pulumi.selectel.DedicatedServerV1Args;
import com.pulumi.selectel.inputs.DedicatedServerV1PartitionsConfigArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var server1 = new DedicatedServerV1("server1", DedicatedServerV1Args.builder()
.projectId(selectel_vpc_project_v2.project_1().id())
.configurationId(data.selectel_dedicated_configuration_v1().server_config().configurations()[0].id())
.locationId(data.selectel_dedicated_location_v1().server_location().locations()[0].id())
.osId(data.selectel_dedicated_os_v1().server_os().os()[0].id())
.pricePlanName("1 день")
.osHostName("Turing")
.publicSubnetId(data.selectel_dedicated_public_subnet_v1().subnets().subnets()[0].id())
.privateSubnet("192.168.0.0/16")
.sshKeyName("deploy-ed25519")
.osPassword("Passw0rd!")
.userData(Files.readString(Paths.get("init-script-dir/init.sh")))
.partitionsConfigs(DedicatedServerV1PartitionsConfigArgs.builder()
.softRaidConfigs(DedicatedServerV1PartitionsConfigSoftRaidConfigArgs.builder()
.name("first-raid")
.level("raid1")
.diskType("SSD NVMe M.2")
.build())
.diskPartitions(
DedicatedServerV1PartitionsConfigDiskPartitionArgs.builder()
.mount("/boot")
.size(1)
.raid("first-raid")
.build(),
DedicatedServerV1PartitionsConfigDiskPartitionArgs.builder()
.mount("swap")
.sizePercent(10.5)
.raid("first-raid")
.build(),
DedicatedServerV1PartitionsConfigDiskPartitionArgs.builder()
.mount("/")
.size(-1)
.raid("first-raid")
.build(),
DedicatedServerV1PartitionsConfigDiskPartitionArgs.builder()
.mount("second_folder")
.size(400)
.raid("first-raid")
.fsType("xfs")
.build())
.build())
.timeouts(DedicatedServerV1TimeoutsArgs.builder()
.create("80m")
.update("20m")
.delete("5m")
.build())
.build());
}
}
resources:
server1:
type: selectel:DedicatedServerV1
properties:
projectId: ${selectel_vpc_project_v2.project_1.id}
configurationId: ${data.selectel_dedicated_configuration_v1.server_config.configurations[0].id}
locationId: ${data.selectel_dedicated_location_v1.server_location.locations[0].id}
osId: ${data.selectel_dedicated_os_v1.server_os.os[0].id}
pricePlanName: 1 день
osHostName: Turing
publicSubnetId: ${data.selectel_dedicated_public_subnet_v1.subnets.subnets[0].id}
privateSubnet: 192.168.0.0/16
sshKeyName: deploy-ed25519
osPassword: Passw0rd!
userData:
fn::readFile: init-script-dir/init.sh
partitionsConfigs:
- softRaidConfigs:
- name: first-raid
level: raid1
diskType: SSD NVMe M.2
diskPartitions:
- mount: /boot
size: 1
raid: first-raid
- mount: swap
sizePercent: 10.5
raid: first-raid
- mount: /
size: -1
raid: first-raid
- mount: second_folder
size: 400
raid: first-raid
fsType: xfs
# Optional: You can choose your own timeout values or remove them.
# #
# # Current values represent default values.
timeouts:
- create: 80m
update: 20m
delete: 5m
Create DedicatedServerV1 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DedicatedServerV1(name: string, args: DedicatedServerV1Args, opts?: CustomResourceOptions);
@overload
def DedicatedServerV1(resource_name: str,
args: DedicatedServerV1Args,
opts: Optional[ResourceOptions] = None)
@overload
def DedicatedServerV1(resource_name: str,
opts: Optional[ResourceOptions] = None,
os_id: Optional[str] = None,
project_id: Optional[str] = None,
price_plan_name: Optional[str] = None,
location_id: Optional[str] = None,
configuration_id: Optional[str] = None,
os_host_name: Optional[str] = None,
os_password: Optional[str] = None,
partitions_configs: Optional[Sequence[DedicatedServerV1PartitionsConfigArgs]] = None,
force_update_additional_params: Optional[bool] = None,
private_subnet: Optional[str] = None,
dedicated_server_v1_id: Optional[str] = None,
public_subnet_id: Optional[str] = None,
ssh_key: Optional[str] = None,
ssh_key_name: Optional[str] = None,
timeouts: Optional[DedicatedServerV1TimeoutsArgs] = None,
user_data: Optional[str] = None)
func NewDedicatedServerV1(ctx *Context, name string, args DedicatedServerV1Args, opts ...ResourceOption) (*DedicatedServerV1, error)
public DedicatedServerV1(string name, DedicatedServerV1Args args, CustomResourceOptions? opts = null)
public DedicatedServerV1(String name, DedicatedServerV1Args args)
public DedicatedServerV1(String name, DedicatedServerV1Args args, CustomResourceOptions options)
type: selectel:DedicatedServerV1
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args DedicatedServerV1Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args DedicatedServerV1Args
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args DedicatedServerV1Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DedicatedServerV1Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DedicatedServerV1Args
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var dedicatedServerV1Resource = new Selectel.DedicatedServerV1("dedicatedServerV1Resource", new()
{
OsId = "string",
ProjectId = "string",
PricePlanName = "string",
LocationId = "string",
ConfigurationId = "string",
OsHostName = "string",
OsPassword = "string",
PartitionsConfigs = new[]
{
new Selectel.Inputs.DedicatedServerV1PartitionsConfigArgs
{
DiskPartitions = new[]
{
new Selectel.Inputs.DedicatedServerV1PartitionsConfigDiskPartitionArgs
{
Mount = "string",
Raid = "string",
FsType = "string",
Size = 0,
SizePercent = 0,
},
},
SoftRaidConfigs = new[]
{
new Selectel.Inputs.DedicatedServerV1PartitionsConfigSoftRaidConfigArgs
{
DiskType = "string",
Level = "string",
Name = "string",
},
},
},
},
ForceUpdateAdditionalParams = false,
PrivateSubnet = "string",
DedicatedServerV1Id = "string",
PublicSubnetId = "string",
SshKey = "string",
SshKeyName = "string",
Timeouts = new Selectel.Inputs.DedicatedServerV1TimeoutsArgs
{
Create = "string",
Delete = "string",
Update = "string",
},
UserData = "string",
});
example, err := selectel.NewDedicatedServerV1(ctx, "dedicatedServerV1Resource", &selectel.DedicatedServerV1Args{
OsId: pulumi.String("string"),
ProjectId: pulumi.String("string"),
PricePlanName: pulumi.String("string"),
LocationId: pulumi.String("string"),
ConfigurationId: pulumi.String("string"),
OsHostName: pulumi.String("string"),
OsPassword: pulumi.String("string"),
PartitionsConfigs: selectel.DedicatedServerV1PartitionsConfigArray{
&selectel.DedicatedServerV1PartitionsConfigArgs{
DiskPartitions: selectel.DedicatedServerV1PartitionsConfigDiskPartitionArray{
&selectel.DedicatedServerV1PartitionsConfigDiskPartitionArgs{
Mount: pulumi.String("string"),
Raid: pulumi.String("string"),
FsType: pulumi.String("string"),
Size: pulumi.Float64(0),
SizePercent: pulumi.Float64(0),
},
},
SoftRaidConfigs: selectel.DedicatedServerV1PartitionsConfigSoftRaidConfigArray{
&selectel.DedicatedServerV1PartitionsConfigSoftRaidConfigArgs{
DiskType: pulumi.String("string"),
Level: pulumi.String("string"),
Name: pulumi.String("string"),
},
},
},
},
ForceUpdateAdditionalParams: pulumi.Bool(false),
PrivateSubnet: pulumi.String("string"),
DedicatedServerV1Id: pulumi.String("string"),
PublicSubnetId: pulumi.String("string"),
SshKey: pulumi.String("string"),
SshKeyName: pulumi.String("string"),
Timeouts: &selectel.DedicatedServerV1TimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
Update: pulumi.String("string"),
},
UserData: pulumi.String("string"),
})
var dedicatedServerV1Resource = new DedicatedServerV1("dedicatedServerV1Resource", DedicatedServerV1Args.builder()
.osId("string")
.projectId("string")
.pricePlanName("string")
.locationId("string")
.configurationId("string")
.osHostName("string")
.osPassword("string")
.partitionsConfigs(DedicatedServerV1PartitionsConfigArgs.builder()
.diskPartitions(DedicatedServerV1PartitionsConfigDiskPartitionArgs.builder()
.mount("string")
.raid("string")
.fsType("string")
.size(0.0)
.sizePercent(0.0)
.build())
.softRaidConfigs(DedicatedServerV1PartitionsConfigSoftRaidConfigArgs.builder()
.diskType("string")
.level("string")
.name("string")
.build())
.build())
.forceUpdateAdditionalParams(false)
.privateSubnet("string")
.dedicatedServerV1Id("string")
.publicSubnetId("string")
.sshKey("string")
.sshKeyName("string")
.timeouts(DedicatedServerV1TimeoutsArgs.builder()
.create("string")
.delete("string")
.update("string")
.build())
.userData("string")
.build());
dedicated_server_v1_resource = selectel.DedicatedServerV1("dedicatedServerV1Resource",
os_id="string",
project_id="string",
price_plan_name="string",
location_id="string",
configuration_id="string",
os_host_name="string",
os_password="string",
partitions_configs=[{
"disk_partitions": [{
"mount": "string",
"raid": "string",
"fs_type": "string",
"size": 0,
"size_percent": 0,
}],
"soft_raid_configs": [{
"disk_type": "string",
"level": "string",
"name": "string",
}],
}],
force_update_additional_params=False,
private_subnet="string",
dedicated_server_v1_id="string",
public_subnet_id="string",
ssh_key="string",
ssh_key_name="string",
timeouts={
"create": "string",
"delete": "string",
"update": "string",
},
user_data="string")
const dedicatedServerV1Resource = new selectel.DedicatedServerV1("dedicatedServerV1Resource", {
osId: "string",
projectId: "string",
pricePlanName: "string",
locationId: "string",
configurationId: "string",
osHostName: "string",
osPassword: "string",
partitionsConfigs: [{
diskPartitions: [{
mount: "string",
raid: "string",
fsType: "string",
size: 0,
sizePercent: 0,
}],
softRaidConfigs: [{
diskType: "string",
level: "string",
name: "string",
}],
}],
forceUpdateAdditionalParams: false,
privateSubnet: "string",
dedicatedServerV1Id: "string",
publicSubnetId: "string",
sshKey: "string",
sshKeyName: "string",
timeouts: {
create: "string",
"delete": "string",
update: "string",
},
userData: "string",
});
type: selectel:DedicatedServerV1
properties:
configurationId: string
dedicatedServerV1Id: string
forceUpdateAdditionalParams: false
locationId: string
osHostName: string
osId: string
osPassword: string
partitionsConfigs:
- diskPartitions:
- fsType: string
mount: string
raid: string
size: 0
sizePercent: 0
softRaidConfigs:
- diskType: string
level: string
name: string
pricePlanName: string
privateSubnet: string
projectId: string
publicSubnetId: string
sshKey: string
sshKeyName: string
timeouts:
create: string
delete: string
update: string
userData: string
DedicatedServerV1 Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The DedicatedServerV1 resource accepts the following input properties:
- Configuration
Id string - Unique identifier of the server configuration.
- Location
Id string - Pool where the server is located.
- Os
Id string - Unique identifier of the operating system to install. Changing this installs new os on a new server. NOTE: installing new os will delete all data on the server.
- Price
Plan stringName - The name of the price plan.
- Project
Id string - Unique identifier of the associated project. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
- Dedicated
Server stringV1Id - Unique identifier of the server.
- Force
Update boolAdditional Params - Enables update for additional os params (os_password, user_data, ssh_key, ssh_key_name, partitions_config, os_host_name) without changing os_id. NOTE: installing new os will delete all data on the server.
- Os
Host stringName - Hostname for the server.
- Os
Password string - Password for the OS user.
- Partitions
Configs List<DedicatedServer V1Partitions Config> - Configuration for disk partitions.
- Private
Subnet string - Private subnet to connect the server to.
- Public
Subnet stringId - ID of the public subnet to connect the server to.
- Ssh
Key string - The public SSH key to be added to the server.
- Ssh
Key stringName - The name of an existing SSH key to be added to the server.
- Timeouts
Dedicated
Server V1Timeouts - User
Data string - These are custom configuration settings that automatically perform common tasks or run server setup scripts, reducing the time it takes to configure and deploy your infrastructure.
- Configuration
Id string - Unique identifier of the server configuration.
- Location
Id string - Pool where the server is located.
- Os
Id string - Unique identifier of the operating system to install. Changing this installs new os on a new server. NOTE: installing new os will delete all data on the server.
- Price
Plan stringName - The name of the price plan.
- Project
Id string - Unique identifier of the associated project. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
- Dedicated
Server stringV1Id - Unique identifier of the server.
- Force
Update boolAdditional Params - Enables update for additional os params (os_password, user_data, ssh_key, ssh_key_name, partitions_config, os_host_name) without changing os_id. NOTE: installing new os will delete all data on the server.
- Os
Host stringName - Hostname for the server.
- Os
Password string - Password for the OS user.
- Partitions
Configs []DedicatedServer V1Partitions Config Args - Configuration for disk partitions.
- Private
Subnet string - Private subnet to connect the server to.
- Public
Subnet stringId - ID of the public subnet to connect the server to.
- Ssh
Key string - The public SSH key to be added to the server.
- Ssh
Key stringName - The name of an existing SSH key to be added to the server.
- Timeouts
Dedicated
Server V1Timeouts Args - User
Data string - These are custom configuration settings that automatically perform common tasks or run server setup scripts, reducing the time it takes to configure and deploy your infrastructure.
- configuration
Id String - Unique identifier of the server configuration.
- location
Id String - Pool where the server is located.
- os
Id String - Unique identifier of the operating system to install. Changing this installs new os on a new server. NOTE: installing new os will delete all data on the server.
- price
Plan StringName - The name of the price plan.
- project
Id String - Unique identifier of the associated project. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
- dedicated
Server StringV1Id - Unique identifier of the server.
- force
Update BooleanAdditional Params - Enables update for additional os params (os_password, user_data, ssh_key, ssh_key_name, partitions_config, os_host_name) without changing os_id. NOTE: installing new os will delete all data on the server.
- os
Host StringName - Hostname for the server.
- os
Password String - Password for the OS user.
- partitions
Configs List<DedicatedServer V1Partitions Config> - Configuration for disk partitions.
- private
Subnet String - Private subnet to connect the server to.
- public
Subnet StringId - ID of the public subnet to connect the server to.
- ssh
Key String - The public SSH key to be added to the server.
- ssh
Key StringName - The name of an existing SSH key to be added to the server.
- timeouts
Dedicated
Server V1Timeouts - user
Data String - These are custom configuration settings that automatically perform common tasks or run server setup scripts, reducing the time it takes to configure and deploy your infrastructure.
- configuration
Id string - Unique identifier of the server configuration.
- location
Id string - Pool where the server is located.
- os
Id string - Unique identifier of the operating system to install. Changing this installs new os on a new server. NOTE: installing new os will delete all data on the server.
- price
Plan stringName - The name of the price plan.
- project
Id string - Unique identifier of the associated project. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
- dedicated
Server stringV1Id - Unique identifier of the server.
- force
Update booleanAdditional Params - Enables update for additional os params (os_password, user_data, ssh_key, ssh_key_name, partitions_config, os_host_name) without changing os_id. NOTE: installing new os will delete all data on the server.
- os
Host stringName - Hostname for the server.
- os
Password string - Password for the OS user.
- partitions
Configs DedicatedServer V1Partitions Config[] - Configuration for disk partitions.
- private
Subnet string - Private subnet to connect the server to.
- public
Subnet stringId - ID of the public subnet to connect the server to.
- ssh
Key string - The public SSH key to be added to the server.
- ssh
Key stringName - The name of an existing SSH key to be added to the server.
- timeouts
Dedicated
Server V1Timeouts - user
Data string - These are custom configuration settings that automatically perform common tasks or run server setup scripts, reducing the time it takes to configure and deploy your infrastructure.
- configuration_
id str - Unique identifier of the server configuration.
- location_
id str - Pool where the server is located.
- os_
id str - Unique identifier of the operating system to install. Changing this installs new os on a new server. NOTE: installing new os will delete all data on the server.
- price_
plan_ strname - The name of the price plan.
- project_
id str - Unique identifier of the associated project. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
- dedicated_
server_ strv1_ id - Unique identifier of the server.
- force_
update_ booladditional_ params - Enables update for additional os params (os_password, user_data, ssh_key, ssh_key_name, partitions_config, os_host_name) without changing os_id. NOTE: installing new os will delete all data on the server.
- os_
host_ strname - Hostname for the server.
- os_
password str - Password for the OS user.
- partitions_
configs Sequence[DedicatedServer V1Partitions Config Args] - Configuration for disk partitions.
- private_
subnet str - Private subnet to connect the server to.
- public_
subnet_ strid - ID of the public subnet to connect the server to.
- ssh_
key str - The public SSH key to be added to the server.
- ssh_
key_ strname - The name of an existing SSH key to be added to the server.
- timeouts
Dedicated
Server V1Timeouts Args - user_
data str - These are custom configuration settings that automatically perform common tasks or run server setup scripts, reducing the time it takes to configure and deploy your infrastructure.
- configuration
Id String - Unique identifier of the server configuration.
- location
Id String - Pool where the server is located.
- os
Id String - Unique identifier of the operating system to install. Changing this installs new os on a new server. NOTE: installing new os will delete all data on the server.
- price
Plan StringName - The name of the price plan.
- project
Id String - Unique identifier of the associated project. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
- dedicated
Server StringV1Id - Unique identifier of the server.
- force
Update BooleanAdditional Params - Enables update for additional os params (os_password, user_data, ssh_key, ssh_key_name, partitions_config, os_host_name) without changing os_id. NOTE: installing new os will delete all data on the server.
- os
Host StringName - Hostname for the server.
- os
Password String - Password for the OS user.
- partitions
Configs List<Property Map> - Configuration for disk partitions.
- private
Subnet String - Private subnet to connect the server to.
- public
Subnet StringId - ID of the public subnet to connect the server to.
- ssh
Key String - The public SSH key to be added to the server.
- ssh
Key StringName - The name of an existing SSH key to be added to the server.
- timeouts Property Map
- user
Data String - These are custom configuration settings that automatically perform common tasks or run server setup scripts, reducing the time it takes to configure and deploy your infrastructure.
Outputs
All input properties are implicitly available as output properties. Additionally, the DedicatedServerV1 resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing DedicatedServerV1 Resource
Get an existing DedicatedServerV1 resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: DedicatedServerV1State, opts?: CustomResourceOptions): DedicatedServerV1
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
configuration_id: Optional[str] = None,
dedicated_server_v1_id: Optional[str] = None,
force_update_additional_params: Optional[bool] = None,
location_id: Optional[str] = None,
os_host_name: Optional[str] = None,
os_id: Optional[str] = None,
os_password: Optional[str] = None,
partitions_configs: Optional[Sequence[DedicatedServerV1PartitionsConfigArgs]] = None,
price_plan_name: Optional[str] = None,
private_subnet: Optional[str] = None,
project_id: Optional[str] = None,
public_subnet_id: Optional[str] = None,
ssh_key: Optional[str] = None,
ssh_key_name: Optional[str] = None,
timeouts: Optional[DedicatedServerV1TimeoutsArgs] = None,
user_data: Optional[str] = None) -> DedicatedServerV1
func GetDedicatedServerV1(ctx *Context, name string, id IDInput, state *DedicatedServerV1State, opts ...ResourceOption) (*DedicatedServerV1, error)
public static DedicatedServerV1 Get(string name, Input<string> id, DedicatedServerV1State? state, CustomResourceOptions? opts = null)
public static DedicatedServerV1 get(String name, Output<String> id, DedicatedServerV1State state, CustomResourceOptions options)
resources: _: type: selectel:DedicatedServerV1 get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Configuration
Id string - Unique identifier of the server configuration.
- Dedicated
Server stringV1Id - Unique identifier of the server.
- Force
Update boolAdditional Params - Enables update for additional os params (os_password, user_data, ssh_key, ssh_key_name, partitions_config, os_host_name) without changing os_id. NOTE: installing new os will delete all data on the server.
- Location
Id string - Pool where the server is located.
- 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. NOTE: installing new os will delete all data on the server.
- Os
Password string - Password for the OS user.
- Partitions
Configs List<DedicatedServer V1Partitions Config> - Configuration for disk partitions.
- Price
Plan stringName - The name of the price plan.
- Private
Subnet string - Private subnet to connect the server to.
- Project
Id string - Unique identifier of the associated project. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
- Public
Subnet stringId - ID of the public subnet to connect the server to.
- Ssh
Key string - The public SSH key to be added to the server.
- Ssh
Key stringName - The name of an existing SSH key to be added to the server.
- Timeouts
Dedicated
Server V1Timeouts - User
Data string - These are custom configuration settings that automatically perform common tasks or run server setup scripts, reducing the time it takes to configure and deploy your infrastructure.
- Configuration
Id string - Unique identifier of the server configuration.
- Dedicated
Server stringV1Id - Unique identifier of the server.
- Force
Update boolAdditional Params - Enables update for additional os params (os_password, user_data, ssh_key, ssh_key_name, partitions_config, os_host_name) without changing os_id. NOTE: installing new os will delete all data on the server.
- Location
Id string - Pool where the server is located.
- 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. NOTE: installing new os will delete all data on the server.
- Os
Password string - Password for the OS user.
- Partitions
Configs []DedicatedServer V1Partitions Config Args - Configuration for disk partitions.
- Price
Plan stringName - The name of the price plan.
- Private
Subnet string - Private subnet to connect the server to.
- Project
Id string - Unique identifier of the associated project. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
- Public
Subnet stringId - ID of the public subnet to connect the server to.
- Ssh
Key string - The public SSH key to be added to the server.
- Ssh
Key stringName - The name of an existing SSH key to be added to the server.
- Timeouts
Dedicated
Server V1Timeouts Args - User
Data string - These are custom configuration settings that automatically perform common tasks or run server setup scripts, reducing the time it takes to configure and deploy your infrastructure.
- configuration
Id String - Unique identifier of the server configuration.
- dedicated
Server StringV1Id - Unique identifier of the server.
- force
Update BooleanAdditional Params - Enables update for additional os params (os_password, user_data, ssh_key, ssh_key_name, partitions_config, os_host_name) without changing os_id. NOTE: installing new os will delete all data on the server.
- location
Id String - Pool where the server is located.
- 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. NOTE: installing new os will delete all data on the server.
- os
Password String - Password for the OS user.
- partitions
Configs List<DedicatedServer V1Partitions Config> - Configuration for disk partitions.
- price
Plan StringName - The name of the price plan.
- private
Subnet String - Private subnet to connect the server to.
- project
Id String - Unique identifier of the associated project. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
- public
Subnet StringId - ID of the public subnet to connect the server to.
- ssh
Key String - The public SSH key to be added to the server.
- ssh
Key StringName - The name of an existing SSH key to be added to the server.
- timeouts
Dedicated
Server V1Timeouts - user
Data String - These are custom configuration settings that automatically perform common tasks or run server setup scripts, reducing the time it takes to configure and deploy your infrastructure.
- configuration
Id string - Unique identifier of the server configuration.
- dedicated
Server stringV1Id - Unique identifier of the server.
- force
Update booleanAdditional Params - Enables update for additional os params (os_password, user_data, ssh_key, ssh_key_name, partitions_config, os_host_name) without changing os_id. NOTE: installing new os will delete all data on the server.
- location
Id string - Pool where the server is located.
- 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. NOTE: installing new os will delete all data on the server.
- os
Password string - Password for the OS user.
- partitions
Configs DedicatedServer V1Partitions Config[] - Configuration for disk partitions.
- price
Plan stringName - The name of the price plan.
- private
Subnet string - Private subnet to connect the server to.
- project
Id string - Unique identifier of the associated project. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
- public
Subnet stringId - ID of the public subnet to connect the server to.
- ssh
Key string - The public SSH key to be added to the server.
- ssh
Key stringName - The name of an existing SSH key to be added to the server.
- timeouts
Dedicated
Server V1Timeouts - user
Data string - These are custom configuration settings that automatically perform common tasks or run server setup scripts, reducing the time it takes to configure and deploy your infrastructure.
- configuration_
id str - Unique identifier of the server configuration.
- dedicated_
server_ strv1_ id - Unique identifier of the server.
- force_
update_ booladditional_ params - Enables update for additional os params (os_password, user_data, ssh_key, ssh_key_name, partitions_config, os_host_name) without changing os_id. NOTE: installing new os will delete all data on the server.
- location_
id str - Pool where the server is located.
- os_
host_ 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. NOTE: installing new os will delete all data on the server.
- os_
password str - Password for the OS user.
- partitions_
configs Sequence[DedicatedServer V1Partitions Config Args] - Configuration for disk partitions.
- price_
plan_ strname - The name of the price plan.
- private_
subnet str - Private subnet to connect the server to.
- project_
id str - Unique identifier of the associated project. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
- public_
subnet_ strid - ID of the public subnet to connect the server to.
- ssh_
key str - The public SSH key to be added to the server.
- ssh_
key_ strname - The name of an existing SSH key to be added to the server.
- timeouts
Dedicated
Server V1Timeouts Args - user_
data str - These are custom configuration settings that automatically perform common tasks or run server setup scripts, reducing the time it takes to configure and deploy your infrastructure.
- configuration
Id String - Unique identifier of the server configuration.
- dedicated
Server StringV1Id - Unique identifier of the server.
- force
Update BooleanAdditional Params - Enables update for additional os params (os_password, user_data, ssh_key, ssh_key_name, partitions_config, os_host_name) without changing os_id. NOTE: installing new os will delete all data on the server.
- location
Id String - Pool where the server is located.
- 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. NOTE: installing new os will delete all data on the server.
- os
Password String - Password for the OS user.
- partitions
Configs List<Property Map> - Configuration for disk partitions.
- price
Plan StringName - The name of the price plan.
- private
Subnet String - Private subnet to connect the server to.
- project
Id String - Unique identifier of the associated project. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
- public
Subnet StringId - ID of the public subnet to connect the server to.
- ssh
Key String - The public SSH key to be added to the server.
- ssh
Key StringName - The name of an existing SSH key to be added to the server.
- timeouts Property Map
- user
Data String - These are custom configuration settings that automatically perform common tasks or run server setup scripts, reducing the time it takes to configure and deploy your infrastructure.
Supporting Types
DedicatedServerV1PartitionsConfig, DedicatedServerV1PartitionsConfigArgs
- Disk
Partitions List<DedicatedServer V1Partitions Config Disk Partition> - List of disk partitions.
- Soft
Raid List<DedicatedConfigs Server V1Partitions Config Soft Raid Config> - Configuration for software RAID.
- Disk
Partitions []DedicatedServer V1Partitions Config Disk Partition - List of disk partitions.
- Soft
Raid []DedicatedConfigs Server V1Partitions Config Soft Raid Config - Configuration for software RAID.
- disk
Partitions List<DedicatedServer V1Partitions Config Disk Partition> - List of disk partitions.
- soft
Raid List<DedicatedConfigs Server V1Partitions Config Soft Raid Config> - Configuration for software RAID.
- disk
Partitions DedicatedServer V1Partitions Config Disk Partition[] - List of disk partitions.
- soft
Raid DedicatedConfigs Server V1Partitions Config Soft Raid Config[] - Configuration for software RAID.
- disk_
partitions Sequence[DedicatedServer V1Partitions Config Disk Partition] - List of disk partitions.
- soft_
raid_ Sequence[Dedicatedconfigs Server V1Partitions Config Soft Raid Config] - Configuration for software RAID.
- disk
Partitions List<Property Map> - List of disk partitions.
- soft
Raid List<Property Map>Configs - Configuration for software RAID.
DedicatedServerV1PartitionsConfigDiskPartition, DedicatedServerV1PartitionsConfigDiskPartitionArgs
- Mount string
- Mount point for the partition.
- Raid string
- The RAID array name to create the partition on.
- Fs
Type string - Filesystem type for the partition.
- Size double
- Size of the partition in GB. Use only size or size_percent.
- Size
Percent double - Size of the partition in percent. Use only size or size_percent.
- Mount string
- Mount point for the partition.
- Raid string
- The RAID array name to create the partition on.
- Fs
Type string - Filesystem type for the partition.
- Size float64
- Size of the partition in GB. Use only size or size_percent.
- Size
Percent float64 - Size of the partition in percent. Use only size or size_percent.
- mount String
- Mount point for the partition.
- raid String
- The RAID array name to create the partition on.
- fs
Type String - Filesystem type for the partition.
- size Double
- Size of the partition in GB. Use only size or size_percent.
- size
Percent Double - Size of the partition in percent. Use only size or size_percent.
- mount string
- Mount point for the partition.
- raid string
- The RAID array name to create the partition on.
- fs
Type string - Filesystem type for the partition.
- size number
- Size of the partition in GB. Use only size or size_percent.
- size
Percent number - Size of the partition in percent. Use only size or size_percent.
- mount str
- Mount point for the partition.
- raid str
- The RAID array name to create the partition on.
- fs_
type str - Filesystem type for the partition.
- size float
- Size of the partition in GB. Use only size or size_percent.
- size_
percent float - Size of the partition in percent. Use only size or size_percent.
- mount String
- Mount point for the partition.
- raid String
- The RAID array name to create the partition on.
- fs
Type String - Filesystem type for the partition.
- size Number
- Size of the partition in GB. Use only size or size_percent.
- size
Percent Number - Size of the partition in percent. Use only size or size_percent.
DedicatedServerV1PartitionsConfigSoftRaidConfig, DedicatedServerV1PartitionsConfigSoftRaidConfigArgs
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.
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- selectel selectel/terraform-provider-selectel
- License
- Notes
- This Pulumi package is based on the
selectel
Terraform Provider.