Skip to main content
Version: 1.0.0

Data Model OpenAPI

Function Introduction

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

Integration Guide

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

HTTP Status Codes

Only 2xx status codes will appear. Business errors of the data model API will be indicated in the response body with 2xx status codes and should be handled according to the situation.

Error Codes

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

Error CodeMeaning
AUTH_FAILURENo permission
FAILED_OPERATIONOperation failed
OPERATION_TIMEOUTOperation timeout
INVALID_PARAMETERInvalid parameter
INVALID_PARAMETER_VALUEInvalid parameter value
MISSING_PARAMETERMissing parameter error
LIMIT_EXCEEDEDExceeded quota limit
RESOURCE_NOT_FOUNDResource does not exist
RESOURCE_UNAVAILABLEResource unavailable
RESOURCE_INSUFFICIENTInsufficient resources
RESOURCE_IN_USEResource in use
RESOURCE_SOLD_OUTResource sold out
OPERATION_DENIEDOperation denied
UNAUTHORIZED_OPERATIONUnauthorized operation
UNKNOWN_PARAMETERUnknown parameter error
UNSUPPORTED_OPERATIONUnsupported operation
DATA_SOURCE_OP_AUTH_FAILUREData source model authentication failed. Please set reasonable permissions for corresponding roles in the user permissions module
FLEXDB_INTERNAL_ERRORCloud database request error. Please check parameters
FLEXDB_REQUEST_TIMEOUTRequest to MongoDB database timed out. Please optimize your query or add indexes
AUTH_FAILURE_TOKEN_FAILUREToken error
NO_SUCH_VERSIONAPI version does not exist
REQUEST_LIMIT_EXCEEDEDNumber of requests exceeded frequency limit
FLEXDB_RESOURCE_OVERDUEDatabase resource expired or database read/write count exceeded package limit. Please upgrade the package read/write count or wait for the next day's reset. If there are issues, please verify resources on the cloud database platform
FLEXDB_READ_LIMITDatabase read count exceeded upper limit. Please upgrade the package
FLEXDB_WRITE_LIMITDatabase write count exceeded upper limit. Please upgrade the package
FAILED_OPERATION_CUSTOMIZED_METHODS_ERRORCloud function error. User-defined method error
DATASOURCE_NOT_EXISTData source does not exist. Please check if the corresponding data source exists in the console data source
TABLE_NOT_EXISTTable does not exist
FAILED_AGGREGATEAggregation query failed

Authentication

Token corresponding to the Environment ID, obtained via Login Auth (v2)

Security Scheme Type:http
HTTP Authorization Scheme:bearer