Removes a cloud service from Web Application Firewall (WAF). This operation currently supports only 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:DeleteCloudResource |
delete |
DefenseResource
DefenseResource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The ID of the WAF instance. Note
Call DescribeInstance to view the ID of your WAF instance. |
waf_v2_public_cn-*** |
| ResourceManagerResourceGroupId |
string |
No |
The ID of the Alibaba Cloud resource group. |
rg-acfm***q |
ResourceProduct
deprecated
|
string |
No |
The type of the cloud service. Valid values:
|
clb7 |
ResourceInstanceId
deprecated
|
string |
No |
The ID of the cloud service instance. |
lb-bp1*****jqnnqk5uj2p |
Port
deprecated
|
integer |
No |
The port of the cloud service that is added to WAF. |
443 |
| CloudResourceId |
string |
No |
The ID of the protected resource. WAF automatically generates this ID when you add the cloud service to WAF. Note
Call CreateCloudResource to add a resource and then view the resource ID in the response. |
lb-****py9kcm2n6nuesiu2a-80-clb4 |
| RegionId |
string |
Yes |
The region where the WAF instance resides. Valid values:
|
cn-hangzhou |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The ID of the request. Alibaba Cloud generates a unique ID for each request. You can use this ID to troubleshoot issues. |
D7861F61-5B61-46CE-A47C-*** |
Examples
Success response
JSON format
{
"RequestId": "D7861F61-5B61-46CE-A47C-***"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | Waf.Control.DefenseResourceEmpty | CloudResourceId parameter is illegal. | CloudResourceId parameter is illegal |
| 400 | Waf.Control.CloudProductInfoEmpty | The resource Id of the cloud product accessing WAF is null or null values exist in the three input parameters of the cloud product name, port, and cloud product instance. | The resource Id of the cloud product accessing WAF is null or null values exist in the three input parameters of the cloud product name, port, and cloud product instance. |
| 400 | Waf.Control.CloudProductInfoNotMartch | The value of the cloud product, port, instance, and input parameter to which the resource ID of the cloud product is connected to WAF does not match. | The value of the cloud product, port, instance, and input parameter to which the resource ID of the cloud product is connected to WAF does not match. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.