GET /v1/projects/{project}/instances/{instance}
Changed onRetrieves a resource containing information about a Cloud SQL instance.
Request
- Base URLhttps://sqladmin.googleapis.com
- Auth
- OAuth 2 and OAuth 2Implicithttps://accounts.google.com/o/oauth2/authScopeshttps://www.googleapis.com/auth/cloud-platformAuthorization codehttps://accounts.google.com/o/oauth2/authToken URLhttps://accounts.google.com/o/oauth2/tokenScopeshttps://www.googleapis.com/auth/cloud-platform
- or OAuth 2 and OAuth 2Implicithttps://accounts.google.com/o/oauth2/authScopeshttps://www.googleapis.com/auth/sqlservice.adminAuthorization codehttps://accounts.google.com/o/oauth2/authToken URLhttps://accounts.google.com/o/oauth2/tokenScopeshttps://www.googleapis.com/auth/sqlservice.admin
Path parameters
Required. Project ID of the project that contains the instance.
Required. Database instance ID. This does not include the project ID.
Query parameters
V1 error format.
OAuth access token.
Data format for response.
JSONP
Selector specifying which fields to include in a partial response.
API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
OAuth 2.0 token for the current user.
Returns response with indentations and line breaks.
Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
Legacy upload protocol for media (e.g. "media", "multipart").
Upload protocol for media (e.g. "raw", "multipart").
Optional. Region of the Cloud SQL instance.
Response
Successful response
A Cloud SQL instance resource.
Output only. List all maintenance versions applicable on the instance
The backend type. 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.
Connection name of the Cloud SQL instance used in connection strings.
Output only. The time when the instance was created in RFC 3339 format, for example 2012-11-15T16:19:00.094Z.
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.
Optional. State of the Database Center integration for this instance. When unspecified, Database Center integration is enabled by default.
Optional. If true, instance metadata is sent to the Database Center. If false, instance metadata is not sent to the Database Center.
Output only. Stores the current database version running on the instance including minor version such as MYSQL_8_0_18.
The database engine type and version. The databaseVersion field cannot be changed after instance creation.
Blue-green deployment metadata for a database instance. In a blue-green deployment, we maintain two environments, one of which is live. This message contains details about the blue-green deployment.
Disk encryption configuration for an instance.
Disk encryption status for an instance.
Output only. The dns name of the instance.
Output only. The list of DNS names used by this instance.
This field is deprecated and will be removed from a future version of the API. Use the settings.settingsVersion field instead.
The name and status of the failover replica.
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. WARNING: Changing this might restart the instance.
Gemini instance configuration.
Input only. Determines whether an in-place major version upgrade of replicas happens when an in-place major version upgrade of a primary instance is initiated.
The instance type.
The assigned IP addresses for the instance.
The IPv6 address assigned to the instance. (Deprecated) This property was applicable only to First Generation instances.
This is always sql#instance.
The current software version on the instance.
The name of the instance which will act as primary in the replication setup.
The maximum disk size of the instance in bytes.
Name of the Cloud SQL instance. This does not include the project ID.
The number of read pool nodes in a read pool.
Output only. Entries containing information about each read pool node of the read pool.
On-premises instance configuration.
This message wraps up the information written by out-of-disk detection job.
Output only. DEPRECATED: please use write_endpoint instead.
The project ID of the project containing the Cloud SQL instance. The Google apps domain is prefixed if applicable.
Output only. The link to service attachment of PSC instance.
The geographical region of the Cloud SQL instance. It can be one of the regions where Cloud SQL operates: For example, asia-east1, europe-west1, and us-central1. The default value is us-central1.
Read-replica configuration for connecting to the primary instance.
The replicas of the instance.
A primary instance and disaster recovery (DR) replica pair. A DR replica is a cross-region replica that you designate for failover in the event that the primary instance experiences regional failure. Applicable to MySQL and PostgreSQL.
Initial root password. Use only on creation. You must set root passwords before you can connect to PostgreSQL instances.
Output only. This status indicates whether the instance satisfies PZI. The status is reserved for future use.
This status indicates whether the instance satisfies PZS. The status is reserved for future use.
Any scheduled maintenance for this instance.
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.
The URI of this resource.
SslCerts Resource
The service account email address assigned to the instance.\This property is read-only.
Database instance settings.
Optional. Input only. Determines whether the precheck step is skipped during a major version upgrade.
The current serving state of the Cloud SQL instance.
If the instance state is SUSPENDED, the reason for the suspension.
Input only. Whether Cloud SQL is enabled to switch storing point-in-time recovery log files from a data disk to Cloud Storage.
Optional. Input only. Immutable. Tag keys and tag values that are bound to this instance. You must represent each item in the map as: "" : "". For example, a single resource can have the following tags: "123/environment": "production", "123/costCenter": "marketing", For more information on tag creation and management, see https://cloud.google.com/resource-manager/docs/tags/tags-overview.
Output only. All database versions that are available for upgrade.
Output only. The dns name of the primary instance in a replication group.
Changes
- info
the security scope
https://www.googleapis.com/auth/cloud-platformwas added to the endpoint's security schemeOauth2 - info
the security scope
https://www.googleapis.com/auth/cloud-platformwas added to the endpoint's security schemeOauth2c - info
the security scope
https://www.googleapis.com/auth/sqlservice.adminwas removed from the endpoint's security schemeOauth2
1 more change in this revision
- info