All URIs are relative to https://api.beget.com, except if the operation defines another base path.
| Method | HTTP request | Description |
|---|---|---|
| mysqlServiceChangeAccessPassword() | PATCH /v1/cloud/mysql/{service_id}/db/{db_name}/access/{host} | |
| mysqlServiceCreateAccess() | POST /v1/cloud/mysql/{service_id}/db/{db_name}/access | |
| mysqlServiceCreateDb() | POST /v1/cloud/mysql/{service_id}/db | |
| mysqlServiceGetConfig() | GET /v1/cloud/mysql/{service_id}/config | |
| mysqlServiceGetDbList() | GET /v1/cloud/mysql/{service_id}/db | |
| mysqlServiceRemoveAccess() | DELETE /v1/cloud/mysql/{service_id}/db/{db_name}/access/{host} | |
| mysqlServiceRemoveDb() | DELETE /v1/cloud/mysql/{service_id}/db/{db_name} | |
| mysqlServiceSetConfig() | PUT /v1/cloud/mysql/{service_id}/config | |
| mysqlServiceUpdateDb() | PATCH /v1/cloud/mysql/{service_id}/db/{db_name} |
mysqlServiceChangeAccessPassword($service_id, $db_name, $host, $mysql_change_access_password_request): \OpenAPI\Client\Model\MysqlChangeAccessPasswordResponse<?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\MysqlServiceApi(
// 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
);
$service_id = 'service_id_example'; // string
$db_name = 'db_name_example'; // string
$host = 'host_example'; // string
$mysql_change_access_password_request = new \OpenAPI\Client\Model\MysqlChangeAccessPasswordRequest(); // \OpenAPI\Client\Model\MysqlChangeAccessPasswordRequest
try {
$result = $apiInstance->mysqlServiceChangeAccessPassword($service_id, $db_name, $host, $mysql_change_access_password_request);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling MysqlServiceApi->mysqlServiceChangeAccessPassword: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| service_id | string | ||
| db_name | string | ||
| host | string | ||
| mysql_change_access_password_request | \OpenAPI\Client\Model\MysqlChangeAccessPasswordRequest |
\OpenAPI\Client\Model\MysqlChangeAccessPasswordResponse
- Content-Type:
application/json - Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
mysqlServiceCreateAccess($service_id, $db_name, $mysql_create_access_request): \OpenAPI\Client\Model\MysqlCreateAccessResponse<?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\MysqlServiceApi(
// 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
);
$service_id = 'service_id_example'; // string
$db_name = 'db_name_example'; // string
$mysql_create_access_request = new \OpenAPI\Client\Model\MysqlCreateAccessRequest(); // \OpenAPI\Client\Model\MysqlCreateAccessRequest
try {
$result = $apiInstance->mysqlServiceCreateAccess($service_id, $db_name, $mysql_create_access_request);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling MysqlServiceApi->mysqlServiceCreateAccess: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| service_id | string | ||
| db_name | string | ||
| mysql_create_access_request | \OpenAPI\Client\Model\MysqlCreateAccessRequest |
\OpenAPI\Client\Model\MysqlCreateAccessResponse
- Content-Type:
application/json - Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
mysqlServiceCreateDb($service_id, $mysql_create_db_request): \OpenAPI\Client\Model\MysqlCreateDbResponse<?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\MysqlServiceApi(
// 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
);
$service_id = 'service_id_example'; // string
$mysql_create_db_request = new \OpenAPI\Client\Model\MysqlCreateDbRequest(); // \OpenAPI\Client\Model\MysqlCreateDbRequest
try {
$result = $apiInstance->mysqlServiceCreateDb($service_id, $mysql_create_db_request);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling MysqlServiceApi->mysqlServiceCreateDb: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| service_id | string | ||
| mysql_create_db_request | \OpenAPI\Client\Model\MysqlCreateDbRequest |
\OpenAPI\Client\Model\MysqlCreateDbResponse
- Content-Type:
application/json - Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
mysqlServiceGetConfig($service_id): \OpenAPI\Client\Model\MysqlGetConfigResponse<?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\MysqlServiceApi(
// 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
);
$service_id = 'service_id_example'; // string
try {
$result = $apiInstance->mysqlServiceGetConfig($service_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling MysqlServiceApi->mysqlServiceGetConfig: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| service_id | string |
\OpenAPI\Client\Model\MysqlGetConfigResponse
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
mysqlServiceGetDbList($service_id): \OpenAPI\Client\Model\MysqlGetDbListResponse<?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\MysqlServiceApi(
// 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
);
$service_id = 'service_id_example'; // string
try {
$result = $apiInstance->mysqlServiceGetDbList($service_id);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling MysqlServiceApi->mysqlServiceGetDbList: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| service_id | string |
\OpenAPI\Client\Model\MysqlGetDbListResponse
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
mysqlServiceRemoveAccess($service_id, $db_name, $host): \OpenAPI\Client\Model\MysqlRemoveAccessResponse<?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\MysqlServiceApi(
// 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
);
$service_id = 'service_id_example'; // string
$db_name = 'db_name_example'; // string
$host = 'host_example'; // string
try {
$result = $apiInstance->mysqlServiceRemoveAccess($service_id, $db_name, $host);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling MysqlServiceApi->mysqlServiceRemoveAccess: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| service_id | string | ||
| db_name | string | ||
| host | string |
\OpenAPI\Client\Model\MysqlRemoveAccessResponse
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
mysqlServiceRemoveDb($service_id, $db_name): \OpenAPI\Client\Model\MysqlRemoveDbResponse<?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\MysqlServiceApi(
// 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
);
$service_id = 'service_id_example'; // string
$db_name = 'db_name_example'; // string
try {
$result = $apiInstance->mysqlServiceRemoveDb($service_id, $db_name);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling MysqlServiceApi->mysqlServiceRemoveDb: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| service_id | string | ||
| db_name | string |
\OpenAPI\Client\Model\MysqlRemoveDbResponse
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
mysqlServiceSetConfig($service_id, $mysql_set_config_request): \OpenAPI\Client\Model\MysqlSetConfigResponse<?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\MysqlServiceApi(
// 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
);
$service_id = 'service_id_example'; // string
$mysql_set_config_request = new \OpenAPI\Client\Model\MysqlSetConfigRequest(); // \OpenAPI\Client\Model\MysqlSetConfigRequest
try {
$result = $apiInstance->mysqlServiceSetConfig($service_id, $mysql_set_config_request);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling MysqlServiceApi->mysqlServiceSetConfig: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| service_id | string | ||
| mysql_set_config_request | \OpenAPI\Client\Model\MysqlSetConfigRequest |
\OpenAPI\Client\Model\MysqlSetConfigResponse
- Content-Type:
application/json - Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
mysqlServiceUpdateDb($service_id, $db_name, $mysql_update_db_request): \OpenAPI\Client\Model\MysqlUpdateDbResponse<?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\MysqlServiceApi(
// 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
);
$service_id = 'service_id_example'; // string
$db_name = 'db_name_example'; // string
$mysql_update_db_request = new \OpenAPI\Client\Model\MysqlUpdateDbRequest(); // \OpenAPI\Client\Model\MysqlUpdateDbRequest
try {
$result = $apiInstance->mysqlServiceUpdateDb($service_id, $db_name, $mysql_update_db_request);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling MysqlServiceApi->mysqlServiceUpdateDb: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| service_id | string | ||
| db_name | string | ||
| mysql_update_db_request | \OpenAPI\Client\Model\MysqlUpdateDbRequest |
\OpenAPI\Client\Model\MysqlUpdateDbResponse
- Content-Type:
application/json - Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]