Skip to content
This repository has been archived by the owner on May 25, 2021. It is now read-only.

Latest commit

 

History

History
59 lines (41 loc) · 1.38 KB

PricesApi.md

File metadata and controls

59 lines (41 loc) · 1.38 KB

PricesApi

All URIs are relative to https://api.upcloud.com/1.2

Method HTTP request Description
listPrices GET /price List prices

listPrices

PriceListResponse listPrices()

List prices

Returns a list resource prices.

Example

// 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();
}

Parameters

This endpoint does not need any parameter.

Return type

PriceListResponse

Authorization

baseAuth

HTTP request headers

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