yoshi-code-bot | 1a4514d | 2021-07-13 00:20:24 -0700 | [diff] [blame] | 1 | <html><body> |
| 2 | <style> |
| 3 | |
| 4 | body, h1, h2, h3, div, span, p, pre, a { |
| 5 | margin: 0; |
| 6 | padding: 0; |
| 7 | border: 0; |
| 8 | font-weight: inherit; |
| 9 | font-style: inherit; |
| 10 | font-size: 100%; |
| 11 | font-family: inherit; |
| 12 | vertical-align: baseline; |
| 13 | } |
| 14 | |
| 15 | body { |
| 16 | font-size: 13px; |
| 17 | padding: 1em; |
| 18 | } |
| 19 | |
| 20 | h1 { |
| 21 | font-size: 26px; |
| 22 | margin-bottom: 1em; |
| 23 | } |
| 24 | |
| 25 | h2 { |
| 26 | font-size: 24px; |
| 27 | margin-bottom: 1em; |
| 28 | } |
| 29 | |
| 30 | h3 { |
| 31 | font-size: 20px; |
| 32 | margin-bottom: 1em; |
| 33 | margin-top: 1em; |
| 34 | } |
| 35 | |
| 36 | pre, code { |
| 37 | line-height: 1.5; |
| 38 | font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; |
| 39 | } |
| 40 | |
| 41 | pre { |
| 42 | margin-top: 0.5em; |
| 43 | } |
| 44 | |
| 45 | h1, h2, h3, p { |
| 46 | font-family: Arial, sans serif; |
| 47 | } |
| 48 | |
| 49 | h1, h2, h3 { |
| 50 | border-bottom: solid #CCC 1px; |
| 51 | } |
| 52 | |
| 53 | .toc_element { |
| 54 | margin-top: 0.5em; |
| 55 | } |
| 56 | |
| 57 | .firstline { |
| 58 | margin-left: 2 em; |
| 59 | } |
| 60 | |
| 61 | .method { |
| 62 | margin-top: 1em; |
| 63 | border: solid 1px #CCC; |
| 64 | padding: 1em; |
| 65 | background: #EEE; |
| 66 | } |
| 67 | |
| 68 | .details { |
| 69 | font-weight: bold; |
| 70 | font-size: 14px; |
| 71 | } |
| 72 | |
| 73 | </style> |
| 74 | |
| 75 | <h1><a href="sqladmin_v1.html">Cloud SQL Admin API</a> . <a href="sqladmin_v1.projects.html">projects</a> . <a href="sqladmin_v1.projects.instances.html">instances</a></h1> |
| 76 | <h2>Instance Methods</h2> |
| 77 | <p class="toc_element"> |
| 78 | <code><a href="sqladmin_v1.projects.instances.createEphemeral.html">createEphemeral()</a></code> |
| 79 | </p> |
| 80 | <p class="firstline">Returns the createEphemeral Resource.</p> |
| 81 | |
| 82 | <p class="toc_element"> |
| 83 | <code><a href="#close">close()</a></code></p> |
| 84 | <p class="firstline">Close httplib2 connections.</p> |
| 85 | <p class="toc_element"> |
| 86 | <code><a href="#generateEphemeralCert">generateEphemeralCert(project, instance, body=None, x__xgafv=None)</a></code></p> |
| 87 | <p class="firstline">Generates a short-lived X509 certificate containing the provided public key and signed by a private key specific to the target instance. Users may use the certificate to authenticate as themselves when connecting to the database.</p> |
| 88 | <p class="toc_element"> |
| 89 | <code><a href="#get">get(project, instance, x__xgafv=None)</a></code></p> |
| 90 | <p class="firstline">Retrieves a resource containing information about a Cloud SQL instance.</p> |
| 91 | <p class="toc_element"> |
| 92 | <code><a href="#getConnectSettings">getConnectSettings(project, instance, readTime=None, x__xgafv=None)</a></code></p> |
| 93 | <p class="firstline">Retrieves connect settings about a Cloud SQL instance.</p> |
| 94 | <h3>Method Details</h3> |
| 95 | <div class="method"> |
| 96 | <code class="details" id="close">close()</code> |
| 97 | <pre>Close httplib2 connections.</pre> |
| 98 | </div> |
| 99 | |
| 100 | <div class="method"> |
| 101 | <code class="details" id="generateEphemeralCert">generateEphemeralCert(project, instance, body=None, x__xgafv=None)</code> |
| 102 | <pre>Generates a short-lived X509 certificate containing the provided public key and signed by a private key specific to the target instance. Users may use the certificate to authenticate as themselves when connecting to the database. |
| 103 | |
| 104 | Args: |
| 105 | project: string, Project ID of the project that contains the instance. (required) |
| 106 | instance: string, Cloud SQL instance ID. This does not include the project ID. (required) |
| 107 | body: object, The request body. |
| 108 | The object takes the form of: |
| 109 | |
| 110 | { # Ephemeral certificate creation request. |
| 111 | "access_token": "A String", # Optional. Access token to include in the signed certificate. |
| 112 | "public_key": "A String", # PEM encoded public key to include in the signed certificate. |
| 113 | "readTime": "A String", # Optional. Optional snapshot read timestamp to trade freshness for performance. |
| 114 | } |
| 115 | |
| 116 | x__xgafv: string, V1 error format. |
| 117 | Allowed values |
| 118 | 1 - v1 error format |
| 119 | 2 - v2 error format |
| 120 | |
| 121 | Returns: |
| 122 | An object of the form: |
| 123 | |
| 124 | { # Ephemeral certificate creation request. |
| 125 | "ephemeralCert": { # SslCerts Resource # Generated cert |
| 126 | "cert": "A String", # PEM representation. |
| 127 | "certSerialNumber": "A String", # Serial number, as extracted from the certificate. |
| 128 | "commonName": "A String", # User supplied name. Constrained to [a-zA-Z.-_ ]+. |
| 129 | "createTime": "A String", # The time when the certificate was created in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example **2012-11-15T16:19:00.094Z** |
| 130 | "expirationTime": "A String", # The time when the certificate expires in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example **2012-11-15T16:19:00.094Z**. |
| 131 | "instance": "A String", # Name of the database instance. |
| 132 | "kind": "A String", # This is always sql#sslCert. |
| 133 | "sha1Fingerprint": "A String", # Sha1 Fingerprint. |
| 134 | }, |
| 135 | }</pre> |
| 136 | </div> |
| 137 | |
| 138 | <div class="method"> |
| 139 | <code class="details" id="get">get(project, instance, x__xgafv=None)</code> |
| 140 | <pre>Retrieves a resource containing information about a Cloud SQL instance. |
| 141 | |
| 142 | Args: |
| 143 | project: string, Project ID of the project that contains the instance. (required) |
| 144 | instance: string, Database instance ID. This does not include the project ID. (required) |
| 145 | x__xgafv: string, V1 error format. |
| 146 | Allowed values |
| 147 | 1 - v1 error format |
| 148 | 2 - v2 error format |
| 149 | |
| 150 | Returns: |
| 151 | An object of the form: |
| 152 | |
| 153 | { # A Cloud SQL instance resource. |
| 154 | "backendType": "A String", # *SECOND_GEN*: Cloud SQL database instance. *EXTERNAL*: A database server that is not managed by Google. This property is read-only; use the *tier* property in the *settings* object to determine the database type. |
| 155 | "connectionName": "A String", # Connection name of the Cloud SQL instance used in connection strings. |
| 156 | "currentDiskSize": "A String", # The current disk usage of the instance in bytes. This property has been deprecated. Use the "cloudsql.googleapis.com/database/disk/bytes_used" metric in Cloud Monitoring API instead. Please see this announcement for details. |
| 157 | "databaseVersion": "A String", # The database engine type and version. The *databaseVersion* field cannot be changed after instance creation. MySQL instances: *MYSQL_8_0*, *MYSQL_5_7* (default), or *MYSQL_5_6*. PostgreSQL instances: *POSTGRES_9_6*, *POSTGRES_10*, *POSTGRES_11*, *POSTGRES_12*, or *POSTGRES_13* (default). SQL Server instances: *SQLSERVER_2017_STANDARD* (default), *SQLSERVER_2017_ENTERPRISE*, *SQLSERVER_2017_EXPRESS*, or *SQLSERVER_2017_WEB*. |
| 158 | "diskEncryptionConfiguration": { # Disk encryption configuration for an instance. # Disk encryption configuration specific to an instance. Applies only to Second Generation instances. |
| 159 | "kind": "A String", # This is always **sql#diskEncryptionConfiguration**. |
| 160 | "kmsKeyName": "A String", # Resource name of KMS key for disk encryption |
| 161 | }, |
| 162 | "diskEncryptionStatus": { # Disk encryption status for an instance. # Disk encryption status specific to an instance. Applies only to Second Generation instances. |
| 163 | "kind": "A String", # This is always **sql#diskEncryptionStatus**. |
| 164 | "kmsKeyVersionName": "A String", # KMS key version used to encrypt the Cloud SQL instance resource |
| 165 | }, |
| 166 | "encryptedRootPassword": "A String", # For internal usage only. The encrypted password. |
| 167 | "etag": "A String", # This field is deprecated and will be removed from a future version of the API. Use the *settings.settingsVersion* field instead. |
| 168 | "failoverReplica": { # The name and status of the failover replica. This property is applicable only to Second Generation instances. |
| 169 | "available": True or False, # The availability status of the failover replica. A false status indicates that the failover replica is out of sync. The primary instance can only failover to the failover replica when the status is true. |
| 170 | "failoverInstance": { # Reference to another Cloud SQL instance. # A reference to the failover replica. If specified at instance creation, a failover replica is created for the instance. Currently, the failover replica can only be created in the same region as the primary instance. |
| 171 | "name": "A String", # The name of the Cloud SQL instance being referenced. |
| 172 | "region": "A String", # The region of the Cloud SQL instance being referenced. |
| 173 | }, |
| 174 | "name": "A String", # The name of the failover replica. If specified at instance creation, a failover replica is created for the instance. The name doesn't include the project ID. This property is applicable only to Second Generation instances. |
| 175 | }, |
| 176 | "gceZone": "A String", # The Compute Engine zone that the instance is currently serving from. This value could be different from the zone that was specified when the instance was created if the instance has failed over to its secondary zone. |
| 177 | "installedVersion": "A String", # installed_version stores the current fully resolved database version including minor version such as MySQL_5.6.50 |
| 178 | "instanceType": "A String", # The instance type. This can be one of the following. *CLOUD_SQL_INSTANCE*: A Cloud SQL instance that is not replicating from a primary instance. *ON_PREMISES_INSTANCE*: An instance running on the customer's premises. *READ_REPLICA_INSTANCE*: A Cloud SQL instance configured as a read-replica. |
| 179 | "instanceUid": "A String", # Uid of the Cloud SQL instance. Used by Pantheon to check instance is created |
| 180 | "ipAddresses": [ # The assigned IP addresses for the instance. |
| 181 | { # Database instance IP Mapping. |
| 182 | "ipAddress": "A String", # The IP address assigned. |
| 183 | "timeToRetire": "A String", # The due time for this IP to be retired in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example **2012-11-15T16:19:00.094Z**. This field is only available when the IP is scheduled to be retired. |
| 184 | "type": "A String", # The type of this IP address. A **PRIMARY** address is a public address that can accept incoming connections. A **PRIVATE** address is a private address that can accept incoming connections. An **OUTGOING** address is the source address of connections originating from the instance, if supported. |
| 185 | }, |
| 186 | ], |
| 187 | "ipv6Address": "A String", # The IPv6 address assigned to the instance. (Deprecated) This property was applicable only to First Generation instances. |
| 188 | "kind": "A String", # This is always *sql#instance*. |
| 189 | "masterInstance": { # Reference to another Cloud SQL instance. # The reference to the instance which will act as primary in the replication setup. |
| 190 | "name": "A String", # The name of the Cloud SQL instance being referenced. |
| 191 | "region": "A String", # The region of the Cloud SQL instance being referenced. |
| 192 | }, |
| 193 | "masterInstanceName": "A String", # The name of the instance which will act as primary in the replication setup. |
| 194 | "maxDiskSize": "A String", # The maximum disk size of the instance in bytes. |
| 195 | "name": "A String", # Name of the Cloud SQL instance. This does not include the project ID. |
| 196 | "onPremisesConfiguration": { # On-premises instance configuration. # Configuration specific to on-premises instances. |
| 197 | "caCertificate": "A String", # PEM representation of the trusted CA's x509 certificate. |
| 198 | "clientCertificate": "A String", # PEM representation of the replica's x509 certificate. |
| 199 | "clientKey": "A String", # PEM representation of the replica's private key. The corresponsing public key is encoded in the client's certificate. |
| 200 | "dumpFilePath": "A String", # The dump file to create the Cloud SQL replica. |
| 201 | "hostPort": "A String", # The host and port of the on-premises instance in host:port format |
| 202 | "kind": "A String", # This is always *sql#onPremisesConfiguration*. |
| 203 | "password": "A String", # The password for connecting to on-premises instance. |
| 204 | "username": "A String", # The username for connecting to on-premises instance. |
| 205 | }, |
| 206 | "outOfDiskReport": { # This message wraps up the information written by out-of-disk detection job. # This field represents the report generated by the proactive database wellness job for OutOfDisk issues. Writers: -- the proactive database wellness job for OOD. Readers: -- the Pantheon frontend -- the proactive database wellness job |
| 207 | "sqlMinRecommendedIncreaseSizeGb": 42, # The minimum recommended increase size in GigaBytes This field is consumed by the frontend Writers: -- the proactive database wellness job for OOD. Readers: -- the Pantheon frontend |
| 208 | "sqlOutOfDiskState": "A String", # This field represents the state generated by the proactive database wellness job for OutOfDisk issues. Writers: -- the proactive database wellness job for OOD. Readers: -- the Pantheon frontend -- the proactive database wellness job |
| 209 | }, |
| 210 | "project": "A String", # The project ID of the project containing the Cloud SQL instance. The Google apps domain is prefixed if applicable. |
| 211 | "region": "A String", # The geographical region. Can be *us-central* (*FIRST_GEN* instances only) *us-central1* (*SECOND_GEN* instances only) *asia-east1* or *europe-west1*. Defaults to *us-central* or *us-central1* depending on the instance type. The region cannot be changed after instance creation. |
| 212 | "replicaConfiguration": { # Read-replica configuration for connecting to the primary instance. # Configuration specific to failover replicas and read replicas. |
| 213 | "failoverTarget": True or False, # Specifies if the replica is the failover target. If the field is set to *true* the replica will be designated as a failover replica. In case the primary instance fails, the replica instance will be promoted as the new primary instance. Only one replica can be specified as failover target, and the replica has to be in different zone with the primary instance. |
| 214 | "kind": "A String", # This is always *sql#replicaConfiguration*. |
| 215 | "mysqlReplicaConfiguration": { # Read-replica configuration specific to MySQL databases. # MySQL specific configuration when replicating from a MySQL on-premises primary instance. Replication configuration information such as the username, password, certificates, and keys are not stored in the instance metadata.The configuration information is used only to set up the replication connection and is stored by MySQL in a file named *master.info* in the data directory. |
| 216 | "caCertificate": "A String", # PEM representation of the trusted CA's x509 certificate. |
| 217 | "clientCertificate": "A String", # PEM representation of the replica's x509 certificate. |
| 218 | "clientKey": "A String", # PEM representation of the replica's private key. The corresponsing public key is encoded in the client's certificate. |
| 219 | "connectRetryInterval": 42, # Seconds to wait between connect retries. MySQL's default is 60 seconds. |
| 220 | "dumpFilePath": "A String", # Path to a SQL dump file in Google Cloud Storage from which the replica instance is to be created. The URI is in the form gs://bucketName/fileName. Compressed gzip files (.gz) are also supported. Dumps have the binlog co-ordinates from which replication begins. This can be accomplished by setting --master-data to 1 when using mysqldump. |
| 221 | "kind": "A String", # This is always **sql#mysqlReplicaConfiguration**. |
| 222 | "masterHeartbeatPeriod": "A String", # Interval in milliseconds between replication heartbeats. |
| 223 | "password": "A String", # The password for the replication connection. |
| 224 | "sslCipher": "A String", # A list of permissible ciphers to use for SSL encryption. |
| 225 | "username": "A String", # The username for the replication connection. |
| 226 | "verifyServerCertificate": True or False, # Whether or not to check the primary instance's Common Name value in the certificate that it sends during the SSL handshake. |
| 227 | }, |
| 228 | }, |
| 229 | "replicaInstances": [ # The replicas of the instance. |
| 230 | { # Reference to another Cloud SQL instance. |
| 231 | "name": "A String", # The name of the Cloud SQL instance being referenced. |
| 232 | "region": "A String", # The region of the Cloud SQL instance being referenced. |
| 233 | }, |
| 234 | ], |
| 235 | "replicaNames": [ # The replicas of the instance. |
| 236 | "A String", |
| 237 | ], |
| 238 | "rootPassword": "A String", # Initial root password. Use only on creation. |
| 239 | "satisfiesPzs": True or False, # The status indicating if instance satisfiesPzs. Reserved for future use. |
| 240 | "scheduledMaintenance": { # Any scheduled maintenancce for this instance. # The start time of any upcoming scheduled maintenance for this instance. |
| 241 | "canDefer": True or False, |
| 242 | "canReschedule": True or False, # If the scheduled maintenance can be rescheduled. |
| 243 | "scheduleDeadlineTime": "A String", # Maintenance cannot be rescheduled to start beyond this deadline. |
| 244 | "startTime": "A String", # The start time of any upcoming scheduled maintenance for this instance. |
| 245 | }, |
| 246 | "secondaryGceZone": "A String", # The Compute Engine zone that the failover instance is currently serving from for a regional instance. This value could be different from the zone that was specified when the instance was created if the instance has failed over to its secondary/failover zone. Reserved for future use. |
| 247 | "selfLink": "A String", # The URI of this resource. |
| 248 | "serverCaCert": { # SslCerts Resource # SSL configuration. |
| 249 | "cert": "A String", # PEM representation. |
| 250 | "certSerialNumber": "A String", # Serial number, as extracted from the certificate. |
| 251 | "commonName": "A String", # User supplied name. Constrained to [a-zA-Z.-_ ]+. |
| 252 | "createTime": "A String", # The time when the certificate was created in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example **2012-11-15T16:19:00.094Z** |
| 253 | "expirationTime": "A String", # The time when the certificate expires in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example **2012-11-15T16:19:00.094Z**. |
| 254 | "instance": "A String", # Name of the database instance. |
| 255 | "kind": "A String", # This is always sql#sslCert. |
| 256 | "sha1Fingerprint": "A String", # Sha1 Fingerprint. |
| 257 | }, |
| 258 | "serviceAccountEmailAddress": "A String", # The service account email address assigned to the instance. This property is read-only. |
| 259 | "settings": { # Database instance settings. # The user settings. |
| 260 | "activationPolicy": "A String", # 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. **NEVER**: The instance is off; it is not activated, even if a connection request arrives. |
| 261 | "activeDirectoryConfig": { # Active Directory configuration, relevant only for Cloud SQL for SQL Server. # Active Directory configuration, relevant only for Cloud SQL for SQL Server. |
| 262 | "domain": "A String", # The name of the domain (e.g., mydomain.com). |
| 263 | "kind": "A String", # This is always sql#activeDirectoryConfig. |
| 264 | }, |
| 265 | "availabilityType": "A String", # Availability type. Potential values: **ZONAL**: The instance serves data from only one zone. Outages in that zone affect data accessibility. **REGIONAL**: The instance can serve data from more than one zone in a region (it is highly available). For more information, see [Overview of the High Availability Configuration](/sql/docs/postgres/high-availability). |
| 266 | "backupConfiguration": { # Database instance backup configuration. # The daily backup configuration for the instance. |
| 267 | "backupRetentionSettings": { # We currently only support backup retention by specifying the number of backups we will retain. # Backup retention settings. |
| 268 | "retainedBackups": 42, # Depending on the value of retention_unit, this is used to determine if a backup needs to be deleted. If retention_unit is 'COUNT', we will retain this many backups. |
| 269 | "retentionUnit": "A String", # The unit that 'retained_backups' represents. |
| 270 | }, |
| 271 | "binaryLogEnabled": True or False, # (MySQL only) Whether binary log is enabled. If backup configuration is disabled, binarylog must be disabled as well. |
| 272 | "enabled": True or False, # Whether this configuration is enabled. |
| 273 | "kind": "A String", # This is always **sql#backupConfiguration**. |
| 274 | "location": "A String", # Location of the backup |
| 275 | "pointInTimeRecoveryEnabled": True or False, # (Postgres only) Whether point in time recovery is enabled. |
| 276 | "replicationLogArchivingEnabled": True or False, # Reserved for future use. |
| 277 | "startTime": "A String", # Start time for the daily backup configuration in UTC timezone in the 24 hour format - **HH:MM**. |
| 278 | "transactionLogRetentionDays": 42, # The number of days of transaction logs we retain for point in time restore, from 1-7. |
| 279 | }, |
| 280 | "collation": "A String", # The name of server Instance collation. |
| 281 | "crashSafeReplicationEnabled": True or False, # Configuration specific to read replica instances. Indicates whether database flags for crash-safe replication are enabled. This property was only applicable to First Generation instances. |
| 282 | "dataDiskSizeGb": "A String", # The size of data disk, in GB. The data disk size minimum is 10GB. |
| 283 | "dataDiskType": "A String", # The type of data disk: **PD_SSD** (default) or **PD_HDD**. |
| 284 | "databaseFlags": [ # The database flags passed to the instance at startup. |
| 285 | { # Database flags for Cloud SQL instances. |
| 286 | "name": "A String", # The name of the flag. These flags are passed at instance startup, so include both server options and system variables for MySQL. Flags are specified with underscores, not hyphens. For more information, see [Configuring Database Flags](/sql/docs/mysql/flags) in the Cloud SQL documentation. |
| 287 | "value": "A String", # The value of the flag. Booleans are set to **on** for true and **off** for false. This field must be omitted if the flag doesn't take a value. |
| 288 | }, |
| 289 | ], |
| 290 | "databaseReplicationEnabled": True or False, # Configuration specific to read replica instances. Indicates whether replication is enabled or not. |
| 291 | "denyMaintenancePeriods": [ # Deny maintenance periods |
| 292 | { # Deny maintenance Periods. This specifies a date range during when all CSA rollout will be denied. |
| 293 | "endDate": "A String", # "deny maintenance period" end date. If the year of the end date is empty, the year of the start date also must be empty. In this case, it means the no maintenance interval recurs every year. The date is in format yyyy-mm-dd i.e., 2020-11-01, or mm-dd, i.e., 11-01 |
| 294 | "startDate": "A String", # "deny maintenance period" start date. If the year of the start date is empty, the year of the end date also must be empty. In this case, it means the no maintenance interval recurs every year. The date is in format yyyy-mm-dd i.e., 2020-11-01, or mm-dd, i.e., 11-01 |
| 295 | "time": "A String", # Time in UTC when the "deny maintenance period" starts on start_date and ends on end_date. The time is in format: HH:mm:SS, i.e., 00:00:00 |
| 296 | }, |
| 297 | ], |
| 298 | "insightsConfig": { # Insights configuration. This specifies when Cloud SQL Insights feature is enabled and optional configuration. # Insights configuration, for now relevant only for Postgres. |
| 299 | "queryInsightsEnabled": True or False, # Whether Query Insights feature is enabled. |
| 300 | "queryPlansPerMinute": 42, # Number of query plans generated by Insights per minute. Default is 5. Changing this will restart the database. |
| 301 | "queryStringLength": 42, # Maximum query length stored in bytes. Default value: 1024 bytes. Range: 256-4500 bytes. Query length more than this field value will be truncated to this value. When unset, query length will be the default value. Changing query length will restart the database. |
| 302 | "recordApplicationTags": True or False, # Whether Query Insights will record application tags from query when enabled. |
| 303 | "recordClientAddress": True or False, # Whether Query Insights will record client address when enabled. |
| 304 | }, |
| 305 | "ipConfiguration": { # IP Management configuration. # 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 for Second Generation instances. |
| 306 | "authorizedNetworks": [ # The list of external networks that are allowed to connect to the instance using the IP. In 'CIDR' notation, also known as 'slash' notation (for example: **192.168.100.0/24**). |
| 307 | { # An entry for an Access Control list. |
| 308 | "expirationTime": "A String", # The time when this access control entry expires in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example **2012-11-15T16:19:00.094Z**. |
| 309 | "kind": "A String", # This is always **sql#aclEntry**. |
| 310 | "name": "A String", # Optional. A label to identify this entry. |
| 311 | "value": "A String", # The allowlisted value for the access control list. |
| 312 | }, |
| 313 | ], |
| 314 | "ipv4Enabled": True or False, # Whether the instance is assigned a public IP address or not. |
| 315 | "privateNetwork": "A String", # The resource link for the VPC network from which the Cloud SQL instance is accessible for private IP. For example, **/projects/myProject/global/networks/default**. This setting can be updated, but it cannot be removed after it is set. |
| 316 | "requireSsl": True or False, # Whether SSL connections over IP are enforced or not. |
| 317 | }, |
| 318 | "kind": "A String", # This is always **sql#settings**. |
| 319 | "locationPreference": { # Preferred location. This specifies where a Cloud SQL instance is located. Note that if the preferred location is not available, the instance will be located as close as possible within the region. Only one location may be specified. # The location preference settings. This allows the instance to be located as near as possible to Compute Engine zone for better performance. |
| 320 | "kind": "A String", # This is always **sql#locationPreference**. |
| 321 | "secondaryZone": "A String", # The preferred Compute Engine zone for the secondary/failover (for example: us-central1-a, us-central1-b, etc.). Reserved for future use. |
| 322 | "zone": "A String", # The preferred Compute Engine zone (for example: us-central1-a, us-central1-b, etc.). |
| 323 | }, |
| 324 | "maintenanceWindow": { # Maintenance window. This specifies when a Cloud SQL instance is restarted for system maintenance purposes. # The maintenance window for this instance. This specifies when the instance can be restarted for maintenance purposes. |
| 325 | "day": 42, # day of week (1-7), starting on Monday. |
| 326 | "hour": 42, # hour of day - 0 to 23. |
| 327 | "kind": "A String", # This is always **sql#maintenanceWindow**. |
| 328 | "updateTrack": "A String", # Maintenance timing setting: **canary** (Earlier) or **stable** (Later). [Learn more] (https://cloud.google.com/sql/docs/mysql/admin-api/rest/v1/instance-settings#maintenance-timing-2ndgen). |
| 329 | }, |
| 330 | "pricingPlan": "A String", # The pricing plan for this instance. This can be either **PER_USE** or **PACKAGE**. Only **PER_USE** is supported for Second Generation instances. |
| 331 | "replicationType": "A String", # The type of replication this instance uses. This can be either **ASYNCHRONOUS** or **SYNCHRONOUS**. (Deprecated) This property was only applicable to First Generation instances. |
| 332 | "settingsVersion": "A String", # The version of instance settings. This is a required field for update method to make sure concurrent updates are handled properly. During update, use the most recent settingsVersion value for this instance and do not try to update this value. |
| 333 | "storageAutoResize": True or False, # Configuration to increase storage size automatically. The default value is true. |
| 334 | "storageAutoResizeLimit": "A String", # The maximum size to which storage capacity can be automatically increased. The default value is 0, which specifies that there is no limit. |
| 335 | "tier": "A String", # The tier (or machine type) for this instance, for example **db-custom-1-3840**. |
| 336 | "userLabels": { # User-provided labels, represented as a dictionary where each label is a single key value pair. |
| 337 | "a_key": "A String", |
| 338 | }, |
| 339 | }, |
| 340 | "state": "A String", # The current serving state of the Cloud SQL instance. This can be one of the following. *SQL_INSTANCE_STATE_UNSPECIFIED*: The state of the instance is unknown. *RUNNABLE*: The instance is running, or has been stopped by owner. *SUSPENDED*: The instance is not available, for example due to problems with billing. *PENDING_DELETE*: The instance is being deleted. *PENDING_CREATE*: The instance is being created. *MAINTENANCE*: The instance is down for maintenance. *FAILED*: The instance creation failed. |
| 341 | "suspensionReason": [ # If the instance state is SUSPENDED, the reason for the suspension. |
| 342 | "A String", |
| 343 | ], |
| 344 | }</pre> |
| 345 | </div> |
| 346 | |
| 347 | <div class="method"> |
| 348 | <code class="details" id="getConnectSettings">getConnectSettings(project, instance, readTime=None, x__xgafv=None)</code> |
| 349 | <pre>Retrieves connect settings about a Cloud SQL instance. |
| 350 | |
| 351 | Args: |
| 352 | project: string, Project ID of the project that contains the instance. (required) |
| 353 | instance: string, Cloud SQL instance ID. This does not include the project ID. (required) |
| 354 | readTime: string, Optional. Optional snapshot read timestamp to trade freshness for performance. |
| 355 | x__xgafv: string, V1 error format. |
| 356 | Allowed values |
| 357 | 1 - v1 error format |
| 358 | 2 - v2 error format |
| 359 | |
| 360 | Returns: |
| 361 | An object of the form: |
| 362 | |
| 363 | { # Connect settings retrieval response. |
| 364 | "backendType": "A String", # **SECOND_GEN**: Cloud SQL database instance. **EXTERNAL**: A database server that is not managed by Google. This property is read-only; use the **tier** property in the **settings** object to determine the database type. |
| 365 | "databaseVersion": "A String", # The database engine type and version. The **databaseVersion** field cannot be changed after instance creation. MySQL instances: **MYSQL_8_0**, **MYSQL_5_7** (default), or **MYSQL_5_6**. PostgreSQL instances: **POSTGRES_9_6**, **POSTGRES_10**, **POSTGRES_11** or **POSTGRES_12** (default). SQL Server instances: **SQLSERVER_2017_STANDARD** (default), **SQLSERVER_2017_ENTERPRISE**, **SQLSERVER_2017_EXPRESS**, or **SQLSERVER_2017_WEB**. |
| 366 | "ipAddresses": [ # The assigned IP addresses for the instance. |
| 367 | { # Database instance IP Mapping. |
| 368 | "ipAddress": "A String", # The IP address assigned. |
| 369 | "timeToRetire": "A String", # The due time for this IP to be retired in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example **2012-11-15T16:19:00.094Z**. This field is only available when the IP is scheduled to be retired. |
| 370 | "type": "A String", # The type of this IP address. A **PRIMARY** address is a public address that can accept incoming connections. A **PRIVATE** address is a private address that can accept incoming connections. An **OUTGOING** address is the source address of connections originating from the instance, if supported. |
| 371 | }, |
| 372 | ], |
| 373 | "kind": "A String", # This is always `sql#connectSettings`. |
| 374 | "serverCaCert": { # SslCerts Resource # SSL configuration. |
| 375 | "cert": "A String", # PEM representation. |
| 376 | "certSerialNumber": "A String", # Serial number, as extracted from the certificate. |
| 377 | "commonName": "A String", # User supplied name. Constrained to [a-zA-Z.-_ ]+. |
| 378 | "createTime": "A String", # The time when the certificate was created in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example **2012-11-15T16:19:00.094Z** |
| 379 | "expirationTime": "A String", # The time when the certificate expires in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example **2012-11-15T16:19:00.094Z**. |
| 380 | "instance": "A String", # Name of the database instance. |
| 381 | "kind": "A String", # This is always sql#sslCert. |
| 382 | "sha1Fingerprint": "A String", # Sha1 Fingerprint. |
| 383 | }, |
| 384 | }</pre> |
| 385 | </div> |
| 386 | |
| 387 | </body></html> |