- Resource: ConnectionProfile
- State
- MySqlConnectionProfile
- SslConfig
- SslType
- CloudSqlConnectionProfile
- CloudSqlSettings
- SqlDatabaseVersion
- SqlActivationPolicy
- SqlIpConfig
- SqlAclEntry
- SqlDataDiskType
- Methods
Resource: ConnectionProfile
A connection profile definition.
JSON representation |
---|
{ "name": string, "createTime": string, "updateTime": string, "labels": { string: string, ... }, "state": enum ( |
Fields | |
---|---|
name |
The name of this connection profile resource in the form of projects/{project}/locations/{location}/connectionProfiles/{connectionProfile}. |
createTime |
Output only. The timestamp when the resource was created. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z". A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
updateTime |
Output only. The timestamp when the resource was last updated. A timestamp in RFC3339 UTC "Zulu" format, accurate to nanoseconds. Example: "2014-10-02T15:01:23.045123456Z". A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
labels |
The resource labels for connection profile to use to annotate any related underlying resources such as Compute Engine VMs. An object containing a list of "key": "value" pairs. Example: An object containing a list of |
state |
The current connection profile state (e.g. DRAFT, READY, or FAILED). |
displayName |
The connection profile display name. |
error |
Output only. The error details in case of state FAILED. |
provider |
The database provider. |
Union field connection_profile . The connection profile definition. connection_profile can be only one of the following: |
|
mysql |
A MySQL database connection profile. |
cloudsql |
A CloudSQL database connection profile. |
State
The current connection profile state (e.g. DRAFT, READY, or FAILED).
Enums | |
---|---|
STATE_UNSPECIFIED |
The state of the connection profile is unknown. |
DRAFT |
The connection profile is in draft mode and fully editable. |
CREATING |
The connection profile is being created. |
READY |
The connection profile is ready. |
UPDATING |
The connection profile is being updated. |
DELETING |
The connection profile is being deleted. |
DELETED |
The connection profile has been deleted. |
FAILED |
The last action on the connection profile failed. |
MySqlConnectionProfile
Specifies connection parameters required specifically for MySQL databases.
JSON representation |
---|
{
"host": string,
"port": integer,
"username": string,
"password": string,
"passwordSet": boolean,
"ssl": {
object ( |
Fields | |
---|---|
host |
Required. The IP or hostname of the source MySQL database. |
port |
Required. The network port of the source MySQL database. |
username |
Required. The username that Database Migration Service will use to connect to the database. The value is encrypted when stored in Database Migration Service. |
password |
Required. Input only. The password for the user that Database Migration Service will be using to connect to the database. This field is not returned on request, and the value is encrypted when stored in Database Migration Service. |
passwordSet |
Output only. Indicates If this connection profile password is stored. |
ssl |
SSL configuration for the destination to connect to the source database. |
cloudSqlId |
If the source is a Cloud SQL database, use this field to provide the Cloud SQL instance ID of the source. |
SslConfig
SSL configuration information.
JSON representation |
---|
{
"type": enum ( |
Fields | |
---|---|
type |
Output only. The ssl config type according to 'clientKey', 'clientCertificate' and 'caCertificate'. |
clientKey |
Input only. The unencrypted PKCS#1 or PKCS#8 PEM-encoded private key associated with the Client Certificate. If this field is used then the 'clientCertificate' field is mandatory. |
clientCertificate |
Input only. The x509 PEM-encoded certificate that will be used by the replica to authenticate against the source database server.If this field is used then the 'clientKey' field is mandatory. |
caCertificate |
Required. Input only. The x509 PEM-encoded certificate of the CA that signed the source database server's certificate. The replica will use this certificate to verify it's connecting to the right host. |
SslType
Specifies The kind of ssl configuration used.
Enums | |
---|---|
SSL_TYPE_UNSPECIFIED |
Unspecified. |
SERVER_ONLY |
Only 'caCertificate' specified. |
SERVER_CLIENT |
Both server ('caCertificate'), and client ('clientKey', 'clientCertificate') specified. |
CloudSqlConnectionProfile
Specifies required connection parameters, and, optionally, the parameters required to create a Cloud SQL destination database instance.
JSON representation |
---|
{
"cloudSqlId": string,
"settings": {
object ( |
Fields | |
---|---|
cloudSqlId |
Output only. The Cloud SQL instance ID that this connection profile is associated with. |
settings |
Immutable. Metadata used to create the destination Cloud SQL database. |
privateIp |
Output only. The Cloud SQL database instance's private IP. |
publicIp |
Output only. The Cloud SQL database instance's public IP. |
CloudSqlSettings
Settings for creating a Cloud SQL database instance.
JSON representation |
---|
{ "databaseVersion": enum ( |
Fields | |
---|---|
databaseVersion |
The database engine type and version. |
userLabels |
The resource labels for a Cloud SQL instance to use to annotate any related underlying resources such as Compute Engine VMs. An object containing a list of "key": "value" pairs. Example: An object containing a list of |
tier |
The tier (or machine type) for this instance, for example: |
storageAutoResizeLimit |
The maximum size to which storage capacity can be automatically increased. The default value is 0, which specifies that there is no limit. |
activationPolicy |
The activation policy specifies when the instance is activated; it is applicable only when the instance state is 'RUNNABLE'. Valid values: 'ALWAYS': The instance is on, and remains so even in the absence of connection requests.
|
ipConfig |
The settings for IP Management. This allows to enable or disable the instance IP and manage which external networks can connect to the instance. The IPv4 address cannot be disabled. |
autoStorageIncrease |
[default: ON] If you enable this setting, Cloud SQL checks your available storage every 30 seconds. If the available storage falls below a threshold size, Cloud SQL automatically adds additional storage capacity. If the available storage repeatedly falls below the threshold size, Cloud SQL continues to add storage until it reaches the maximum of 30 TB. |
databaseFlags |
The database flags passed to the Cloud SQL instance at startup. An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }. An object containing a list of |
dataDiskType |
The type of storage: |
dataDiskSizeGb |
The storage capacity available to the database, in GB. The minimum (and default) size is 10GB. |
zone |
The Google Cloud Platform zone where your Cloud SQL database instance is located. |
sourceId |
The Database Migration Service source connection profile ID, in the format: |
rootPassword |
Input only. Initial root password. |
rootPasswordSet |
Output only. Indicates If this connection profile root password is stored. |
SqlDatabaseVersion
The database engine type and version.
Enums | |
---|---|
SQL_DATABASE_VERSION_UNSPECIFIED |
Unspecified version. |
MYSQL_5_6 |
MySQL 5.6. |
MYSQL_5_7 |
MySQL 5.7. |
MYSQL_8_0 |
MySQL 8.0. |
SqlActivationPolicy
Specifies when the instance should be activated.
Enums | |
---|---|
SQL_ACTIVATION_POLICY_UNSPECIFIED |
unspecified policy. |
ALWAYS |
The instance is always up and running. |
NEVER |
The instance should never spin up. |
SqlIpConfig
IP Management configuration.
JSON representation |
---|
{
"enableIpv4": boolean,
"privateNetwork": string,
"requireSsl": boolean,
"authorizedNetworks": [
{
object ( |
Fields | |
---|---|
enableIpv4 |
Whether the instance is assigned a public IP address or not. |
privateNetwork |
The resource link for the VPC network from which the Cloud SQL instance is accessible for private IP. For example, |
requireSsl |
Whether SSL connections over IP should be enforced or not. |
authorizedNetworks[] |
The list of external networks that are allowed to connect to the instance using the IP. See https://en.wikipedia.org/wiki/CIDR_notation#CIDR_notation, also known as 'slash' notation (e.g. |
SqlAclEntry
An entry for an Access Control list.
JSON representation |
---|
{ "value": string, "label": string, // Union field |
Fields | |
---|---|
value |
The allowlisted value for the access control list. |
label |
A label to identify this entry. |
Union field expiration . The access control entry entry expiration. expiration can be only one of the following: |
|
expireTime |
The time when this access control entry expires in RFC 3339 format, for example: A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
ttl |
Input only. The time-to-leave of this access control entry. A duration in seconds with up to nine fractional digits, ending with ' |
SqlDataDiskType
The storage options for Cloud SQL databases.
Enums | |
---|---|
SQL_DATA_DISK_TYPE_UNSPECIFIED |
Unspecified. |
PD_SSD |
SSD disk. |
PD_HDD |
HDD disk. |
Methods |
|
---|---|
|
Creates a new connection profile in a given project and location. |
|
Deletes a single Database Migration Service connection profile. |
|
Gets details of a single connection profile. |
|
Gets the access control policy for a resource. |
|
Retrieve a list of all connection profiles in a given project and location. |
|
Update the configuration of a single connection profile. |
|
Sets the access control policy on the specified resource. |
|
Returns permissions that a caller has on the specified resource. |