Queries the cache tag configuration of a site, including the tag name in origin responses used for tag-based cache purging.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
esa:GetCacheTag |
get |
*Site
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| SiteId |
integer |
Yes |
Site ID. Call ListSites to query site IDs. |
123456**** |
| SiteVersion |
integer |
No |
Version number of the site. |
1 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Response body. |
||
| RequestId |
string |
Request ID. |
156A6B-677B1A-4297B7-9187B7-2B44792 |
| CaseInsensitive |
string |
Whether cache tags are case-insensitive. Valid values:
Valid values:
|
on |
| TagName |
string |
Name of the custom cache tag. |
example |
| SiteVersion |
integer |
Version number of the site. |
1 |
Examples
Success response
JSON format
{
"RequestId": "156A6B-677B1A-4297B7-9187B7-2B44792",
"CaseInsensitive": "on",
"TagName": "example",
"SiteVersion": 1
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InternalException | Failed to call the service. Try again later or contact technical support. | Failed to call the service. Try again later or contact technical support. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.