跳转到主要内容
POST
/
gpus
/
v2
/
networks
创建 Network
curl --request POST \
  --url https://api.ppio.com/gpus/v2/networks \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: <content-type>' \
  --data '
{
  "region_id": "cluster-abc123",
  "name": "dev-vpc"
}
'
{
  "id": "network-abc123"
}

请求头

Content-Type
string
必填

枚举值:application/json。

Authorization
string
必填

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

请求体

application/json
region_id
string
必填

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

示例:

"cluster-abc123"

name
string
必填

Network 名称。字符串,长度限制:1-30 字符。

示例:

"dev-vpc"

响应

200 - application/json

创建成功

id
string

创建后的 Network ID

示例:

"network-abc123"

最后修改于 2026年6月22日