接口地址:/webapi/hypervisor/create
请求方式:PUT
请求数据类型:application/x-www-form-urlencoded,application/json
响应数据类型:*/*
接口描述:
添加虚拟化平台
请求示例:
{
"hypervisorName": "",
"hypervisorIp": "",
"userName": "",
"password": "",
"desc": "",
"hypervisorType": 0,
"accessNodeIds": [],
"requestId": "",
"url": ""
}
请求参数:
| 参数名称 | 参数说明 | 请求类型 | 是否必须 | 数据类型 | schema |
|---|---|---|---|---|---|
| hypervisorCreateForm | HypervisorCreateForm | body | true | HypervisorCreateForm | HypervisorCreateForm |
| hypervisorName | 虚拟化平台名称 | true | string | ||
| hypervisorIp | 虚拟化平台IP | true | string | ||
| userName | 账号 | true | string | ||
| password | 密码 | true | string | ||
| desc | 描述 | false | string | ||
| hypervisorType | 虚拟化平台类型 | true | integer(int32) | ||
| accessNodeIds | 虚拟化平台访问节点 | true | array | integer(int32) | |
| requestId | 请求ID | true | string | ||
| url | url | false | string |
响应状态:
| 状态码 | 说明 | schema |
|---|---|---|
| 200 | OK | ResponseResultResultVo |
响应参数:
| 参数名称 | 参数说明 | 类型 | schema |
|---|---|---|---|
| message | 返回状态标记 | string | |
| statFlag | 返回状态 | integer(int32) | integer(int32) |
| dataInfo | ResultVo | ResultVo | |
| errorCode | 错误码 | integer(int32) | |
| message | 响应信息 | string | |
| dataCount | 返回数据条数 | integer(int32) | integer(int32) |
响应示例:
{
"message": "操作成功",
"statFlag": 0,
"dataInfo": {
"errorCode": 0,
"message": ""
},
"dataCount": 10
}