All Products
Search
Document Center

:DescribeTemplateResources

Last Updated:Feb 10, 2023

Queries the resources bound by the protection rule template.

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.

NoteYou can call the DescribeInstance operation to query the ID of the WAF instance.
waf_cdnsdf3****
TemplateIdlongYes

The ID of the protection rule template.

1020
ResourceTypestringYes

The type of the protected resource. Valid values:

  • single: protected object.
  • group: protected object group.
single

Response parameters

ParameterTypeDescriptionExample
object

The result of the request.

RequestIdstring

The ID of the request.

C7BC9373-3960-53B0-8968-2B13454AE18F
Resourcesarray

An array of the names of the protected objects or protected object groups with which the protection rule template is associated.

string

The name of the protected object or protected object group.

alb-wewbb23dfset***

Example

Normal return example

JSONFormat

{
  "RequestId": "C7BC9373-3960-53B0-8968-2B13454AE18F",
  "Resources": [
    "alb-wewbb23dfset***"
  ]
}

Error codes

For a list of error codes, visit the API error center.