1. Packages
  2. Vkcs Provider
  3. API Docs
  4. getDbDatabase
vkcs 0.9.3 published on Tuesday, Apr 15, 2025 by vk-cs

vkcs.getDbDatabase

Explore with Pulumi AI

vkcs logo
vkcs 0.9.3 published on Tuesday, Apr 15, 2025 by vk-cs

    Use this data source to get the information on a db database resource.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as vkcs from "@pulumi/vkcs";
    
    const dbDatabase = vkcs.getDbDatabase({
        id: "325a2871-f311-45ac-ae91-bfef20fc768e/mydatabase",
    });
    
    import pulumi
    import pulumi_vkcs as vkcs
    
    db_database = vkcs.get_db_database(id="325a2871-f311-45ac-ae91-bfef20fc768e/mydatabase")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/vkcs/vkcs"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := vkcs.LookupDbDatabase(ctx, &vkcs.LookupDbDatabaseArgs{
    			Id: "325a2871-f311-45ac-ae91-bfef20fc768e/mydatabase",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Vkcs = Pulumi.Vkcs;
    
    return await Deployment.RunAsync(() => 
    {
        var dbDatabase = Vkcs.GetDbDatabase.Invoke(new()
        {
            Id = "325a2871-f311-45ac-ae91-bfef20fc768e/mydatabase",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.vkcs.VkcsFunctions;
    import com.pulumi.vkcs.inputs.GetDbDatabaseArgs;
    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 dbDatabase = VkcsFunctions.getDbDatabase(GetDbDatabaseArgs.builder()
                .id("325a2871-f311-45ac-ae91-bfef20fc768e/mydatabase")
                .build());
    
        }
    }
    
    variables:
      dbDatabase:
        fn::invoke:
          function: vkcs:getDbDatabase
          arguments:
            id: 325a2871-f311-45ac-ae91-bfef20fc768e/mydatabase
    

    Using getDbDatabase

    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 getDbDatabase(args: GetDbDatabaseArgs, opts?: InvokeOptions): Promise<GetDbDatabaseResult>
    function getDbDatabaseOutput(args: GetDbDatabaseOutputArgs, opts?: InvokeOptions): Output<GetDbDatabaseResult>
    def get_db_database(charset: Optional[str] = None,
                        collate: Optional[str] = None,
                        dbms_id: Optional[str] = None,
                        id: Optional[str] = None,
                        name: Optional[str] = None,
                        opts: Optional[InvokeOptions] = None) -> GetDbDatabaseResult
    def get_db_database_output(charset: Optional[pulumi.Input[str]] = None,
                        collate: Optional[pulumi.Input[str]] = None,
                        dbms_id: Optional[pulumi.Input[str]] = None,
                        id: Optional[pulumi.Input[str]] = None,
                        name: Optional[pulumi.Input[str]] = None,
                        opts: Optional[InvokeOptions] = None) -> Output[GetDbDatabaseResult]
    func LookupDbDatabase(ctx *Context, args *LookupDbDatabaseArgs, opts ...InvokeOption) (*LookupDbDatabaseResult, error)
    func LookupDbDatabaseOutput(ctx *Context, args *LookupDbDatabaseOutputArgs, opts ...InvokeOption) LookupDbDatabaseResultOutput

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

    public static class GetDbDatabase 
    {
        public static Task<GetDbDatabaseResult> InvokeAsync(GetDbDatabaseArgs args, InvokeOptions? opts = null)
        public static Output<GetDbDatabaseResult> Invoke(GetDbDatabaseInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetDbDatabaseResult> getDbDatabase(GetDbDatabaseArgs args, InvokeOptions options)
    public static Output<GetDbDatabaseResult> getDbDatabase(GetDbDatabaseArgs args, InvokeOptions options)
    
    fn::invoke:
      function: vkcs:index/getDbDatabase:getDbDatabase
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    required string → The id of the database in form "dbms_id/db_name".
    Charset string
    optional string → Type of charset used for the database.
    Collate string
    optional string → Collate option of the database.
    DbmsId string
    optional string → ID of the instance or cluster that database is created for.
    Name string
    optional string → The name of the database.
    Id string
    required string → The id of the database in form "dbms_id/db_name".
    Charset string
    optional string → Type of charset used for the database.
    Collate string
    optional string → Collate option of the database.
    DbmsId string
    optional string → ID of the instance or cluster that database is created for.
    Name string
    optional string → The name of the database.
    id String
    required string → The id of the database in form "dbms_id/db_name".
    charset String
    optional string → Type of charset used for the database.
    collate String
    optional string → Collate option of the database.
    dbmsId String
    optional string → ID of the instance or cluster that database is created for.
    name String
    optional string → The name of the database.
    id string
    required string → The id of the database in form "dbms_id/db_name".
    charset string
    optional string → Type of charset used for the database.
    collate string
    optional string → Collate option of the database.
    dbmsId string
    optional string → ID of the instance or cluster that database is created for.
    name string
    optional string → The name of the database.
    id str
    required string → The id of the database in form "dbms_id/db_name".
    charset str
    optional string → Type of charset used for the database.
    collate str
    optional string → Collate option of the database.
    dbms_id str
    optional string → ID of the instance or cluster that database is created for.
    name str
    optional string → The name of the database.
    id String
    required string → The id of the database in form "dbms_id/db_name".
    charset String
    optional string → Type of charset used for the database.
    collate String
    optional string → Collate option of the database.
    dbmsId String
    optional string → ID of the instance or cluster that database is created for.
    name String
    optional string → The name of the database.

    getDbDatabase Result

    The following output properties are available:

    Id string
    Charset string
    Collate string
    DbmsId string
    Name string
    Id string
    Charset string
    Collate string
    DbmsId string
    Name string
    id String
    charset String
    collate String
    dbmsId String
    name String
    id string
    charset string
    collate string
    dbmsId string
    name string
    id str
    charset str
    collate str
    dbms_id str
    name str
    id String
    charset String
    collate String
    dbmsId String
    name String

    Package Details

    Repository
    vkcs vk-cs/terraform-provider-vkcs
    License
    Notes
    This Pulumi package is based on the vkcs Terraform Provider.
    vkcs logo
    vkcs 0.9.3 published on Tuesday, Apr 15, 2025 by vk-cs