Cloud Hosting
Feature Introduction
This series of Open APIs provides the capability to integrate with Cloud Hosting (Cloudbase Run) services, enabling invocation of Cloud Hosting services within the environment via Open APIs, and supports SSE(Server-Sent Event)
and WebSocket
requests.
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
Depending on the returned results, status codes such as 2xx
, 4xx
, and 5xx
may occur.
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 Code | Meaning |
SERVICE_NOT_FOUND | Specified service not found |
SERVICE_TIMEOUT | Call to cloud hosting service timed out |
SERVICE_FORBIDDEN | Cloud Hosting Service access denied, possibly due to permission configuration or abnormal service status |
SERVICE_NOT_READY | Cloud Hosting Service not ready |
SERVICE_VERSION_NOT_FOUND | No matching cloud hosting service version |
SERVICE_ENDPOINT_NOT_FOUND | No available address found for Cloud Hosting Service |
SERVICE_LB_STATUS_ABNORMAL | Cloud Hosting Load Balancer status abnormal. Try creating a new version. |
SERVICE_RESOURCE_NOT_FOUND | No resources found for the service |
SERVICE_CHARGE_OVERDUE | Service suspended due to overdue payment. Please recharge promptly. |
Authentication
- HTTP: Bearer Auth
- API Key: APIKey
The token corresponding to the environment ID, obtained using login authentication (v2).
Security Scheme Type: | http |
---|---|
HTTP Authorization Scheme: | bearer |
The Tencent Cloud version 3.0 signature starting with TC3-HMAC-SHA256 appends Timestamp and Token to the end of the signature.
Security Scheme Type: | apiKey |
---|---|
Header parameter name: | Authorization |