-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
[节点管理-评审会] 前端下载excel模板需要优化 #2437
Labels
Comments
功能描述上传并解析excel模板 请求参数{{ common_args_desc }} 接口参数
请求参数示例{
"bk_app_code": "esb_test",
"bk_app_secret": "xxx",
"bk_username": "admin",
"bk_token": "xxx",
"file": "bk_nodeman_info.xlsx"
} 返回结果示例// success:
{
"result": true,
"data": {
"host": [
{
"inner_ip": "1.1.1.1",
"inner_ipv6": null,
"os_type": "LINUX",
"install_channel_id": 0,
"port": 22,
"account": "root",
"auth_type": "PASSWORD",
"outer_ip": null,
"login_ip": null,
"bk_biz_id": 2,
"bk_cloud_id": 0,
"ap_id": 1,
"bt_speed_limit": null,
"bk_addressing": "static",
"enable_compression": null,
"password": "A3aaQqhHtUiPTaeuGMVaYJi3q3H259CGcnSWSr0SAbW4/x8JmlARoLAtBCezmy4Mw9QOU9imGKD7Xk7XGaTD7b4tjgQL9neI2rFnzkhO7vM4pu6U3u1TMi5m3WPrwsU8cXWpKRHyRwpz1qRAFV3donNRmsuMWvv/lmauAoLvFSmvsAqSzQckN6Sp3ihaYCrB7uNuAw1zW+Rwg5F0qf7Km6H5uR8+w6PhfqjDx0S6RJDqQX9FXd5QvKj2Jg30yAhWMifCkpwEtJpHC9cJK7hZxS6cmJ46va2u0JTOUtFwbFsIdbrHCIjp6xrcSjDJILJRseLmhKNWMteNSeMLxs6NIg=="
}
],
"error_message": []
},
"code": 0,
"message": ""
}
// failed
{
"result": true,
"data": {
"host": [],
"error_message": [
"第5行:install_channel_id不能为空或格式错误,请依照模板填写,不要修改模板"
]
},
"code": 0,
"message": ""
} 返回结果参数说明response
data
host
|
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
背景
功能
由于用户在使用安装agent时想使用excel导入的形式,但是不是很清楚哪些是必填项,哪些不是必填项,留空是什么意思,不填可以吗?错了会产生什么后果?此处的模板需要进行完善说明
为每一个字段进行单独说明(可在每列字段下加一个简要说明或可单独加一个sheet标明每个字段的含义)
尽可能多地将客户需要手动填写的内容转换成下拉框的形式(IP、用户名、密码等这些个性化强的字段除外)
功能实现
建议的方案
实现方案
功能自测
描述代码变更涉及功能点及自测截图
描述代码变更涉及功能点及自测截图
...
The text was updated successfully, but these errors were encountered: