
# 查询配置技能队列座席详细信息
#### 场景描述
查询配置技能队列座席详细信息。
#### 请求方法
设置成"POST"。该接口仅支持POST方法，不支持PUT、GET和DELTE等方法。
#### 内部封装接口
BMS接口：/ccbms/ws/monitor/agentstatusinfo
#### 请求URL
https://ip:port/rest/cmsapp/v1/openapi/agentgroup/agentbyconfigedskill
其中，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,
          "skillId":1
      }
  }
  ```
  
该接口的请求消息体参数说明请参见[表2](https://support.huaweicloud.com/api-ccfs-cec/cec_07_0622.html#ZH-CN_TOPIC_0000002513233667__zh-cn_topic_0000002510109685_zh-cn_topic_0274247518_table44958476535)。
表2消息体参数说明 
| 参数名     | 数据类型 | 是否必选 | 说明                                                                                                                              |
|:---|:---|:---|:---|
| ccId    | int  | True | 呼叫中心编号。 取值范围：1～65535     |
| vdn     | int  | True | 虚拟呼叫中心编号。 取值范围：1～5000 |
| skillId | Int  | True | 技能队列编号。 取值范围：1～2000   |
   
#### 响应消息
该接口的响应消息体举例如下：
```
{
  "result": "0",
  "resultDatas": [{
    "workno": 20011,
    "name": "20011",
    "status": 4,
    "ctiStatus": 1,
    "groupid": 1,
    "mediatype": 1,
    "vdnid": 1,
    "phonenumber": "70942",
    "currentstatetime": 1505,
    "logindate": 1501125758000
  }]
}
```
该接口的响应消息体参数说明请参见[表3](https://support.huaweicloud.com/api-ccfs-cec/cec_07_0622.html#ZH-CN_TOPIC_0000002513233667__zh-cn_topic_0000002510109685_zh-cn_topic_0274247518_table15909152712548)。
表3消息体参数说明 
| 参数名         | 数据类型   | 说明                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
|:---|:---|:---|
| result      | string | 查询结果。取值如下： - 0：成功  - 非0：失败   失败的原因说明请参见[错误码参考](https://support.huaweicloud.com/api-ccfs-cec/cec_07_0696.html#ZH-CN_TOPIC_0000002481273824)。 |
| resultDatas | array  | 查询成功后，返回结果信息的数组。 该数组中对象的参数说明请参见[表4](https://support.huaweicloud.com/api-ccfs-cec/cec_07_0622.html#ZH-CN_TOPIC_0000002513233667__zh-cn_topic_0000002510109685_zh-cn_topic_0274247518_table59419279541)。                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
   
表4resultDatas对象参数说明 
| 参数名              | 数据类型   | 说明                                                                                                                                                                                                                                      |
|:---|:---|:---|
| workno           | int    | 座席工号。                                                                                                                                                                                                                                   |
| name             | string | 座席名称。                                                                                                                                                                                                                                   |
| status           | int    | 座席状态。请参见[表5]。                                                                                                              |
| ctiStatus        | int    | 座席平台状态。请参考[CTI平台座席状态码参考](https://support.huaweicloud.com/api-ccfs-cec/cec_07_0697.html#ZH-CN_TOPIC_0000002513073729)。                                                                                                                   |
| groupid          | int    | 座席班组ID。                                                                                                                                                                                                                                 |
| mediatype        | int    | 座席媒体类型，请参见[表1](https://support.huaweicloud.com/api-ccfs-cec/cec_07_0698.html#ZH-CN_TOPIC_0000002513233715__zh-cn_topic_0000002510109741_zh-cn_topic_0000001843009401_zh-cn_topic_0000001451970565_zh-cn_topic_0240433933_table13565990) |
| vdnid            | int    | 所属VDN ID。                                                                                                                                                                                                                               |
| phonenumber      | string | 座席电话号码。                                                                                                                                                                                                                                 |
| currentstatetime | long   | 当前状态时长。                                                                                                                                                                                                                                 |
| logindate        | long   | 签入时间。                                                                                                                                                                                                                                   |
   
 表5座席状态 
| 值 | 说明                     |
|:--|:---|
| 0 | 未知。对应CTI平台状态的9。        |
| 2 | 表示调用该接口出现异常。           |
| 3 | 示忙状态。对应CTI平台状态的7。      |
| 4 | 空闲状态。对应CTI平台状态的1。      |
| 5 | 整理态。对应CTI平台状态的6。       |
| 7 | 通话态。对应CTI平台状态的2、3、4、5。 |
| 8 | 休息状态。对应CTI平台状态的8。      |
   
