All URIs are relative to https://api.beget.com, except if the operation defines another base path.
| Method | HTTP request | Description |
|---|---|---|
| postgresqlBackupServiceGetList() | GET /v1/cloud/postgresql/backup | |
| postgresqlBackupServiceGetOrders() | GET /v1/cloud/postgresql/backup/orders | |
| postgresqlBackupServiceRestore() | POST /v1/cloud/postgresql/backup/{copy_id} |
postgresqlBackupServiceGetList($filter): \OpenAPI\Client\Model\PostgresqlBackupGetListResponse<?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\PostgresqlBackupServiceApi(
// 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->postgresqlBackupServiceGetList($filter);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling PostgresqlBackupServiceApi->postgresqlBackupServiceGetList: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| filter | string | [optional] |
\OpenAPI\Client\Model\PostgresqlBackupGetListResponse
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
postgresqlBackupServiceGetOrders($limit, $offset): \OpenAPI\Client\Model\PostgresqlBackupGetOrdersResponse<?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\PostgresqlBackupServiceApi(
// 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->postgresqlBackupServiceGetOrders($limit, $offset);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling PostgresqlBackupServiceApi->postgresqlBackupServiceGetOrders: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| limit | int | [optional] | |
| offset | int | [optional] |
\OpenAPI\Client\Model\PostgresqlBackupGetOrdersResponse
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
postgresqlBackupServiceRestore($copy_id, $postgresql_backup_restore_request): \OpenAPI\Client\Model\PostgresqlBackupRestoreResponse<?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\PostgresqlBackupServiceApi(
// 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
);
$copy_id = 'copy_id_example'; // string
$postgresql_backup_restore_request = new \OpenAPI\Client\Model\PostgresqlBackupRestoreRequest(); // \OpenAPI\Client\Model\PostgresqlBackupRestoreRequest
try {
$result = $apiInstance->postgresqlBackupServiceRestore($copy_id, $postgresql_backup_restore_request);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling PostgresqlBackupServiceApi->postgresqlBackupServiceRestore: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| copy_id | string | ||
| postgresql_backup_restore_request | \OpenAPI\Client\Model\PostgresqlBackupRestoreRequest |
\OpenAPI\Client\Model\PostgresqlBackupRestoreResponse
- Content-Type:
application/json - Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]