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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: google-native:sqladmin/v1beta4:getDatabase
arguments:
# arguments dictionary
The 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.
- Self
Link string - The URI of this resource.
- Sqlserver
Database 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.
- Self
Link string - 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.
- self
Link String - 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.
- self
Link string - The URI of this resource.
- sqlserver
Database 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.
- self
Link String - The URI of this resource.
- sqlserver
Database Property MapDetails
Supporting Types
SqlServerDatabaseDetailsResponse
- Compatibility
Level int - The version of SQL Server with which the database is to be made compatible
- Recovery
Model 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 string - The recovery model of a SQL Server database
- compatibility
Level Integer - The version of SQL Server with which the database is to be made compatible
- recovery
Model String - The recovery model of a SQL Server database
- compatibility
Level number - The version of SQL Server with which the database is to be made compatible
- recovery
Model 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
- compatibility
Level Number - The version of SQL Server with which the database is to be made compatible
- recovery
Model 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