调用DescribeWebCustomPorts查询DDoS高防支持的网站业务自定义端口范围。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求参数
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | DescribeWebCustomPorts |
要执行的操作。取值:DescribeWebCustomPorts |
RegionId | String | 否 | cn-hangzhou |
DDoS高防服务地域ID。取值:
|
ResourceGroupId | String | 否 | default |
DDoS高防实例在资源管理产品中所属的资源组ID。默认为空,即属于默认资源组。 |
返回数据
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
RequestId | String | 0bcf28g5-d57c-11e7-9bs0-d89d6717dxbc |
本次请求的ID。 |
WebCustomPorts | Array |
网站业务自定义端口信息。 |
|
ProxyPorts | List | [80,8080] |
可选端口范围。 |
ProxyType | String | http |
协议类型。取值:
|
示例
请求示例
http(s)://[Endpoint]/?Action=DescribeWebCustomPorts
&<公共请求参数>
正常返回示例
XML
格式
<DescribeWebCustomPortsResponse>
<RequestId>0bcf28g5-d57c-11e7-9bs0-d89d6717dxbc</RequestId>
<WebCustomPorts>
<ProxyType>https</ProxyType>
<ProxyPorts>443</ProxyPorts>
<ProxyPorts>8443</ProxyPorts>
</WebCustomPorts>
<WebCustomPorts>
<ProxyType>http</ProxyType>
<ProxyPorts>80</ProxyPorts>
<ProxyPorts>8080</ProxyPorts>
</WebCustomPorts>
</DescribeWebCustomPortsResponse>
JSON
格式
{
"RequestId": "0bcf28g5-d57c-11e7-9bs0-d89d6717dxbc",
"WebCustomPorts": [
{
"ProxyType": "https",
"ProxyPorts": [
443,
8443
]
},
{
"ProxyType": "http",
"ProxyPorts": [
80,
8080
]
}
]
}
错误码
访问错误中心查看更多错误码。
在文档使用中是否遇到以下问题
更多建议
匿名提交