All Products
Search
Document Center

Web Application Firewall:CopyDefenseTemplate

Last Updated:Apr 24, 2024

Creates a new protection template from the copy.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
InstanceIdstringYes

The ID of the Web Application Firewall (WAF) instance.

Note You can call the DescribeInstance operation to query the ID of the WAF instance.
waf_v2_public_cn-lbj****x10g
TemplateIdlongYes

The ID of the protection template that you want to copy.

12345
ResourceManagerResourceGroupIdstringNo

The ID of the Alibaba Cloud resource group.

rg-acfm***q
RegionIdstringNo

The region in which the WAF instance is deployed. Valid values:

  • cn-hangzhou: Chinese mainland.
  • ap-southeast-1: outside the Chinese mainland.
cn-hangzhou

Response parameters

ParameterTypeDescriptionExample
object
RequestIdstring

The request ID.

D7861F61-5B61-46CE-A47C-6B19****5EB0
TemplateIdlong

The ID of the new protection template.

12346

Examples

Sample success responses

JSONformat

{
  "RequestId": "D7861F61-5B61-46CE-A47C-6B19****5EB0",
  "TemplateId": 12346
}

Error codes

For a list of error codes, visit the Service error codes.