Method: sslCerts.createEphemeral Stay organized with collections Save and categorize content based on your preferences.
- HTTP request
- Path parameters
- Request body
- Response body
- Authorization Scopes
- SslCertsCreateEphemeralRequest
- Examples
- Try it!
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://sqladmin.googleapis.com/v1/projects/{project}/instances/{instance}/createEphemeral
The URL usesgRPC Transcoding syntax.
Path parameters
Parameters | |
---|---|
project |
Project ID of the Cloud SQL project. |
instance |
Cloud SQL instance ID. This does not include the project ID. |
Request body
The request body contains an instance ofSslCertsCreateEphemeralRequest
.
Response body
If successful, the response body contains a newly created instance ofSslCert
.
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 theAuthentication Overview.
SslCertsCreateEphemeralRequest
SslCerts create ephemeral certificate request.
JSON representation |
---|
{"public_key":string,"access_token":string} |
Fields | |
---|---|
public_key |
PEM encoded public key to include in the signed certificate. |
access_token |
Access token to include in the signed certificate. |
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-05-30 UTC.