SslCerts: createEphemeral

Requires authorization

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.

Request

HTTP request

POST https://www.googleapis.com/sql/v1beta4/projects/project/instances/instance/createEphemeral

Parameters

Parameter name Value Description
Path parameters
instance string Cloud SQL instance ID. This does not include the project ID.
project string Project ID of the Cloud SQL project.

Authorization

This request requires authorization with at least one of the following scopes (read more about authentication and authorization).

Scope
https://www.googleapis.com/auth/cloud-platform
https://www.googleapis.com/auth/sqlservice.admin

Request body

In the request body, supply data with the following structure:

{
  "public_key": string
}
Property name Value Description Notes
public_key string PEM encoded public key to include in the signed certificate.

Response

If successful, this method returns a SslCerts resource in the response body.

Send feedback about...

Cloud SQL for PostgreSQL