查询
场景描述
调用该接口查询OBS URL
- 组网为全容器化时,由于容器化CTI不支持,所以容器化CC-Gateway也不支持。
接口方法
该接口仅支持GET方法,不支持PUT、POST和DELETE等方法。
接口URI
https://ip:port/agentgateway/resource/config/sys/obsURL?ids=5,4
其中,ip为CC-Gateway服务器地址,port为CC-Gateway服务器的HTTPS端口号。
URI中携带的参数说明如6.10.1-表 URI中携带的参数说明所示。
日志中的方法名
queryObsURL
请求消息
- 消息头
表2 消息头参数说明 序号
名称
参数类型
是否必选
说明
1
Content-Type
string
True
消息主体编码方式,缺省值:application/json; charset=UTF-8
2
Guid
string
True
Guid的取值为C5 智能辅助类接口鉴权方式接口返回的guid。
响应消息
|
序号 |
名称 |
参数类型 |
说明 |
|---|---|---|---|
|
1 |
message |
string |
返回消息。 |
|
2 |
retcode |
string |
操作的结果原因码。 取值类型为整数。
|
|
3 |
result |
array |
返回结果。该对象参数说明请参见6.10.1-表 result数组对象参数。 |
报文样例
- 消息头
Content-Type:application/json; charset=UTF-8 Guid:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.AgentGateway1
- 请求参数
- 响应参数
{ "result": [ { "id": 7, "purpose": "", "obsUrl": "https://127.0.0.1:8080", "userName": "dbuser", "loginUri": "/rest/isales/v1/openapi/obs/auth/login", "interfaceUri": "/rest/isales/v1/openapi/obs/business/interface", "timeout": 3 } ], "message": "success", "retcode": "0" }