target.apidocs.com.google.api.services.sqladmin.SQLAdmin.Connect.html Maven / Gradle / Ivy
The newest version!
SQLAdmin.Connect (Cloud SQL Admin API v1-rev20241108-2.0.0)
com.google.api.services.sqladmin
Class SQLAdmin.Connect
- java.lang.Object
-
- com.google.api.services.sqladmin.SQLAdmin.Connect
-
-
Nested Class Summary
Nested Classes
Modifier and Type
Class and Description
class
SQLAdmin.Connect.GenerateEphemeralCert
class
SQLAdmin.Connect.Get
-
Constructor Summary
Constructors
Constructor and Description
Connect()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
SQLAdmin.Connect.GenerateEphemeralCert
generateEphemeralCert(String project,
String instance,
GenerateEphemeralCertRequest content)
Generates a short-lived X509 certificate containing the provided public key and signed by a
private key specific to the target instance.
SQLAdmin.Connect.Get
get(String project,
String instance)
Retrieves connect settings about a Cloud SQL instance.
-
-
Method Detail
-
generateEphemeralCert
public SQLAdmin.Connect.GenerateEphemeralCert generateEphemeralCert(String project,
String instance,
GenerateEphemeralCertRequest content)
throws IOException
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.
Create a request for the method "connect.generateEphemeralCert".
This request holds the parameters needed by the sqladmin server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote
operation.
- Parameters:
project
- Project ID of the project that contains the instance.
instance
- Cloud SQL instance ID. This does not include the project ID.
content
- the GenerateEphemeralCertRequest
- Returns:
- the request
- Throws:
IOException
-
get
public SQLAdmin.Connect.Get get(String project,
String instance)
throws IOException
Retrieves connect settings about a Cloud SQL instance.
Create a request for the method "connect.get".
This request holds the parameters needed by the sqladmin server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
project
- Project ID of the project that contains the instance.
instance
- Cloud SQL instance ID. This does not include the project ID.
- Returns:
- the request
- Throws:
IOException
Copyright © 2011–2024 Google. All rights reserved.
© 2015 - 2024 Weber Informatics LLC | Privacy Policy