Queries the ports of cloud services added to Web Application Firewall (WAF). This operation is supported only for Elastic Compute Service (ECS) and Classic Load Balancer (CLB).
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-waf:DescribeCloudResourceAccessedPorts |
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 the DescribeInstance operation to query the ID of the current WAF instance. |
waf-cn-tl32ast**** |
| ResourceInstanceId |
string |
Yes |
The instance ID of the resource. |
lb-bp1*****jqnnqk5uj2p |
| RegionId |
string |
No |
The region ID of the WAF instance. Valid values:
|
cn-hangzhou |
| ResourceManagerResourceGroupId |
string |
No |
The ID of the Alibaba Cloud resource group. |
rg-aekzwwkpn****5i |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The ID of the request. |
C1823E96-EF4B-5BD2-9E02-1D18****3ED8 |
| Http |
array |
The HTTP port. |
|
|
integer |
The HTTP port. |
[80] |
|
| Https |
array |
The HTTPS port. |
|
|
integer |
The HTTPS port. |
[443] |
Examples
Success response
JSON format
{
"RequestId": "C1823E96-EF4B-5BD2-9E02-1D18****3ED8",
"Http": [
0
],
"Https": [
0
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.