All URIs are relative to https://api.upcloud.com/1.2
Method | HTTP request | Description |
---|---|---|
listPlans | GET /plan | List available plans |
AvailablePlanListResponse listPlans()
List available plans
Returns a list of available plans.
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);
});
This endpoint does not need any parameter.
- Content-Type: application/json
- Accept: application/json