All URIs are relative to https://api.upcloud.com/1.2
Method | HTTP request | Description |
---|---|---|
listPrices | GET /price | List prices |
PriceListResponse listPrices()
List prices
Returns a list resource prices.
// Import classes:
//import com.upcloud.client.ApiClient;
//import com.upcloud.client.ApiException;
//import com.upcloud.client.Configuration;
//import com.upcloud.client.auth.*;
//import com.upcloud.client.api.PricesApi;
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure HTTP basic authorization: baseAuth
HttpBasicAuth baseAuth = (HttpBasicAuth) defaultClient.getAuthentication("baseAuth");
baseAuth.setUsername("YOUR USERNAME");
baseAuth.setPassword("YOUR PASSWORD");
PricesApi apiInstance = new PricesApi();
try {
PriceListResponse result = apiInstance.listPrices();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling PricesApi#listPrices");
e.printStackTrace();
}
This endpoint does not need any parameter.
- Content-Type: application/json
- Accept: application/json