Skip to main content

ssl_certs_ephemeral

Creates, updates, deletes, gets or lists a ssl_certs_ephemeral resource.

Overview​

Namessl_certs_ephemeral
TypeResource
Idgoogle.sqladmin.ssl_certs_ephemeral

Fields​

The following fields are returned by SELECT queries:

SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
create_ephemeralinsertproject, instanceGenerates 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.

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
instancestring
projectstring

INSERT examples​

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.

INSERT INTO google.sqladmin.ssl_certs_ephemeral (
data__access_token,
data__public_key,
project,
instance
)
SELECT
'{{ access_token }}',
'{{ public_key }}',
'{{ project }}',
'{{ instance }}'
RETURNING
cert,
certSerialNumber,
commonName,
createTime,
expirationTime,
instance,
kind,
selfLink,
sha1Fingerprint
;