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

Files

Latest commit

396c96a · Oct 1, 2017

History

History
52 lines (34 loc) · 1.11 KB

ZoneApi.md

File metadata and controls

52 lines (34 loc) · 1.11 KB

upcloud.ZoneApi

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

Method HTTP request Description
listZones GET /zone List available zones

listZones

ZoneListResponse listZones()

List available zones

Returns a list of available zones.

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.ZoneApi();
apiInstance.listZones().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

ZoneListResponse

Authorization

baseAuth

HTTP request headers

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