接口请求域名: teo.intl.tencentcloudapi.com 。
查询 JavaScript 注入规则。
默认接口请求频率限制:20次/秒。
以下请求参数列表仅列出了接口请求参数和部分公共参数,完整公共参数列表见 公共请求参数。
| 参数名称 | 必选 | 类型 | 描述 |
|---|---|---|---|
| Action | 是 | String | 公共参数,本接口取值:DescribeSecurityJSInjectionRule。 |
| Version | 是 | String | 公共参数,本接口取值:2022-09-01。 |
| Region | 否 | String | 公共参数,此参数为可选参数。 |
| ZoneId | 是 | String | 站点 ID。 |
| Limit | 否 | Integer | 分页查询限制数目。默认值:20,最大值:100。 |
| Offset | 否 | Integer | 分页查询偏移量。默认值:0。 |
| 参数名称 | 类型 | 描述 |
|---|---|---|
| TotalCount | Integer | JavaScript 注入规则总数量。 |
| JSInjectionRules | Array of JSInjectionRule | JavaScript 注入规则列表。 |
| RequestId | String | 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 |
分页查询站点下 JavaScript 注入规则。
POST / HTTP/1.1
Host: teo.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: DescribeSecurityJSInjectionRule
<公共请求参数>
{
"ZoneId": "zone-123123232",
"Limit": 10,
"Offset": 0
}
{
"Response": {
"TotalCount": 1,
"JSInjectionRules": [
{
"RuleId": "injection-123219329",
"Name": "test",
"Condition": "${http.request.host} in ['www.test.com'] and ${http.request.uri.path} in ['/atteffa/geo-info']",
"InjectJS": "inject-sdk-only",
"Priority": 2
}
],
"RequestId": "ddf831fc-cf45-40fe-81b0-2d9cdd4c1bd6"
}
}
云 API 3.0 提供了配套的开发工具集(SDK),支持多种编程语言,能更方便的调用 API。
该接口暂无业务逻辑相关的错误码,其他错误码详见 公共错误码。
文档反馈