1. Packages
  2. Volcengine
  3. API Docs
  4. rds_postgresql
  5. Databases
Volcengine v0.0.27 published on Tuesday, Dec 10, 2024 by Volcengine

volcengine.rds_postgresql.Databases

Explore with Pulumi AI

Volcengine v0.0.27 published on Tuesday, Dec 10, 2024 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.Databases({
    dbName: "test001",
    instanceId: "postgres-95******8233",
});
Copy
import pulumi
import pulumi_volcengine as volcengine

foo = volcengine.rds_postgresql.databases(db_name="test001",
    instance_id="postgres-95******8233")
Copy
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.Databases(ctx, &rds_postgresql.DatabasesArgs{
			DbName:     pulumi.StringRef("test001"),
			InstanceId: "postgres-95******8233",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcengine = Pulumi.Volcengine;

return await Deployment.RunAsync(() => 
{
    var foo = Volcengine.Rds_postgresql.Databases.Invoke(new()
    {
        DbName = "test001",
        InstanceId = "postgres-95******8233",
    });

});
Copy
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.DatabasesArgs;
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.Databases(DatabasesArgs.builder()
            .dbName("test001")
            .instanceId("postgres-95******8233")
            .build());

    }
}
Copy
variables:
  foo:
    fn::invoke:
      Function: volcengine:rds_postgresql:Databases
      Arguments:
        dbName: test001
        instanceId: postgres-95******8233
Copy

Using Databases

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 databases(args: DatabasesArgs, opts?: InvokeOptions): Promise<DatabasesResult>
function databasesOutput(args: DatabasesOutputArgs, opts?: InvokeOptions): Output<DatabasesResult>
Copy
def databases(db_name: Optional[str] = None,
              instance_id: Optional[str] = None,
              output_file: Optional[str] = None,
              opts: Optional[InvokeOptions] = None) -> DatabasesResult
def 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[DatabasesResult]
Copy
func Databases(ctx *Context, args *DatabasesArgs, opts ...InvokeOption) (*DatabasesResult, error)
func DatabasesOutput(ctx *Context, args *DatabasesOutputArgs, opts ...InvokeOption) DatabasesResultOutput
Copy
public static class Databases 
{
    public static Task<DatabasesResult> InvokeAsync(DatabasesArgs args, InvokeOptions? opts = null)
    public static Output<DatabasesResult> Invoke(DatabasesInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<DatabasesResult> databases(DatabasesArgs args, InvokeOptions options)
public static Output<DatabasesResult> databases(DatabasesArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: volcengine:rds_postgresql:Databases
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

InstanceId This property is required. string
The id of the RDS instance.
DbName string
The name of the RDS database.
OutputFile string
File name where to save data source results.
InstanceId This property is required. string
The id of the RDS instance.
DbName string
The name of the RDS database.
OutputFile string
File name where to save data source results.
instanceId This property is required. String
The id of the RDS instance.
dbName String
The name of the RDS database.
outputFile String
File name where to save data source results.
instanceId This property is required. string
The id of the RDS instance.
dbName string
The name of the RDS database.
outputFile string
File name where to save data source results.
instance_id This property is required. 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.
instanceId This property is required. String
The id of the RDS instance.
dbName String
The name of the RDS database.
outputFile String
File name where to save data source results.

Databases Result

The following output properties are available:

Databases List<DatabasesDatabase>
The collection of RDS instance account query.
Id string
The provider-assigned unique ID for this managed resource.
InstanceId string
TotalCount int
The total count of RDS database query.
DbName string
The name of the RDS database.
OutputFile string
Databases []DatabasesDatabase
The collection of RDS instance account query.
Id string
The provider-assigned unique ID for this managed resource.
InstanceId string
TotalCount int
The total count of RDS database query.
DbName string
The name of the RDS database.
OutputFile string
databases List<DatabasesDatabase>
The collection of RDS instance account query.
id String
The provider-assigned unique ID for this managed resource.
instanceId String
totalCount Integer
The total count of RDS database query.
dbName String
The name of the RDS database.
outputFile String
databases DatabasesDatabase[]
The collection of RDS instance account query.
id string
The provider-assigned unique ID for this managed resource.
instanceId string
totalCount number
The total count of RDS database query.
dbName string
The name of the RDS database.
outputFile string
databases Sequence[DatabasesDatabase]
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.
instanceId String
totalCount Number
The total count of RDS database query.
dbName String
The name of the RDS database.
outputFile String

Supporting Types

DatabasesDatabase

CType This property is required. string
Character classification.
CharacterSetName This property is required. string
The character set of the RDS database.
Collate This property is required. string
The collate of database.
DbName This property is required. string
The name of the RDS database.
DbStatus This property is required. string
The status of the RDS database.
Owner This property is required. string
The owner of database.
CType This property is required. string
Character classification.
CharacterSetName This property is required. string
The character set of the RDS database.
Collate This property is required. string
The collate of database.
DbName This property is required. string
The name of the RDS database.
DbStatus This property is required. string
The status of the RDS database.
Owner This property is required. string
The owner of database.
cType This property is required. String
Character classification.
characterSetName This property is required. String
The character set of the RDS database.
collate This property is required. String
The collate of database.
dbName This property is required. String
The name of the RDS database.
dbStatus This property is required. String
The status of the RDS database.
owner This property is required. String
The owner of database.
cType This property is required. string
Character classification.
characterSetName This property is required. string
The character set of the RDS database.
collate This property is required. string
The collate of database.
dbName This property is required. string
The name of the RDS database.
dbStatus This property is required. string
The status of the RDS database.
owner This property is required. string
The owner of database.
c_type This property is required. str
Character classification.
character_set_name This property is required. str
The character set of the RDS database.
collate This property is required. str
The collate of database.
db_name This property is required. str
The name of the RDS database.
db_status This property is required. str
The status of the RDS database.
owner This property is required. str
The owner of database.
cType This property is required. String
Character classification.
characterSetName This property is required. String
The character set of the RDS database.
collate This property is required. String
The collate of database.
dbName This property is required. String
The name of the RDS database.
dbStatus This property is required. String
The status of the RDS database.
owner This property is required. String
The owner of database.

Package Details

Repository
volcengine volcengine/pulumi-volcengine
License
Apache-2.0
Notes
This Pulumi package is based on the volcengine Terraform Provider.
Volcengine v0.0.27 published on Tuesday, Dec 10, 2024 by Volcengine