基線策略基線模板列表查詢
更新時間 2025-04-30 15:53:32
最近更新時間: 2025-04-30 15:53:32
分享文章
接口功能介紹
基線模板列表查詢
接口約束
此功能為收費功能。確認已經購買系統配額,并且開啟基線掃描配置。如果沒有購買配額,可按照頁面提示進行購買。如果沒有開啟防護,請在服務器列表頁開啟機器防護
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"}]}
狀態碼
請參考
錯誤碼
請參考