Appearance
PMSForV4获取CloudAgents列表
js
Dandelion.RtAPI("getCloud_agents", params, (res) => {
console.log(res);
});1
2
3
2
3
功能描述
PMSForV4获取CloudAgents列表
请求参数格式
javascript
let params = {
"withApps": ""
}1
2
3
4
2
3
4
请求参数:
| 参数名称 | 参数说明 | 是否必须 | 数据类型 |
|---|---|---|---|
| withApps | withApps,示例值(true) | false | Boolean |
响应示例:
javascript
[
{
"agentEnable": 0,
"agentId": "",
"agentServerIp": "",
"agentServerPort": 0,
"agentServerPublicIp": "",
"agentServerPublicPort": 0,
"alive": 0,
"appBasePath": "",
"cloudAppPMSDTOList": [
{
"agentId": "",
"appRenderType": 0,
"appStatus": 0,
"appType": 0,
"appUseType": 0,
"appliId": "",
"appname": "",
"autoRestart": 0,
"createtime": 0,
"defaultProjectId": "",
"defaultSceneContentId": "",
"defaultSceneProjectName": "",
"del": 0,
"dllPath": "",
"dllReady": 0,
"id": 0,
"mediaSoupUserDtos": [
{
"appliId": "",
"peerId": "",
"userId": "",
"userName": ""
}
],
"mediasoupIp": "",
"mediasoupIpWan": "",
"mediasoupPort": 0,
"mediasoupPortWan": 0,
"path": "",
"projectId": "",
"projectName": "",
"renderHeight": 0,
"renderWidth": 0,
"sceneContentId": "",
"status": "",
"updatetime": 0,
"userId": "",
"userNum": 0
}
],
"cpuLoad": 0,
"graphicCardUsage": 0,
"id": 0,
"maxAppNum": 0,
"memoryUsage": 0,
"netIOStatus": 0,
"relativeIp": "",
"relativePort": 0,
"updatetime": 0,
"wanIp": "",
"wanPort": 0
}
]1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
响应参数:
| 参数名称 | 参数说明 | 类型 |
|---|---|---|
| agentEnable | 是否启用,0.屏蔽,1.启用 | number |
| agentId | 子节点AgentId,唯一标识 | string |
| agentServerIp | agent_server_ip,子节点对应的中心服务器IP | string |
| agentServerPort | agent_server_port,子节点对应的中心服务器端口 | number |
| agentServerPublicIp | agent_server_public_ip,子节点对应的中心服务器IP的代理地址 | string |
| agentServerPublicPort | agent_server_public_port,子节点对应的中心服务器IP的代理端口 | number |
| alive | 子节点状态,0.离线 1.在线 | number |
| appBasePath | string | |
| cloudAppPMSDTOList | 容器列表 | array |
| agentId | AgentId | string |
| appRenderType | 容器的访问模式0.独占 1.共享 | number |
| appStatus | 容器的业务状态.0,未启动,1.启动但是无场景加载 2.有加载场景无用户访问 3.有用户访问 4.有加载场景同时有用户访问 | number |
| appType | 容器类型 0,自主引擎 1.其他引擎 | number |
| appUseType | number | |
| appliId | 节点唯一ID | string |
| appname | 节点名称 | string |
| autoRestart | autoRestart,是否设置为自动重启 | number |
| createtime | 创建时间戳 | number |
| defaultProjectId | 默认加载的项目ID | string |
| defaultSceneContentId | 默认加载的场景ID | string |
| defaultSceneProjectName | 默认加载的项目名称 | string |
| del | 是否启用 | number |
| dllPath | string | |
| dllReady | dll注入状态 | number |
| id | number | |
| mediaSoupUserDtos | 当前在容器中的状态 | array |
| appliId | MediaSoup聊天室ID | string |
| peerId | MediaSoup用户id | string |
| userId | 使用用户登录名 | string |
| userName | 使用用户登录名称 | string |
| mediasoupIp | string | |
| mediasoupIpWan | mediasoupIpWan | string |
| mediasoupPort | number | |
| mediasoupPortWan | mediasoupPortWan | number |
| path | 程序路径 | string |
| projectId | 当前加载的项目ID | string |
| projectName | 当前加载的项目名称 | string |
| renderHeight | 自主引擎在容器中画面高度 | number |
| renderWidth | 自主引擎在容器中画面宽度 | number |
| sceneContentId | 当前加载的场景ID | string |
| status | 容器的物理状态 | string |
| updatetime | 更新时间戳 | number |
| userId | RTE登陆的应用账户名 | string |
| userNum | 当前用户数量 | number |
| cpuLoad | CPU核载 | number |
| graphicCardUsage | number | |
| id | 数据库主键Id | number |
| maxAppNum | max_app_num,子节点所能承载的最大容器数量 | number |
| memoryUsage | 内存使用率 | number |
| netIOStatus | number | |
| relativeIp | relative_ip,子节点关联的relative_ip | string |
| relativePort | relative_port,子节点关联的relative_port | number |
| updatetime | number | |
| wanIp | wanIp,子节点暴露的IP | string |
| wanPort | wan_port,子节点暴露的端口 | number |
