selectel 7.1.0 published on Thursday, Oct 30, 2025 by selectel
selectel.getDedicatedPublicSubnetV1
Start a Neo task
Explain and create a selectel.getDedicatedPublicSubnetV1 resource
Provides a list of available additional public subnets. Learn more about Additional public subnets
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as selectel from "@pulumi/selectel";
const publicSubnets = selectel.getDedicatedPublicSubnetV1({
projectId: selectel_vpc_project_v2.project_1.id,
filter: {
locationId: data.selectel_dedicated_location_v1.server_location.locations[0].id,
subnet: "192.168.1.0/29",
ip: "192.168.1.3",
},
});
import pulumi
import pulumi_selectel as selectel
public_subnets = selectel.get_dedicated_public_subnet_v1(project_id=selectel_vpc_project_v2["project_1"]["id"],
filter={
"location_id": data["selectel_dedicated_location_v1"]["server_location"]["locations"][0]["id"],
"subnet": "192.168.1.0/29",
"ip": "192.168.1.3",
})
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.GetDedicatedPublicSubnetV1(ctx, &selectel.GetDedicatedPublicSubnetV1Args{
ProjectId: selectel_vpc_project_v2.Project_1.Id,
Filter: selectel.GetDedicatedPublicSubnetV1Filter{
LocationId: pulumi.StringRef(data.Selectel_dedicated_location_v1.Server_location.Locations[0].Id),
Subnet: pulumi.StringRef("192.168.1.0/29"),
Ip: pulumi.StringRef("192.168.1.3"),
},
}, 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 publicSubnets = Selectel.GetDedicatedPublicSubnetV1.Invoke(new()
{
ProjectId = selectel_vpc_project_v2.Project_1.Id,
Filter = new Selectel.Inputs.GetDedicatedPublicSubnetV1FilterInputArgs
{
LocationId = data.Selectel_dedicated_location_v1.Server_location.Locations[0].Id,
Subnet = "192.168.1.0/29",
Ip = "192.168.1.3",
},
});
});
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.GetDedicatedPublicSubnetV1Args;
import com.pulumi.selectel.inputs.GetDedicatedPublicSubnetV1FilterArgs;
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 publicSubnets = SelectelFunctions.getDedicatedPublicSubnetV1(GetDedicatedPublicSubnetV1Args.builder()
.projectId(selectel_vpc_project_v2.project_1().id())
.filter(GetDedicatedPublicSubnetV1FilterArgs.builder()
.locationId(data.selectel_dedicated_location_v1().server_location().locations()[0].id())
.subnet("192.168.1.0/29")
.ip("192.168.1.3")
.build())
.build());
}
}
variables:
publicSubnets:
fn::invoke:
function: selectel:getDedicatedPublicSubnetV1
arguments:
projectId: ${selectel_vpc_project_v2.project_1.id}
filter:
locationId: ${data.selectel_dedicated_location_v1.server_location.locations[0].id}
subnet: 192.168.1.0/29
ip: 192.168.1.3
Using getDedicatedPublicSubnetV1
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 getDedicatedPublicSubnetV1(args: GetDedicatedPublicSubnetV1Args, opts?: InvokeOptions): Promise<GetDedicatedPublicSubnetV1Result>
function getDedicatedPublicSubnetV1Output(args: GetDedicatedPublicSubnetV1OutputArgs, opts?: InvokeOptions): Output<GetDedicatedPublicSubnetV1Result>def get_dedicated_public_subnet_v1(filter: Optional[GetDedicatedPublicSubnetV1Filter] = None,
id: Optional[str] = None,
project_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetDedicatedPublicSubnetV1Result
def get_dedicated_public_subnet_v1_output(filter: Optional[pulumi.Input[GetDedicatedPublicSubnetV1FilterArgs]] = None,
id: Optional[pulumi.Input[str]] = None,
project_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetDedicatedPublicSubnetV1Result]func GetDedicatedPublicSubnetV1(ctx *Context, args *GetDedicatedPublicSubnetV1Args, opts ...InvokeOption) (*GetDedicatedPublicSubnetV1Result, error)
func GetDedicatedPublicSubnetV1Output(ctx *Context, args *GetDedicatedPublicSubnetV1OutputArgs, opts ...InvokeOption) GetDedicatedPublicSubnetV1ResultOutput> Note: This function is named GetDedicatedPublicSubnetV1 in the Go SDK.
public static class GetDedicatedPublicSubnetV1
{
public static Task<GetDedicatedPublicSubnetV1Result> InvokeAsync(GetDedicatedPublicSubnetV1Args args, InvokeOptions? opts = null)
public static Output<GetDedicatedPublicSubnetV1Result> Invoke(GetDedicatedPublicSubnetV1InvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetDedicatedPublicSubnetV1Result> getDedicatedPublicSubnetV1(GetDedicatedPublicSubnetV1Args args, InvokeOptions options)
public static Output<GetDedicatedPublicSubnetV1Result> getDedicatedPublicSubnetV1(GetDedicatedPublicSubnetV1Args args, InvokeOptions options)
fn::invoke:
function: selectel:index/getDedicatedPublicSubnetV1:getDedicatedPublicSubnetV1
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 Public Subnet V1Filter - Values to filter available subnets.
- Id string
- Unique identifier of the subnet.
- Project
Id string - Unique identifier of the associated project. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
- Filter
Get
Dedicated Public Subnet V1Filter - Values to filter available subnets.
- Id string
- Unique identifier of the subnet.
- project
Id String - Unique identifier of the associated project. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
- filter
Get
Dedicated Public Subnet V1Filter - Values to filter available subnets.
- id String
- Unique identifier of the subnet.
- project
Id string - Unique identifier of the associated project. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
- filter
Get
Dedicated Public Subnet V1Filter - Values to filter available subnets.
- id string
- Unique identifier of the subnet.
- project_
id str - Unique identifier of the associated project. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
- filter
Get
Dedicated Public Subnet V1Filter - Values to filter available subnets.
- id str
- Unique identifier of the subnet.
- 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 subnets.
- id String
- Unique identifier of the subnet.
getDedicatedPublicSubnetV1 Result
The following output properties are available:
- Id string
- Unique identifier of the subnet.
- Project
Id string - Subnets
List<Get
Dedicated Public Subnet V1Subnet> - List of the available subnets:
- Filter
Get
Dedicated Public Subnet V1Filter
- Id string
- Unique identifier of the subnet.
- Project
Id string - Subnets
[]Get
Dedicated Public Subnet V1Subnet - List of the available subnets:
- Filter
Get
Dedicated Public Subnet V1Filter
- id String
- Unique identifier of the subnet.
- project
Id String - subnets
List<Get
Dedicated Public Subnet V1Subnet> - List of the available subnets:
- filter
Get
Dedicated Public Subnet V1Filter
- id string
- Unique identifier of the subnet.
- project
Id string - subnets
Get
Dedicated Public Subnet V1Subnet[] - List of the available subnets:
- filter
Get
Dedicated Public Subnet V1Filter
- id str
- Unique identifier of the subnet.
- project_
id str - subnets
Sequence[Get
Dedicated Public Subnet V1Subnet] - List of the available subnets:
- filter
Get
Dedicated Public Subnet V1Filter
- id String
- Unique identifier of the subnet.
- project
Id String - subnets List<Property Map>
- List of the available subnets:
- filter Property Map
Supporting Types
GetDedicatedPublicSubnetV1Filter
- Ip string
- IP address to search included in a subnet.
- Location
Id string - Unique identifier of the location. Retrieved from the selectel.getDedicatedLocationV1 data source. Learn more about available pools in the Availability matrix.
- Subnet string
- Subnet in CIDR notation to search.
- Ip string
- IP address to search included in a subnet.
- Location
Id string - Unique identifier of the location. Retrieved from the selectel.getDedicatedLocationV1 data source. Learn more about available pools in the Availability matrix.
- Subnet string
- Subnet in CIDR notation to search.
- ip String
- IP address to search included in a subnet.
- location
Id String - Unique identifier of the location. Retrieved from the selectel.getDedicatedLocationV1 data source. Learn more about available pools in the Availability matrix.
- subnet String
- Subnet in CIDR notation to search.
- ip string
- IP address to search included in a subnet.
- location
Id string - Unique identifier of the location. Retrieved from the selectel.getDedicatedLocationV1 data source. Learn more about available pools in the Availability matrix.
- subnet string
- Subnet in CIDR notation to search.
- ip str
- IP address to search included in a subnet.
- location_
id str - Unique identifier of the location. Retrieved from the selectel.getDedicatedLocationV1 data source. Learn more about available pools in the Availability matrix.
- subnet str
- Subnet in CIDR notation to search.
- ip String
- IP address to search included in a subnet.
- location
Id String - Unique identifier of the location. Retrieved from the selectel.getDedicatedLocationV1 data source. Learn more about available pools in the Availability matrix.
- subnet String
- Subnet in CIDR notation to search.
GetDedicatedPublicSubnetV1Subnet
- Broadcast string
- Broadcast address.
- Gateway string
- Gateway address.
- Id string
- Unique identifier of the subnet.
- Ip string
- IP address from the filter. Can be used to pass forward.
- Network
Id string - Unique identifier of the network.
- Reserved
Vrrp List<string>Ips - List of reserved VRRP IPs.
- Subnet string
- Subnet in CIDR notation.
- Broadcast string
- Broadcast address.
- Gateway string
- Gateway address.
- Id string
- Unique identifier of the subnet.
- Ip string
- IP address from the filter. Can be used to pass forward.
- Network
Id string - Unique identifier of the network.
- Reserved
Vrrp []stringIps - List of reserved VRRP IPs.
- Subnet string
- Subnet in CIDR notation.
- broadcast String
- Broadcast address.
- gateway String
- Gateway address.
- id String
- Unique identifier of the subnet.
- ip String
- IP address from the filter. Can be used to pass forward.
- network
Id String - Unique identifier of the network.
- reserved
Vrrp List<String>Ips - List of reserved VRRP IPs.
- subnet String
- Subnet in CIDR notation.
- broadcast string
- Broadcast address.
- gateway string
- Gateway address.
- id string
- Unique identifier of the subnet.
- ip string
- IP address from the filter. Can be used to pass forward.
- network
Id string - Unique identifier of the network.
- reserved
Vrrp string[]Ips - List of reserved VRRP IPs.
- subnet string
- Subnet in CIDR notation.
- broadcast str
- Broadcast address.
- gateway str
- Gateway address.
- id str
- Unique identifier of the subnet.
- ip str
- IP address from the filter. Can be used to pass forward.
- network_
id str - Unique identifier of the network.
- reserved_
vrrp_ Sequence[str]ips - List of reserved VRRP IPs.
- subnet str
- Subnet in CIDR notation.
- broadcast String
- Broadcast address.
- gateway String
- Gateway address.
- id String
- Unique identifier of the subnet.
- ip String
- IP address from the filter. Can be used to pass forward.
- network
Id String - Unique identifier of the network.
- reserved
Vrrp List<String>Ips - List of reserved VRRP IPs.
- subnet String
- Subnet in CIDR notation.
Package Details
- Repository
- selectel selectel/terraform-provider-selectel
- License
- Notes
- This Pulumi package is based on the
selectelTerraform Provider.
