Queries the ports of a cloud service instance that are added to Web Application Firewall (WAF).
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-waf:DescribeResourcePort |
get |
*All Resource
|
|
None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The ID of the Web Application Firewall (WAF) instance. Note
You can call DescribeInstance to query the ID of the current WAF instance. |
waf_cdnsdf3**** |
| ResourceInstanceId |
string |
Yes |
The ID of the cloud service instance. |
8vb40vj87znu3ai7l5lv4-80**** |
| RegionId |
string |
No |
The region ID of WAF instance. Valid values:
|
cn-hangzhou |
| ResourceManagerResourceGroupId |
string |
No |
The ID of the Alibaba Cloud resource group. |
rg-acfm***q |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The query results. |
||
| RequestId |
string |
The request ID. |
66A98669-CC6E-4F3E-80A6-3014697B11AE |
| ResourcePorts |
array |
All HTTP and HTTPS listener ports that are added to WAF. |
|
|
string |
The HTTP and HTTPS listener ports. |
80 |
Examples
Success response
JSON format
{
"RequestId": "66A98669-CC6E-4F3E-80A6-3014697B11AE",
"ResourcePorts": [
"80"
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.