Skip to main content
Version: 1.0.0

Cloud Functions

Feature Introduction

This series of open APIs provides the ability to interface with Cloud Functions (CloudBase - Cloud Functions). You can call these APIs to invoke cloud functions in your environment.

Access Guide

Calling the following APIs requires an AccessToken in the format Authorization: Bearer <token>. For how to obtain the token, refer to https://docs.cloudbase.net/http-api/basic/access-token.

HTTP Status Codes

Depending on the response result, status codes 2xx, 4xx, or 5xx may appear.

Error Codes

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

Error CodeDescription
FUNCTION_NOT_FOUNDThe specified function was not found
FUNCTION_QUALIFIER_NOT_FOUNDThe specified function version was not found
FUNCTION_INVOCATION_FAILEDFunction execution failed. Check the function code.
FUNCTION_PARAM_INVALIDInvalid parameters were provided when calling the function
FUNCTION_EXCEED_RESOURCE_LIMITThe request exceeded the preconfigured concurrency
FUNCTION_STATUS_ABNORMALThe function status is abnormal
FUNCTION_TIME_LIMIT_EXCEEDEDThe function execution timed out
FUNCTION_MEMORY_LIMIT_EXCEEDEDThe function execution exceeded the memory limit

Authentication

Token corresponding to the environment ID, obtained using login authentication (v2)

Security Scheme Type:http
HTTP Authorization Scheme:bearer

License

Apache 2.0