接口方法
该接口仅支持GET方法,不支持GET、POST和DELETE等方法。
接口URI
https://ip:port/agentgateway/resource/config/sys/nodepolicy
其中,ip为CC-Gateway服务器地址,port为CC-Gateway服务器的HTTPS端口号。
请求消息
- 消息头
表1 消息头参数说明
|
序号 |
名称 |
参数类型 |
是否必选 |
说明 |
|
1 |
Content-Type |
string |
True |
消息主体编码方式,缺省值:application/json; charset=UTF-8 |
|
2 |
Guid |
string |
True |
Guid的取值为C5 智能辅助类接口鉴权方式接口返回的guid。 |
响应消息
表2 消息体参数说明
|
序号 |
名称 |
参数类型 |
说明 |
|
1 |
message |
string |
返回消息 |
|
2 |
retcode |
string |
操作的结果原因码。
取值类型为整数。
|
|
3 |
result |
array |
各vdn的呼出资源选择节点策略集合。该数组中的对象参数说明请参见表3。 |
表3 result数组对象参数说明
|
序号 |
名称 |
参数类型 |
说明 |
|
1 |
vdnId |
Number |
Vdn编号 |
|
2 |
nodeId |
Number |
CTI节点编号 |
|
3 |
nodePower |
Number |
CTI节点权值 |
报文样例
- 消息头
Content-Type:application/json; charset=UTF-8
Guid:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.AgentGateway1
- 请求参数
无
- 响应参数
{
"message": "success",
"retcode": "0",
"result": [
{
"vdnId": 1,
"nodeId": 1,
"nodePower": 3
},
{
"vdnId": 1,
"nodeId": 2,
"nodePower": 1
}
}