All URIs are relative to https://api.upcloud.com/1.2
Method | HTTP request | Description |
---|---|---|
listPlans | GET /plan | List available plans |
\Upcloud\ApiClient\Model\AvailablePlanListResponse listPlans()
List available plans
Returns a list of available plans.
<?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\PlanApi();
try {
$result = $api_instance->listPlans();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling PlanApi->listPlans: ', $e->getMessage(), PHP_EOL;
}
?>
This endpoint does not need any parameter.
\Upcloud\ApiClient\Model\AvailablePlanListResponse
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]