ClustersApi
ClustersApi
Method
HTTP request
Description
clusterPostgresVersionsGet
Example
// Import classes:
import com.ionoscloud.dbaaspostgres.ApiClient;
import com.ionoscloud.dbaaspostgres.ApiException;
import com.ionoscloud.dbaaspostgres.Configuration;
import com.ionoscloud.dbaaspostgres.auth.*;
import com.ionoscloud.dbaaspostgres.model.*;
import com.ionoscloud.dbaaspostgres.api.ClustersApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: basicAuth
HttpBasicAuth basicAuthentication = (HttpBasicAuth) defaultClient.getAuthentication("basicAuth");
basicAuthentication.setUsername("YOUR USERNAME");
basicAuthentication.setPassword("YOUR PASSWORD");
ClustersApi apiInstance = new ClustersApi(defaultClient);
String clusterId = "498ae72f-411f-11eb-9d07-046c59cc737e"; // String | The unique ID of the cluster.
try {
PostgresVersionList result = apiInstance.clusterPostgresVersionsGet(clusterId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ClustersApi#clusterPostgresVersionsGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}Parameters
Name
Type
Description
Notes
Return type
HTTP request headers
clustersDelete
Example
Parameters
Name
Type
Description
Notes
Return type
HTTP request headers
clustersFindById
Example
Parameters
Name
Type
Description
Notes
Return type
HTTP request headers
clustersGet
Example
Parameters
Name
Type
Description
Notes
Return type
HTTP request headers
clustersPatch
Example
Parameters
Name
Type
Description
Notes
Return type
HTTP request headers
clustersPost
Example
Parameters
Name
Type
Description
Notes
Return type
HTTP request headers
postgresVersionsGet
Example
Parameters
Return type
HTTP request headers
Last updated
