We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f1ed5b6 commit 91c22b2Copy full SHA for 91c22b2
google/cloud/sql/connector/refresh_utils.py
@@ -154,7 +154,7 @@ async def _get_ephemeral(
154
"Authorization": f"Bearer {credentials.token}",
155
}
156
157
- url = "https://www.googleapis.com/sql/{}/projects/{}/instances/{}/createEphemeral".format(
+ url = "https://sqladmin.googleapis.com/sql/{}/projects/{}/instances/{}:generateEphemeralCert".format(
158
_sql_api_version, project, instance
159
)
160
@@ -171,4 +171,4 @@ async def _get_ephemeral(
171
172
ret_dict = json.loads(await resp.text())
173
174
- return ret_dict["cert"]
+ return ret_dict["ephemeralCert"]["cert"]
0 commit comments