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

Latest commit

 

History

History
52 lines (34 loc) · 1.11 KB

File metadata and controls

52 lines (34 loc) · 1.11 KB

upcloud.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

var upcloud = require('upcloud');
var defaultClient = upcloud.ApiClient.instance;

// Configure HTTP basic authorization: baseAuth
var baseAuth = defaultClient.authentications['baseAuth'];
baseAuth.username = 'YOUR USERNAME';
baseAuth.password = 'YOUR PASSWORD';

var apiInstance = new upcloud.PricesApi();
apiInstance.listPrices().then(function(data) {
  console.log('API called successfully. Returned data: ' + data);
}, function(error) {
  console.error(error);
});

Parameters

This endpoint does not need any parameter.

Return type

PriceListResponse

Authorization

baseAuth

HTTP request headers

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