Skip to content

Latest commit

 

History

History
55 lines (35 loc) · 1.5 KB

PlanApi.md

File metadata and controls

55 lines (35 loc) · 1.5 KB

Upcloud\ApiClient\PlanApi

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

Method HTTP request Description
listPlans GET /plan List available plans

listPlans

\Upcloud\ApiClient\Model\AvailablePlanListResponse listPlans()

List available plans

Returns a list of available plans.

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\PlanApi();

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

Parameters

This endpoint does not need any parameter.

Return type

\Upcloud\ApiClient\Model\AvailablePlanListResponse

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]