Volcengine v0.0.38 published on Friday, Oct 31, 2025 by Volcengine
Volcengine v0.0.38 published on Friday, Oct 31, 2025 by Volcengine
Use this data source to query detailed information of rds postgresql databases
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@pulumi/volcengine";
const foo = volcengine.rds_postgresql.getDatabases({
dbName: "test001",
instanceId: "postgres-95******8233",
});
import pulumi
import pulumi_volcengine as volcengine
foo = volcengine.rds_postgresql.get_databases(db_name="test001",
instance_id="postgres-95******8233")
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/rds_postgresql"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := rds_postgresql.GetDatabases(ctx, &rds_postgresql.GetDatabasesArgs{
DbName: pulumi.StringRef("test001"),
InstanceId: "postgres-95******8233",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcengine = Pulumi.Volcengine;
return await Deployment.RunAsync(() =>
{
var foo = Volcengine.Rds_postgresql.GetDatabases.Invoke(new()
{
DbName = "test001",
InstanceId = "postgres-95******8233",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.rds_postgresql.Rds_postgresqlFunctions;
import com.pulumi.volcengine.rds_postgresql.inputs.GetDatabasesArgs;
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 foo = Rds_postgresqlFunctions.getDatabases(GetDatabasesArgs.builder()
.dbName("test001")
.instanceId("postgres-95******8233")
.build());
}
}
variables:
foo:
fn::invoke:
Function: volcengine:rds_postgresql:getDatabases
Arguments:
dbName: test001
instanceId: postgres-95******8233
Using getDatabases
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 getDatabases(args: GetDatabasesArgs, opts?: InvokeOptions): Promise<GetDatabasesResult>
function getDatabasesOutput(args: GetDatabasesOutputArgs, opts?: InvokeOptions): Output<GetDatabasesResult>def get_databases(db_name: Optional[str] = None,
instance_id: Optional[str] = None,
output_file: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetDatabasesResult
def get_databases_output(db_name: Optional[pulumi.Input[str]] = None,
instance_id: Optional[pulumi.Input[str]] = None,
output_file: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetDatabasesResult]func GetDatabases(ctx *Context, args *GetDatabasesArgs, opts ...InvokeOption) (*GetDatabasesResult, error)
func GetDatabasesOutput(ctx *Context, args *GetDatabasesOutputArgs, opts ...InvokeOption) GetDatabasesResultOutput> Note: This function is named GetDatabases in the Go SDK.
public static class GetDatabases
{
public static Task<GetDatabasesResult> InvokeAsync(GetDatabasesArgs args, InvokeOptions? opts = null)
public static Output<GetDatabasesResult> Invoke(GetDatabasesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetDatabasesResult> getDatabases(GetDatabasesArgs args, InvokeOptions options)
public static Output<GetDatabasesResult> getDatabases(GetDatabasesArgs args, InvokeOptions options)
fn::invoke:
function: volcengine:rds_postgresql/getDatabases:getDatabases
arguments:
# arguments dictionaryThe following arguments are supported:
- Instance
Id string - The id of the RDS instance.
- Db
Name string - The name of the RDS database.
- Output
File string - File name where to save data source results.
- Instance
Id string - The id of the RDS instance.
- Db
Name string - The name of the RDS database.
- Output
File string - File name where to save data source results.
- instance
Id String - The id of the RDS instance.
- db
Name String - The name of the RDS database.
- output
File String - File name where to save data source results.
- instance
Id string - The id of the RDS instance.
- db
Name string - The name of the RDS database.
- output
File string - File name where to save data source results.
- instance_
id str - The id of the RDS instance.
- db_
name str - The name of the RDS database.
- output_
file str - File name where to save data source results.
- instance
Id String - The id of the RDS instance.
- db
Name String - The name of the RDS database.
- output
File String - File name where to save data source results.
getDatabases Result
The following output properties are available:
- Databases
List<Get
Databases Database> - The collection of RDS instance account query.
- Id string
- The provider-assigned unique ID for this managed resource.
- Instance
Id string - Total
Count int - The total count of RDS database query.
- Db
Name string - The name of the RDS database.
- Output
File string
- Databases
[]Get
Databases Database - The collection of RDS instance account query.
- Id string
- The provider-assigned unique ID for this managed resource.
- Instance
Id string - Total
Count int - The total count of RDS database query.
- Db
Name string - The name of the RDS database.
- Output
File string
- databases
List<Get
Databases Database> - The collection of RDS instance account query.
- id String
- The provider-assigned unique ID for this managed resource.
- instance
Id String - total
Count Integer - The total count of RDS database query.
- db
Name String - The name of the RDS database.
- output
File String
- databases
Get
Databases Database[] - The collection of RDS instance account query.
- id string
- The provider-assigned unique ID for this managed resource.
- instance
Id string - total
Count number - The total count of RDS database query.
- db
Name string - The name of the RDS database.
- output
File string
- databases
Sequence[Get
Databases Database] - The collection of RDS instance account query.
- id str
- The provider-assigned unique ID for this managed resource.
- instance_
id str - total_
count int - The total count of RDS database query.
- db_
name str - The name of the RDS database.
- output_
file str
- databases List<Property Map>
- The collection of RDS instance account query.
- id String
- The provider-assigned unique ID for this managed resource.
- instance
Id String - total
Count Number - The total count of RDS database query.
- db
Name String - The name of the RDS database.
- output
File String
Supporting Types
GetDatabasesDatabase
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
volcengineTerraform Provider.
Volcengine v0.0.38 published on Friday, Oct 31, 2025 by Volcengine
