Links

MetadataApi

MetadataApi

All URIs are relative to https://api.ionos.com/databases/postgresql
Method
HTTP request
Description
GET /infos/version
Get the current API version
GET /infos/versions
Fetch all API versions

infosVersionGet

APIVersion infosVersionGet()
Get the current API version
Retrieves the current version of the responding API.

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.MetadataApi;
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");
MetadataApi apiInstance = new MetadataApi(defaultClient);
try {
APIVersion result = apiInstance.infosVersionGet();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling MetadataApi#infosVersionGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}

Parameters

This endpoint does not need any parameter.

Return type

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

infosVersionsGet

List<APIVersion> infosVersionsGet()
Fetch all API versions
Retrieves all available versions of the responding API.

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.MetadataApi;
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");
MetadataApi apiInstance = new MetadataApi(defaultClient);
try {
List<APIVersion> result = apiInstance.infosVersionsGet();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling MetadataApi#infosVersionsGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}

Parameters

This endpoint does not need any parameter.

Return type

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json