Retrieves all lists of backups for all MariaDB clusters in this contract.
Example
// Import classes:importcom.ionoscloud.dbaasmariadb.ApiClient;importcom.ionoscloud.dbaasmariadb.ApiException;importcom.ionoscloud.dbaasmariadb.ApiResponse;importcom.ionoscloud.dbaasmariadb.Configuration;importcom.ionoscloud.dbaasmariadb.auth.*;importcom.ionoscloud.dbaasmariadb.model.*;importcom.ionoscloud.dbaasmariadb.api.BackupsApi;publicclassExample {publicstaticvoidmain(String[] args) {ApiClient defaultClient =Configuration.getDefaultApiClient();// Configure Api Key authorization: tokenAuthdefaultClient.setApiKeyWithBearerPrefix("YOUR TOKEN");BackupsApi apiInstance =newBackupsApi(defaultClient); Integer limit = 100; // Integer | The maximum number of elements to return. Use together with 'offset' for pagination.
Integer offset =0; // Integer | The first element to return. Use together with 'limit' for pagination.String orderBy ="orderBy_example"; // String | Order by fieldInteger maxResults ="maxResults_example"; // Integer | Maximum number of results to returntry {ApiResponse<BackupList> result =apiInstance.backupsGetWithHttpInfo(limit, offset, orderBy, maxResults, filters);System.out.println("Response: "+result.getData());System.out.println("Status Code: "+result.getStatusCode());System.out.println("Headers: "+result.getHeaders()); } catch (ApiException e) {System.err.println("Exception when calling BackupsApi#backupsGet");System.err.println("Status code: "+e.getCode());System.err.println("Reason: "+e.getResponseBody());System.err.println("Response headers: "+e.getResponseHeaders());e.printStackTrace(); } }}
⚠️ Note: for the example above, you need to provide all parameters to the method call. Null values will resolve to the API defaults.
Parameters
Name
Type
Description
Notes
limit
Integer
The maximum number of elements to return. Use together with 'offset' for pagination.
[optional] [default to 100]
offset
Integer
The first element to return. Use together with 'limit' for pagination.
Retrieves a list of all backups of the given MariaDB cluster.
Example
// Import classes:importcom.ionoscloud.dbaasmariadb.ApiClient;importcom.ionoscloud.dbaasmariadb.ApiException;importcom.ionoscloud.dbaasmariadb.ApiResponse;importcom.ionoscloud.dbaasmariadb.Configuration;importcom.ionoscloud.dbaasmariadb.auth.*;importcom.ionoscloud.dbaasmariadb.model.*;importcom.ionoscloud.dbaasmariadb.api.BackupsApi;publicclassExample {publicstaticvoidmain(String[] args) {ApiClient defaultClient =Configuration.getDefaultApiClient();// Configure Api Key authorization: tokenAuthdefaultClient.setApiKeyWithBearerPrefix("YOUR TOKEN");BackupsApi apiInstance =newBackupsApi(defaultClient);String clusterId ="498ae72f-411f-11eb-9d07-046c59cc737e"; // String | The unique ID of the cluster. Integer limit = 100; // Integer | The maximum number of elements to return. Use together with 'offset' for pagination.
Integer offset =0; // Integer | The first element to return. Use together with 'limit' for pagination.String orderBy ="orderBy_example"; // String | Order by fieldInteger maxResults ="maxResults_example"; // Integer | Maximum number of results to returntry { ApiResponse<BackupList> result = apiInstance.clusterBackupsGetWithHttpInfo(clusterId, limit, offset, orderBy, maxResults, filters);
System.out.println("Response: "+result.getData());System.out.println("Status Code: "+result.getStatusCode());System.out.println("Headers: "+result.getHeaders()); } catch (ApiException e) {System.err.println("Exception when calling BackupsApi#clusterBackupsGet");System.err.println("Status code: "+e.getCode());System.err.println("Reason: "+e.getResponseBody());System.err.println("Response headers: "+e.getResponseHeaders());e.printStackTrace(); } }}
⚠️ Note: for the example above, you need to provide all parameters to the method call. Null values will resolve to the API defaults.
Parameters
Name
Type
Description
Notes
clusterId
String
The unique ID of the cluster.
limit
Integer
The maximum number of elements to return. Use together with 'offset' for pagination.
[optional] [default to 100]
offset
Integer
The first element to return. Use together with 'limit' for pagination.