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

Database

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

Create a Database Resource

new Database(name: string, args: DatabaseArgs, opts?: CustomResourceOptions);
@overload
def Database(resource_name: str,
             opts: Optional[ResourceOptions] = None,
             charset: Optional[str] = None,
             collation: Optional[str] = None,
             instance: Optional[str] = None,
             kind: Optional[str] = None,
             name: Optional[str] = None,
             project: Optional[str] = None,
             self_link: Optional[str] = None,
             sqlserver_database_details: Optional[SqlServerDatabaseDetailsArgs] = None)
@overload
def Database(resource_name: str,
             args: DatabaseArgs,
             opts: Optional[ResourceOptions] = None)
func NewDatabase(ctx *Context, name string, args DatabaseArgs, opts ...ResourceOption) (*Database, error)
public Database(string name, DatabaseArgs args, CustomResourceOptions? opts = null)
name string
The unique name of the resource.
args DatabaseArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args DatabaseArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args DatabaseArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args DatabaseArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

Database Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The Database resource accepts the following input properties:

Instance string
The name of the Cloud SQL instance. This does not include the project ID.
Charset string
The Cloud SQL charset value.
Collation string
The Cloud SQL collation value.
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.Inputs.SqlServerDatabaseDetailsArgs
Instance string
The name of the Cloud SQL instance. This does not include the project ID.
Charset string
The Cloud SQL charset value.
Collation string
The Cloud SQL collation value.
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 SqlServerDatabaseDetailsArgs
instance string
The name of the Cloud SQL instance. This does not include the project ID.
charset string
The Cloud SQL charset value.
collation string
The Cloud SQL collation value.
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 SqlServerDatabaseDetailsArgs
instance str
The name of the Cloud SQL instance. This does not include the project ID.
charset str
The Cloud SQL charset value.
collation str
The Cloud SQL collation value.
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 SqlServerDatabaseDetailsArgs

Outputs

All input properties are implicitly available as output properties. Additionally, the Database resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.

Supporting Types

SqlServerDatabaseDetails

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

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