google-native logo
Google Cloud Native v0.28.0, Feb 2 23

google-native.sqladmin/v1.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)
}
public static CompletableFuture<GetDatabaseResult> getDatabase(GetDatabaseArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: google-native:sqladmin/v1:getDatabase
  arguments:
    # arguments dictionary

The following arguments are supported:

Database string
Instance string
Project string
Database string
Instance string
Project string
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.

Etag string

This field is deprecated and will be removed from a future version of the API.

Deprecated:

This field is deprecated and will be removed from a future version of the API.

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.V1.Outputs.SqlServerDatabaseDetailsResponse
Charset string

The Cloud SQL charset value.

Collation string

The Cloud SQL collation value.

Etag string

This field is deprecated and will be removed from a future version of the API.

Deprecated:

This field is deprecated and will be removed from a future version of the API.

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.

etag String

This field is deprecated and will be removed from a future version of the API.

Deprecated:

This field is deprecated and will be removed from a future version of the API.

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.

etag string

This field is deprecated and will be removed from a future version of the API.

Deprecated:

This field is deprecated and will be removed from a future version of the API.

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.

etag str

This field is deprecated and will be removed from a future version of the API.

Deprecated:

This field is deprecated and will be removed from a future version of the API.

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
charset String

The Cloud SQL charset value.

collation String

The Cloud SQL collation value.

etag String

This field is deprecated and will be removed from a future version of the API.

Deprecated:

This field is deprecated and will be removed from a future version of the API.

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 Property Map

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 Integer

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

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

Package Details

Repository
Google Cloud Native pulumi/pulumi-google-native
License
Apache-2.0