Skip to main content

ssl_certs

Overview

Namessl_certs
TypeResource
Idgoogle.sqladmin.ssl_certs

Fields

NameDatatypeDescription
instancestringName of the database instance.
createTimestringThe time when the certificate was created in RFC 3339 format, for example 2012-11-15T16:19:00.094Z
selfLinkstringThe URI of this resource.
certstringPEM representation.
certSerialNumberstringSerial number, as extracted from the certificate.
kindstringThis is always sql#sslCert.
sha1FingerprintstringSha1 Fingerprint.
commonNamestringUser supplied name. Constrained to [a-zA-Z.-_ ]+.
expirationTimestringThe time when the certificate expires in RFC 3339 format, for example 2012-11-15T16:19:00.094Z.

Methods

NameAccessible byRequired ParamsDescription
getSELECTinstance, project, sha1FingerprintRetrieves a particular SSL certificate. Does not include the private key (required for usage). The private key must be saved from the response to initial creation.
listSELECTinstance, projectLists all of the current SSL certificates for the instance.
insertINSERTinstance, projectCreates an SSL certificate and returns it along with the private key and server certificate authority. The new certificate will not be usable until the instance is restarted.
deleteDELETEinstance, project, sha1FingerprintDeletes the SSL certificate. For First Generation instances, the certificate remains valid until the instance is restarted.