Stay organized with collections
Save and categorize content based on your preferences.
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.
Arguments
Parameters
instance
string
Required. Cloud SQL instance ID. This does not include the project ID.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-29 UTC."],[],[],null,["# Method: googleapis.sqladmin.v1.sslCerts.createEphemeral\n\nGenerates a short-lived X509 certificate containing the provided public\nkey and signed by a private key specific to the target instance. Users\nmay use the certificate to authenticate as themselves when connecting to\nthe database.\n\nArguments\n---------\n\nRaised exceptions\n-----------------\n\nResponse\n--------\n\nIf successful, the response contains an instance of [`SslCert`](/workflows/docs/reference/googleapis/sqladmin/v1/Overview#SslCert).\n\nSubworkflow snippet\n-------------------\n\nSome fields might be optional or required.\nTo identify required fields, refer to the [API documentation](https://cloud.google.com/sql/docs/mysql/admin-api/rest/v1/sslCerts/createEphemeral). \n\n### YAML\n\n```yaml\n- createEphemeral:\n call: googleapis.sqladmin.v1.sslCerts.createEphemeral\n args:\n instance: ...\n project: ...\n body:\n access_token: ...\n public_key: ...\n result: createEphemeralResult\n```\n\n### JSON\n\n```json\n[\n {\n \"createEphemeral\": {\n \"call\": \"googleapis.sqladmin.v1.sslCerts.createEphemeral\",\n \"args\": {\n \"instance\": \"...\",\n \"project\": \"...\",\n \"body\": {\n \"access_token\": \"...\",\n \"public_key\": \"...\"\n }\n },\n \"result\": \"createEphemeralResult\"\n }\n }\n]\n```"]]