Domain name for API request: teo.tencentcloudapi.com.
This API is used to query the security protection configuration. You must either specify "ZoneId+Entity" or "TemplateId".
A maximum of 20 requests can be initiated per second for this API.
The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.
Parameter Name | Required | Type | Description |
---|---|---|---|
Action | Yes | String | Common Params. The value used for this API: DescribeSecurityPolicy. |
Version | Yes | String | Common Params. The value used for this API: 2022-09-01. |
Region | Yes | String | Common Params. For more information, please see the list of regions supported by the product. |
ZoneId | No | String | The site ID. |
Entity | No | String | The subdomain name/L4 proxy. You must specify either "Entity" or "TemplateId". |
TemplateId | No | String | The template ID. You must specify either this field or "Entity". |
Parameter Name | Type | Description |
---|---|---|
SecurityConfig | SecurityConfig | Security configuration. Note: This field may return null, indicating that no valid values can be obtained. |
RequestId | String | The unique request ID, which is returned for each request. RequestId is required for locating a problem. |
POST / HTTP/1.1
Host: teo.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: DescribeSecurityPolicy
<Common request parameters>
{
"Entity": "www.example.com",
"ZoneId": "zone-xxqr76cy"
}
{
"Response": {
"SecurityConfig": {
"SwitchConfig": {
"WebSwitch": "on"
}
},
"RequestId": "wef982hjg0-334j39-348j3w"
}
}
TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.
The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.
Error Code | Description |
---|---|
InternalError.ProxyServer | An unknown error occurred in the backend server. |
本页内容是否解决了您的问题?