1. Packages
  2. Selectel Provider
  3. API Docs
  4. getDedicatedOsV1
selectel 7.0.1-alpha published on Thursday, Sep 25, 2025 by selectel

selectel.getDedicatedOsV1

Explore with Pulumi AI

selectel logo
selectel 7.0.1-alpha published on Thursday, Sep 25, 2025 by selectel

    Provides a list of available operating systems.

    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.SelectelFunctions;
    import com.pulumi.selectel.inputs.GetDedicatedConfigurationV1Args;
    import com.pulumi.selectel.inputs.GetDedicatedLocationV1Args;
    import com.pulumi.selectel.inputs.GetDedicatedLocationV1FilterArgs;
    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 serverConfig = SelectelFunctions.getDedicatedConfigurationV1(GetDedicatedConfigurationV1Args.builder()
                .projectId(selectel_vpc_project_v2.project_1().id())
                .filter(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
                .build());
    
            final var serverLocation = SelectelFunctions.getDedicatedLocationV1(GetDedicatedLocationV1Args.builder()
                .projectId(selectel_vpc_project_v2.project_1().id())
                .filter(GetDedicatedLocationV1FilterArgs.builder()
                    .name("MSK-2")
                    .build())
                .build());
    
            final var serverOs = SelectelFunctions.getDedicatedOsV1(GetDedicatedOsV1Args.builder()
                .projectId(selectel_vpc_project_v2.project_1().id())
                .filter(GetDedicatedOsV1FilterArgs.builder()
                    .name("Ubuntu")
                    .version("22.04")
                    .configurationId(serverConfig.applyValue(getDedicatedConfigurationV1Result -> getDedicatedConfigurationV1Result.configurations()[0].id()))
                    .locationId(serverLocation.applyValue(getDedicatedLocationV1Result -> getDedicatedLocationV1Result.locations()[0].id()))
                    .build())
                .build());
    
        }
    }
    
    variables:
      serverConfig:
        fn::invoke:
          function: selectel:getDedicatedConfigurationV1
          arguments:
            projectId: ${selectel_vpc_project_v2.project_1.id}
            filter:
              - name: CL25-NVMe
      serverLocation:
        fn::invoke:
          function: selectel:getDedicatedLocationV1
          arguments:
            projectId: ${selectel_vpc_project_v2.project_1.id}
            filter:
              name: MSK-2
      serverOs:
        fn::invoke:
          function: selectel:getDedicatedOsV1
          arguments:
            projectId: ${selectel_vpc_project_v2.project_1.id}
            filter:
              name: Ubuntu
              version: '22.04'
              configurationId: ${serverConfig.configurations[0].id}
              locationId: ${serverLocation.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.
    LocationId string
    Unique identifier of the location.
    Name string
    Name of the OS to search.
    Version string
    Version of the OS to search.
    ConfigurationId string
    Unique identifier of the server configuration.
    LocationId string
    Unique identifier of the location.
    Name string
    Name of the OS to search.
    Version string
    Version of the OS to search.
    configurationId String
    Unique identifier of the server configuration.
    locationId String
    Unique identifier of the location.
    name String
    Name of the OS to search.
    version String
    Version of the OS to search.
    configurationId string
    Unique identifier of the server configuration.
    locationId string
    Unique identifier of the location.
    name string
    Name of the OS to search.
    version string
    Version of the OS to search.
    configuration_id str
    Unique identifier of the server configuration.
    location_id str
    Unique identifier of the location.
    name str
    Name of the OS to search.
    version str
    Version of the OS to search.
    configurationId String
    Unique identifier of the server configuration.
    locationId String
    Unique identifier of the location.
    name String
    Name of the OS to search.
    version String
    Version of the OS to search.

    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.
    Version string
    OS version.
    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.
    Version string
    OS version.
    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.
    version String
    OS version.
    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.
    version string
    OS version.
    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 str
    OS version.
    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.
    version String
    OS version.

    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.1-alpha published on Thursday, Sep 25, 2025 by selectel