Skip to main content
Version: 1.0.0

Data Model OpenAPI

Feature Introduction

This document provides the APIs for all operations of the data model, along with parameter references for each API.

Access Guide

To call the following interfaces, you need to pass an AccessToken in the format Authorization: Bearer <token>. For token acquisition methods, refer to: https://docs.cloudbase.net/http-api/basic/access-token

HTTP Status Code

Only 2xx status codes will be returned. Business errors for the data model API are indicated in the response body under 2xx status codes and should be handled accordingly.

Error Codes

The following lists the error codes specific to this series of APIs. For the complete list, refer to: https://docs.cloudbase.net/error-code/service

Error CodeMeaning
AUTH_FAILUREPermission Denied
FAILED_OPERATIONOperation Failed
OPERATION_TIMEOUTOperation Timeout
INVALID_PARAMETERParameter Error
INVALID_PARAMETER_VALUEParameter Value Error
MISSING_PARAMETERMissing Parameter Error
LIMIT_EXCEEDEDQuota Limit Exceeded
RESOURCE_NOT_FOUNDResource Not Found
RESOURCE_UNAVAILABLEResource Unavailable
RESOURCE_INSUFFICIENTResource Insufficient
RESOURCE_IN_USEResource Occupied
RESOURCE_SOLD_OUTResource Sold Out
OPERATION_DENIEDOperation Denied
UNAUTHORIZED_OPERATIONUnauthorized Operation
UNKNOWN_PARAMETERUnknown Parameter Error
UNSUPPORTED_OPERATIONOperation Not Supported
DATA_SOURCE_OP_AUTH_FAILUREAuthentication failed for the data source model. Please configure appropriate permissions for the corresponding role in the User Permissions module.
FLEXDB_INTERNAL_ERRORCloud database request error, please check the parameters.
FLEXDB_REQUEST_TIMEOUTRequest to Mongo database timed out. Please optimize your query or add an index.
AUTH_FAILURE_TOKEN_FAILUREtoken Error
NO_SUCH_VERSIONInterface Version Not Found
REQUEST_LIMIT_EXCEEDEDThe number of requests exceeds the frequency limit
FLEXDB_RESOURCE_OVERDUEDatabase resources have expired or the number of read/write operations has exceeded the plan limit. Please upgrade your plan's read/write capacity or wait until the next day for the operation count to reset. If issues persist, verify your resources on the cloud database platform.
FLEXDB_READ_LIMITDatabase read operations have exceeded the limit. Please upgrade your plan.
FLEXDB_WRITE_LIMITDatabase write operations have exceeded the limit. Please upgrade your plan.
FAILED_OPERATION_CUSTOMIZED_METHODS_ERRORCloud Function Error, User-Defined Method Error
DATASOURCE_NOT_EXISTThe data source does not exist. Please check if the corresponding data source exists in the console.
TABLE_NOT_EXISTTable Not Found
FAILED_AGGREGATEAggregate Query Failed

Authentication

The token corresponding to the environment ID, obtained using login authentication (v2).

Security Scheme Type:http
HTTP Authorization Scheme:bearer