v1

latestOpenAPI 3.0.0Creative Commons Attribution 3.02026-07-1375137252.2 KB
connect

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.

post/v1/projects/{project}/instances/{instance}:generateEphemeralCert

Path parameters

projectstring required

Project ID of the project that contains the instance.

instancestring required

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

Request body

public_keystring

PEM encoded public key to include in the signed certificate.

access_tokenstring

Optional. Access token to include in the signed certificate.

readTimestring google-datetime

Optional. Optional snapshot read timestamp to trade freshness for performance.

validDurationstring google-duration

Optional. If set, it will contain the cert valid duration.

Response

Successful response