CreateWebFilterTemplate
Creates a web filtering template. The template is at the user granularity and can be referenced by access control policies of Internet, NAT, and virtual private cloud (VPC) firewalls. Web filtering rules can be added to the template. Before creating a template, ensure that the web filtering feature is enabled and the number of templates does not exceed the instance quota.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-cloudfirewall:CreateWebFilterTemplate |
create |
*All Resource
|
None | None |
Request syntax
GET HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Name |
string |
Yes |
The name of the web filtering template. The name must be 1 to 64 characters in length and can contain Chinese characters, letters, digits, hyphens (-), underscores (_), and periods (.). It cannot contain spaces or be empty. |
WebFilterTemplate01 |
| Status |
string |
Yes |
The status of the web filtering template. Valid values:
|
Enable |
| Description |
string |
No |
The description of the web filtering template. The description can be up to 128 characters in length and can be empty. |
Web filtering template for URL access control |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response data. |
||
| RequestId |
string |
The request ID. |
CBF1E9B7-D6A0-4E9E-AD3E-2B47E6C2837D |
| WebFilterTemplateId |
string |
The ID of the newly created web filtering template. |
wft-3f2a9c1d4b5e6f70 |
Examples
Success response
JSON format
{
"RequestId": "CBF1E9B7-D6A0-4E9E-AD3E-2B47E6C2837D",
"WebFilterTemplateId": "wft-3f2a9c1d4b5e6f70"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | ErrorWebFilterTemplateQuotaLimit | The number of Web filter templates exceeds the specification limit. | The number of Web filtering templates exceeds the specification limit |
| 400 | ErrorTemplateNameInvalid | Parameter template name invalid. | Template name error |
| 400 | ErrorDescriptionInvalid | Parameter description invalid. | Parameter description error |
| 400 | ErrorWebFilterFeatureDisabled | Web filter feature not enabled. | Web filtering not enabled |
| 400 | ErrorParameters | Parameters error. | Parameter error. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.