1. Packages
  2. Volcengine
  3. API Docs
  4. rds
  5. Databases
Volcengine v0.0.23 published on Wednesday, Jan 3, 2024 by Volcengine

volcengine.rds.Databases

Explore with Pulumi AI

volcengine logo
Volcengine v0.0.23 published on Wednesday, Jan 3, 2024 by Volcengine

    (Deprecated! Recommend use volcengine_rds_mysql_*** replace) Use this data source to query detailed information of rds databases

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Volcengine = Pulumi.Volcengine;
    
    return await Deployment.RunAsync(() => 
    {
        var @default = Volcengine.Rds.Databases.Invoke(new()
        {
            InstanceId = "mysql-0fdd3bab2e7c",
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/rds"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := rds.Databases(ctx, &rds.DatabasesArgs{
    			InstanceId: "mysql-0fdd3bab2e7c",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.volcengine.rds.RdsFunctions;
    import com.pulumi.volcengine.rds.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 default = RdsFunctions.Databases(DatabasesArgs.builder()
                .instanceId("mysql-0fdd3bab2e7c")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_volcengine as volcengine
    
    default = volcengine.rds.databases(instance_id="mysql-0fdd3bab2e7c")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as volcengine from "@pulumi/volcengine";
    
    const default = volcengine.rds.Databases({
        instanceId: "mysql-0fdd3bab2e7c",
    });
    
    variables:
      default:
        fn::invoke:
          Function: volcengine:rds:Databases
          Arguments:
            instanceId: mysql-0fdd3bab2e7c
    

    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>
    def databases(db_status: Optional[str] = None,
                  instance_id: Optional[str] = None,
                  name_regex: Optional[str] = None,
                  output_file: Optional[str] = None,
                  opts: Optional[InvokeOptions] = None) -> DatabasesResult
    def databases_output(db_status: Optional[pulumi.Input[str]] = None,
                  instance_id: Optional[pulumi.Input[str]] = None,
                  name_regex: Optional[pulumi.Input[str]] = None,
                  output_file: Optional[pulumi.Input[str]] = None,
                  opts: Optional[InvokeOptions] = None) -> Output[DatabasesResult]
    func Databases(ctx *Context, args *DatabasesArgs, opts ...InvokeOption) (*DatabasesResult, error)
    func DatabasesOutput(ctx *Context, args *DatabasesOutputArgs, opts ...InvokeOption) DatabasesResultOutput
    public static class Databases 
    {
        public static Task<DatabasesResult> InvokeAsync(DatabasesArgs args, InvokeOptions? opts = null)
        public static Output<DatabasesResult> Invoke(DatabasesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<DatabasesResult> databases(DatabasesArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: volcengine:rds:Databases
      arguments:
        # arguments dictionary

    The following arguments are supported:

    InstanceId string
    The id of the RDS instance.
    DbStatus string
    The status of the RDS database.
    NameRegex string
    A Name Regex of RDS database.
    OutputFile string
    File name where to save data source results.
    InstanceId string
    The id of the RDS instance.
    DbStatus string
    The status of the RDS database.
    NameRegex string
    A Name Regex of RDS database.
    OutputFile string
    File name where to save data source results.
    instanceId String
    The id of the RDS instance.
    dbStatus String
    The status of the RDS database.
    nameRegex String
    A Name Regex of RDS database.
    outputFile String
    File name where to save data source results.
    instanceId string
    The id of the RDS instance.
    dbStatus string
    The status of the RDS database.
    nameRegex string
    A Name Regex of RDS database.
    outputFile string
    File name where to save data source results.
    instance_id str
    The id of the RDS instance.
    db_status str
    The status of the RDS database.
    name_regex str
    A Name Regex of RDS database.
    output_file str
    File name where to save data source results.
    instanceId String
    The id of the RDS instance.
    dbStatus String
    The status of the RDS database.
    nameRegex String
    A Name Regex of RDS database.
    outputFile String
    File name where to save data source results.

    Databases Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    InstanceId string
    RdsDatabases List<Volcengine.DatabasesRdsDatabase>
    The collection of RDS instance account query.
    TotalCount int
    The total count of RDS database query.
    DbStatus string
    The status of the RDS database.
    NameRegex string
    OutputFile string
    Id string
    The provider-assigned unique ID for this managed resource.
    InstanceId string
    RdsDatabases []DatabasesRdsDatabase
    The collection of RDS instance account query.
    TotalCount int
    The total count of RDS database query.
    DbStatus string
    The status of the RDS database.
    NameRegex string
    OutputFile string
    id String
    The provider-assigned unique ID for this managed resource.
    instanceId String
    rdsDatabases List<DatabasesRdsDatabase>
    The collection of RDS instance account query.
    totalCount Integer
    The total count of RDS database query.
    dbStatus String
    The status of the RDS database.
    nameRegex String
    outputFile String
    id string
    The provider-assigned unique ID for this managed resource.
    instanceId string
    rdsDatabases DatabasesRdsDatabase[]
    The collection of RDS instance account query.
    totalCount number
    The total count of RDS database query.
    dbStatus string
    The status of the RDS database.
    nameRegex string
    outputFile string
    id str
    The provider-assigned unique ID for this managed resource.
    instance_id str
    rds_databases Sequence[DatabasesRdsDatabase]
    The collection of RDS instance account query.
    total_count int
    The total count of RDS database query.
    db_status str
    The status of the RDS database.
    name_regex str
    output_file str
    id String
    The provider-assigned unique ID for this managed resource.
    instanceId String
    rdsDatabases List<Property Map>
    The collection of RDS instance account query.
    totalCount Number
    The total count of RDS database query.
    dbStatus String
    The status of the RDS database.
    nameRegex String
    outputFile String

    Supporting Types

    DatabasesRdsDatabase

    AccountNames string
    The account names of the RDS database.
    CharacterSetName string
    The character set of the RDS database.
    DbName string
    The name of the RDS database.
    DbStatus string
    The status of the RDS database.
    Id string
    The ID of the RDS database.
    AccountNames string
    The account names of the RDS database.
    CharacterSetName string
    The character set of the RDS database.
    DbName string
    The name of the RDS database.
    DbStatus string
    The status of the RDS database.
    Id string
    The ID of the RDS database.
    accountNames String
    The account names of the RDS database.
    characterSetName String
    The character set of the RDS database.
    dbName String
    The name of the RDS database.
    dbStatus String
    The status of the RDS database.
    id String
    The ID of the RDS database.
    accountNames string
    The account names of the RDS database.
    characterSetName string
    The character set of the RDS database.
    dbName string
    The name of the RDS database.
    dbStatus string
    The status of the RDS database.
    id string
    The ID of the RDS database.
    account_names str
    The account names of the RDS database.
    character_set_name str
    The character set of the RDS database.
    db_name str
    The name of the RDS database.
    db_status str
    The status of the RDS database.
    id str
    The ID of the RDS database.
    accountNames String
    The account names of the RDS database.
    characterSetName String
    The character set of the RDS database.
    dbName String
    The name of the RDS database.
    dbStatus String
    The status of the RDS database.
    id String
    The ID of the RDS database.

    Package Details

    Repository
    volcengine volcengine/pulumi-volcengine
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the volcengine Terraform Provider.
    volcengine logo
    Volcengine v0.0.23 published on Wednesday, Jan 3, 2024 by Volcengine