基線策略根據id查詢詳情
更新時間 2025-04-30 15:53:16
最近更新時間: 2025-04-30 15:53:16
分享文章
接口功能介紹
根據id查詢基線策略詳情
接口約束
此功能為收費功能。確認已經購買系統配額,并且開啟基線掃描配置。如果沒有購買配額,可按照頁面提示進行購買。如果沒有開啟防護,請在服務器列表頁開啟機器防護
URI
GET /v1/sca/rule/query/detail/*
路徑參數
| 參數 | 是否必填 | 參數類型 | 說明 | 示例 | 下級對象 |
|---|---|---|---|---|---|
| scaRuleId | 是 | Integer | 策略id | 1 |
Query參數
無
請求參數
請求頭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 | 返回對象 | ScaRulesDto |
表 ScaRulesDto
| 參數 | 參數類型 | 說明 | 示例 | 下級對象 |
|---|---|---|---|---|
| id | Integer | 策略id | 1 | |
| name | String | 策略名稱 | 測試 | |
| checkfrequency | String | 檢測頻率 | 1 | |
| checktime | String | 檢測時間 | 00:00-06:00 | |
| description | String | 策略描述 | ||
| scarulesHostsDtoList | Array of Objects | 基線主機列表 | scarulesHostsDtoList | |
| scarulesScaDtoList | Array of Objects | 基線規則列表 | scarulesScaDtoList |
表 scarulesHostsDtoList
| 參數 | 參數類型 | 說明 | 示例 | 下級對象 |
|---|---|---|---|---|
| scaruleid | Integer | 策略id | 1 | |
| agentguid | String | 策略相關機器agentGuid | E3F52992-6046-4FA4-A926-61E45B184720 |
表 scarulesScaDtoList
| 參數 | 參數類型 | 說明 | 示例 | 下級對象 |
|---|---|---|---|---|
| scaruleid1 | Integer | 策略id | 1 | |
| scaid | Integer | 基線id | 1 |
枚舉參數
無
請求示例
請求url
無
請求頭header
{"regionid": "100054c0416811e9a6690242ac110002","Content-Type":"application/json","urlType": "CTAPI"}
請求體body
{"agentGuids":"E3F52992-6046-4FA4-A926-61E45B184720","checkfrequency":1,"checktime":"00:00-06:00","name":"4","osType":null,"scaId":0,"scaIds":"1",}
響應示例
{"statusCode": "200","error": "CTCSSCN_000000","message": "查詢成功!","returnObj":{"id": 233,"name": "44","checkfrequency": 2,"checktime": "06:00-12:00","description": null,"scaIds": null,"scaId": 0,"agentGuids": null,"zoneId": 173,"type": 0,"adminId": 0,"ctyunUserId": "3416ab34d51e43bd97bc32b23ffbb443","createtime": "2022-01-06T08:57:01.000+00:00","osType": null,"scarulesHostsDtoList": [{"scaruleid": 233,"agentguid": "E3F52992-6046-4FA4-A926-61E45B184720","createtime": "2022-02-25T08:12:28.000+00:00"},{"scaruleid": 233,"agentguid": "F5283205-CB2C-45E6-8629-9D5DB63D3AC3","createtime": "2022-02-25T08:12:28.000+00:00"}],"scarulesScaDtoList": [{"scaruleid": 233,"scaid": 1,"createtime": "2022-02-25T08:12:28.000+00:00"},{"scaruleid": 233,"scaid": 2,"createtime": "2022-02-25T08:12:28.000+00:00"}]}}
狀態碼
請參考
錯誤碼
請參考