Skip to content

Latest commit

 

History

History
55 lines (35 loc) · 1.46 KB

ZoneApi.md

File metadata and controls

55 lines (35 loc) · 1.46 KB

Upcloud\ApiClient\ZoneApi

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

Method HTTP request Description
listZones GET /zone List available zones

listZones

\Upcloud\ApiClient\Model\ZoneListResponse listZones()

List available zones

Returns a list of available zones.

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure HTTP basic authorization: baseAuth
Upcloud\ApiClient\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
Upcloud\ApiClient\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');

$api_instance = new Upcloud\ApiClient\Upcloud\ZoneApi();

try {
    $result = $api_instance->listZones();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling ZoneApi->listZones: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

This endpoint does not need any parameter.

Return type

\Upcloud\ApiClient\Model\ZoneListResponse

Authorization

baseAuth

HTTP request headers

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

[Back to top] [Back to API list] [Back to Model list] [Back to README]