Skip to main content

CloudBase Cloud API (CloudAPI) Reference

  • Data sources: API Overview · Dependent Product API Guide
  • All APIs are Tencent Cloud API 3.0 management-plane APIs, callable via official SDKs in any language; they can also be called through the CloudBase MCP callCloudApi tool or API Explorer
  • Last synced: 2026-09-13

API Overview​

CloudBase Access APIs​

API NameDescriptionRate Limit (req/s)
VerifyHTTPServiceRouteVerify HTTP service route20
DeleteHTTPServiceRouteDelete HTTP service route20
DescribeHTTPServiceRouteQuery HTTP service route info20
ModifyHTTPServiceRouteModify HTTP service route20
PurgeHTTPServiceCachePurge HTTP service domain cache20
DescribeHTTPServiceCachePurgeTaskQuery HTTP service cache purge task20

Environment APIs​

API NameDescriptionRate Limit (req/s)
DescribeEnvsList environments100
DestroyEnvDestroy environment20
CheckTcbServiceCheck if CloudBase service is enabled20
CreateBillDealCreate billing order20
DescribeBillingInfoGet billing information50
DescribeEnvAccountCircleQuery environment current billing cycle20
DescribeBaasPackageListGet plan packages20
DescribeStaticStoreQuery static hosting resource info20
CreateStaticStoreCreate static hosting resources200
DescribeSafeRuleQuery database security rules20
DescribeAuthDomainsList authorized domains20
CreateAuthDomainAdd authorized domain20
ModifyEnvUpdate environment info50
CreateHostingDomainCreate hosting domain20
DestroyStaticStoreDestroy static hosting resources20
DescribeEnvLimitQuery environment count limit20
DescribeHostingDomainTaskQuery static hosting domain task status20
DescribeQuotaDataQuery environment quota usage2000
BindStorageSourceBind external storage source to cloud storage20
ModifyStorageSourceUpdate cloud storage external data source20
UnbindStorageSourceUnbind external cloud storage source20
CreateEnvResourceCreate environment-related resources20
AllocateEnvAllocate environment from pool3000
ReleaseEnvRelease environment allocated from pool1000
AssumeRoleForAllocatedEnvRequest role temporary credentials for pooled environment1000
ModifyEnvExtraModify environment extra configuration20

User Permission APIs​

API NameDescriptionRate Limit (req/s)
DeleteUsersDelete CloudBase users20
CreateUserCreate CloudBase user20
DescribeUserListList CloudBase users20
ModifyUserUpdate CloudBase user20
DescribeResourcePermissionQuery resource permissions20
ModifyResourcePermissionModify resource permissions20

HTTP Gateway APIs​

API NameDescriptionRate Limit (req/s)
CreateHTTPServiceRouteCreate HTTP service route20

CloudBase Run APIs​

API NameDescriptionRate Limit (req/s)
DescribeCloudBaseRunServerVersionQuery CloudBase Run service version details1000
DescribeCloudBaseBuildServiceGet CloudBase Run code upload and download URLs20

Billing APIs​

API NameDescriptionRate Limit (req/s)
CreateEnvCreate environment20
ModifyEnvPlanUpdate CloudBase environment plan20
RenewEnvRenew CloudBase environment20
DescribeCreditsUsageGet credits usage20
DescribeCreditsUsageDetailGet credits usage details20
DescribeEnvPlansQuery environment plan info20

Other APIs​

API NameDescriptionRate Limit (req/s)
DescribeGatewayVersionsQuery gateway version info20
ModifyClsTopicModify log topic20
DescribeCurveDataQuery environment monitoring curves100
DeleteAuthDomainDelete authorized domain20
DescribeCloudBaseRunBuildLogQuery build logs20

Document Database APIs​

API NameDescriptionRate Limit (req/s)
ModifyDatabaseACLModify document database permissions50
DescribeDatabaseACLGet document database permissions50
CreateTableCreate document database collection20
DeleteTableDelete document database collection20
DescribeTableQuery document database collection info20
DescribeTablesQuery all document database collection info20
ListTablesList document database collections20
UpdateTableModify document database collection index info20
RunCommandsExecute document database commands1000
ModifySafeRuleSet database security rules-

Static Hosting APIs​

API NameDescriptionRate Limit (req/s)
DescribeCloudAppCosInfoGet CloudApp COS info20
CreateCloudAppCreate CloudApp20
DeleteCloudAppDelete CloudApp service20
DeleteCloudAppVersionDelete CloudApp service version20
DescribeCloudAppInfoQuery CloudApp service info20
DescribeCloudAppListList CloudApp services20
DescribeCloudAppVersionQuery CloudApp service version info20
DescribeCloudAppVersionListList CloudApp service versions20

AI Model APIs​

API NameDescriptionRate Limit (req/s)
CreateAIModelCreate AI model20
DeleteAIModelDelete AI model20
DescribeAIModelsList AI models20
DescribeManagedAIModelListList managed AI models20
UpdateAIModelUpdate AI model20

CloudBase APIs​

API NameDescriptionRate Limit (req/s)
UpdateFunctionCodeUpdate cloud function code20

Log Search APIs​

API NameDescriptionRate Limit (req/s)
BindClsBind custom CLS log topic20
SearchClsLogSearch CLS logs20

SQL Database APIs​

API NameDescriptionRate Limit (req/s)
CreateMySQLEnable MySQL20
DescribePGUserMigrationView single PG migration details for environment20
ListPGUserMigrationsList applied PG migrations for environment20
PreviewPGUserMigrationsPreview SQL migration execution plan (dry run)20
PushPGUserMigrationsBatch apply migrations20
RepairPGUserMigrationHistoryRepair migration history20
DescribeCreateMySQLResultQuery MySQL creation result20
DescribeMySQLClusterDetailQuery MySQL cluster info20
DescribeMySQLTaskStatusQuery MySQL destruction result20
DestroyMySQLDestroy MySQL20
RunSqlExecute MySQL statement100
ExecutePGSqlExecute SQL query on PostgreSQL20
ModifyPGInstanceSpecModify PG dedicated instance spec20

Login Configuration APIs​

API NameDescriptionRate Limit (req/s)
CreateCustomLoginKeyGenerate custom login key20
DescribeClientQuery app client details20
ModifyLoginConfigModify login policy20
DescribeLoginConfigGet login policy20
ModifyClientModify app client20
GetProvidersList third-party auth providers20
ModifyProviderModify third-party auth provider20
DeleteProviderDelete third-party auth provider20
AddProviderAdd third-party auth provider20
CreateApiKeyCreate CloudBase API Key20
DeleteApiKeyDelete CloudBase API Key20
DescribeApiKeyListList CloudBase API Keys20

Cloud Function APIs​

API NameDescriptionRate Limit (req/s)
CreateFunctionCreate cloud function20
DeleteFunctionDelete cloud function20
UpdateFunctionConfigurationUpdate function configuration20
ListFunctionsList functions20
GetFunctionGet cloud function details20
DownloadFunctionGet cloud function download address20

Note:

The rate limits above are per API + access region + sub-account. For more details on rate limiting, see: API Rate Limit Guide

Dependent Product API Guide​

Overview​

CloudBase (Tencent CloudBase) is a cloud-native integrated development environment and tool platform provided by Tencent Cloud. It offers developers a highly available, auto-scaling serverless backend service including compute, storage, and hosting capabilities. It can be used for cloud-integrated development of various client applications (Mini Programs, Official Accounts, Web apps, etc.), helping developers build and manage backend services and cloud resources in one place, avoiding the complexity of server setup and operations so they can focus on business logic.

The CloudBase APIs described in this section are all API 3.0/API 2.0 interfaces. You can call these APIs to operate CloudBase, for example to get user permissions or list CloudBase projects. For all supported APIs, see API Overview.

CloudBase Dependent Resource API Guide​

MySQL Database​

Note: When calling the following MySQL APIs, you need to pass the database cluster ID (ClusterId). You can call DescribeMySQLClusterDetail and use the DbClusterId field from the response as the value for ClusterId.

Account Management​
API NameDescription
CreateAccountsCreate user accounts
DeleteAccountsDelete user accounts
DescribeAccountAllGrantPrivilegesQuery all grantable privileges for an account
DescribeAccountPrivilegesQuery existing privileges for an account
DescribeAccountsList database accounts
ModifyAccountDescriptionModify database account description
ModifyAccountHostModify account host
ModifyAccountParamsModify account parameters
ModifyAccountPrivilegesModify account database/table privileges
ResetAccountPasswordReset database account password
Network Management​
API NameDescription
CloseWanDisable public network access
OpenWanEnable public network access
Serverless Cluster Management​
API NameDescription
ResumeServerlessResume serverless cluster
Backup and Rollback​
API NameDescription
CreateBackupCreate manual backup
DeleteBackupDelete manual backup
ModifyBackupConfigModify auto-backup configuration
DescribeBackupListList backup files
DescribeBackupDownloadUrlGet backup download URL
RollBackClusterCluster rollback
Task and Database Management​
API NameDescription
DescribeTasksList tasks
DescribeClusterDatabaseTablesGet table list
DescribeClusterDatabasesGet cluster database list

SCF Cloud Functions​

Additionally, when calling cloud function APIs you need to pass these two parameters:

  • Stamp: Fixed value "MINI_QCBASE"

  • Role: Cloud function execution role name.

    ⚠️ Security note: If you are a regular user (single-environment account), you can directly use the default role TCB_QcsRole with no extra configuration.

    If you are a platform customer managing multiple tenants via environment isolation, using TCB_QcsRole poses a cross-environment privilege escalation risk. It is recommended to create an independent custom CAM role for each environment:

    1. Go to the CAM Role Console to create a role;
    2. Select Tencent Cloud Product Service as the role entity;
    3. Check SCF (Cloud Functions) and CLS (Log Service) as the authorized services;
    4. Attach the policy QcloudCLSFullAccess;
    5. Note the role name (e.g. SCF_CLSFullAccess) and pass it as the Role parameter value.
API NameDescription
CreateFunctionCreate function
UpdateFunctionCodeUpdate function code
ListFunctionsList functions
InvokeInvoke function
GetFunctionGet function details
GetFunctionAddressGet function code download URL
CreateTriggerCreate function trigger
DeleteTriggerDelete trigger
CopyFunctionCopy function
UpdateFunctionConfigurationUpdate function configuration
DeleteFunctionDelete function

COS Object Operations​

Note: When calling file operation APIs, you need to obtain the corresponding storage information based on the upload target:

Node SDK API NameDescription
uploadFileUpload object
GetObjectDownload object
DeleteObjectDelete object
DeleteMultipleObjectsBatch delete objects
PutObjectCopyMove/copy object
SelectSelect object content

API Quick Start​

You can use the API Explorer tool to call APIs online. This example uses List Environments to demonstrate calling an API via API Explorer:

  1. Go to the API Explorer tool page. For more information about API Explorer, see Using API Explorer.
  2. Call DescribeEnvs to retrieve CloudBase environment information.