Creates a Web Application Firewall (WAF) 3.0 pay-as-you-go instance.
Operation description
Each Alibaba Cloud account can have only one WAF instance in the same region (the Chinese mainland or outside the Chinese mainland). Before calling this operation, call the DescribeInstance operation to check whether a WAF instance already exists in the region specified by RegionId. If a pay-as-you-go instance already exists, call the ReleaseInstance operation to release it. If a subscription instance already exists, unsubscribe from it in the WAF console. You can create a new pay-as-you-go instance only after the existing instance is released or unsubscribed.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-waf:CreatePostpaidInstance |
create |
*All Resource
|
|
None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
The region where the WAF instance resides. Valid values:
|
cn-hangzhou |
| ResourceManagerResourceGroupId |
string |
No |
The Alibaba Cloud resource group ID. |
rg-acfm4gh****wela |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
73A4E786-8235-50C0-9631-87C8****4A36 |
| InstanceId |
string |
The WAF instance ID. |
waf_v2_public_cn-x0r****gr1i |
Examples
Success response
JSON format
{
"RequestId": "73A4E786-8235-50C0-9631-87C8****4A36",
"InstanceId": "waf_v2_public_cn-x0r****gr1i"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.