接口功能介绍
基线模板列表查询
接口约束
此功能为收费功能。确认已经购买系统配额,并且开启基线扫描配置。如果没有购买配额,可按照页面提示进行购买。如果没有开启防护,请在服务器列表页开启机器防护
URI
GET /v1/sca/rule/query/scaList
路径参数
无
Query参数
参数 | 是否必填 | 参数类型 | 说明 | 示例 | 下级对象 |
---|---|---|---|---|---|
type | 否 | String | CTYUN_STANDARD 天翼云标准基线 CIS基线 |
CTYUN_STANDARD |
请求参数
请求头header参数
参数 | 是否必填 | 参数类型 | 说明 | 示例 | 下级对象 |
---|---|---|---|---|---|
regionid | 是 | String | 资源池id | 100054c0416811e9a6690242ac110002 | |
urlType | 是 | String | 请求地址类型。CTAPI | CTAPI | |
Content-Type | 是 | String | Content-Type | application/json |
请求体body参数
无
响应参数
参数 | 参数类型 | 说明 | 示例 | 下级对象 |
---|---|---|---|---|
statusCode | String | 状态码 200-成功 | ||
error | String | 返回码 CTCSSCN_000000:成功 CTCSSCN_000001:失败 CTCSSCN_000003:用户未签署协议,安全卫士系统无法正常使用 CTCSSCN_000004:鉴权错误 CTCSSCN_000005:用户没有付费版配额,功能不可用 |
CTCSSCN_000000 | |
message | String | 返回信息 | 成功 | |
returnObj | Object | 返回对象 | list |
表 list
参数 | 参数类型 | 说明 | 示例 | 下级对象 |
---|---|---|---|---|
id | Integer | 基线模板id | 1 | |
name | String | 基线模板中文名 | Red Hat 6企业版基线检测 | |
enname | String | 基线模板英文名 | CIS Benchmark for Red Hat Enterprise Linux 6 | |
scafile | String | 文件基线 | cis_rhel6_linux.yml | |
ostype | String | 操作系统 1:Linux 2:Windows |
1 | |
type | String | 模板类型 | CIS | |
createtime | String | 创建时间 | 2021-12-31T07:13:07.000+00:00 |
枚举参数
无
请求示例
请求url
无
请求头header
{"regionid": "100054c0416811e9a6690242ac110002","Content-Type":"application/json","urlType": "CTAPI"}
请求体body
{"name":"1111"}
响应示例
{"statusCode": "200","error": "CTCSSCN_000000","message": "查询成功!","returnObj": [{"id": 1,"name": "Red Hat 6企业版基线检测","enname": "CIS Benchmark for Red Hat Enterprise Linux 6","scafile": "cis_rhel6_linux.yml","ostype": 1,"type": "CIS","createtime": "2020-02-28T06:46:51.000+00:00"},{"id": 2,"name": "Apache HTTP Server 2.4基线检测","enname": "CIS Apache HTTP Server 2.4 Benchmark","scafile": "cis_apache_24.yml","ostype": 1,"type": "等保","createtime": "2020-02-28T07:58:49.000+00:00"},{"id": 3,"name": "MySQL 5.6 社区版基线检测","enname": "CIS benchmark for Oracle MySQL Community Server 5.6","scafile": "cis_mysql5-6_community.yml","ostype": 1,"type": "等保","createtime": "2020-02-28T07:58:52.000+00:00"},{"id": 4,"name": "MySQL 5.6企业版基线检测","enname": "CIS benchmark for Oracle MySQL Enterprise 5.6","scafile": "cis_mysql5-6_enterprise.yml","ostype": 1,"type": "CIS","createtime": "2020-03-05T07:05:38.000+00:00"},{"id": 5,"name": "Web应用漏洞审计","enname": "System audit for web-related vulnerabilities","scafile": "web_vulnerabilities.yml","ostype": 1,"type": "WEB","createtime": "2020-03-05T07:05:41.000+00:00"},{"id": 7,"name": "Unix系统基线检测","enname": "System audit for Unix based systems","scafile": "sca_unix_audit.yml","ostype": 1,"type": "unix","createtime": "2020-03-05T07:38:49.000+00:00"},{"id": 8,"name": "Red Hat 7企业版基线检测","enname": "CIS Benchmark for Red Hat Enterprise Linux 7","scafile": "cis_rhel7_linux.yml","ostype": 1,"type": "CIS","createtime": "2020-03-05T07:37:41.000+00:00"},{"id": 9,"name": "Windows审计基线","enname": "Benchmark for Windows auditing","scafile": "sca_win_audit.yml","ostype": 2,"type": null,"createtime": "2021-03-01T01:50:55.000+00:00"},{"id": 10,"name": "Windows 10 企业版安全基线检测","enname": "CIS benchmark for Windows 10 Enterprise","scafile": "cis_win10_enterprise.yml","ostype": 2,"type": null,"createtime": "2021-03-01T01:54:43.000+00:00"},{"id": 11,"name": "SQL Server 2012安全基线检测","enname": "CIS benchmark for SQL Server 2012","scafile": "cis_sqlserver_2012.yml","ostype": 2,"type": null,"createtime": "2021-03-01T01:54:54.000+00:00"},{"id": 15,"name": "Windows 2012 R2安全基线检测","enname": "CIS benchmark for Windows 2012 R2","scafile": "cis_win2012r2.yml","ostype": 2,"type": null,"createtime": "2021-03-01T01:57:17.000+00:00"},{"id": 16,"name": "Windows 2016安全基线检测","enname": "CIS benchmark for Windows 2016","scafile": "cis_win2016.yml","ostype": 2,"type": null,"createtime": "2021-03-01T01:57:37.000+00:00"}]}
状态码
请参考 状态码
错误码
请参考 错误码