Queries the cloud service instances to be added to Web Application Firewall (WAF) in transparent proxy mode.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- The required resource types are displayed in bold characters.
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
yundun-waf:DescribeProductInstances | get | *All Resources * |
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
InstanceId | string | Yes | The ID of the WAF instance. Note
You can call the DescribeInstance operation to query the ID of the WAF instance.
| waf_v3prepaid_public_cn-zxu****9d02 |
ResourceInstanceId | string | No | The ID of the instance. | lb-2zeugkfj81jvo****4tqm |
ResourceNamedeprecated | string | No | The name of the instance. | exampleResourceName |
ResourceRegionId | string | No | The region ID of the instance. Valid values:
| cn-hangzhou |
ResourceProduct | string | No | The cloud service to which the instance belongs. Valid values:
| clb7 |
PageNumber | long | No | The page number. Default value: 1. | 1 |
PageSize | long | No | The number of entries per page. Default value: 10. | 10 |
ResourceIpdeprecated | string | No | The public IP address of the instance. | 1.X.X.1 |
OwnerUserId | string | No | The ID of the Alibaba Cloud account to which the resource belongs. | 1704********9107 |
ResourceInstanceIp | string | No | The IP address of the instance that is added to WAF. | 1.X.X.1 |
ResourceInstanceName | string | No | The name of the instance that is added to WAF. | demoInstanceName |
RegionId | string | No | The region in which the WAF instance is deployed. Valid values:
| cn-hangzhou |
ResourceManagerResourceGroupId | string | No | The ID of the Alibaba Cloud resource group. | rg-aekz6ql****5uzi |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "FDCBAE1E-2B3F-5C13-AD20-844B9473****",
"TotalCount": 100,
"ProductInstances": [
{
"ResourceInstanceId": "i-2ze1tm4pvghp****cluv",
"ResourceName": "ecs-test",
"ResourceRegionId": "cn-beijing",
"ResourceProduct": "clb4",
"ResourcePorts": [
{
"Port": 443,
"Protocol": "https",
"Certificates": [
{
"CertificateName": "trafficxxxx.cn",
"CertificateId": "10106183"
}
]
}
],
"ResourceIp": "1.X.X.1",
"OwnerUserId": "1704********9107",
"ResourceInstanceIp": "1.X.X.1",
"ResourceInstanceName": "demoInstanceName"
}
]
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2024-07-09 | The request parameters of the API has changed. The response structure of the API has changed | View Change Details |
2024-04-02 | The request parameters of the API has changed | View Change Details |