跳转到主要内容
PUT
/
gpus
/
v2
/
instances
/
{instance_id}
/
web-terminal
设置 Web Terminal
curl --request PUT \
  --url https://api.ppio.com/gpus/v2/instances/{instance_id}/web-terminal \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: <content-type>' \
  --data '{
  "enable": true
}'
{}

请求头

Content-Type
string
必填

枚举值:application/json。

Authorization
string
必填

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

路径参数

instance_id
string
必填

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

请求体

application/json
enable
boolean
必填

是否启用 Web Terminal。true 启用,false 停止。

示例:

true

响应

200 - application/json

成功

The response is of type object.

最后修改于 2026年6月26日