1. Packages
  2. Selectel Provider
  3. API Docs
  4. getDedicatedOsV1
selectel 7.1.0 published on Thursday, Oct 30, 2025 by selectel

selectel.getDedicatedOsV1

Start a Neo task
Explain and create a selectel.getDedicatedOsV1 resource
selectel logo
selectel 7.1.0 published on Thursday, Oct 30, 2025 by selectel

    Provides a list of available operating systems.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as selectel from "@pulumi/selectel";
    
    const serverOs = selectel.getDedicatedOsV1({
        projectId: selectel_vpc_project_v2.project_1.id,
        filter: {
            name: "Ubuntu",
            versionValue: "22.04",
            configurationId: data.selectel_dedicated_configuration_v1.server_config.configurations[0].id,
            locationId: data.selectel_dedicated_location_v1.server_location.locations[0].id,
        },
    });
    
    import pulumi
    import pulumi_selectel as selectel
    
    server_os = selectel.get_dedicated_os_v1(project_id=selectel_vpc_project_v2["project_1"]["id"],
        filter={
            "name": "Ubuntu",
            "version_value": "22.04",
            "configuration_id": data["selectel_dedicated_configuration_v1"]["server_config"]["configurations"][0]["id"],
            "location_id": data["selectel_dedicated_location_v1"]["server_location"]["locations"][0]["id"],
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/selectel/v7/selectel"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := selectel.GetDedicatedOsV1(ctx, &selectel.GetDedicatedOsV1Args{
    			ProjectId: selectel_vpc_project_v2.Project_1.Id,
    			Filter: selectel.GetDedicatedOsV1Filter{
    				Name:            pulumi.StringRef("Ubuntu"),
    				VersionValue:    pulumi.StringRef("22.04"),
    				ConfigurationId: pulumi.StringRef(data.Selectel_dedicated_configuration_v1.Server_config.Configurations[0].Id),
    				LocationId:      pulumi.StringRef(data.Selectel_dedicated_location_v1.Server_location.Locations[0].Id),
    			},
    		}, nil)
    		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 serverOs = Selectel.GetDedicatedOsV1.Invoke(new()
        {
            ProjectId = selectel_vpc_project_v2.Project_1.Id,
            Filter = new Selectel.Inputs.GetDedicatedOsV1FilterInputArgs
            {
                Name = "Ubuntu",
                VersionValue = "22.04",
                ConfigurationId = data.Selectel_dedicated_configuration_v1.Server_config.Configurations[0].Id,
                LocationId = data.Selectel_dedicated_location_v1.Server_location.Locations[0].Id,
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.selectel.SelectelFunctions;
    import com.pulumi.selectel.inputs.GetDedicatedOsV1Args;
    import com.pulumi.selectel.inputs.GetDedicatedOsV1FilterArgs;
    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) {
            final var serverOs = SelectelFunctions.getDedicatedOsV1(GetDedicatedOsV1Args.builder()
                .projectId(selectel_vpc_project_v2.project_1().id())
                .filter(GetDedicatedOsV1FilterArgs.builder()
                    .name("Ubuntu")
                    .versionValue("22.04")
                    .configurationId(data.selectel_dedicated_configuration_v1().server_config().configurations()[0].id())
                    .locationId(data.selectel_dedicated_location_v1().server_location().locations()[0].id())
                    .build())
                .build());
    
        }
    }
    
    variables:
      serverOs:
        fn::invoke:
          function: selectel:getDedicatedOsV1
          arguments:
            projectId: ${selectel_vpc_project_v2.project_1.id}
            filter:
              name: Ubuntu
              versionValue: '22.04'
              configurationId: ${data.selectel_dedicated_configuration_v1.server_config.configurations[0].id}
              locationId: ${data.selectel_dedicated_location_v1.server_location.locations[0].id}
    

    Using getDedicatedOsV1

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getDedicatedOsV1(args: GetDedicatedOsV1Args, opts?: InvokeOptions): Promise<GetDedicatedOsV1Result>
    function getDedicatedOsV1Output(args: GetDedicatedOsV1OutputArgs, opts?: InvokeOptions): Output<GetDedicatedOsV1Result>
    def get_dedicated_os_v1(filter: Optional[GetDedicatedOsV1Filter] = None,
                            id: Optional[str] = None,
                            project_id: Optional[str] = None,
                            opts: Optional[InvokeOptions] = None) -> GetDedicatedOsV1Result
    def get_dedicated_os_v1_output(filter: Optional[pulumi.Input[GetDedicatedOsV1FilterArgs]] = None,
                            id: Optional[pulumi.Input[str]] = None,
                            project_id: Optional[pulumi.Input[str]] = None,
                            opts: Optional[InvokeOptions] = None) -> Output[GetDedicatedOsV1Result]
    func GetDedicatedOsV1(ctx *Context, args *GetDedicatedOsV1Args, opts ...InvokeOption) (*GetDedicatedOsV1Result, error)
    func GetDedicatedOsV1Output(ctx *Context, args *GetDedicatedOsV1OutputArgs, opts ...InvokeOption) GetDedicatedOsV1ResultOutput

    > Note: This function is named GetDedicatedOsV1 in the Go SDK.

    public static class GetDedicatedOsV1 
    {
        public static Task<GetDedicatedOsV1Result> InvokeAsync(GetDedicatedOsV1Args args, InvokeOptions? opts = null)
        public static Output<GetDedicatedOsV1Result> Invoke(GetDedicatedOsV1InvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetDedicatedOsV1Result> getDedicatedOsV1(GetDedicatedOsV1Args args, InvokeOptions options)
    public static Output<GetDedicatedOsV1Result> getDedicatedOsV1(GetDedicatedOsV1Args args, InvokeOptions options)
    
    fn::invoke:
      function: selectel:index/getDedicatedOsV1:getDedicatedOsV1
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ProjectId string
    Unique identifier of the associated project. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
    Filter GetDedicatedOsV1Filter
    Values to filter available operating systems.
    Id string
    Unique identifier of the OS.
    ProjectId string
    Unique identifier of the associated project. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
    Filter GetDedicatedOsV1Filter
    Values to filter available operating systems.
    Id string
    Unique identifier of the OS.
    projectId String
    Unique identifier of the associated project. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
    filter GetDedicatedOsV1Filter
    Values to filter available operating systems.
    id String
    Unique identifier of the OS.
    projectId string
    Unique identifier of the associated project. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
    filter GetDedicatedOsV1Filter
    Values to filter available operating systems.
    id string
    Unique identifier of the OS.
    project_id str
    Unique identifier of the associated project. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
    filter GetDedicatedOsV1Filter
    Values to filter available operating systems.
    id str
    Unique identifier of the OS.
    projectId String
    Unique identifier of the associated project. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
    filter Property Map
    Values to filter available operating systems.
    id String
    Unique identifier of the OS.

    getDedicatedOsV1 Result

    The following output properties are available:

    Id string
    Unique identifier of the OS.
    Os List<GetDedicatedOsV1O>
    OS type.
    ProjectId string
    Filter GetDedicatedOsV1Filter
    Id string
    Unique identifier of the OS.
    Os []GetDedicatedOsV1O
    OS type.
    ProjectId string
    Filter GetDedicatedOsV1Filter
    id String
    Unique identifier of the OS.
    os List<GetDedicatedOsV1O>
    OS type.
    projectId String
    filter GetDedicatedOsV1Filter
    id string
    Unique identifier of the OS.
    os GetDedicatedOsV1O[]
    OS type.
    projectId string
    filter GetDedicatedOsV1Filter
    id str
    Unique identifier of the OS.
    os Sequence[GetDedicatedOsV1O]
    OS type.
    project_id str
    filter GetDedicatedOsV1Filter
    id String
    Unique identifier of the OS.
    os List<Property Map>
    OS type.
    projectId String
    filter Property Map

    Supporting Types

    GetDedicatedOsV1Filter

    ConfigurationId string
    Unique identifier of the server configuration. Retrieved from the selectel_dedicated_configuration_v1
    LocationId string
    Unique identifier of the location. Retrieved from the selectel_dedicated_location_v1. Learn more about available pools in the Availability matrix.
    Name string
    Name of the OS to search.
    VersionName string
    Version name of the OS to search. Can be a part of name, the search is case-insensitive. For more information on available OS versions, see the List OS configurations method in the Dedicated servers API.
    VersionNameRegex string
    VersionValue string
    Version value of the OS to search. For more information on available OS versions, see the List OS configurations method in the Dedicated servers API.
    ConfigurationId string
    Unique identifier of the server configuration. Retrieved from the selectel_dedicated_configuration_v1
    LocationId string
    Unique identifier of the location. Retrieved from the selectel_dedicated_location_v1. Learn more about available pools in the Availability matrix.
    Name string
    Name of the OS to search.
    VersionName string
    Version name of the OS to search. Can be a part of name, the search is case-insensitive. For more information on available OS versions, see the List OS configurations method in the Dedicated servers API.
    VersionNameRegex string
    VersionValue string
    Version value of the OS to search. For more information on available OS versions, see the List OS configurations method in the Dedicated servers API.
    configurationId String
    Unique identifier of the server configuration. Retrieved from the selectel_dedicated_configuration_v1
    locationId String
    Unique identifier of the location. Retrieved from the selectel_dedicated_location_v1. Learn more about available pools in the Availability matrix.
    name String
    Name of the OS to search.
    versionName String
    Version name of the OS to search. Can be a part of name, the search is case-insensitive. For more information on available OS versions, see the List OS configurations method in the Dedicated servers API.
    versionNameRegex String
    versionValue String
    Version value of the OS to search. For more information on available OS versions, see the List OS configurations method in the Dedicated servers API.
    configurationId string
    Unique identifier of the server configuration. Retrieved from the selectel_dedicated_configuration_v1
    locationId string
    Unique identifier of the location. Retrieved from the selectel_dedicated_location_v1. Learn more about available pools in the Availability matrix.
    name string
    Name of the OS to search.
    versionName string
    Version name of the OS to search. Can be a part of name, the search is case-insensitive. For more information on available OS versions, see the List OS configurations method in the Dedicated servers API.
    versionNameRegex string
    versionValue string
    Version value of the OS to search. For more information on available OS versions, see the List OS configurations method in the Dedicated servers API.
    configuration_id str
    Unique identifier of the server configuration. Retrieved from the selectel_dedicated_configuration_v1
    location_id str
    Unique identifier of the location. Retrieved from the selectel_dedicated_location_v1. Learn more about available pools in the Availability matrix.
    name str
    Name of the OS to search.
    version_name str
    Version name of the OS to search. Can be a part of name, the search is case-insensitive. For more information on available OS versions, see the List OS configurations method in the Dedicated servers API.
    version_name_regex str
    version_value str
    Version value of the OS to search. For more information on available OS versions, see the List OS configurations method in the Dedicated servers API.
    configurationId String
    Unique identifier of the server configuration. Retrieved from the selectel_dedicated_configuration_v1
    locationId String
    Unique identifier of the location. Retrieved from the selectel_dedicated_location_v1. Learn more about available pools in the Availability matrix.
    name String
    Name of the OS to search.
    versionName String
    Version name of the OS to search. Can be a part of name, the search is case-insensitive. For more information on available OS versions, see the List OS configurations method in the Dedicated servers API.
    versionNameRegex String
    versionValue String
    Version value of the OS to search. For more information on available OS versions, see the List OS configurations method in the Dedicated servers API.

    GetDedicatedOsV1O

    Arch string
    OS architecture.
    Id string
    Unique identifier of the OS.
    Name string
    OS name.
    Os string
    OS type.
    Partitioning bool
    Shows if partitioning is allowed.
    ScriptsAllowed bool
    Shows if user script is allowed.
    SshKeyAllowed bool
    Shows if SSH key is allowed.
    VersionName string
    OS version name.
    VersionValue string
    OS version value raw.
    Arch string
    OS architecture.
    Id string
    Unique identifier of the OS.
    Name string
    OS name.
    Os string
    OS type.
    Partitioning bool
    Shows if partitioning is allowed.
    ScriptsAllowed bool
    Shows if user script is allowed.
    SshKeyAllowed bool
    Shows if SSH key is allowed.
    VersionName string
    OS version name.
    VersionValue string
    OS version value raw.
    arch String
    OS architecture.
    id String
    Unique identifier of the OS.
    name String
    OS name.
    os String
    OS type.
    partitioning Boolean
    Shows if partitioning is allowed.
    scriptsAllowed Boolean
    Shows if user script is allowed.
    sshKeyAllowed Boolean
    Shows if SSH key is allowed.
    versionName String
    OS version name.
    versionValue String
    OS version value raw.
    arch string
    OS architecture.
    id string
    Unique identifier of the OS.
    name string
    OS name.
    os string
    OS type.
    partitioning boolean
    Shows if partitioning is allowed.
    scriptsAllowed boolean
    Shows if user script is allowed.
    sshKeyAllowed boolean
    Shows if SSH key is allowed.
    versionName string
    OS version name.
    versionValue string
    OS version value raw.
    arch str
    OS architecture.
    id str
    Unique identifier of the OS.
    name str
    OS name.
    os str
    OS type.
    partitioning bool
    Shows if partitioning is allowed.
    scripts_allowed bool
    Shows if user script is allowed.
    ssh_key_allowed bool
    Shows if SSH key is allowed.
    version_name str
    OS version name.
    version_value str
    OS version value raw.
    arch String
    OS architecture.
    id String
    Unique identifier of the OS.
    name String
    OS name.
    os String
    OS type.
    partitioning Boolean
    Shows if partitioning is allowed.
    scriptsAllowed Boolean
    Shows if user script is allowed.
    sshKeyAllowed Boolean
    Shows if SSH key is allowed.
    versionName String
    OS version name.
    versionValue String
    OS version value raw.

    Package Details

    Repository
    selectel selectel/terraform-provider-selectel
    License
    Notes
    This Pulumi package is based on the selectel Terraform Provider.
    selectel logo
    selectel 7.1.0 published on Thursday, Oct 30, 2025 by selectel
      Meet Neo: Your AI Platform Teammate