1. Packages
  2. Google Cloud Native
  3. API Docs
  4. sqladmin
  5. sqladmin/v1beta4
  6. getDatabase

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi

google-native.sqladmin/v1beta4.getDatabase

Explore with Pulumi AI

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi

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>
Copy
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]
Copy
func LookupDatabase(ctx *Context, args *LookupDatabaseArgs, opts ...InvokeOption) (*LookupDatabaseResult, error)
func LookupDatabaseOutput(ctx *Context, args *LookupDatabaseOutputArgs, opts ...InvokeOption) LookupDatabaseResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetDatabaseResult> getDatabase(GetDatabaseArgs args, InvokeOptions options)
public static Output<GetDatabaseResult> getDatabase(GetDatabaseArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: google-native:sqladmin/v1beta4:getDatabase
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Database This property is required. string
Instance This property is required. string
Project string
Database This property is required. string
Instance This property is required. string
Project string
database This property is required. String
instance This property is required. String
project String
database This property is required. string
instance This property is required. string
project string
database This property is required. str
instance This property is required. str
project str
database This property is required. String
instance This property is required. 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.V1Beta4.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 This property is required. int
The version of SQL Server with which the database is to be made compatible
RecoveryModel This property is required. string
The recovery model of a SQL Server database
CompatibilityLevel This property is required. int
The version of SQL Server with which the database is to be made compatible
RecoveryModel This property is required. string
The recovery model of a SQL Server database
compatibilityLevel This property is required. Integer
The version of SQL Server with which the database is to be made compatible
recoveryModel This property is required. String
The recovery model of a SQL Server database
compatibilityLevel This property is required. number
The version of SQL Server with which the database is to be made compatible
recoveryModel This property is required. string
The recovery model of a SQL Server database
compatibility_level This property is required. int
The version of SQL Server with which the database is to be made compatible
recovery_model This property is required. str
The recovery model of a SQL Server database
compatibilityLevel This property is required. Number
The version of SQL Server with which the database is to be made compatible
recoveryModel This property is required. String
The recovery model of a SQL Server database

Package Details

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

Google Cloud Native is in preview. Google Cloud Classic is fully supported.

Google Cloud Native v0.32.0 published on Wednesday, Nov 29, 2023 by Pulumi