Cloud SQL Admin API . projects . instances . createEphemeral

Instance Methods

close()

Close httplib2 connections.

create(project, instance, body=None, x__xgafv=None)

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.

Method Details

close()
Close httplib2 connections.
create(project, instance, body=None, x__xgafv=None)
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.

Args:
  project: string, Project ID of the Cloud SQL project. (required)
  instance: string, Cloud SQL instance ID. This does not include the project ID. (required)
  body: object, The request body.
    The object takes the form of:

{ # SslCerts create ephemeral certificate request.
  "access_token": "A String", # Access token to include in the signed certificate.
  "public_key": "A String", # PEM encoded public key to include in the signed certificate.
}

  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # SslCerts Resource
  "cert": "A String", # PEM representation.
  "certSerialNumber": "A String", # Serial number, as extracted from the certificate.
  "commonName": "A String", # User supplied name. Constrained to [a-zA-Z.-_ ]+.
  "createTime": "A String", # The time when the certificate was created in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example **2012-11-15T16:19:00.094Z**
  "expirationTime": "A String", # The time when the certificate expires in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example **2012-11-15T16:19:00.094Z**.
  "instance": "A String", # Name of the database instance.
  "kind": "A String", # This is always sql#sslCert.
  "sha1Fingerprint": "A String", # Sha1 Fingerprint.
}