请求地址
/v2/webservice/app/app-list
请求方法
Post
请求参数说明
分页 https://iwiki.woa.com/p/4012353821#分页参数说明
排序 https://iwiki.woa.com/p/4012353821#分页参数说明
过滤项
| 参数名称 | 类型 | 是否必填 | 说明 |
|---|---|---|---|
| app_id | number | 否 | |
| app_name | string | 否 | 模糊匹配 |
请求示例
{
"app_id": 2
}
返回data.list说明
| 参数名称 | 类型 | 说明 | 备注 |
|---|---|---|---|
| username | string | 申请人 | 申请人无此App的相关权限,仅一个标识符 |
| applicant | string | 项目管理员 | |
| developer | string | 项目开发 | |
| zone_model | number | 区模型 | |
| app_id | number | 业务ID | |
| app_name | string | 业务名称 |
返回示例
成功返回:
不分页的话 返回较少字段(参数中指定{\"infinite\":true})
{
"code": 0,
"request_id": "f92bc34b-f3ae-4d65-8ee3-509dd8c5918b",
"data": {
"list": [
{
"app_id": 2,
"app_name": "test-phoebe",
"developer": "tcaplus_admin;testcamel",
"applicant": "phoebechen;cameltan",
"idl_type": 3,
"create_date": "2021-11-22T03:53:07.000Z",
"zone_model": 1,
"dba_name": "tcaplus_admin"
},
],
"total": 1
}
成功返回:
infinite参数不传或者wei
{
"code": 0,
"request_id": "06cb5b16-6654-48c7-9402-5c89a80666bf",
"data": {
"list": [
{
"uid": 1,
"app_id": 2,
"app_name": "tdr_app",
"passwd": "EDF0911A5573487D",
"applicant": "tcaplus;cameltan2;bennetzhang",
"cc": "",
"access_type": "TCP",
"tbus_tmpl": null,
"create_date": "2024-10-31T09:02:11.000Z",
"memo": "it is a test app",
"dir_beat_period": 1800,
"proxy_reconnect_span": 10,
"proxy_reconnect_count": 100,
"username": "tcaplus",
"report_qos_level": 0,
"zone_model": 3,
"select_set": 0,
"price_id": 4001,
"dba_name": "tcaplus;cameltan2;bonlin;cameltan;jinfzhao;jasonlzhang;lubelleli;v_jxlin_ff;bennetzhang",
"idl_type": 4,
"passwd_update_time": null,
"old_passwd": null,
"old_passwd_expire_time": null,
"developer": "test_tcaplus;iceyyhe1",
"studio": "",
"bip_id": "",
"star_level": 0,
"app_area": "",
"data_editable_in_oms": 1,
"alloc_set_mod": "{\"formal\":1,\"innertest\":1,\"censortest\":1}",
"data_read_write_privilege": "",
"rest_access": "",
"shared_proxy_priority": 2,
"qcloud_cluster": 0,
"qcloud_status": 0,
"qcloud_status_time": null,
"qcloud_proxyt1_num": 0,
"qcloud_svrt1_num": 0,
"restproxy_status": 0,
"censorship": 0,
"censor_users": null,
"rebuild_slave_without_data_flag": 0,
"sign_type": 0,
"forbidden_auto_trigger_rebuild_slave": 0,
"forbidden_auto_trigger_extend_restproxy": 0,
"extend_restproxy_status": 0,
"cur_read_cu": 0,
"cur_write_cu": 0,
"mysql_without_string_terminator": 0
}
],
"total": 1
}
}
失败返回
{
"request_id": "62b23201-1c96-4e3d-a48d-fa14779228fb",
"code": 104,
"message": "项目不存在,app_id:2000",
"debug_message": {
"app_id": 2000
}
}