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 Code | Description |
| FUNCTION_NOT_FOUND | The specified function was not found |
| FUNCTION_QUALIFIER_NOT_FOUND | The specified function version was not found |
| FUNCTION_INVOCATION_FAILED | Function execution failed. Check the function code. |
| FUNCTION_PARAM_INVALID | Invalid parameters were provided when calling the function |
| FUNCTION_EXCEED_RESOURCE_LIMIT | The request exceeded the preconfigured concurrency |
| FUNCTION_STATUS_ABNORMAL | The function status is abnormal |
| FUNCTION_TIME_LIMIT_EXCEEDED | The function execution timed out |
| FUNCTION_MEMORY_LIMIT_EXCEEDED | The function execution exceeded the memory limit |
Authentication
- HTTP: Bearer Auth
- API Key: APIKey
Token corresponding to the environment ID, obtained using login authentication (v2)
| Security Scheme Type: | http |
|---|---|
| HTTP Authorization Scheme: | bearer |
Tencent Cloud 3.0 signature that starts with TC3-HMAC-SHA256, with Timestamp and Token appended to the end of the signature
| Security Scheme Type: | apiKey |
|---|---|
| Header parameter name: | Authorization |