1. Packages
  2. Selectel Provider
  3. API Docs
  4. getDbaasAvailableExtensionV1
selectel 6.4.0 published on Monday, Apr 14, 2025 by selectel

selectel.getDbaasAvailableExtensionV1

Explore with Pulumi AI

selectel logo
selectel 6.4.0 published on Monday, Apr 14, 2025 by selectel

    Provides a list of extensions available for Managed Databases. Applicable to PostgreSQL and PostgreSQL TimescaleDB. For more information about extensions, see the official Selectel documentation for PostgreSQL and PostgreSQL TimescaleDB.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as selectel from "@pulumi/selectel";
    
    const availableExtension1 = selectel.getDbaasAvailableExtensionV1({
        projectId: selectel_vpc_project_v2.project_1.id,
        region: "ru-3",
    });
    
    import pulumi
    import pulumi_selectel as selectel
    
    available_extension1 = selectel.get_dbaas_available_extension_v1(project_id=selectel_vpc_project_v2["project_1"]["id"],
        region="ru-3")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/selectel/v6/selectel"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := selectel.GetDbaasAvailableExtensionV1(ctx, &selectel.GetDbaasAvailableExtensionV1Args{
    			ProjectId: selectel_vpc_project_v2.Project_1.Id,
    			Region:    "ru-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 availableExtension1 = Selectel.GetDbaasAvailableExtensionV1.Invoke(new()
        {
            ProjectId = selectel_vpc_project_v2.Project_1.Id,
            Region = "ru-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.GetDbaasAvailableExtensionV1Args;
    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 availableExtension1 = SelectelFunctions.getDbaasAvailableExtensionV1(GetDbaasAvailableExtensionV1Args.builder()
                .projectId(selectel_vpc_project_v2.project_1().id())
                .region("ru-3")
                .build());
    
        }
    }
    
    variables:
      availableExtension1:
        fn::invoke:
          function: selectel:getDbaasAvailableExtensionV1
          arguments:
            projectId: ${selectel_vpc_project_v2.project_1.id}
            region: ru-3
    

    Using getDbaasAvailableExtensionV1

    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 getDbaasAvailableExtensionV1(args: GetDbaasAvailableExtensionV1Args, opts?: InvokeOptions): Promise<GetDbaasAvailableExtensionV1Result>
    function getDbaasAvailableExtensionV1Output(args: GetDbaasAvailableExtensionV1OutputArgs, opts?: InvokeOptions): Output<GetDbaasAvailableExtensionV1Result>
    def get_dbaas_available_extension_v1(filters: Optional[Sequence[GetDbaasAvailableExtensionV1Filter]] = None,
                                         id: Optional[str] = None,
                                         project_id: Optional[str] = None,
                                         region: Optional[str] = None,
                                         opts: Optional[InvokeOptions] = None) -> GetDbaasAvailableExtensionV1Result
    def get_dbaas_available_extension_v1_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetDbaasAvailableExtensionV1FilterArgs]]]] = None,
                                         id: Optional[pulumi.Input[str]] = None,
                                         project_id: Optional[pulumi.Input[str]] = None,
                                         region: Optional[pulumi.Input[str]] = None,
                                         opts: Optional[InvokeOptions] = None) -> Output[GetDbaasAvailableExtensionV1Result]
    func GetDbaasAvailableExtensionV1(ctx *Context, args *GetDbaasAvailableExtensionV1Args, opts ...InvokeOption) (*GetDbaasAvailableExtensionV1Result, error)
    func GetDbaasAvailableExtensionV1Output(ctx *Context, args *GetDbaasAvailableExtensionV1OutputArgs, opts ...InvokeOption) GetDbaasAvailableExtensionV1ResultOutput

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

    public static class GetDbaasAvailableExtensionV1 
    {
        public static Task<GetDbaasAvailableExtensionV1Result> InvokeAsync(GetDbaasAvailableExtensionV1Args args, InvokeOptions? opts = null)
        public static Output<GetDbaasAvailableExtensionV1Result> Invoke(GetDbaasAvailableExtensionV1InvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetDbaasAvailableExtensionV1Result> getDbaasAvailableExtensionV1(GetDbaasAvailableExtensionV1Args args, InvokeOptions options)
    public static Output<GetDbaasAvailableExtensionV1Result> getDbaasAvailableExtensionV1(GetDbaasAvailableExtensionV1Args args, InvokeOptions options)
    
    fn::invoke:
      function: selectel:index/getDbaasAvailableExtensionV1:getDbaasAvailableExtensionV1
      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.
    Region string
    Pool where the database is located, for example, ru-3. Learn more about available pools in the Availability matrix.
    Filters List<GetDbaasAvailableExtensionV1Filter>
    Values to filter available extensions.
    Id string
    Unique identifier of the extension.
    ProjectId string
    Unique identifier of the associated project. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
    Region string
    Pool where the database is located, for example, ru-3. Learn more about available pools in the Availability matrix.
    Filters []GetDbaasAvailableExtensionV1Filter
    Values to filter available extensions.
    Id string
    Unique identifier of the extension.
    projectId String
    Unique identifier of the associated project. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
    region String
    Pool where the database is located, for example, ru-3. Learn more about available pools in the Availability matrix.
    filters List<GetDbaasAvailableExtensionV1Filter>
    Values to filter available extensions.
    id String
    Unique identifier of the extension.
    projectId string
    Unique identifier of the associated project. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
    region string
    Pool where the database is located, for example, ru-3. Learn more about available pools in the Availability matrix.
    filters GetDbaasAvailableExtensionV1Filter[]
    Values to filter available extensions.
    id string
    Unique identifier of the extension.
    project_id str
    Unique identifier of the associated project. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
    region str
    Pool where the database is located, for example, ru-3. Learn more about available pools in the Availability matrix.
    filters Sequence[GetDbaasAvailableExtensionV1Filter]
    Values to filter available extensions.
    id str
    Unique identifier of the extension.
    projectId String
    Unique identifier of the associated project. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
    region String
    Pool where the database is located, for example, ru-3. Learn more about available pools in the Availability matrix.
    filters List<Property Map>
    Values to filter available extensions.
    id String
    Unique identifier of the extension.

    getDbaasAvailableExtensionV1 Result

    The following output properties are available:

    AvailableExtensions List<GetDbaasAvailableExtensionV1AvailableExtension>
    List of the available extensions:
    Id string
    Unique identifier of the extension.
    ProjectId string
    Region string
    Filters List<GetDbaasAvailableExtensionV1Filter>
    AvailableExtensions []GetDbaasAvailableExtensionV1AvailableExtension
    List of the available extensions:
    Id string
    Unique identifier of the extension.
    ProjectId string
    Region string
    Filters []GetDbaasAvailableExtensionV1Filter
    availableExtensions List<GetDbaasAvailableExtensionV1AvailableExtension>
    List of the available extensions:
    id String
    Unique identifier of the extension.
    projectId String
    region String
    filters List<GetDbaasAvailableExtensionV1Filter>
    availableExtensions GetDbaasAvailableExtensionV1AvailableExtension[]
    List of the available extensions:
    id string
    Unique identifier of the extension.
    projectId string
    region string
    filters GetDbaasAvailableExtensionV1Filter[]
    availableExtensions List<Property Map>
    List of the available extensions:
    id String
    Unique identifier of the extension.
    projectId String
    region String
    filters List<Property Map>

    Supporting Types

    GetDbaasAvailableExtensionV1AvailableExtension

    DatastoreTypeIds List<string>
    List of datastore types that support the extension.
    DependencyIds List<string>
    List of extensions that depend on this extension.
    Id string
    Unique identifier of the extension.
    Name string
    Extension name.
    DatastoreTypeIds []string
    List of datastore types that support the extension.
    DependencyIds []string
    List of extensions that depend on this extension.
    Id string
    Unique identifier of the extension.
    Name string
    Extension name.
    datastoreTypeIds List<String>
    List of datastore types that support the extension.
    dependencyIds List<String>
    List of extensions that depend on this extension.
    id String
    Unique identifier of the extension.
    name String
    Extension name.
    datastoreTypeIds string[]
    List of datastore types that support the extension.
    dependencyIds string[]
    List of extensions that depend on this extension.
    id string
    Unique identifier of the extension.
    name string
    Extension name.
    datastore_type_ids Sequence[str]
    List of datastore types that support the extension.
    dependency_ids Sequence[str]
    List of extensions that depend on this extension.
    id str
    Unique identifier of the extension.
    name str
    Extension name.
    datastoreTypeIds List<String>
    List of datastore types that support the extension.
    dependencyIds List<String>
    List of extensions that depend on this extension.
    id String
    Unique identifier of the extension.
    name String
    Extension name.

    GetDbaasAvailableExtensionV1Filter

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

    Package Details

    Repository
    selectel selectel/terraform-provider-selectel
    License
    Notes
    This Pulumi package is based on the selectel Terraform Provider.
    selectel logo
    selectel 6.4.0 published on Monday, Apr 14, 2025 by selectel