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
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 dictionaryThe following arguments are supported:
- Project
Id string - Unique identifier of the associated project. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
- Filter
Get
Dedicated Os V1Filter - Values to filter available operating systems.
- Id string
- Unique identifier of the OS.
- Project
Id string - Unique identifier of the associated project. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
- Filter
Get
Dedicated Os V1Filter - Values to filter available operating systems.
- Id string
- Unique identifier of the OS.
- project
Id String - Unique identifier of the associated project. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
- filter
Get
Dedicated Os V1Filter - Values to filter available operating systems.
- id String
- Unique identifier of the OS.
- project
Id string - Unique identifier of the associated project. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
- filter
Get
Dedicated Os V1Filter - 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
Get
Dedicated Os V1Filter - Values to filter available operating systems.
- id str
- Unique identifier of the OS.
- project
Id 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<Get
Dedicated Os V1O> - OS type.
- Project
Id string - Filter
Get
Dedicated Os V1Filter
- Id string
- Unique identifier of the OS.
- Os
[]Get
Dedicated Os V1O - OS type.
- Project
Id string - Filter
Get
Dedicated Os V1Filter
- id String
- Unique identifier of the OS.
- os
List<Get
Dedicated Os V1O> - OS type.
- project
Id String - filter
Get
Dedicated Os V1Filter
- id string
- Unique identifier of the OS.
- os
Get
Dedicated Os V1O[] - OS type.
- project
Id string - filter
Get
Dedicated Os V1Filter
- id str
- Unique identifier of the OS.
- os
Sequence[Get
Dedicated Os V1O] - OS type.
- project_
id str - filter
Get
Dedicated Os V1Filter
- id String
- Unique identifier of the OS.
- os List<Property Map>
- OS type.
- project
Id String - filter Property Map
Supporting Types
GetDedicatedOsV1Filter
- Configuration
Id string - Unique identifier of the server configuration. Retrieved from the selectel_dedicated_configuration_v1
- Location
Id 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.
- Version
Name 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.
- Version
Name stringRegex - Version
Value 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 string - Unique identifier of the server configuration. Retrieved from the selectel_dedicated_configuration_v1
- Location
Id 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.
- Version
Name 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.
- Version
Name stringRegex - Version
Value 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 String - Unique identifier of the server configuration. Retrieved from the selectel_dedicated_configuration_v1
- location
Id 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.
- version
Name 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.
- version
Name StringRegex - version
Value 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 string - Unique identifier of the server configuration. Retrieved from the selectel_dedicated_configuration_v1
- location
Id 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.
- version
Name 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.
- version
Name stringRegex - version
Value 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_ strregex - 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.
- configuration
Id String - Unique identifier of the server configuration. Retrieved from the selectel_dedicated_configuration_v1
- location
Id 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.
- version
Name 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.
- version
Name StringRegex - version
Value 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.
- Scripts
Allowed bool - Shows if user script is allowed.
- Ssh
Key boolAllowed - Shows if SSH key is allowed.
- Version
Name string - OS version name.
- Version
Value 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.
- Scripts
Allowed bool - Shows if user script is allowed.
- Ssh
Key boolAllowed - Shows if SSH key is allowed.
- Version
Name string - OS version name.
- Version
Value 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.
- scripts
Allowed Boolean - Shows if user script is allowed.
- ssh
Key BooleanAllowed - Shows if SSH key is allowed.
- version
Name String - OS version name.
- version
Value 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.
- scripts
Allowed boolean - Shows if user script is allowed.
- ssh
Key booleanAllowed - Shows if SSH key is allowed.
- version
Name string - OS version name.
- version
Value 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_ boolallowed - 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.
- scripts
Allowed Boolean - Shows if user script is allowed.
- ssh
Key BooleanAllowed - Shows if SSH key is allowed.
- version
Name String - OS version name.
- version
Value String - OS version value raw.
Package Details
- Repository
- selectel selectel/terraform-provider-selectel
- License
- Notes
- This Pulumi package is based on the
selectelTerraform Provider.
