Welcome to Pulumi Registry, your window into the cloud. Read the announcement.

Google Native

v0.9.0 published on Wednesday, Nov 24, 2021 by Pulumi

getDatabase

Retrieves a resource containing information about a database inside a Cloud SQL instance.

Using getDatabase

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 getDatabase(args: GetDatabaseArgs, opts?: InvokeOptions): Promise<GetDatabaseResult>
function getDatabaseOutput(args: GetDatabaseOutputArgs, opts?: InvokeOptions): Output<GetDatabaseResult>
def get_database(database: Optional[str] = None,
                 instance: Optional[str] = None,
                 project: Optional[str] = None,
                 opts: Optional[InvokeOptions] = None) -> GetDatabaseResult
def get_database_output(database: Optional[pulumi.Input[str]] = None,
                 instance: Optional[pulumi.Input[str]] = None,
                 project: Optional[pulumi.Input[str]] = None,
                 opts: Optional[InvokeOptions] = None) -> Output[GetDatabaseResult]
func LookupDatabase(ctx *Context, args *LookupDatabaseArgs, opts ...InvokeOption) (*LookupDatabaseResult, error)
func LookupDatabaseOutput(ctx *Context, args *LookupDatabaseOutputArgs, opts ...InvokeOption) LookupDatabaseResultOutput

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

public static class GetDatabase 
{
    public static Task<GetDatabaseResult> InvokeAsync(GetDatabaseArgs args, InvokeOptions? opts = null)
    public static Output<GetDatabaseResult> Invoke(GetDatabaseInvokeArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

Database string
Instance string
Project string
Database string
Instance string
Project string
database string
instance string
project string

getDatabase Result

The following output properties are available:

Charset string
The Cloud SQL charset value.
Collation string
The Cloud SQL collation value.
Instance string
The name of the Cloud SQL instance. This does not include the project ID.
Kind string
This is always sql#database.
Name string
The name of the database in the Cloud SQL instance. This does not include the project ID or instance name.
Project string
The project ID of the project containing the Cloud SQL database. The Google apps domain is prefixed if applicable.
SelfLink string
The URI of this resource.
SqlserverDatabaseDetails Pulumi.GoogleNative.SQLAdmin.V1Beta4.Outputs.SqlServerDatabaseDetailsResponse
Charset string
The Cloud SQL charset value.
Collation string
The Cloud SQL collation value.
Instance string
The name of the Cloud SQL instance. This does not include the project ID.
Kind string
This is always sql#database.
Name string
The name of the database in the Cloud SQL instance. This does not include the project ID or instance name.
Project string
The project ID of the project containing the Cloud SQL database. The Google apps domain is prefixed if applicable.
SelfLink string
The URI of this resource.
SqlserverDatabaseDetails SqlServerDatabaseDetailsResponse
charset string
The Cloud SQL charset value.
collation string
The Cloud SQL collation value.
instance string
The name of the Cloud SQL instance. This does not include the project ID.
kind string
This is always sql#database.
name string
The name of the database in the Cloud SQL instance. This does not include the project ID or instance name.
project string
The project ID of the project containing the Cloud SQL database. The Google apps domain is prefixed if applicable.
selfLink string
The URI of this resource.
sqlserverDatabaseDetails SqlServerDatabaseDetailsResponse
charset str
The Cloud SQL charset value.
collation str
The Cloud SQL collation value.
instance str
The name of the Cloud SQL instance. This does not include the project ID.
kind str
This is always sql#database.
name str
The name of the database in the Cloud SQL instance. This does not include the project ID or instance name.
project str
The project ID of the project containing the Cloud SQL database. The Google apps domain is prefixed if applicable.
self_link str
The URI of this resource.
sqlserver_database_details SqlServerDatabaseDetailsResponse

Supporting Types

SqlServerDatabaseDetailsResponse

CompatibilityLevel int
The version of SQL Server with which the database is to be made compatible
RecoveryModel string
The recovery model of a SQL Server database
CompatibilityLevel int
The version of SQL Server with which the database is to be made compatible
RecoveryModel string
The recovery model of a SQL Server database
compatibilityLevel number
The version of SQL Server with which the database is to be made compatible
recoveryModel string
The recovery model of a SQL Server database
compatibility_level int
The version of SQL Server with which the database is to be made compatible
recovery_model str
The recovery model of a SQL Server database

Package Details

Repository
https://github.com/pulumi/pulumi-google-native
License
Apache-2.0