selectel.DedicatedServersServerV1
Explore with Pulumi AI
Create DedicatedServersServerV1 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DedicatedServersServerV1(name: string, args: DedicatedServersServerV1Args, opts?: CustomResourceOptions);
@overload
def DedicatedServersServerV1(resource_name: str,
args: DedicatedServersServerV1Args,
opts: Optional[ResourceOptions] = None)
@overload
def DedicatedServersServerV1(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[DedicatedServersServerV1PartitionsConfigArgs]] = None,
force_update_additional_params: Optional[bool] = None,
private_subnet: Optional[str] = None,
dedicated_servers_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[DedicatedServersServerV1TimeoutsArgs] = None,
user_data: Optional[str] = None)
func NewDedicatedServersServerV1(ctx *Context, name string, args DedicatedServersServerV1Args, opts ...ResourceOption) (*DedicatedServersServerV1, error)
public DedicatedServersServerV1(string name, DedicatedServersServerV1Args args, CustomResourceOptions? opts = null)
public DedicatedServersServerV1(String name, DedicatedServersServerV1Args args)
public DedicatedServersServerV1(String name, DedicatedServersServerV1Args args, CustomResourceOptions options)
type: selectel:DedicatedServersServerV1
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 DedicatedServersServerV1Args
- 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 DedicatedServersServerV1Args
- 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 DedicatedServersServerV1Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DedicatedServersServerV1Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DedicatedServersServerV1Args
- 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 dedicatedServersServerV1Resource = new Selectel.DedicatedServersServerV1("dedicatedServersServerV1Resource", new()
{
OsId = "string",
ProjectId = "string",
PricePlanName = "string",
LocationId = "string",
ConfigurationId = "string",
OsHostName = "string",
OsPassword = "string",
PartitionsConfigs = new[]
{
new Selectel.Inputs.DedicatedServersServerV1PartitionsConfigArgs
{
DiskPartitions = new[]
{
new Selectel.Inputs.DedicatedServersServerV1PartitionsConfigDiskPartitionArgs
{
Mount = "string",
Raid = "string",
FsType = "string",
Size = 0,
SizePercent = 0,
},
},
SoftRaidConfigs = new[]
{
new Selectel.Inputs.DedicatedServersServerV1PartitionsConfigSoftRaidConfigArgs
{
DiskType = "string",
Level = "string",
Name = "string",
},
},
},
},
ForceUpdateAdditionalParams = false,
PrivateSubnet = "string",
DedicatedServersServerV1Id = "string",
PublicSubnetId = "string",
SshKey = "string",
SshKeyName = "string",
Timeouts = new Selectel.Inputs.DedicatedServersServerV1TimeoutsArgs
{
Create = "string",
Delete = "string",
Update = "string",
},
UserData = "string",
});
example, err := selectel.NewDedicatedServersServerV1(ctx, "dedicatedServersServerV1Resource", &selectel.DedicatedServersServerV1Args{
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.DedicatedServersServerV1PartitionsConfigArray{
&selectel.DedicatedServersServerV1PartitionsConfigArgs{
DiskPartitions: selectel.DedicatedServersServerV1PartitionsConfigDiskPartitionArray{
&selectel.DedicatedServersServerV1PartitionsConfigDiskPartitionArgs{
Mount: pulumi.String("string"),
Raid: pulumi.String("string"),
FsType: pulumi.String("string"),
Size: pulumi.Float64(0),
SizePercent: pulumi.Float64(0),
},
},
SoftRaidConfigs: selectel.DedicatedServersServerV1PartitionsConfigSoftRaidConfigArray{
&selectel.DedicatedServersServerV1PartitionsConfigSoftRaidConfigArgs{
DiskType: pulumi.String("string"),
Level: pulumi.String("string"),
Name: pulumi.String("string"),
},
},
},
},
ForceUpdateAdditionalParams: pulumi.Bool(false),
PrivateSubnet: pulumi.String("string"),
DedicatedServersServerV1Id: pulumi.String("string"),
PublicSubnetId: pulumi.String("string"),
SshKey: pulumi.String("string"),
SshKeyName: pulumi.String("string"),
Timeouts: &selectel.DedicatedServersServerV1TimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
Update: pulumi.String("string"),
},
UserData: pulumi.String("string"),
})
var dedicatedServersServerV1Resource = new DedicatedServersServerV1("dedicatedServersServerV1Resource", DedicatedServersServerV1Args.builder()
.osId("string")
.projectId("string")
.pricePlanName("string")
.locationId("string")
.configurationId("string")
.osHostName("string")
.osPassword("string")
.partitionsConfigs(DedicatedServersServerV1PartitionsConfigArgs.builder()
.diskPartitions(DedicatedServersServerV1PartitionsConfigDiskPartitionArgs.builder()
.mount("string")
.raid("string")
.fsType("string")
.size(0.0)
.sizePercent(0.0)
.build())
.softRaidConfigs(DedicatedServersServerV1PartitionsConfigSoftRaidConfigArgs.builder()
.diskType("string")
.level("string")
.name("string")
.build())
.build())
.forceUpdateAdditionalParams(false)
.privateSubnet("string")
.dedicatedServersServerV1Id("string")
.publicSubnetId("string")
.sshKey("string")
.sshKeyName("string")
.timeouts(DedicatedServersServerV1TimeoutsArgs.builder()
.create("string")
.delete("string")
.update("string")
.build())
.userData("string")
.build());
dedicated_servers_server_v1_resource = selectel.DedicatedServersServerV1("dedicatedServersServerV1Resource",
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_servers_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 dedicatedServersServerV1Resource = new selectel.DedicatedServersServerV1("dedicatedServersServerV1Resource", {
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",
dedicatedServersServerV1Id: "string",
publicSubnetId: "string",
sshKey: "string",
sshKeyName: "string",
timeouts: {
create: "string",
"delete": "string",
update: "string",
},
userData: "string",
});
type: selectel:DedicatedServersServerV1
properties:
configurationId: string
dedicatedServersServerV1Id: 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
DedicatedServersServerV1 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 DedicatedServersServerV1 resource accepts the following input properties:
- Configuration
Id string - Location
Id string - Os
Id string - Price
Plan stringName - Project
Id string - Dedicated
Servers stringServer V1Id - Force
Update boolAdditional Params - Os
Host stringName - Os
Password string - Partitions
Configs List<DedicatedServers Server V1Partitions Config> - Private
Subnet string - Public
Subnet stringId - Ssh
Key string - Ssh
Key stringName - Timeouts
Dedicated
Servers Server V1Timeouts - User
Data string
- Configuration
Id string - Location
Id string - Os
Id string - Price
Plan stringName - Project
Id string - Dedicated
Servers stringServer V1Id - Force
Update boolAdditional Params - Os
Host stringName - Os
Password string - Partitions
Configs []DedicatedServers Server V1Partitions Config Args - Private
Subnet string - Public
Subnet stringId - Ssh
Key string - Ssh
Key stringName - Timeouts
Dedicated
Servers Server V1Timeouts Args - User
Data string
- configuration
Id String - location
Id String - os
Id String - price
Plan StringName - project
Id String - dedicated
Servers StringServer V1Id - force
Update BooleanAdditional Params - os
Host StringName - os
Password String - partitions
Configs List<DedicatedServers Server V1Partitions Config> - private
Subnet String - public
Subnet StringId - ssh
Key String - ssh
Key StringName - timeouts
Dedicated
Servers Server V1Timeouts - user
Data String
- configuration
Id string - location
Id string - os
Id string - price
Plan stringName - project
Id string - dedicated
Servers stringServer V1Id - force
Update booleanAdditional Params - os
Host stringName - os
Password string - partitions
Configs DedicatedServers Server V1Partitions Config[] - private
Subnet string - public
Subnet stringId - ssh
Key string - ssh
Key stringName - timeouts
Dedicated
Servers Server V1Timeouts - user
Data string
- configuration_
id str - location_
id str - os_
id str - price_
plan_ strname - project_
id str - dedicated_
servers_ strserver_ v1_ id - force_
update_ booladditional_ params - os_
host_ strname - os_
password str - partitions_
configs Sequence[DedicatedServers Server V1Partitions Config Args] - private_
subnet str - public_
subnet_ strid - ssh_
key str - ssh_
key_ strname - timeouts
Dedicated
Servers Server V1Timeouts Args - user_
data str
- configuration
Id String - location
Id String - os
Id String - price
Plan StringName - project
Id String - dedicated
Servers StringServer V1Id - force
Update BooleanAdditional Params - os
Host StringName - os
Password String - partitions
Configs List<Property Map> - private
Subnet String - public
Subnet StringId - ssh
Key String - ssh
Key StringName - timeouts Property Map
- user
Data String
Outputs
All input properties are implicitly available as output properties. Additionally, the DedicatedServersServerV1 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 DedicatedServersServerV1 Resource
Get an existing DedicatedServersServerV1 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?: DedicatedServersServerV1State, opts?: CustomResourceOptions): DedicatedServersServerV1
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
configuration_id: Optional[str] = None,
dedicated_servers_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[DedicatedServersServerV1PartitionsConfigArgs]] = 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[DedicatedServersServerV1TimeoutsArgs] = None,
user_data: Optional[str] = None) -> DedicatedServersServerV1
func GetDedicatedServersServerV1(ctx *Context, name string, id IDInput, state *DedicatedServersServerV1State, opts ...ResourceOption) (*DedicatedServersServerV1, error)
public static DedicatedServersServerV1 Get(string name, Input<string> id, DedicatedServersServerV1State? state, CustomResourceOptions? opts = null)
public static DedicatedServersServerV1 get(String name, Output<String> id, DedicatedServersServerV1State state, CustomResourceOptions options)
resources: _: type: selectel:DedicatedServersServerV1 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 - Dedicated
Servers stringServer V1Id - Force
Update boolAdditional Params - Location
Id string - Os
Host stringName - Os
Id string - Os
Password string - Partitions
Configs List<DedicatedServers Server V1Partitions Config> - Price
Plan stringName - Private
Subnet string - Project
Id string - Public
Subnet stringId - Ssh
Key string - Ssh
Key stringName - Timeouts
Dedicated
Servers Server V1Timeouts - User
Data string
- Configuration
Id string - Dedicated
Servers stringServer V1Id - Force
Update boolAdditional Params - Location
Id string - Os
Host stringName - Os
Id string - Os
Password string - Partitions
Configs []DedicatedServers Server V1Partitions Config Args - Price
Plan stringName - Private
Subnet string - Project
Id string - Public
Subnet stringId - Ssh
Key string - Ssh
Key stringName - Timeouts
Dedicated
Servers Server V1Timeouts Args - User
Data string
- configuration
Id String - dedicated
Servers StringServer V1Id - force
Update BooleanAdditional Params - location
Id String - os
Host StringName - os
Id String - os
Password String - partitions
Configs List<DedicatedServers Server V1Partitions Config> - price
Plan StringName - private
Subnet String - project
Id String - public
Subnet StringId - ssh
Key String - ssh
Key StringName - timeouts
Dedicated
Servers Server V1Timeouts - user
Data String
- configuration
Id string - dedicated
Servers stringServer V1Id - force
Update booleanAdditional Params - location
Id string - os
Host stringName - os
Id string - os
Password string - partitions
Configs DedicatedServers Server V1Partitions Config[] - price
Plan stringName - private
Subnet string - project
Id string - public
Subnet stringId - ssh
Key string - ssh
Key stringName - timeouts
Dedicated
Servers Server V1Timeouts - user
Data string
- configuration_
id str - dedicated_
servers_ strserver_ v1_ id - force_
update_ booladditional_ params - location_
id str - os_
host_ strname - os_
id str - os_
password str - partitions_
configs Sequence[DedicatedServers Server V1Partitions Config Args] - price_
plan_ strname - private_
subnet str - project_
id str - public_
subnet_ strid - ssh_
key str - ssh_
key_ strname - timeouts
Dedicated
Servers Server V1Timeouts Args - user_
data str
- configuration
Id String - dedicated
Servers StringServer V1Id - force
Update BooleanAdditional Params - location
Id String - os
Host StringName - os
Id String - os
Password String - partitions
Configs List<Property Map> - price
Plan StringName - private
Subnet String - project
Id String - public
Subnet StringId - ssh
Key String - ssh
Key StringName - timeouts Property Map
- user
Data String
Supporting Types
DedicatedServersServerV1PartitionsConfig, DedicatedServersServerV1PartitionsConfigArgs
DedicatedServersServerV1PartitionsConfigDiskPartition, DedicatedServersServerV1PartitionsConfigDiskPartitionArgs
- Mount string
- Raid string
- Fs
Type string - Size double
- Size
Percent double
- Mount string
- Raid string
- Fs
Type string - Size float64
- Size
Percent float64
- mount String
- raid String
- fs
Type String - size Double
- size
Percent Double
- mount string
- raid string
- fs
Type string - size number
- size
Percent number
- mount str
- raid str
- fs_
type str - size float
- size_
percent float
- mount String
- raid String
- fs
Type String - size Number
- size
Percent Number
DedicatedServersServerV1PartitionsConfigSoftRaidConfig, DedicatedServersServerV1PartitionsConfigSoftRaidConfigArgs
DedicatedServersServerV1Timeouts, DedicatedServersServerV1TimeoutsArgs
Package Details
- Repository
- selectel selectel/terraform-provider-selectel
- License
- Notes
- This Pulumi package is based on the
selectel
Terraform Provider.