1. Packages
  2. Selectel Provider
  3. API Docs
  4. DedicatedServersServerV1
selectel 7.0.0-alpha published on Tuesday, Sep 23, 2025 by selectel

selectel.DedicatedServersServerV1

Explore with Pulumi AI

selectel logo
selectel 7.0.0-alpha published on Tuesday, Sep 23, 2025 by selectel

    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:

    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.
    The following state arguments are supported:

    Supporting Types

    DedicatedServersServerV1PartitionsConfig, DedicatedServersServerV1PartitionsConfigArgs

    DedicatedServersServerV1PartitionsConfigDiskPartition, DedicatedServersServerV1PartitionsConfigDiskPartitionArgs

    Mount string
    Raid string
    FsType string
    Size double
    SizePercent double
    Mount string
    Raid string
    FsType string
    Size float64
    SizePercent float64
    mount String
    raid String
    fsType String
    size Double
    sizePercent Double
    mount string
    raid string
    fsType string
    size number
    sizePercent number
    mount str
    raid str
    fs_type str
    size float
    size_percent float
    mount String
    raid String
    fsType String
    size Number
    sizePercent Number

    DedicatedServersServerV1PartitionsConfigSoftRaidConfig, DedicatedServersServerV1PartitionsConfigSoftRaidConfigArgs

    DiskType string
    Level string
    Name string
    DiskType string
    Level string
    Name string
    diskType String
    level String
    name String
    diskType string
    level string
    name string
    disk_type str
    level str
    name str
    diskType String
    level String
    name String

    DedicatedServersServerV1Timeouts, DedicatedServersServerV1TimeoutsArgs

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

    Package Details

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