All URIs are relative to https://api.beget.com, except if the operation defines another base path.
| Method | HTTP request | Description |
|---|---|---|
| snapshotServiceCreate() | POST /v1/vps/snapshot | |
| snapshotServiceCreateCalculator() | POST /v1/vps/snapshot/calculator | |
| snapshotServiceEdit() | PUT /v1/vps/snapshot/{id} | |
| snapshotServiceGetAll() | GET /v1/vps/snapshot | |
| snapshotServiceGetAllRestores() | GET /v1/vps/snapshot/restore | |
| snapshotServiceRemove() | DELETE /v1/vps/snapshot/{id} | |
| snapshotServiceRestore() | POST /v1/vps/snapshot/{id}/restore |
snapshotServiceCreate($snapshot_create_request): \OpenAPI\Client\Model\SnapshotCreateResponse<?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\SnapshotServiceApi(
// 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
);
$snapshot_create_request = new \OpenAPI\Client\Model\SnapshotCreateRequest(); // \OpenAPI\Client\Model\SnapshotCreateRequest
try {
$result = $apiInstance->snapshotServiceCreate($snapshot_create_request);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling SnapshotServiceApi->snapshotServiceCreate: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| snapshot_create_request | \OpenAPI\Client\Model\SnapshotCreateRequest |
\OpenAPI\Client\Model\SnapshotCreateResponse
- Content-Type:
application/json - Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
snapshotServiceCreateCalculator($snapshot_create_calculator_request): \OpenAPI\Client\Model\SnapshotCreateCalculatorResponse<?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\SnapshotServiceApi(
// 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
);
$snapshot_create_calculator_request = new \OpenAPI\Client\Model\SnapshotCreateCalculatorRequest(); // \OpenAPI\Client\Model\SnapshotCreateCalculatorRequest
try {
$result = $apiInstance->snapshotServiceCreateCalculator($snapshot_create_calculator_request);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling SnapshotServiceApi->snapshotServiceCreateCalculator: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| snapshot_create_calculator_request | \OpenAPI\Client\Model\SnapshotCreateCalculatorRequest |
\OpenAPI\Client\Model\SnapshotCreateCalculatorResponse
- Content-Type:
application/json - Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
snapshotServiceEdit($id, $snapshot_edit_request): \OpenAPI\Client\Model\SnapshotEditResponse<?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\SnapshotServiceApi(
// 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
);
$id = 'id_example'; // string
$snapshot_edit_request = new \OpenAPI\Client\Model\SnapshotEditRequest(); // \OpenAPI\Client\Model\SnapshotEditRequest
try {
$result = $apiInstance->snapshotServiceEdit($id, $snapshot_edit_request);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling SnapshotServiceApi->snapshotServiceEdit: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | string | ||
| snapshot_edit_request | \OpenAPI\Client\Model\SnapshotEditRequest |
\OpenAPI\Client\Model\SnapshotEditResponse
- Content-Type:
application/json - Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
snapshotServiceGetAll(): \OpenAPI\Client\Model\SnapshotGetAllResponse<?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\SnapshotServiceApi(
// 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->snapshotServiceGetAll();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling SnapshotServiceApi->snapshotServiceGetAll: ', $e->getMessage(), PHP_EOL;
}This endpoint does not need any parameter.
\OpenAPI\Client\Model\SnapshotGetAllResponse
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
snapshotServiceGetAllRestores($id): \OpenAPI\Client\Model\SnapshotGetAllRestoresResponse<?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\SnapshotServiceApi(
// 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
);
$id = 'id_example'; // string
try {
$result = $apiInstance->snapshotServiceGetAllRestores($id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling SnapshotServiceApi->snapshotServiceGetAllRestores: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | string | [optional] |
\OpenAPI\Client\Model\SnapshotGetAllRestoresResponse
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
snapshotServiceRemove($id): \OpenAPI\Client\Model\SnapshotRemoveResponse<?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\SnapshotServiceApi(
// 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
);
$id = 'id_example'; // string
try {
$result = $apiInstance->snapshotServiceRemove($id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling SnapshotServiceApi->snapshotServiceRemove: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | string |
\OpenAPI\Client\Model\SnapshotRemoveResponse
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
snapshotServiceRestore($id, $snapshot_restore_request): \OpenAPI\Client\Model\SnapshotRestoreResponse<?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\SnapshotServiceApi(
// 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
);
$id = 'id_example'; // string
$snapshot_restore_request = new \OpenAPI\Client\Model\SnapshotRestoreRequest(); // \OpenAPI\Client\Model\SnapshotRestoreRequest
try {
$result = $apiInstance->snapshotServiceRestore($id, $snapshot_restore_request);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling SnapshotServiceApi->snapshotServiceRestore: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| id | string | ||
| snapshot_restore_request | \OpenAPI\Client\Model\SnapshotRestoreRequest |
\OpenAPI\Client\Model\SnapshotRestoreResponse
- Content-Type:
application/json - Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]