Skip to main content
PUT
更新 Endpoint

请求头

Content-Type
string
必填

枚举值:application/json。

Authorization
string
必填

Bearer 身份验证格式,例如:Bearer {{API 密钥}}

路径参数

endpoint_id
string
必填

Endpoint ID。字符串,长度限制:1-255 字符。

请求体

application/json
name
string

Endpoint 名称。

示例:

"example-endpoint-updated"

product_id
string

Serverless 产品 ID。字符串,长度限制:1-255 字符。

示例:

"product-id"

worker_config
object

Worker 配置。

policy
object

调度/请求策略。

image
string

镜像地址。字符串,长度限制:0-500 字符。

示例:

"registry.example.com/namespace/image:new-tag"

registry_auth_id
string

已保存的镜像认证 ID。字符串,长度限制:0-255 字符。

示例:

"registry-auth-id"

entrypoint
string

容器 entrypoint。

示例:

""

command
string

启动命令。

示例:

"cargo build"

health_check
object

健康检查配置。

envs
object[]

环境变量列表。

ports
integer[]

端口号列表。每项取值范围:[1, 65535]。

示例:
volumes
object[]

挂载卷列表。

region_id
string

区域 ID。

示例:

"region-id"

响应

200 - application/json

更新成功

The response is of type object.

最后修改于 2026年6月26日