
# 查询座席维度系统状态信息
#### 场景描述
查询座席维度系统状态信息。
#### 接口方法
设置成"POST"。该接口仅支持POST方法，不支持PUT、GET和DELTE等方法。
#### 内部封装接口
BMS接口：/ccbms/ws/monitor/teamagentstatusinfo
#### 请求URL
https://ip:port/rest/cmsapp/v1/openapi/querymonitor/systemstate
其中，ip为NSLB的服务器IP地址，port为CC-CMS服务在NSLB映射的HTTPS端口号。
#### 请求说明
表1请求头参数 
| 序号 | 名称            | 参数类型   | 是否必选 | 说明                                                                                                                            |
|:---|:---|:---|:---|:---|
| 1  | Content-Type  | String | True | 固定填 application/json;charset=UTF-8。                                                                                           |
| 2  | Authorization | String | True | 生成方式参见[C2 监控/系统外呼/话单/知识库类接口鉴权方式](https://support.huaweicloud.com/api-ccfs-cec/cec_07_0003.html#ZH-CN_TOPIC_0000002481273406)。 |
   
- 消息头 Content-Type:application/json;charset=UTF-8
  
- 消息体 该接口的请求消息体举例如下：
  ```
  {
      "queryParam":
      {
          "ccId":1, 
          "vdn":1
      }
  }
  ```
  
该接口的请求消息体参数说明请参见[表2](https://support.huaweicloud.com/api-ccfs-cec/cec_07_0635.html#ZH-CN_TOPIC_0000002481113820__zh-cn_topic_0000002509989725_zh-cn_topic_0274247514_table12341257173812)。
表2消息体参数说明 
| 参数名  | 数据类型 | 是否必选 | 说明                                                                                                                             |
|:---|:---|:---|:---|
| ccId | int  | True | 呼叫中心编号。 取值范围：1～65535  |
| vdn  | int  | True | 虚拟呼叫中心编号。 取值范围：1～5000 |
   
#### 响应消息
该接口的响应消息体举例如下：
```
{
  "result": "0",
  "resultDesc": {
    "busyagent": 0,
    "talkingnum": 0,
    "Idleagent": 0,
    "totalloginagent": 0
  }
}
```
该接口的响应消息体参数说明请参见[表3](https://support.huaweicloud.com/api-ccfs-cec/cec_07_0635.html#ZH-CN_TOPIC_0000002481113820__zh-cn_topic_0000002509989725_zh-cn_topic_0274247514_table46299467395)。
表3消息体参数说明 
| 参数名         | 数据类型   | 说明                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
|:---|:---|:---|
| result      | string | 查询结果。取值如下： - 0：成功  - 非0：失败   失败的原因说明请参见[错误码参考](https://support.huaweicloud.com/api-ccfs-cec/cec_07_0696.html#ZH-CN_TOPIC_0000002481273824)。 |
| resultDatas | Object | 查询成功后，返回结果信息的对象。 该对象的参数说明请参见[表4](https://support.huaweicloud.com/api-ccfs-cec/cec_07_0635.html#ZH-CN_TOPIC_0000002481113820__zh-cn_topic_0000002509989725_zh-cn_topic_0274247514_table966914653918)。                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
   
表4resultDatas对象参数说明 
| 参数名             | 数据类型 | 说明      |
|:---|:---|:---|
| busyagent       | int  | 忙碌态座席数。 |
| talkingnum      | int  | 通话态座席数。 |
| Idleagent       | int  | 空闲态座席数。 |
| totalloginagent | int  | 签入座席数。  |
   
