All URIs are relative to https://api.upcloud.com/1.3
Method | HTTP request | Description |
---|---|---|
listZones | GET /zone | List available zones |
\Upcloud\ApiClient\Model\ZoneListResponse listZones()
List available zones
Returns a list of available zones.
<?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;
}
?>
This endpoint does not need any parameter.
\Upcloud\ApiClient\Model\ZoneListResponse
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]