1. 接口描述
接口请求域名: cwp.tencentcloudapi.com 。
获取基线策略列表
默认接口请求频率限制:20次/秒。
推荐使用 API Explorer
点击调试
API Explorer 提供了在线调用、签名验证、SDK 代码生成和快速检索接口等能力。您可查看每次调用的请求内容和返回结果以及自动生成 SDK 调用示例。
2. 输入参数
以下请求参数列表仅列出了接口请求参数和部分公共参数,完整公共参数列表见 公共请求参数。
参数名称 | 必选 | 类型 | 描述 |
---|---|---|---|
Action | 是 | String | 公共参数,本接口取值:DescribeBaselinePolicyList。 |
Version | 是 | String | 公共参数,本接口取值:2018-02-28。 |
Region | 否 | String | 公共参数,此参数为可选参数。 |
Filters.N | 否 | Array of Filter | |
Limit | 否 | Integer | 限制条数,默认10,最大100 |
Offset | 否 | Integer | 偏移量,默认0 |
Order | 否 | String | 排序方式: [ASC:升序|DESC:降序] |
By | 否 | String | 可选排序列: [RuleCount|ItemCount|HostCount] |
3. 输出参数
参数名称 | 类型 | 描述 |
---|---|---|
List | Array of BaselinePolicy | 无 |
Total | Integer | 总数 |
RequestId | String | 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。 |
4. 示例
示例1 策略列表
输入示例
POST / HTTP/1.1
Host: cwp.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: DescribeBaselinePolicyList
<公共请求参数>
{}
输出示例
{
"Response": {
"List": [
{
"PolicyName": "未授权访问",
"DetectInterval": 1,
"DetectTime": "17:00:00",
"IsEnabled": 1,
"AssetType": 0,
"RuleIds": [
70,
71,
72,
73,
74,
75,
76
],
"HostIds": [],
"HostIps": [],
"PolicyId": 63,
"RuleCount": 7,
"ItemCount": 7,
"HostCount": 8,
"IsDefault": 1
},
{
"PolicyName": "腾讯安全标准",
"DetectInterval": 1,
"DetectTime": "17:00:00",
"IsEnabled": 1,
"AssetType": 0,
"RuleIds": [
120,
121,
122,
123,
124,
125
],
"HostIds": [],
"HostIps": [],
"PolicyId": 64,
"RuleCount": 6,
"ItemCount": 35,
"HostCount": 8,
"IsDefault": 1
},
{
"PolicyName": "29sjjsjsdk529ssj1kckdkckjssioe0e9diceivffffjfffjfffi29495888529sjjsjsdkckdkckjssioe0e9diceivffffjfffjfffi294958885",
"DetectInterval": 1,
"DetectTime": "09:35:30",
"IsEnabled": 1,
"AssetType": 0,
"RuleIds": [
11
],
"HostIds": [],
"HostIps": [
""
],
"PolicyId": 136,
"RuleCount": 1,
"ItemCount": 91,
"HostCount": 8,
"IsDefault": 0
},
{
"PolicyName": "CIS基线",
"DetectInterval": 3,
"DetectTime": "17:00:00",
"IsEnabled": 1,
"AssetType": 0,
"RuleIds": [
11,
12,
13,
14,
15,
16,
17,
18,
19,
20,
21,
22
],
"HostIds": [],
"HostIps": [
""
],
"PolicyId": 59,
"RuleCount": 12,
"ItemCount": 1427,
"HostCount": 8,
"IsDefault": 1
},
{
"PolicyName": "ggg",
"DetectInterval": 3,
"DetectTime": "21:37:30",
"IsEnabled": 1,
"AssetType": 0,
"RuleIds": [
11
],
"HostIds": [],
"HostIps": [
""
],
"PolicyId": 171,
"RuleCount": 1,
"ItemCount": 91,
"HostCount": 8,
"IsDefault": 0
},
{
"PolicyName": "自定义",
"DetectInterval": 1,
"DetectTime": "09:35:30",
"IsEnabled": 1,
"AssetType": 0,
"RuleIds": [
35184372088841
],
"HostIds": [],
"HostIps": [
""
],
"PolicyId": 161,
"RuleCount": 1,
"ItemCount": 1,
"HostCount": 8,
"IsDefault": 0
},
{
"PolicyName": "test1",
"DetectInterval": 1,
"DetectTime": "02:00:00",
"IsEnabled": 1,
"AssetType": 0,
"RuleIds": [
11
],
"HostIds": [],
"HostIps": [
""
],
"PolicyId": 268,
"RuleCount": 1,
"ItemCount": 91,
"HostCount": 8,
"IsDefault": 0
},
{
"PolicyName": "全部",
"DetectInterval": 1,
"DetectTime": "09:35:30",
"IsEnabled": 1,
"AssetType": 0,
"RuleIds": [
11,
12,
13,
14,
15,
16,
17,
18,
19,
20,
21,
22,
23,
24,
25,
26,
27,
28,
29,
30,
31,
32,
33,
34,
50,
51,
52,
53,
54,
55,
56,
57,
58,
70,
71,
72,
73,
74,
75,
76,
90,
91,
100,
101,
102,
103,
104,
105,
106,
120,
121,
122,
123,
124,
125,
126,
127,
128,
129,
130,
131,
132,
133,
134,
135,
136,
35184372088833,
35184372088835,
35184372088836,
35184372088841,
35184372088842,
35184372088843,
35184372088844,
35184372088846,
35184372088847,
35184372088848
],
"HostIds": [],
"HostIps": [
""
],
"PolicyId": 168,
"RuleCount": 76,
"ItemCount": 2955,
"HostCount": 8,
"IsDefault": 0
},
{
"PolicyName": "等保三级",
"DetectInterval": 1,
"DetectTime": "17:00:00",
"IsEnabled": 1,
"AssetType": 0,
"RuleIds": [
30,
31,
32,
33,
34
],
"HostIds": [],
"HostIps": [],
"PolicyId": 61,
"RuleCount": 5,
"ItemCount": 173,
"HostCount": 8,
"IsDefault": 1
},
{
"PolicyName": "专业版主机弱口令+旗舰版",
"DetectInterval": 1,
"DetectTime": "00:00:00",
"IsEnabled": 1,
"AssetType": 1,
"RuleIds": [
50
],
"HostIds": [
"044889f8-d6a2-4fc3-a8a8-c114b6f5266b",
"a0770b41-9697-4a1d-8150-b8fa247b6189",
"cc0e8a25-7169-4b5c-a929-2b4cccbfce10"
],
"HostIps": [
""
],
"PolicyId": 172,
"RuleCount": 1,
"ItemCount": 1,
"HostCount": 3,
"IsDefault": 0
}
],
"RequestId": "5c340825-dbc9-4410-a47f-75eab15769d7",
"Total": 19
}
}
5. 开发者资源
腾讯云 API 平台
腾讯云 API 平台 是综合 API 文档、错误码、API Explorer 及 SDK 等资源的统一查询平台,方便您从同一入口查询及使用腾讯云提供的所有 API 服务。
API Inspector
用户可通过 API Inspector 查看控制台每一步操作关联的 API 调用情况,并自动生成各语言版本的 API 代码,也可前往 API Explorer 进行在线调试。
SDK
云 API 3.0 提供了配套的开发工具集(SDK),支持多种编程语言,能更方便的调用 API。
- Tencent Cloud SDK 3.0 for Python: GitHub Gitee
- Tencent Cloud SDK 3.0 for Java: GitHub Gitee
- Tencent Cloud SDK 3.0 for PHP: GitHub Gitee
- Tencent Cloud SDK 3.0 for Go: GitHub Gitee
- Tencent Cloud SDK 3.0 for Node.js: GitHub Gitee
- Tencent Cloud SDK 3.0 for .NET: GitHub Gitee
- Tencent Cloud SDK 3.0 for C++: GitHub Gitee
- Tencent Cloud SDK 3.0 for Ruby: GitHub Gitee
命令行工具
6. 错误码
以下仅列出了接口业务逻辑相关的错误码,其他错误码详见 公共错误码。
错误码 | 描述 |
---|---|
FailedOperation | 操作失败。 |
InternalError | 内部错误。 |
InvalidParameter | 参数错误。 |