Skip to main content
Version: 1.0.0

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 CodeMeaning
SERVICE_NOT_FOUNDSpecified service not found
SERVICE_TIMEOUTCall to cloud hosting service timed out
SERVICE_FORBIDDENCloud Hosting Service access denied, possibly due to permission configuration or abnormal service status
SERVICE_NOT_READYCloud Hosting Service not ready
SERVICE_VERSION_NOT_FOUNDNo matching cloud hosting service version
SERVICE_ENDPOINT_NOT_FOUNDNo available address found for Cloud Hosting Service
SERVICE_LB_STATUS_ABNORMALCloud Hosting Load Balancer status abnormal. Try creating a new version.
SERVICE_RESOURCE_NOT_FOUNDNo resources found for the service
SERVICE_CHARGE_OVERDUEService suspended due to overdue payment. Please recharge promptly.

Authentication

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

Security Scheme Type:http
HTTP Authorization Scheme:bearer

License

Apache 2.0