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

selectel.getDedicatedLocationV1

Explore with Pulumi AI

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

    Provides a list of available locations.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as selectel from "@pulumi/selectel";
    
    const serverLocation = selectel.getDedicatedLocationV1({
        projectId: selectel_vpc_project_v2.project_1.id,
        filter: {
            name: "MSK-2",
        },
    });
    
    import pulumi
    import pulumi_selectel as selectel
    
    server_location = selectel.get_dedicated_location_v1(project_id=selectel_vpc_project_v2["project_1"]["id"],
        filter={
            "name": "MSK-2",
        })
    
    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.GetDedicatedLocationV1(ctx, &selectel.GetDedicatedLocationV1Args{
    			ProjectId: selectel_vpc_project_v2.Project_1.Id,
    			Filter: selectel.GetDedicatedLocationV1Filter{
    				Name: pulumi.StringRef("MSK-2"),
    			},
    		}, 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 serverLocation = Selectel.GetDedicatedLocationV1.Invoke(new()
        {
            ProjectId = selectel_vpc_project_v2.Project_1.Id,
            Filter = new Selectel.Inputs.GetDedicatedLocationV1FilterInputArgs
            {
                Name = "MSK-2",
            },
        });
    
    });
    
    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.GetDedicatedLocationV1Args;
    import com.pulumi.selectel.inputs.GetDedicatedLocationV1FilterArgs;
    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 serverLocation = SelectelFunctions.getDedicatedLocationV1(GetDedicatedLocationV1Args.builder()
                .projectId(selectel_vpc_project_v2.project_1().id())
                .filter(GetDedicatedLocationV1FilterArgs.builder()
                    .name("MSK-2")
                    .build())
                .build());
    
        }
    }
    
    variables:
      serverLocation:
        fn::invoke:
          function: selectel:getDedicatedLocationV1
          arguments:
            projectId: ${selectel_vpc_project_v2.project_1.id}
            filter:
              name: MSK-2
    

    Using getDedicatedLocationV1

    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 getDedicatedLocationV1(args: GetDedicatedLocationV1Args, opts?: InvokeOptions): Promise<GetDedicatedLocationV1Result>
    function getDedicatedLocationV1Output(args: GetDedicatedLocationV1OutputArgs, opts?: InvokeOptions): Output<GetDedicatedLocationV1Result>
    def get_dedicated_location_v1(filter: Optional[GetDedicatedLocationV1Filter] = None,
                                  id: Optional[str] = None,
                                  project_id: Optional[str] = None,
                                  opts: Optional[InvokeOptions] = None) -> GetDedicatedLocationV1Result
    def get_dedicated_location_v1_output(filter: Optional[pulumi.Input[GetDedicatedLocationV1FilterArgs]] = None,
                                  id: Optional[pulumi.Input[str]] = None,
                                  project_id: Optional[pulumi.Input[str]] = None,
                                  opts: Optional[InvokeOptions] = None) -> Output[GetDedicatedLocationV1Result]
    func GetDedicatedLocationV1(ctx *Context, args *GetDedicatedLocationV1Args, opts ...InvokeOption) (*GetDedicatedLocationV1Result, error)
    func GetDedicatedLocationV1Output(ctx *Context, args *GetDedicatedLocationV1OutputArgs, opts ...InvokeOption) GetDedicatedLocationV1ResultOutput

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

    public static class GetDedicatedLocationV1 
    {
        public static Task<GetDedicatedLocationV1Result> InvokeAsync(GetDedicatedLocationV1Args args, InvokeOptions? opts = null)
        public static Output<GetDedicatedLocationV1Result> Invoke(GetDedicatedLocationV1InvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetDedicatedLocationV1Result> getDedicatedLocationV1(GetDedicatedLocationV1Args args, InvokeOptions options)
    public static Output<GetDedicatedLocationV1Result> getDedicatedLocationV1(GetDedicatedLocationV1Args args, InvokeOptions options)
    
    fn::invoke:
      function: selectel:index/getDedicatedLocationV1:getDedicatedLocationV1
      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 GetDedicatedLocationV1Filter
    Values to filter available locations.
    Id string
    Unique identifier of the location.
    ProjectId string
    Unique identifier of the associated project. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
    Filter GetDedicatedLocationV1Filter
    Values to filter available locations.
    Id string
    Unique identifier of the location.
    projectId String
    Unique identifier of the associated project. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
    filter GetDedicatedLocationV1Filter
    Values to filter available locations.
    id String
    Unique identifier of the location.
    projectId string
    Unique identifier of the associated project. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
    filter GetDedicatedLocationV1Filter
    Values to filter available locations.
    id string
    Unique identifier of the location.
    project_id str
    Unique identifier of the associated project. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
    filter GetDedicatedLocationV1Filter
    Values to filter available locations.
    id str
    Unique identifier of the location.
    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 locations.
    id String
    Unique identifier of the location.

    getDedicatedLocationV1 Result

    The following output properties are available:

    Id string
    Unique identifier of the location.
    Locations List<GetDedicatedLocationV1Location>
    List of the available locations:
    ProjectId string
    Filter GetDedicatedLocationV1Filter
    Id string
    Unique identifier of the location.
    Locations []GetDedicatedLocationV1Location
    List of the available locations:
    ProjectId string
    Filter GetDedicatedLocationV1Filter
    id String
    Unique identifier of the location.
    locations List<GetDedicatedLocationV1Location>
    List of the available locations:
    projectId String
    filter GetDedicatedLocationV1Filter
    id string
    Unique identifier of the location.
    locations GetDedicatedLocationV1Location[]
    List of the available locations:
    projectId string
    filter GetDedicatedLocationV1Filter
    id str
    Unique identifier of the location.
    locations Sequence[GetDedicatedLocationV1Location]
    List of the available locations:
    project_id str
    filter GetDedicatedLocationV1Filter
    id String
    Unique identifier of the location.
    locations List<Property Map>
    List of the available locations:
    projectId String
    filter Property Map

    Supporting Types

    GetDedicatedLocationV1Filter

    Name string
    Name of the location to search.
    Name string
    Name of the location to search.
    name String
    Name of the location to search.
    name string
    Name of the location to search.
    name str
    Name of the location to search.
    name String
    Name of the location to search.

    GetDedicatedLocationV1Location

    Description string
    Location description.
    Id string
    Unique identifier of the location.
    Name string
    Location name.
    Visibility string
    Location visibility.
    Description string
    Location description.
    Id string
    Unique identifier of the location.
    Name string
    Location name.
    Visibility string
    Location visibility.
    description String
    Location description.
    id String
    Unique identifier of the location.
    name String
    Location name.
    visibility String
    Location visibility.
    description string
    Location description.
    id string
    Unique identifier of the location.
    name string
    Location name.
    visibility string
    Location visibility.
    description str
    Location description.
    id str
    Unique identifier of the location.
    name str
    Location name.
    visibility str
    Location visibility.
    description String
    Location description.
    id String
    Unique identifier of the location.
    name String
    Location name.
    visibility String
    Location visibility.

    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