POST
/
gpu-instance
/
openapi
/
v1
/
network
/
create
curl --request POST \
  --url https://api.ppinfra.com/gpu-instance/openapi/v1/network/create \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: <content-type>' \
  --data '{
  "clusterId": "<string>",
  "name": "<string>"
}'
{
  "network": [
    {
      "Id": "<string>",
      "user": "<string>",
      "name": "<string>",
      "state": [
        {
          "state": "<string>",
          "error": "<string>"
        }
      ],
      "segment": "<string>",
      "clusterId": "<string>",
      "Addresses": [
        {
          "Id": "<string>",
          "Ip": "<string>"
        }
      ],
      "createTime": "<string>"
    }
  ]
}

请求头

Content-Type
string
required

枚举值:application/json。

Authorization
string
required

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

请求体

clusterId
string
required

集群 ID。可以调用获取集群信息接口获取。字符串,长度限制:1-255 字符。

name
string

VPC 网络的名称。自定义设置。字符串,长度限制:0-30 字符。

响应参数

network
object[]
required

VPC 网络信息。