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

Latest commit

 

History

History
52 lines (34 loc) · 1.14 KB

PlanApi.md

File metadata and controls

52 lines (34 loc) · 1.14 KB

upcloud.PlanApi

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

Method HTTP request Description
listPlans GET /plan List available plans

listPlans

AvailablePlanListResponse listPlans()

List available plans

Returns a list of available plans.

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.PlanApi();
apiInstance.listPlans().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

AvailablePlanListResponse

Authorization

baseAuth

HTTP request headers

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