Initializes a service-linked role for WAF.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InstanceId |
string |
Yes |
The ID of the WAF instance. Note
Call DescribeInstance to query the ID of your WAF instance. |
waf_v2_public_cn-*** |
| RegionId |
string |
No |
The region where the WAF instance resides. 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 |
|||
| RequestId |
string |
The request ID. |
4EC9EA6C-F80A-5D25-A8F7-*** |
Examples
Success response
JSON format
{
"RequestId": "4EC9EA6C-F80A-5D25-A8F7-***"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | RoleAlreadyExists | Service Linked Role Already Exists. | The role already exists. |
| 400 | NoPermissonCreatesServiceLinkedRole | No Permisson Create Service Linked Role. | You do not have the permissions to create the service-linked role. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.