Viewing docs for selectel 8.0.1
published on Thursday, May 28, 2026 by selectel
published on Thursday, May 28, 2026 by selectel
Viewing docs for selectel 8.0.1
published on Thursday, May 28, 2026 by selectel
published on Thursday, May 28, 2026 by selectel
Provides a list of dedicated servers in the project. Learn more about About dedicated servers.
Example Usage
Get all servers in project
import * as pulumi from "@pulumi/pulumi";
import * as selectel from "@pulumi/selectel";
const servers = selectel.getDedicatedServersV1({
projectId: project.id,
filter: {
name: "production-web-01",
ip: "192.168.1.100",
locationId: serverLocation.locations[0].id,
configuration: "EL5",
privateSubnet: subnets.subnets[0].id,
publicSubnet: subnetsSelectelDedicatedPublicSubnetV1.subnets[0].id,
},
});
import pulumi
import pulumi_selectel as selectel
servers = selectel.get_dedicated_servers_v1(project_id=project["id"],
filter={
"name": "production-web-01",
"ip": "192.168.1.100",
"location_id": server_location["locations"][0]["id"],
"configuration": "EL5",
"private_subnet": subnets["subnets"][0]["id"],
"public_subnet": subnets_selectel_dedicated_public_subnet_v1["subnets"][0]["id"],
})
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/selectel/v8/selectel"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := selectel.GetDedicatedServersV1(ctx, &selectel.GetDedicatedServersV1Args{
ProjectId: project.Id,
Filter: selectel.GetDedicatedServersV1Filter{
Name: pulumi.StringRef("production-web-01"),
Ip: pulumi.StringRef("192.168.1.100"),
LocationId: pulumi.StringRef(serverLocation.Locations[0].Id),
Configuration: pulumi.StringRef("EL5"),
PrivateSubnet: pulumi.StringRef(subnets.Subnets[0].Id),
PublicSubnet: pulumi.StringRef(subnetsSelectelDedicatedPublicSubnetV1.Subnets[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 servers = Selectel.GetDedicatedServersV1.Invoke(new()
{
ProjectId = project.Id,
Filter = new Selectel.Inputs.GetDedicatedServersV1FilterInputArgs
{
Name = "production-web-01",
Ip = "192.168.1.100",
LocationId = serverLocation.Locations[0].Id,
Configuration = "EL5",
PrivateSubnet = subnets.Subnets[0].Id,
PublicSubnet = subnetsSelectelDedicatedPublicSubnetV1.Subnets[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.GetDedicatedServersV1Args;
import com.pulumi.selectel.inputs.GetDedicatedServersV1FilterArgs;
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 servers = SelectelFunctions.getDedicatedServersV1(GetDedicatedServersV1Args.builder()
.projectId(project.id())
.filter(GetDedicatedServersV1FilterArgs.builder()
.name("production-web-01")
.ip("192.168.1.100")
.locationId(serverLocation.locations()[0].id())
.configuration("EL5")
.privateSubnet(subnets.subnets()[0].id())
.publicSubnet(subnetsSelectelDedicatedPublicSubnetV1.subnets()[0].id())
.build())
.build());
}
}
variables:
servers:
fn::invoke:
function: selectel:getDedicatedServersV1
arguments:
projectId: ${project.id}
filter:
name: production-web-01
ip: 192.168.1.100
locationId: ${serverLocation.locations[0].id}
configuration: EL5
privateSubnet: ${subnets.subnets[0].id}
publicSubnet: ${subnetsSelectelDedicatedPublicSubnetV1.subnets[0].id}
Example coming soon!
Using getDedicatedServersV1
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 getDedicatedServersV1(args: GetDedicatedServersV1Args, opts?: InvokeOptions): Promise<GetDedicatedServersV1Result>
function getDedicatedServersV1Output(args: GetDedicatedServersV1OutputArgs, opts?: InvokeOptions): Output<GetDedicatedServersV1Result>def get_dedicated_servers_v1(filter: Optional[GetDedicatedServersV1Filter] = None,
id: Optional[str] = None,
project_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetDedicatedServersV1Result
def get_dedicated_servers_v1_output(filter: pulumi.Input[Optional[GetDedicatedServersV1FilterArgs]] = None,
id: pulumi.Input[Optional[str]] = None,
project_id: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetDedicatedServersV1Result]func GetDedicatedServersV1(ctx *Context, args *GetDedicatedServersV1Args, opts ...InvokeOption) (*GetDedicatedServersV1Result, error)
func GetDedicatedServersV1Output(ctx *Context, args *GetDedicatedServersV1OutputArgs, opts ...InvokeOption) GetDedicatedServersV1ResultOutput> Note: This function is named GetDedicatedServersV1 in the Go SDK.
public static class GetDedicatedServersV1
{
public static Task<GetDedicatedServersV1Result> InvokeAsync(GetDedicatedServersV1Args args, InvokeOptions? opts = null)
public static Output<GetDedicatedServersV1Result> Invoke(GetDedicatedServersV1InvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetDedicatedServersV1Result> getDedicatedServersV1(GetDedicatedServersV1Args args, InvokeOptions options)
public static Output<GetDedicatedServersV1Result> getDedicatedServersV1(GetDedicatedServersV1Args args, InvokeOptions options)
fn::invoke:
function: selectel:index/getDedicatedServersV1:getDedicatedServersV1
arguments:
# arguments dictionarydata "selectel_getdedicatedserversv1" "name" {
# arguments
}The 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 Servers V1Filter - Values to filter available servers:
- Id string
- Unique identifier of the server.
- Project
Id string - Unique identifier of the associated project. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
- Filter
Get
Dedicated Servers V1Filter - Values to filter available servers:
- Id string
- Unique identifier of the server.
- project_
id string - Unique identifier of the associated project. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
- filter object
- Values to filter available servers:
- id string
- Unique identifier of the server.
- project
Id String - Unique identifier of the associated project. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
- filter
Get
Dedicated Servers V1Filter - Values to filter available servers:
- id String
- Unique identifier of the server.
- project
Id string - Unique identifier of the associated project. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
- filter
Get
Dedicated Servers V1Filter - Values to filter available servers:
- id string
- Unique identifier of the server.
- project_
id str - Unique identifier of the associated project. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
- filter
Get
Dedicated Servers V1Filter - Values to filter available servers:
- id str
- Unique identifier of the server.
- 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 servers:
- id String
- Unique identifier of the server.
getDedicatedServersV1 Result
The following output properties are available:
- Id string
- Unique identifier of the server.
- Project
Id string - Servers
List<Get
Dedicated Servers V1Server> - List of the available servers:
- Filter
Get
Dedicated Servers V1Filter
- Id string
- Unique identifier of the server.
- Project
Id string - Servers
[]Get
Dedicated Servers V1Server - List of the available servers:
- Filter
Get
Dedicated Servers V1Filter
- id string
- Unique identifier of the server.
- project_
id string - servers list(object)
- List of the available servers:
- filter object
- id String
- Unique identifier of the server.
- project
Id String - servers
List<Get
Dedicated Servers V1Server> - List of the available servers:
- filter
Get
Dedicated Servers V1Filter
- id string
- Unique identifier of the server.
- project
Id string - servers
Get
Dedicated Servers V1Server[] - List of the available servers:
- filter
Get
Dedicated Servers V1Filter
- id str
- Unique identifier of the server.
- project_
id str - servers
Sequence[Get
Dedicated Servers V1Server] - List of the available servers:
- filter
Get
Dedicated Servers V1Filter
- id String
- Unique identifier of the server.
- project
Id String - servers List<Property Map>
- List of the available servers:
- filter Property Map
Supporting Types
GetDedicatedServersV1Filter
- Configuration string
- Partial, case-insensitive substring of the configuration display name (e.g.
"EL50 SSD"). Matches any server whose configuration name contains the specified string. - Ip string
- IP address of the server.
- Location
Id string - Unique identifier of the location. Retrieved from the selectel.getDedicatedLocationV1 data source. Learn more about available pools in the Availability matrix.
- Name string
- Name of the server. Supports partial match, case-insensitive.
- Private
Subnet string - Unique identifier of a private subnet to which the server belongs. Retrieved from the selectel_dedicated_private_subnet_v1.
- Public
Subnet string - Unique identifier of a public subnet to which the server belongs. Retrieved from the selectel_dedicated_public_subnet_v1.
- Configuration string
- Partial, case-insensitive substring of the configuration display name (e.g.
"EL50 SSD"). Matches any server whose configuration name contains the specified string. - Ip string
- IP address of the server.
- Location
Id string - Unique identifier of the location. Retrieved from the selectel.getDedicatedLocationV1 data source. Learn more about available pools in the Availability matrix.
- Name string
- Name of the server. Supports partial match, case-insensitive.
- Private
Subnet string - Unique identifier of a private subnet to which the server belongs. Retrieved from the selectel_dedicated_private_subnet_v1.
- Public
Subnet string - Unique identifier of a public subnet to which the server belongs. Retrieved from the selectel_dedicated_public_subnet_v1.
- configuration string
- Partial, case-insensitive substring of the configuration display name (e.g.
"EL50 SSD"). Matches any server whose configuration name contains the specified string. - ip string
- IP address of the server.
- location_
id string - Unique identifier of the location. Retrieved from the selectel.getDedicatedLocationV1 data source. Learn more about available pools in the Availability matrix.
- name string
- Name of the server. Supports partial match, case-insensitive.
- private_
subnet string - Unique identifier of a private subnet to which the server belongs. Retrieved from the selectel_dedicated_private_subnet_v1.
- public_
subnet string - Unique identifier of a public subnet to which the server belongs. Retrieved from the selectel_dedicated_public_subnet_v1.
- configuration String
- Partial, case-insensitive substring of the configuration display name (e.g.
"EL50 SSD"). Matches any server whose configuration name contains the specified string. - ip String
- IP address of the server.
- location
Id String - Unique identifier of the location. Retrieved from the selectel.getDedicatedLocationV1 data source. Learn more about available pools in the Availability matrix.
- name String
- Name of the server. Supports partial match, case-insensitive.
- private
Subnet String - Unique identifier of a private subnet to which the server belongs. Retrieved from the selectel_dedicated_private_subnet_v1.
- public
Subnet String - Unique identifier of a public subnet to which the server belongs. Retrieved from the selectel_dedicated_public_subnet_v1.
- configuration string
- Partial, case-insensitive substring of the configuration display name (e.g.
"EL50 SSD"). Matches any server whose configuration name contains the specified string. - ip string
- IP address of the server.
- location
Id string - Unique identifier of the location. Retrieved from the selectel.getDedicatedLocationV1 data source. Learn more about available pools in the Availability matrix.
- name string
- Name of the server. Supports partial match, case-insensitive.
- private
Subnet string - Unique identifier of a private subnet to which the server belongs. Retrieved from the selectel_dedicated_private_subnet_v1.
- public
Subnet string - Unique identifier of a public subnet to which the server belongs. Retrieved from the selectel_dedicated_public_subnet_v1.
- configuration str
- Partial, case-insensitive substring of the configuration display name (e.g.
"EL50 SSD"). Matches any server whose configuration name contains the specified string. - ip str
- IP address of the server.
- location_
id str - Unique identifier of the location. Retrieved from the selectel.getDedicatedLocationV1 data source. Learn more about available pools in the Availability matrix.
- name str
- Name of the server. Supports partial match, case-insensitive.
- private_
subnet str - Unique identifier of a private subnet to which the server belongs. Retrieved from the selectel_dedicated_private_subnet_v1.
- public_
subnet str - Unique identifier of a public subnet to which the server belongs. Retrieved from the selectel_dedicated_public_subnet_v1.
- configuration String
- Partial, case-insensitive substring of the configuration display name (e.g.
"EL50 SSD"). Matches any server whose configuration name contains the specified string. - ip String
- IP address of the server.
- location
Id String - Unique identifier of the location. Retrieved from the selectel.getDedicatedLocationV1 data source. Learn more about available pools in the Availability matrix.
- name String
- Name of the server. Supports partial match, case-insensitive.
- private
Subnet String - Unique identifier of a private subnet to which the server belongs. Retrieved from the selectel_dedicated_private_subnet_v1.
- public
Subnet String - Unique identifier of a public subnet to which the server belongs. Retrieved from the selectel_dedicated_public_subnet_v1.
GetDedicatedServersV1Server
- Configuration string
- Partial, case-insensitive substring of the configuration display name (e.g.
"EL50 SSD"). Matches any server whose configuration name contains the specified string. - Configuration
Id string - Configuration ID of the server.
- Id string
- Unique identifier of the server.
- Location string
- Location
Id string - Location ID of the server.
- Name string
- Server name.
- Reserved
Private List<string>Ips - List of reserved private IP addresses for the server.
- Reserved
Public List<string>Ips - List of reserved public IP addresses for the server.
- Configuration string
- Partial, case-insensitive substring of the configuration display name (e.g.
"EL50 SSD"). Matches any server whose configuration name contains the specified string. - Configuration
Id string - Configuration ID of the server.
- Id string
- Unique identifier of the server.
- Location string
- Location
Id string - Location ID of the server.
- Name string
- Server name.
- Reserved
Private []stringIps - List of reserved private IP addresses for the server.
- Reserved
Public []stringIps - List of reserved public IP addresses for the server.
- configuration string
- Partial, case-insensitive substring of the configuration display name (e.g.
"EL50 SSD"). Matches any server whose configuration name contains the specified string. - configuration_
id string - Configuration ID of the server.
- id string
- Unique identifier of the server.
- location string
- location_
id string - Location ID of the server.
- name string
- Server name.
- reserved_
private_ list(string)ips - List of reserved private IP addresses for the server.
- reserved_
public_ list(string)ips - List of reserved public IP addresses for the server.
- configuration String
- Partial, case-insensitive substring of the configuration display name (e.g.
"EL50 SSD"). Matches any server whose configuration name contains the specified string. - configuration
Id String - Configuration ID of the server.
- id String
- Unique identifier of the server.
- location String
- location
Id String - Location ID of the server.
- name String
- Server name.
- reserved
Private List<String>Ips - List of reserved private IP addresses for the server.
- reserved
Public List<String>Ips - List of reserved public IP addresses for the server.
- configuration string
- Partial, case-insensitive substring of the configuration display name (e.g.
"EL50 SSD"). Matches any server whose configuration name contains the specified string. - configuration
Id string - Configuration ID of the server.
- id string
- Unique identifier of the server.
- location string
- location
Id string - Location ID of the server.
- name string
- Server name.
- reserved
Private string[]Ips - List of reserved private IP addresses for the server.
- reserved
Public string[]Ips - List of reserved public IP addresses for the server.
- configuration str
- Partial, case-insensitive substring of the configuration display name (e.g.
"EL50 SSD"). Matches any server whose configuration name contains the specified string. - configuration_
id str - Configuration ID of the server.
- id str
- Unique identifier of the server.
- location str
- location_
id str - Location ID of the server.
- name str
- Server name.
- reserved_
private_ Sequence[str]ips - List of reserved private IP addresses for the server.
- reserved_
public_ Sequence[str]ips - List of reserved public IP addresses for the server.
- configuration String
- Partial, case-insensitive substring of the configuration display name (e.g.
"EL50 SSD"). Matches any server whose configuration name contains the specified string. - configuration
Id String - Configuration ID of the server.
- id String
- Unique identifier of the server.
- location String
- location
Id String - Location ID of the server.
- name String
- Server name.
- reserved
Private List<String>Ips - List of reserved private IP addresses for the server.
- reserved
Public List<String>Ips - List of reserved public IP addresses for the server.
Package Details
- Repository
- selectel selectel/terraform-provider-selectel
- License
- Notes
- This Pulumi package is based on the
selectelTerraform Provider.
Viewing docs for selectel 8.0.1
published on Thursday, May 28, 2026 by selectel
published on Thursday, May 28, 2026 by selectel