
# 获取座席所在VDN技能队列信息
#### 前置条件
- 座席已签入
 
#### 场景描述
座席登录后，获取座席所在VDN的技能队列信息。
#### 接口方法
设置成"GET"。该接口仅支持GET方法，不支持PUT、POST和DELETE等方法。
#### 接口URI
https://ip:port/agentgateway/resource/queuedevice/{agentid}/agentvdnskill
![](https://support.huaweicloud.com/api-ccfs-cec/public_sys-resources/note_3.0-zh-cn.png)
如果CC-Gateway单机部署，IP地址为CC-Gateway服务器地址，port为CC-Gateway服务器的HTTPS端口号，默认值为8043；如果CC-Gateway采用集群模式部署，IP请配置为NSLB地址， Port请配置为默认值8043。
NSLB上的CC-Gateway端口号，请以nslb用户登录任意一个NSLB节点，执行./nslbctl l查询，查询结果中，如下端口表示CC-Gateway通过NSLB面向第三方系统开放的端口。
![](https://support.huaweicloud.com/api-ccfs-cec/figure/zh-cn_image_0000002204207349.png)
SaaS场景下请咨询运维人员获取IP和Port。
表1URI中携带的参数说明 
| 序号 | 参数名     | 数据类型   | 选取原则 | 说明                     |
|:---|:---|:---|:---|:---|
| 1  | agentid | string | True | 座席的工号，取值范围：101～999999。 |
   
#### 日志中的方法名
querySkillQueueOnAgentVDN
#### 请求说明
- 消息头
  表2请求头参数说明 
  | 序号 | 名称           | 参数类型   | 是否必选 | 说明                                                             |
  |:---|:---|:---|:---|:---|
  | 1  | Content-Type | string | True | 消息主体编码方式，缺省值：application/json;charset=UTF-8                    |
  | 2  | Guid         | string | True | 静态鉴权（AUTHMODE = 1）签入接口返回的Guid；动态鉴权（AUTHMODE = 2）轮询事件接口返回的Guid。 |
     
  

- 消息体 无
  
 
#### 响应说明
表3消息体参数说明 
| 序号 | 名称      | 参数类型   | 说明                                                                                                                                                                                                                                            |
|:---|:---|:---|:---|
| 1  | message | string | 描述                                                                                                                                                                                                                                            |
| 2  | retcode | string | 错误码。取值如下： 0：成功 非0：失败                   |
| 3  | result  | array  | 查询成功后，返回技能队列信息的对象。 该对象的参数说明请参见[表4]。 |
   
 表4result对象参数说明 
| 序号  | 名称          | 参数类型   | 说明                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
|:---|:---|:---|:---|
| 3.1 | name        | string | 技能名称                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| 3.2 | id          | int    | 技能ID                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| 3.3 | mediatype   | int    | 媒体类型。其中： - 1：文字交谈  - 2：点击通话  - 4：回呼请求  - 5：普通音视频电话  - 15：预测呼出  - 16：预浏览呼出  - 17：消息呼叫  - 19：视频普通呼叫  - 51：多媒体Web Chat  - 53：Social Chat   |
| 3.4 | serviceType | int    | 业务类型编号                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| 3.5 | realFlag    | int    | 1表示实队列。0表示虚队列。                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
   
#### 触发事件
- 无
 
#### 错误结果码
- 100-006
- 100-007
- 600-005
 
#### 报文样例
- 消息头
  ```
  Content-Type:application/json;charset=UTF-8
  Guid：xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.AgentGateway1
  ```
  
- 请求参数 无
  
- 响应参数
  ```
  {
      "message": "",
      "retcode": "0",
      "result": [
          {
              "name": "voice",
              "id": 1,
              "mediatype": 5,
              "serviceType": 1,
              "realFlag": 1
          },
          {
              "name": "callback",
              "id": 2,
              "mediatype": 4,
              "serviceType": 1,
              "realFlag": 1
          },
          {
              "name": "webchat",
              "id": 3,
              "mediatype": 1,
              "serviceType": 1,
              "realFlag": 1
          },
          {
              "name": "email",
              "id": 4,
              "mediatype": 6,
              "serviceType": 3,
              "realFlag": 1
          }
      ]
  }
  ```
  
 
