All URIs are relative to https://api.beget.com, except if the operation defines another base path.
Method | HTTP request | Description |
---|---|---|
backupServiceGetAvailableCopies() | GET /v1/vps/backup | |
backupServiceGetBackupFileList() | GET /v1/vps/{id}/backup/{copy_id} | |
backupServiceGetOrders() | GET /v1/vps/backup/orders | |
backupServiceRestoreFile() | POST /v1/vps/{id}/backup/{copy_id}/file | |
backupServiceRestoreServer() | POST /v1/vps/{id}/backup/{copy_id}/server |
backupServiceGetAvailableCopies(): \OpenAPI\Client\Model\BackupGetAvailableCopiesResponse
<?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\BackupServiceApi(
// 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->backupServiceGetAvailableCopies();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling BackupServiceApi->backupServiceGetAvailableCopies: ', $e->getMessage(), PHP_EOL;
}
This endpoint does not need any parameter.
\OpenAPI\Client\Model\BackupGetAvailableCopiesResponse
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
backupServiceGetBackupFileList($id, $copy_id, $path): \OpenAPI\Client\Model\BackupGetBackupFileListResponse
<?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\BackupServiceApi(
// 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
$copy_id = 'copy_id_example'; // string
$path = 'path_example'; // string
try {
$result = $apiInstance->backupServiceGetBackupFileList($id, $copy_id, $path);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling BackupServiceApi->backupServiceGetBackupFileList: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
id | string | ||
copy_id | string | ||
path | string | [optional] |
\OpenAPI\Client\Model\BackupGetBackupFileListResponse
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
backupServiceGetOrders($limit, $offset): \OpenAPI\Client\Model\BackupGetOrdersResponse
<?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\BackupServiceApi(
// 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
);
$limit = 56; // int
$offset = 56; // int
try {
$result = $apiInstance->backupServiceGetOrders($limit, $offset);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling BackupServiceApi->backupServiceGetOrders: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
limit | int | [optional] | |
offset | int | [optional] |
\OpenAPI\Client\Model\BackupGetOrdersResponse
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
backupServiceRestoreFile($id, $copy_id, $backup_restore_file_request): \OpenAPI\Client\Model\BackupRestoreFileResponse
<?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\BackupServiceApi(
// 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
$copy_id = 'copy_id_example'; // string
$backup_restore_file_request = new \OpenAPI\Client\Model\BackupRestoreFileRequest(); // \OpenAPI\Client\Model\BackupRestoreFileRequest
try {
$result = $apiInstance->backupServiceRestoreFile($id, $copy_id, $backup_restore_file_request);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling BackupServiceApi->backupServiceRestoreFile: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
id | string | ||
copy_id | string | ||
backup_restore_file_request | \OpenAPI\Client\Model\BackupRestoreFileRequest |
\OpenAPI\Client\Model\BackupRestoreFileResponse
- Content-Type:
application/json
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
backupServiceRestoreServer($id, $copy_id, $backup_restore_server_request): \OpenAPI\Client\Model\BackupRestoreServerResponse
<?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\BackupServiceApi(
// 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
$copy_id = 'copy_id_example'; // string
$backup_restore_server_request = new \OpenAPI\Client\Model\BackupRestoreServerRequest(); // \OpenAPI\Client\Model\BackupRestoreServerRequest
try {
$result = $apiInstance->backupServiceRestoreServer($id, $copy_id, $backup_restore_server_request);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling BackupServiceApi->backupServiceRestoreServer: ', $e->getMessage(), PHP_EOL;
}
Name | Type | Description | Notes |
---|---|---|---|
id | string | ||
copy_id | string | ||
backup_restore_server_request | \OpenAPI\Client\Model\BackupRestoreServerRequest |
\OpenAPI\Client\Model\BackupRestoreServerResponse
- Content-Type:
application/json
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]