The SslCerts resource represents an SSL certificate created for a Google Cloud SQL instance. To use the SSL certificate you must have the SSL Client Certificate and the associated SSL Client Key. The Client Key can be downloaded only when the SSL certificate is created with the insert method.
For a list of methods for this resource, see the end of this page.
Resource representations
SslCerts Resource
{ "kind": "sql#sslCert", "instance": string, "sha1Fingerprint": string, "commonName": string, "certSerialNumber": string, "cert": string, "createTime": datetime, "expirationTime": datetime }
Property name | Value | Description | Notes |
---|---|---|---|
cert
|
string
|
PEM representation. | |
certSerialNumber
|
string
|
Serial number, as extracted from the certificate. | |
commonName
|
string
|
User supplied name. Constrained to [a-zA-Z.-_ ]+. | |
createTime
|
datetime
|
Time when the certificate was created. | |
expirationTime
|
datetime
|
Time when the certificate expires. | |
instance
|
string
|
Name of the database instance. | |
kind
|
string
|
This is always
sql#sslCert
.
|
|
sha1Fingerprint
|
string
|
Sha1 Fingerprint. |
Methods
Available methods for SslCerts resources are:
- delete
- Deletes an SSL certificate from a Cloud SQL instance.
- get
- Retrieves an SSL certificate as specified by its SHA-1 fingerprint.
- insert
- Creates an SSL certificate and returns the certificate, the associated private key, and the server certificate authority.
- list
- Lists all of the current SSL certificates defined for a Cloud SQL instance.