Skip to content

Latest commit

 

History

History
188 lines (125 loc) · 5.43 KB

File metadata and controls

188 lines (125 loc) · 5.43 KB

OpenAPI\Client\MysqlBackupServiceApi

All URIs are relative to https://api.beget.com, except if the operation defines another base path.

Method HTTP request Description
mysqlBackupServiceGetList() GET /v1/cloud/mysql/backup
mysqlBackupServiceGetOrders() GET /v1/cloud/mysql/backup/orders
mysqlBackupServiceRestore() POST /v1/cloud/mysql/backup/{copy_id}

mysqlBackupServiceGetList()

mysqlBackupServiceGetList($filter): \OpenAPI\Client\Model\MysqlBackupGetListResponse

Example

<?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\MysqlBackupServiceApi(
    // 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->mysqlBackupServiceGetList($filter);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling MysqlBackupServiceApi->mysqlBackupServiceGetList: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
filter string [optional]

Return type

\OpenAPI\Client\Model\MysqlBackupGetListResponse

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

mysqlBackupServiceGetOrders()

mysqlBackupServiceGetOrders($limit, $offset): \OpenAPI\Client\Model\MysqlBackupGetOrdersResponse

Example

<?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\MysqlBackupServiceApi(
    // 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->mysqlBackupServiceGetOrders($limit, $offset);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling MysqlBackupServiceApi->mysqlBackupServiceGetOrders: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
limit int [optional]
offset int [optional]

Return type

\OpenAPI\Client\Model\MysqlBackupGetOrdersResponse

Authorization

bearerAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

mysqlBackupServiceRestore()

mysqlBackupServiceRestore($copy_id, $mysql_backup_restore_request): \OpenAPI\Client\Model\MysqlBackupRestoreResponse

Example

<?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\MysqlBackupServiceApi(
    // 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
$mysql_backup_restore_request = new \OpenAPI\Client\Model\MysqlBackupRestoreRequest(); // \OpenAPI\Client\Model\MysqlBackupRestoreRequest

try {
    $result = $apiInstance->mysqlBackupServiceRestore($copy_id, $mysql_backup_restore_request);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling MysqlBackupServiceApi->mysqlBackupServiceRestore: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
copy_id string
mysql_backup_restore_request \OpenAPI\Client\Model\MysqlBackupRestoreRequest

Return type

\OpenAPI\Client\Model\MysqlBackupRestoreResponse

Authorization

bearerAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]