Viewing docs for selectel 9.5.0
published on Friday, Oct 30, 2026 by selectel
published on Friday, Oct 30, 2026 by selectel
selectel
Viewing docs for selectel 9.5.0
published on Friday, Oct 30, 2026 by selectel
published on Friday, Oct 30, 2026 by selectel
Provides a list of user roles available in Managed Databases. For more information about managing users and roles in Managed Databases, see the official Selectel documentation for PostgreSQL, PostgreSQL for 1C, PostgreSQL TimescaleDB, PostgreSQL PGVector.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as selectel from "@pulumi/selectel";
const roles = selectel.getDbaasRolesV1({
projectId: project1.id,
region: "ru-3",
filters: [{
datastoreTypeId: datastoreType1.datastoreTypes[0].id,
}],
});
import pulumi
import pulumi_selectel as selectel
roles = selectel.get_dbaas_roles_v1(project_id=project1["id"],
region="ru-3",
filters=[{
"datastore_type_id": datastore_type1["datastoreTypes"][0]["id"],
}])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/selectel/v9/selectel"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := selectel.GetDbaasRolesV1(ctx, &selectel.GetDbaasRolesV1Args{
ProjectId: project1.Id,
Region: "ru-3",
Filters: []selectel.GetDbaasRolesV1Filter{
{
DatastoreTypeId: pulumi.StringRef(datastoreType1.DatastoreTypes[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 roles = Selectel.GetDbaasRolesV1.Invoke(new()
{
ProjectId = project1.Id,
Region = "ru-3",
Filters = new[]
{
new Selectel.Inputs.GetDbaasRolesV1FilterInputArgs
{
DatastoreTypeId = datastoreType1.DatastoreTypes[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.GetDbaasRolesV1Args;
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 roles = SelectelFunctions.getDbaasRolesV1(GetDbaasRolesV1Args.builder()
.projectId(project1.id())
.region("ru-3")
.filters(GetDbaasRolesV1FilterArgs.builder()
.datastoreTypeId(datastoreType1.datastoreTypes()[0].id())
.build())
.build());
}
}
variables:
roles:
fn::invoke:
function: selectel:getDbaasRolesV1
arguments:
projectId: ${project1.id}
region: ru-3
filters:
- datastoreTypeId: ${datastoreType1.datastoreTypes[0].id}
Example coming soon!
Using getDbaasRolesV1
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 getDbaasRolesV1(args: GetDbaasRolesV1Args, opts?: InvokeOptions): Promise<GetDbaasRolesV1Result>
function getDbaasRolesV1Output(args: GetDbaasRolesV1OutputArgs, opts?: InvokeOutputOptions): Output<GetDbaasRolesV1Result>def get_dbaas_roles_v1(filters: Optional[Sequence[GetDbaasRolesV1Filter]] = None,
id: Optional[str] = None,
project_id: Optional[str] = None,
region: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetDbaasRolesV1Result
def get_dbaas_roles_v1_output(filters: pulumi.Input[Optional[Sequence[pulumi.Input[GetDbaasRolesV1FilterArgs]]]] = None,
id: pulumi.Input[Optional[str]] = None,
project_id: pulumi.Input[Optional[str]] = None,
region: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOutputOptions] = None) -> Output[GetDbaasRolesV1Result]func GetDbaasRolesV1(ctx *Context, args *GetDbaasRolesV1Args, opts ...InvokeOption) (*GetDbaasRolesV1Result, error)
func GetDbaasRolesV1Output(ctx *Context, args *GetDbaasRolesV1OutputArgs, opts ...InvokeOption) GetDbaasRolesV1ResultOutput> Note: This function is named GetDbaasRolesV1 in the Go SDK.
public static class GetDbaasRolesV1
{
public static Task<GetDbaasRolesV1Result> InvokeAsync(GetDbaasRolesV1Args args, InvokeOptions? opts = null)
public static Output<GetDbaasRolesV1Result> Invoke(GetDbaasRolesV1InvokeArgs args, InvokeOptions? opts = null)
public static Output<GetDbaasRolesV1Result> Invoke(GetDbaasRolesV1InvokeArgs args, InvokeOutputOptions opts)
}public static CompletableFuture<GetDbaasRolesV1Result> getDbaasRolesV1(GetDbaasRolesV1Args args, InvokeOptions options)
public static Output<GetDbaasRolesV1Result> getDbaasRolesV1(GetDbaasRolesV1Args args, InvokeOptions options)
public static Output<GetDbaasRolesV1Result> getDbaasRolesV1(GetDbaasRolesV1Args args, InvokeOutputOptions options)
fn::invoke:
function: selectel:index/getDbaasRolesV1:getDbaasRolesV1
arguments:
# arguments dictionarydata "selectel_get_dbaas_roles_v1" "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.
- Region string
- Pool where the database is located, for example,
ru-3. Learn more about available pools in the Availability matrix. - Filters
List<Get
Dbaas Roles V1Filter> - Values to filter available roles.
- Id string
- Unique identifier of the role.
- Project
Id 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
[]Get
Dbaas Roles V1Filter - Values to filter available roles.
- Id string
- Unique identifier of the role.
- project_
id 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(object)
- Values to filter available roles.
- id string
- Unique identifier of the role.
- project
Id 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<Get
Dbaas Roles V1Filter> - Values to filter available roles.
- id String
- Unique identifier of the role.
- project
Id 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
Get
Dbaas Roles V1Filter[] - Values to filter available roles.
- id string
- Unique identifier of the role.
- 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[Get
Dbaas Roles V1Filter] - Values to filter available roles.
- id str
- Unique identifier of the role.
- project
Id 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 roles.
- id String
- Unique identifier of the role.
getDbaasRolesV1 Result
The following output properties are available:
- Id string
- Unique identifier of the role.
- Project
Id string - Region string
- Roles
List<Get
Dbaas Roles V1Role> - List of available roles.
- Filters
List<Get
Dbaas Roles V1Filter>
- Id string
- Unique identifier of the role.
- Project
Id string - Region string
- Roles
[]Get
Dbaas Roles V1Role - List of available roles.
- Filters
[]Get
Dbaas Roles V1Filter
- id string
- Unique identifier of the role.
- project_
id string - region string
- roles list(object)
- List of available roles.
- filters list(object)
- id String
- Unique identifier of the role.
- project
Id String - region String
- roles
List<Get
Dbaas Roles V1Role> - List of available roles.
- filters
List<Get
Dbaas Roles V1Filter>
- id string
- Unique identifier of the role.
- project
Id string - region string
- roles
Get
Dbaas Roles V1Role[] - List of available roles.
- filters
Get
Dbaas Roles V1Filter[]
- id str
- Unique identifier of the role.
- project_
id str - region str
- roles
Sequence[Get
Dbaas Roles V1Role] - List of available roles.
- filters
Sequence[Get
Dbaas Roles V1Filter]
- id String
- Unique identifier of the role.
- project
Id String - region String
- roles List<Property Map>
- List of available roles.
- filters List<Property Map>
Supporting Types
GetDbaasRolesV1Filter
- Datastore
Type stringId - Unique identifier of the cluster type. You can retrieve information about available cluster types with the selectel.getDbaasDatastoreTypeV1 data source.
- Name string
- Name of the role to search.
- Datastore
Type stringId - Unique identifier of the cluster type. You can retrieve information about available cluster types with the selectel.getDbaasDatastoreTypeV1 data source.
- Name string
- Name of the role to search.
- datastore_
type_ stringid - Unique identifier of the cluster type. You can retrieve information about available cluster types with the selectel.getDbaasDatastoreTypeV1 data source.
- name string
- Name of the role to search.
- datastore
Type StringId - Unique identifier of the cluster type. You can retrieve information about available cluster types with the selectel.getDbaasDatastoreTypeV1 data source.
- name String
- Name of the role to search.
- datastore
Type stringId - Unique identifier of the cluster type. You can retrieve information about available cluster types with the selectel.getDbaasDatastoreTypeV1 data source.
- name string
- Name of the role to search.
- datastore_
type_ strid - Unique identifier of the cluster type. You can retrieve information about available cluster types with the selectel.getDbaasDatastoreTypeV1 data source.
- name str
- Name of the role to search.
- datastore
Type StringId - Unique identifier of the cluster type. You can retrieve information about available cluster types with the selectel.getDbaasDatastoreTypeV1 data source.
- name String
- Name of the role to search.
GetDbaasRolesV1Role
- Datastore
Type stringId - Unique identifier of the cluster type for which the role is available.
- Id string
- Unique identifier of the role.
- Name string
- Name of the role.
- Datastore
Type stringId - Unique identifier of the cluster type for which the role is available.
- Id string
- Unique identifier of the role.
- Name string
- Name of the role.
- datastore_
type_ stringid - Unique identifier of the cluster type for which the role is available.
- id string
- Unique identifier of the role.
- name string
- Name of the role.
- datastore
Type StringId - Unique identifier of the cluster type for which the role is available.
- id String
- Unique identifier of the role.
- name String
- Name of the role.
- datastore
Type stringId - Unique identifier of the cluster type for which the role is available.
- id string
- Unique identifier of the role.
- name string
- Name of the role.
- datastore_
type_ strid - Unique identifier of the cluster type for which the role is available.
- id str
- Unique identifier of the role.
- name str
- Name of the role.
- datastore
Type StringId - Unique identifier of the cluster type for which the role is available.
- id String
- Unique identifier of the role.
- name String
- Name of the role.
Package Details
- Repository
- selectel selectel/terraform-provider-selectel
- License
- Notes
- This Pulumi package is based on the
selectelTerraform Provider.
selectel
Viewing docs for selectel 9.5.0
published on Friday, Oct 30, 2026 by selectel
published on Friday, Oct 30, 2026 by selectel