ssl_certs_ephemeral
Creates, updates, deletes, gets or lists a ssl_certs_ephemeral
resource.
Overview
Name | ssl_certs_ephemeral |
Type | Resource |
Id | google.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:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
create_ephemeral | insert | project , instance | 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. |
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.
Name | Datatype | Description |
---|---|---|
instance | string | |
project | string |
INSERT
examples
- create_ephemeral
- Manifest
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__public_key,
data__access_token,
project,
instance
)
SELECT
'{{ public_key }}',
'{{ access_token }}',
'{{ project }}',
'{{ instance }}'
RETURNING
cert,
certSerialNumber,
commonName,
createTime,
expirationTime,
instance,
kind,
selfLink,
sha1Fingerprint
;
# Description fields are for documentation purposes
- name: ssl_certs_ephemeral
props:
- name: project
value: string
description: Required parameter for the ssl_certs_ephemeral resource.
- name: instance
value: string
description: Required parameter for the ssl_certs_ephemeral resource.
- name: public_key
value: string
description: >
PEM encoded public key to include in the signed certificate.
- name: access_token
value: string
description: >
Access token to include in the signed certificate.