All URIs are relative to https://api.beget.com, except if the operation defines another base path.
| Method | HTTP request | Description |
|---|---|---|
| networkServiceCreatePrivateNetwork() | POST /v1/vps/private-network | |
| networkServiceGetNetworkInfo() | GET /v1/vps/network | |
| networkServiceOrderIpAddress() | POST /v1/vps/network | |
| networkServiceRemoveIpAddress() | DELETE /v1/vps/network/{ip_address} | |
| networkServiceRemovePrivateNetwork() | DELETE /v1/vps/private-network/{network_id} | |
| networkServiceSuggestPrivateAddress() | POST /v1/vps/private-network/{network_id}/suggested-address |
networkServiceCreatePrivateNetwork($network_create_private_network_request): \OpenAPI\Client\Model\NetworkCreatePrivateNetworkResponse<?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\NetworkServiceApi(
// 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
);
$network_create_private_network_request = new \OpenAPI\Client\Model\NetworkCreatePrivateNetworkRequest(); // \OpenAPI\Client\Model\NetworkCreatePrivateNetworkRequest
try {
$result = $apiInstance->networkServiceCreatePrivateNetwork($network_create_private_network_request);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling NetworkServiceApi->networkServiceCreatePrivateNetwork: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| network_create_private_network_request | \OpenAPI\Client\Model\NetworkCreatePrivateNetworkRequest |
\OpenAPI\Client\Model\NetworkCreatePrivateNetworkResponse
- Content-Type:
application/json - Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
networkServiceGetNetworkInfo($filter): \OpenAPI\Client\Model\NetworkGetNetworkInfoResponse<?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\NetworkServiceApi(
// 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
);
$filter = 'filter_example'; // string
try {
$result = $apiInstance->networkServiceGetNetworkInfo($filter);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling NetworkServiceApi->networkServiceGetNetworkInfo: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| filter | string | [optional] |
\OpenAPI\Client\Model\NetworkGetNetworkInfoResponse
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
networkServiceOrderIpAddress($network_order_ip_address_request): \OpenAPI\Client\Model\NetworkOrderIpAddressResponse<?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\NetworkServiceApi(
// 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
);
$network_order_ip_address_request = new \OpenAPI\Client\Model\NetworkOrderIpAddressRequest(); // \OpenAPI\Client\Model\NetworkOrderIpAddressRequest
try {
$result = $apiInstance->networkServiceOrderIpAddress($network_order_ip_address_request);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling NetworkServiceApi->networkServiceOrderIpAddress: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| network_order_ip_address_request | \OpenAPI\Client\Model\NetworkOrderIpAddressRequest |
\OpenAPI\Client\Model\NetworkOrderIpAddressResponse
- Content-Type:
application/json - Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
networkServiceRemoveIpAddress($ip_address): \OpenAPI\Client\Model\NetworkRemoveIpAddressResponse<?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\NetworkServiceApi(
// 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
);
$ip_address = 'ip_address_example'; // string
try {
$result = $apiInstance->networkServiceRemoveIpAddress($ip_address);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling NetworkServiceApi->networkServiceRemoveIpAddress: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| ip_address | string |
\OpenAPI\Client\Model\NetworkRemoveIpAddressResponse
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
networkServiceRemovePrivateNetwork($network_id): \OpenAPI\Client\Model\NetworkRemovePrivateNetworkResponse<?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\NetworkServiceApi(
// 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
);
$network_id = 'network_id_example'; // string
try {
$result = $apiInstance->networkServiceRemovePrivateNetwork($network_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling NetworkServiceApi->networkServiceRemovePrivateNetwork: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| network_id | string |
\OpenAPI\Client\Model\NetworkRemovePrivateNetworkResponse
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
networkServiceSuggestPrivateAddress($network_id, $network_suggest_private_address_request): \OpenAPI\Client\Model\NetworkSuggestPrivateAddressResponse<?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\NetworkServiceApi(
// 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
);
$network_id = 'network_id_example'; // string
$network_suggest_private_address_request = new \OpenAPI\Client\Model\NetworkSuggestPrivateAddressRequest(); // \OpenAPI\Client\Model\NetworkSuggestPrivateAddressRequest
try {
$result = $apiInstance->networkServiceSuggestPrivateAddress($network_id, $network_suggest_private_address_request);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling NetworkServiceApi->networkServiceSuggestPrivateAddress: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| network_id | string | ||
| network_suggest_private_address_request | \OpenAPI\Client\Model\NetworkSuggestPrivateAddressRequest |
\OpenAPI\Client\Model\NetworkSuggestPrivateAddressResponse
- Content-Type:
application/json - Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]