---
title: "POST /v1/projects/{project}/instances/{instance}/createEphemeral"
method: POST
path: "/v1/projects/{project}/instances/{instance}/createEphemeral"
tags: ["sslCerts"]
---

# POST /v1/projects/{project}/instances/{instance}/createEphemeral

`POST /v1/projects/{project}/instances/{instance}/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.

## Path parameters

- `project` string, required
- `instance` string, required

## Request body

- SslCertsCreateEphemeralRequest — SslCerts create ephemeral certificate request.
  - `public_key` string — PEM encoded public key to include in the signed certificate.
  - `access_token` string — Access token to include in the signed certificate.

## Response `200`

Successful response

---

[API](https://skmtc.dev/google/apis/sqladmin.md) · [All operations](https://skmtc.dev/google/apis/sqladmin/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/google/sqladmin/revisions/e9eef8a2afcd/schema)
