Class SourceRepresentationInstance
A source representation instance is a Cloud SQL instance that represents the source database server to the Cloud SQL replica. It is visible in the Cloud Console and appears the same as a regular Cloud SQL instance, but it contains no data, requires no configuration or maintenance, and does not affect billing. You cannot update the source representation instance.
Example Usage - Sql Source Representation Instance Basic
using Pulumi;
using Gcp = Pulumi.Gcp;
class MyStack : Stack
{
public MyStack()
{
var instance = new Gcp.Sql.SourceRepresentationInstance("instance", new Gcp.Sql.SourceRepresentationInstanceArgs
{
DatabaseVersion = "MYSQL_5_7",
Host = "10.20.30.40",
Port = 3306,
Region = "us-central1",
});
}
}
Inherited Members
Namespace: Pulumi.Gcp.Sql
Assembly: Pulumi.Gcp.dll
Syntax
public class SourceRepresentationInstance : CustomResource
Constructors
View SourceSourceRepresentationInstance(String, SourceRepresentationInstanceArgs, CustomResourceOptions)
Create a SourceRepresentationInstance resource with the given unique name, arguments, and options.
Declaration
public SourceRepresentationInstance(string name, SourceRepresentationInstanceArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| SourceRepresentationInstanceArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceDatabaseVersion
The MySQL version running on your source database server.
Declaration
public Output<string> DatabaseVersion { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Host
The externally accessible IPv4 address for the source database server.
Declaration
public Output<string> Host { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Name
The name of the source representation instance. Use any valid Cloud SQL instance name.
Declaration
public Output<string> Name { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Port
The externally accessible port for the source database server. Defaults to 3306.
Declaration
public Output<int?> Port { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Int32>> |
Project
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
Declaration
public Output<string> Project { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Region
The Region in which the created instance should reside. If it is not provided, the provider region is used.
Declaration
public Output<string> Region { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, SourceRepresentationInstanceState, CustomResourceOptions)
Get an existing SourceRepresentationInstance resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static SourceRepresentationInstance Get(string name, Input<string> id, SourceRepresentationInstanceState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| SourceRepresentationInstanceState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| SourceRepresentationInstance |