Method: sslCerts.createEphemeral

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.

HTTP request

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

The URL uses gRPC Transcoding syntax.

Path parameters

Parameters
project

string

Project ID of the Cloud SQL project.

instance

string

Cloud SQL instance ID. This does not include the project ID.

Request body

The request body contains an instance of SslCertsCreateEphemeralRequest.

Response body

If successful, the response body contains a newly created instance of SslCert.

Authorization Scopes

Requires one of the following OAuth scopes:

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

For more information, see the Authentication Overview.

SslCertsCreateEphemeralRequest

SslCerts create ephemeral certificate request.

JSON representation
{
  "public_key": string
}
Fields
public_key

string

PEM encoded public key to include in the signed certificate.

Was this page helpful? Let us know how we did:

Send feedback about...

Cloud SQL for PostgreSQL
Need help? Visit our support page.