All URIs are relative to https://penapi.pacnetconnect.com
Method | HTTP request | Description |
---|---|---|
inventoryDatacentersGet | GET /1.0.0/inventory/datacenters | Get list of all the data centers |
List<InventoryDatacentersResponse> inventoryDatacentersGet()
Get list of all the data centers
Get list of all the data centers
// Import classes:
//import invalidPackageName.ApiClient;
//import invalidPackageName.ApiException;
//import invalidPackageName.Configuration;
//import invalidPackageName.auth.*;
//import TelstraTPN.DatacentresApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure OAuth2 access token for authorization: auth
OAuth auth = (OAuth) defaultClient.getAuthentication("auth");
auth.setAccessToken("YOUR ACCESS TOKEN");
DatacentresApi apiInstance = new DatacentresApi();
try {
List<InventoryDatacentersResponse> result = apiInstance.inventoryDatacentersGet();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DatacentresApi#inventoryDatacentersGet");
e.printStackTrace();
}
This endpoint does not need any parameter.
List<InventoryDatacentersResponse>
- Content-Type: application/json
- Accept: application/json