No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
PHP 7.4 and later. Should also work with PHP 8.0.
To install the bindings via Composer, add the following to composer.json
:
{
"repositories": [
{
"type": "vcs",
"url": "https://github.com/LTD-Beget/openapi-cloud-php.git"
}
],
"require": {
"LTD-Beget/openapi-cloud-php": "*@dev"
}
}
Then run composer install
Download the files and include autoload.php
:
<?php
require_once('/path/to/BegetOpenAPICloud/vendor/autoload.php');
Please follow the installation procedure and then run the following:
<?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\CloudServiceApi(
// 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
$cloud_change_configuration_request = new \OpenAPI\Client\Model\CloudChangeConfigurationRequest(); // \OpenAPI\Client\Model\CloudChangeConfigurationRequest
try {
$result = $apiInstance->cloudServiceChangeConfiguration($service_id, $cloud_change_configuration_request);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling CloudServiceApi->cloudServiceChangeConfiguration: ', $e->getMessage(), PHP_EOL;
}
All URIs are relative to https://api.beget.com
Class | Method | HTTP request | Description |
---|---|---|---|
CloudServiceApi | cloudServiceChangeConfiguration | PATCH /v1/cloud/{service_id}/configuration | |
CloudServiceApi | cloudServiceCreate | POST /v1/cloud | |
CloudServiceApi | cloudServiceGet | GET /v1/cloud/{service_id} | |
CloudServiceApi | cloudServiceGetConfigurationList | GET /v1/cloud/configuration | |
CloudServiceApi | cloudServiceGetList | GET /v1/cloud | |
CloudServiceApi | cloudServiceRemove | DELETE /v1/cloud/{service_id} | |
CloudServiceApi | cloudServiceUpdate | PATCH /v1/cloud/{service_id} | |
MysqlBackupServiceApi | mysqlBackupServiceGetList | GET /v1/cloud/mysql/backup | |
MysqlBackupServiceApi | mysqlBackupServiceGetOrders | GET /v1/cloud/mysql/backup/orders | |
MysqlBackupServiceApi | mysqlBackupServiceRestore | POST /v1/cloud/mysql/backup/{copy_id} | |
MysqlServiceApi | mysqlServiceChangeAccessPassword | PATCH /v1/cloud/mysql/{service_id}/db/{db_name}/access/{host} | |
MysqlServiceApi | mysqlServiceCreateAccess | POST /v1/cloud/mysql/{service_id}/db/{db_name}/access | |
MysqlServiceApi | mysqlServiceCreateDb | POST /v1/cloud/mysql/{service_id}/db | |
MysqlServiceApi | mysqlServiceGetConfig | GET /v1/cloud/mysql/{service_id}/config | |
MysqlServiceApi | mysqlServiceGetDbList | GET /v1/cloud/mysql/{service_id}/db | |
MysqlServiceApi | mysqlServiceRemoveAccess | DELETE /v1/cloud/mysql/{service_id}/db/{db_name}/access/{host} | |
MysqlServiceApi | mysqlServiceRemoveDb | DELETE /v1/cloud/mysql/{service_id}/db/{db_name} | |
MysqlServiceApi | mysqlServiceSetConfig | PUT /v1/cloud/mysql/{service_id}/config | |
MysqlServiceApi | mysqlServiceUpdateDb | PATCH /v1/cloud/mysql/{service_id}/db/{db_name} | |
MysqlStatisticServiceApi | mysqlStatisticServiceGetCpu | GET /v1/cloud/mysql/{service_id}/statistic/cpu | |
MysqlStatisticServiceApi | mysqlStatisticServiceGetCpuDetails | GET /v1/cloud/mysql/{service_id}/statistic/cpu-details | |
MysqlStatisticServiceApi | mysqlStatisticServiceGetDisk | GET /v1/cloud/mysql/{service_id}/statistic/disk | |
MysqlStatisticServiceApi | mysqlStatisticServiceGetDiskUsage | GET /v1/cloud/mysql/{service_id}/statistic/disk-usage | |
MysqlStatisticServiceApi | mysqlStatisticServiceGetLoadAverage | GET /v1/cloud/mysql/{service_id}/statistic/load-average | |
MysqlStatisticServiceApi | mysqlStatisticServiceGetMemory | GET /v1/cloud/mysql/{service_id}/statistic/memory | |
MysqlStatisticServiceApi | mysqlStatisticServiceGetNetwork | GET /v1/cloud/mysql/{service_id}/statistic/network | |
PostgresqlBackupServiceApi | postgresqlBackupServiceGetList | GET /v1/cloud/postgresql/backup | |
PostgresqlBackupServiceApi | postgresqlBackupServiceGetOrders | GET /v1/cloud/postgresql/backup/orders | |
PostgresqlBackupServiceApi | postgresqlBackupServiceRestore | POST /v1/cloud/postgresql/backup/{copy_id} | |
PostgresqlServiceApi | postgresqlServiceCreateDb | POST /v1/cloud/postgresql/{service_id}/db | |
PostgresqlServiceApi | postgresqlServiceCreateRole | POST /v1/cloud/postgresql/{service_id}/role | |
PostgresqlServiceApi | postgresqlServiceGetConfig | GET /v1/cloud/postgresql/{service_id}/config | |
PostgresqlServiceApi | postgresqlServiceGetDbList | GET /v1/cloud/postgresql/{service_id}/db | |
PostgresqlServiceApi | postgresqlServiceGetRemoteAccess | GET /v1/cloud/postgresql/{service_id}/remote-access | |
PostgresqlServiceApi | postgresqlServiceGetRoleList | GET /v1/cloud/postgresql/{service_id}/role | |
PostgresqlServiceApi | postgresqlServiceRemoveDb | DELETE /v1/cloud/postgresql/{service_id}/db/{db_name} | |
PostgresqlServiceApi | postgresqlServiceRemoveRole | DELETE /v1/cloud/postgresql/{service_id}/role/{role_name} | |
PostgresqlServiceApi | postgresqlServiceSetConfig | PUT /v1/cloud/postgresql/{service_id}/config | |
PostgresqlServiceApi | postgresqlServiceUpdateDb | PATCH /v1/cloud/postgresql/{service_id}/db/{db_name} | |
PostgresqlServiceApi | postgresqlServiceUpdateRemoteAccess | PUT /v1/cloud/postgresql/{service_id}/remote-access | |
PostgresqlServiceApi | postgresqlServiceUpdateRole | PATCH /v1/cloud/postgresql/{service_id}/role/{role_name} | |
PostgresqlStatisticServiceApi | postgresqlStatisticServiceGetCpu | GET /v1/cloud/postgresql/{service_id}/statistic/cpu | |
PostgresqlStatisticServiceApi | postgresqlStatisticServiceGetCpuDetails | GET /v1/cloud/postgresql/{service_id}/statistic/cpu-details | |
PostgresqlStatisticServiceApi | postgresqlStatisticServiceGetDisk | GET /v1/cloud/postgresql/{service_id}/statistic/disk | |
PostgresqlStatisticServiceApi | postgresqlStatisticServiceGetDiskUsage | GET /v1/cloud/postgresql/{service_id}/statistic/disk-usage | |
PostgresqlStatisticServiceApi | postgresqlStatisticServiceGetLoadAverage | GET /v1/cloud/postgresql/{service_id}/statistic/load-average | |
PostgresqlStatisticServiceApi | postgresqlStatisticServiceGetMemory | GET /v1/cloud/postgresql/{service_id}/statistic/memory | |
PostgresqlStatisticServiceApi | postgresqlStatisticServiceGetNetwork | GET /v1/cloud/postgresql/{service_id}/statistic/network | |
S3ServiceApi | s3ServiceChangeAccessKey | PATCH /v1/cloud/s3/{service_id}/access-key | |
S3ServiceApi | s3ServiceChangeCors | PATCH /v1/cloud/s3/{service_id}/cors | |
S3ServiceApi | s3ServiceChangeDomain | PATCH /v1/cloud/s3/{service_id}/domain | |
S3ServiceApi | s3ServiceChangePublic | PATCH /v1/cloud/s3/{service_id}/public | |
S3ServiceApi | s3ServiceGetPrefix | GET /v1/cloud/s3/prefix | |
S3ServiceApi | s3ServiceGetPrice | GET /v1/cloud/s3/price | |
S3ServiceApi | s3ServiceGetQuota | GET /v1/cloud/s3/quota |
- CloudChangeConfigurationRequest
- CloudChangeConfigurationResponse
- CloudChangeConfigurationResponseError
- CloudCreateRequest
- CloudCreateResponse
- CloudGetConfigurationListResponse
- CloudGetListResponse
- CloudGetResponse
- CloudRemoveResponse
- CloudService
- CloudServiceConfiguration
- CloudUpdateRequest
- CloudUpdateResponse
- CloudUpdateResponseError
- MysqlBackupGetListResponse
- MysqlBackupGetOrdersResponse
- MysqlBackupRestoreRequest
- MysqlBackupRestoreResponse
- MysqlBackupRestoreResponseError
- MysqlChangeAccessPasswordRequest
- MysqlChangeAccessPasswordResponse
- MysqlChangeAccessPasswordResponseError
- MysqlConfigInfo
- MysqlCreateAccessRequest
- MysqlCreateAccessResponse
- MysqlCreateAccessResponseError
- MysqlCreateDbRequest
- MysqlCreateDbResponse
- MysqlCreateDbResponseError
- MysqlCreateError
- MysqlCreateParams
- MysqlDb
- MysqlDbAccess
- MysqlGetConfigResponse
- MysqlGetDbListResponse
- MysqlMysql5
- MysqlMysql5Configuration
- MysqlMysql8
- MysqlMysql84
- MysqlMysql84Configuration
- MysqlMysql8Configuration
- MysqlRemoveAccessResponse
- MysqlRemoveAccessResponseError
- MysqlRemoveDbResponse
- MysqlRemoveDbResponseError
- MysqlSetConfigRequest
- MysqlSetConfigResponse
- MysqlSetConfigResponseError
- MysqlStatisticGetCpuDetailsResponse
- MysqlStatisticGetCpuResponse
- MysqlStatisticGetDiskResponse
- MysqlStatisticGetDiskUsageResponse
- MysqlStatisticGetLoadAverageResponse
- MysqlStatisticGetMemoryResponse
- MysqlStatisticGetNetworkResponse
- MysqlUpdateDbRequest
- MysqlUpdateDbResponse
- MysqlUpdateDbResponseError
- PostgresqlBackupGetListResponse
- PostgresqlBackupGetOrdersResponse
- PostgresqlBackupRestoreRequest
- PostgresqlBackupRestoreResponse
- PostgresqlBackupRestoreResponseError
- PostgresqlPgConfigInfo
- PostgresqlPgCreateDbRequest
- PostgresqlPgCreateDbResponse
- PostgresqlPgCreateDbResponseError
- PostgresqlPgCreateError
- PostgresqlPgCreateParams
- PostgresqlPgCreateRoleRequest
- PostgresqlPgCreateRoleResponse
- PostgresqlPgCreateRoleResponseError
- PostgresqlPgDb
- PostgresqlPgGetConfigResponse
- PostgresqlPgGetDbListResponse
- PostgresqlPgGetRemoteAccessResponse
- PostgresqlPgGetRoleListResponse
- PostgresqlPgRemoteAccessState
- PostgresqlPgRemoveDbResponse
- PostgresqlPgRemoveDbResponseError
- PostgresqlPgRemoveRoleResponse
- PostgresqlPgRemoveRoleResponseError
- PostgresqlPgSetConfigRequest
- PostgresqlPgSetConfigResponse
- PostgresqlPgSetConfigResponseError
- PostgresqlPgUpdateDbRequest
- PostgresqlPgUpdateDbResponse
- PostgresqlPgUpdateDbResponseError
- PostgresqlPgUpdateRemoteAccessRequest
- PostgresqlPgUpdateRemoteAccessResponse
- PostgresqlPgUpdateRemoteAccessResponseError
- PostgresqlPgUpdateRoleRequest
- PostgresqlPgUpdateRoleResponse
- PostgresqlPgUpdateRoleResponseError
- PostgresqlPostgresql14
- PostgresqlPostgresql14Configuration
- PostgresqlPostgresql15
- PostgresqlPostgresql15Configuration
- PostgresqlPostgresql164
- PostgresqlPostgresql164Configuration
- PostgresqlRole
- PostgresqlStatisticGetCpuDetailsResponse
- PostgresqlStatisticGetCpuResponse
- PostgresqlStatisticGetDiskResponse
- PostgresqlStatisticGetDiskUsageResponse
- PostgresqlStatisticGetLoadAverageResponse
- PostgresqlStatisticGetMemoryResponse
- PostgresqlStatisticGetNetworkResponse
- S3ChangeAccessKeyRequest
- S3ChangeAccessKeyResponse
- S3ChangeAccessKeyResponseError
- S3ChangeCorsRequest
- S3ChangeCorsResponse
- S3ChangeCorsResponseError
- S3ChangeDomainRequest
- S3ChangeDomainResponse
- S3ChangeDomainResponseError
- S3ChangePublicRequest
- S3ChangePublicResponse
- S3ChangePublicResponseError
- S3Cors
- S3GetPrefixResponse
- S3GetPriceResponse
- S3GetQuotaResponse
- S3S3
- S3S3Configuration
- S3S3CreateError
- S3S3CreateParams
- StructuresAddressInfo
- StructuresAddressInfoPrivateAddress
- StructuresAddressInfoPublicAddress
- StructuresMysqlCopy
- StructuresMysqlRestoreOrder
- StructuresParamConfig
- StructuresParamConfigEnumValue
- StructuresParamConfigSetValue
- StructuresPostgresqlCopy
- StructuresPostgresqlRestoreOrder
- StructuresStatisticSeriesData
- Type: Bearer authentication (JWT)
To run the tests, use:
composer install
vendor/bin/phpunit
This PHP package is automatically generated by the OpenAPI Generator project:
- API version:
v1.4.0
- Package version:
v1.4.0
- Package version:
- Build package:
org.openapitools.codegen.languages.PhpClientCodegen