AttachInterfaceInDetail【在网卡信息中添加网卡】

在网卡信息中添加网卡:可根据云主机ID和网络ID来添加网卡。 如果不指定必要添加条件,则会返回错误信息。

Request Parameters

Parameter name Type Description Required
action String API 标识符 Yes
obj_id String 云主机 ID Yes
net_id String 网络 ID Yes

Response Elements

Name Type Description
message String 执行结果信息
code Integer HTTP Resonpe响应状态码
data Array 空信息列表

Example

Example Request:

Request Headers:

POST /api/ HTTP/1.1
Origin: https://console.plcloud.com
X-CSRFToken: 6An6xEuOJqW6dVDtlgzZr6FqgkSbJmqp
Content-Type: application/json

JSON Data:

{
  "action": "AttachInterfaceInDetail",
  "net_id": "7ecb327d-5ea2-40d8-8ea5-aedde6381e1d",
  "obj_id": "8074edee-a3de-48b2-be0d-3ead131ac399"
}

Example Response:

{
  "message": "成功",
  "code": 200,
  "data": []
}