POST
/
gpu-instance
/
openapi
/
v1
/
gpu
/
instance
/
edit
curl --request POST \
  --url https://api.ppinfra.com/gpu-instance/openapi/v1/gpu/instance/edit \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: <content-type>' \
  --data '{
  "instanceId": "<string>",
  "ports": [
    {
      "port": 123,
      "type": "<string>"
    }
  ],
  "expandRootDisk": 123
}'

请求头

Content-Type
string
required

枚举值:application/json。

Authorization
string
required

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

请求体

instanceId
string
required

要编辑的实例 ID。

ports
object[]

实例对外开放的端口。ports + tools 最多使用 15 个端口。

expandRootDisk
integer

系统存储扩容大小,单位 GB。整数,取值范围 >= 0,不扩容填 0 即可。