Class SslCertsResource
The "sslCerts" collection of methods.
Inherited Members
Namespace: Google.Apis.SQLAdmin.v1
Assembly: Google.Apis.SQLAdmin.v1.dll
Syntax
public class SslCertsResource
Constructors
SslCertsResource(IClientService)
Constructs a new resource.
Declaration
public SslCertsResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
CreateEphemeral(SslCertsCreateEphemeralRequest, string, string)
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.
Declaration
public virtual SslCertsResource.CreateEphemeralRequest CreateEphemeral(SslCertsCreateEphemeralRequest body, string project, string instance)
Parameters
Type | Name | Description |
---|---|---|
SslCertsCreateEphemeralRequest | body | The body of the request. |
string | project | Project ID of the Cloud SQL project. |
string | instance | Cloud SQL instance ID. This does not include the project ID. |
Returns
Type | Description |
---|---|
SslCertsResource.CreateEphemeralRequest |
Delete(string, string, string)
Deletes the SSL certificate. For First Generation instances, the certificate remains valid until the instance is restarted.
Declaration
public virtual SslCertsResource.DeleteRequest Delete(string project, string instance, string sha1Fingerprint)
Parameters
Type | Name | Description |
---|---|---|
string | project | Project ID of the project that contains the instance. |
string | instance | Cloud SQL instance ID. This does not include the project ID. |
string | sha1Fingerprint | Sha1 FingerPrint. |
Returns
Type | Description |
---|---|
SslCertsResource.DeleteRequest |
Get(string, string, string)
Retrieves 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.
Declaration
public virtual SslCertsResource.GetRequest Get(string project, string instance, string sha1Fingerprint)
Parameters
Type | Name | Description |
---|---|---|
string | project | Project ID of the project that contains the instance. |
string | instance | Cloud SQL instance ID. This does not include the project ID. |
string | sha1Fingerprint | Sha1 FingerPrint. |
Returns
Type | Description |
---|---|
SslCertsResource.GetRequest |
Insert(SslCertsInsertRequest, string, string)
Creates 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.
Declaration
public virtual SslCertsResource.InsertRequest Insert(SslCertsInsertRequest body, string project, string instance)
Parameters
Type | Name | Description |
---|---|---|
SslCertsInsertRequest | body | The body of the request. |
string | project | Project ID of the project that contains the instance. |
string | instance | Cloud SQL instance ID. This does not include the project ID. |
Returns
Type | Description |
---|---|
SslCertsResource.InsertRequest |
List(string, string)
Lists all of the current SSL certificates for the instance.
Declaration
public virtual SslCertsResource.ListRequest List(string project, string instance)
Parameters
Type | Name | Description |
---|---|---|
string | project | Project ID of the project that contains the instance. |
string | instance | Cloud SQL instance ID. This does not include the project ID. |
Returns
Type | Description |
---|---|
SslCertsResource.ListRequest |