All URIs are relative to https://api.beget.com, except if the operation defines another base path.
| Method | HTTP request | Description |
|---|---|---|
| cdnStatisticServiceGetNetwork() | GET /v1/cloud/cdn/{service_id}/statistic/network | |
| cdnStatisticServiceGetRequest() | GET /v1/cloud/cdn/{service_id}/statistic/count-request | |
| cdnStatisticServiceGetTraffic() | GET /v1/cloud/cdn/{service_id}/statistic/traffic-usage |
cdnStatisticServiceGetNetwork($service_id, $period): \OpenAPI\Client\Model\CdnStatisticGetNetworkResponse<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer (JWT) authorization: bearerAuth
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new OpenAPI\Client\Api\CdnStatisticServiceApi(
// 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
);
$service_id = 'service_id_example'; // string
$period = 'period_example'; // string
try {
$result = $apiInstance->cdnStatisticServiceGetNetwork($service_id, $period);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling CdnStatisticServiceApi->cdnStatisticServiceGetNetwork: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| service_id | string | ||
| period | string | [optional] |
\OpenAPI\Client\Model\CdnStatisticGetNetworkResponse
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
cdnStatisticServiceGetRequest($service_id, $period): \OpenAPI\Client\Model\CdnStatisticGetRequestResponse<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer (JWT) authorization: bearerAuth
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new OpenAPI\Client\Api\CdnStatisticServiceApi(
// 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
);
$service_id = 'service_id_example'; // string
$period = 'period_example'; // string
try {
$result = $apiInstance->cdnStatisticServiceGetRequest($service_id, $period);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling CdnStatisticServiceApi->cdnStatisticServiceGetRequest: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| service_id | string | ||
| period | string | [optional] |
\OpenAPI\Client\Model\CdnStatisticGetRequestResponse
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
cdnStatisticServiceGetTraffic($service_id, $period): \OpenAPI\Client\Model\CdnStatisticGetTrafficResponse<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure Bearer (JWT) authorization: bearerAuth
$config = OpenAPI\Client\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');
$apiInstance = new OpenAPI\Client\Api\CdnStatisticServiceApi(
// 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
);
$service_id = 'service_id_example'; // string
$period = 'period_example'; // string
try {
$result = $apiInstance->cdnStatisticServiceGetTraffic($service_id, $period);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling CdnStatisticServiceApi->cdnStatisticServiceGetTraffic: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| service_id | string | ||
| period | string | [optional] |
\OpenAPI\Client\Model\CdnStatisticGetTrafficResponse
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]