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 |
\tpn\Model\InlineResponse200 inventoryDatacentres()
Get list of all the data centers
<?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;
}
?>
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json, application/xml,
[Back to top] [Back to API list] [Back to Model list] [Back to README]