调用云托管服务
POST/v1/cloudrun/:name
调用指定云托管服务。
Request
Path Parameters
name stringrequired
Possible values: Value must match regular expression ^[a-zA-Z][a-zA-Z0-9_-]{0,58}[a-zA-Z0-9]$
需要调用的服务名称
- application/json
Body
调用云托管服务的请求参数
property name* any
Responses
- 200
- 403
- 404
- default
调用成功时返回
Response Headers
X-Request-Id string
请求ID
- application/json
- text/plain
- Schema
- Example (from schema)
- Echo
Schema
property name* any
{}
echo
{
"a": 1,
"b": 2
}
- Schema
- Text
Schema
string
text
Hello world
云托管服务调用出错时返回
Response Headers
X-Request-Id string
请求ID
- application/json
- Schema
- Example (from schema)
- ServiceForbidden
Schema
code 错误码 (string)
message 错误信息 (string)
requestId 请求 ID (string)
{
"code": "string",
"message": "string",
"requestId": "string"
}
云托管服务拒绝访问
{
"code": "SERVICE_FORBIDDEN",
"message": "Service forbidden. For more information, please refer to https://docs.cloudbase.net/error-code/service",
"requestId": "yyxxxxxx-yyyy-yyyy-zzzz-xxxxxxzzyyyy"
}
云托管服务调用出错时返回
Response Headers
X-Request-Id string
请求ID
- application/json
- Schema
- Example (from schema)
- ServiceNotFound
Schema
code 错误码 (string)
message 错误信息 (string)
requestId 请求 ID (string)
{
"code": "string",
"message": "string",
"requestId": "string"
}
未找到云托管服务
{
"code": "SERVICE_NOT_FOUND",
"message": "Service not found. For more information, please refer to https://docs.cloudbase.net/error-code/service",
"requestId": "yyxxxxxx-yyyy-yyyy-zzzz-xxxxxxzzyyyy"
}
Response Headers
X-Request-Id string
请求ID
- application/json
- Schema
- Example (from schema)
- InvalidHost
Schema
code 错误码 (string)
message 错误信息 (string)
requestId 请求 ID (string)
{
"code": "string",
"message": "string",
"requestId": "string"
}
请求地址异常
{
"code": "INVALID_HOST",
"message": "xxx",
"requestId": "xxx"
}
Loading...