调用GetTURNServerList获取TURN服务列表。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求参数
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | GetTURNServerList |
系统规定参数。取值:GetTURNServerList。 |
InstanceId | String | 是 | 9cfad875-6260-4a53-ab6e-b13e3fb31f7d |
呼叫中心实例ID |
AccessKeyId | String | 否 | xxxx |
您的AccessKey ID |
返回数据
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
Code | String | OK |
响应码 |
HttpStatusCode | Integer | 200 |
HTTP状态码 |
Message | String | xxx |
响应信息 |
RequestId | String | 35783199-DB04-40E8-9FCB-C190008AEFA4 |
请求ID |
Success | Boolean | true |
是否成功 |
TurnServerListConfig | String | {"region":"shanghai","name":"上海","domain":"turn3.ccc.aliyuncs.com","cidr":"192.1.25.64/28"} |
Turn服务列表 |
示例
请求示例
http(s)://ccc.cn-shanghai.aliyuncs.com/?Action=GetTURNServerList
&InstanceId=9cfad875-6260-4a53-ab6e-b13e3fb31f7d
&<公共请求参数>
正常返回示例
XML
格式
<GetTURNServerListResponse>
<code>OK</code>
<httpStatusCode>200</httpStatusCode>
<requestId>35783199-DB04-40E8-9FCB-C190008AEFA4</requestId>
<success>true</success>
<turnServerListConfig>
<region>hangzhou</region>
<name>杭州</name>
<domain>turn5.ccc.aliyuncs.com</domain>
<cidr>192.1.25.32/28</cidr>
</turnServerListConfig>
<turnServerListConfig>
<region>qingdao</region>
<name>青岛</name>
<domain>turn4.ccc.aliyuncs.com</domain>
<cidr>192.1.25.48/28</cidr>
</turnServerListConfig>
<turnServerListConfig>
<region>shanghai</region>
<name>上海</name>
<domain>turn3.ccc.aliyuncs.com</domain>
<cidr>192.1.25.64/28</cidr>
</turnServerListConfig>
</GetTURNServerListResponse>
JSON
格式
{
"turnServerListConfig":[
{
"region":"hangzhou",
"name":"杭州",
"domain":"turn5.ccc.aliyuncs.com",
"cidr":"192.1.25.32/28"
},
{
"region":"qingdao",
"name":"青岛",
"domain":"turn4.ccc.aliyuncs.com",
"cidr":"192.1.25.48/28"
},
{
"region":"shanghai",
"name":"上海",
"domain":"turn3.ccc.aliyuncs.com",
"cidr":"192.1.25.64/28"
}
],
"httpStatusCode":200,
"requestId":"35783199-DB04-40E8-9FCB-C190008AEFA4",
"code":"OK",
"success":true
}
错误码
访问错误中心查看更多错误码。
在文档使用中是否遇到以下问题
更多建议
匿名提交