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>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)
public static Output<GetDatabaseResult> getDatabase(GetDatabaseArgs args, InvokeOptions options)
fn::invoke:
  function: google-native:sqladmin/v1beta4:getDatabase
  arguments:
    # arguments dictionaryThe following arguments are supported:
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.
- 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.
- SqlserverDatabase Pulumi.Details Google Native. SQLAdmin. V1Beta4. Outputs. Sql Server Database Details Response 
- 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.
- 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.
- SqlserverDatabase SqlDetails Server Database Details Response 
- 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.
- 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.
- sqlserverDatabase SqlDetails Server Database Details Response 
- 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.
- 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.
- sqlserverDatabase SqlDetails Server Database Details Response 
- 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.
- 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_ Sqldetails Server Database Details Response 
- 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.
- 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.
- sqlserverDatabase Property MapDetails 
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
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