Skip to content

Latest commit

 

History

History
56 lines (38 loc) · 1.59 KB

DatacentresApi.md

File metadata and controls

56 lines (38 loc) · 1.59 KB

tpn\DatacentresApi

All URIs are relative to https://penapi.pacnetconnect.com

Method HTTP request Description
inventoryDatacentres GET /1.0.0/inventory/datacenters Get list of all the data centers

inventoryDatacentres

\tpn\Model\InlineResponse200 inventoryDatacentres()

Get list of all the data centers

Example

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

// Configure OAuth2 access token for authorization: oAuth2
$config = tpn\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');

$apiInstance = new tpn\Api\DatacentresApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client(),
    $config
);

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

Parameters

This endpoint does not need any parameter.

Return type

\tpn\Model\InlineResponse200

Authorization

oAuth2

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json, application/xml,

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