本介面用於擷取推薦的託管規則列表。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
config:ListRecommendManagedRules |
list |
*全部資源
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| NextToken |
string |
否 |
標記當前開始讀取的位置,置空表示從頭開始。 |
IWBjqMYSy0is7zSMGu16**** |
| MaxResults |
integer |
否 |
本次讀取的最巨量資料記錄數量。預設值:200。 |
200 |
| RegionIdsScope |
string |
否 |
地區 ID 範圍。多個地區 ID 用半形逗號(,)分隔。 |
cn-hangzhou |
| ExcludeRegionIdsScope |
string |
否 |
規則對指定地區內資源無效,即不對該地區內資源執行評估。多個地區 ID 之間用半形逗號(,)分隔。 |
cn-shanghai |
| ResourceGroupIdsScope |
string |
否 |
規則僅對指定資源群組 ID 中的資源生效。多個資源群組 ID 之間用半形逗號(,)分隔。 |
rg-aekzc7r7rhx**** |
| ExcludeResourceGroupIdsScope |
string |
否 |
規則對指定資源群組 ID 中的資源無效,即不對該資源群組內的資源評估。多個資源群組 ID 之間用半形逗號(,)分隔。 |
rg-bnczc6r7rml**** |
| ResourceIdsScope |
string |
否 |
規則對指定資源 ID 生效。多個資源 ID 之間用半形逗號(,)分隔。 |
lb-5cmbowstbkss9ta03**** |
| ExcludeResourceIdsScope |
string |
否 |
合規包對指定資源 ID 無效,即不對該資源執行評估。多個資源 ID 之間用半形逗號(,)分隔。 |
23642660635687**** |
| SelectedManagedRuleIdentifiers |
string |
否 |
已選擇過的託管規則,多個規則用半形逗號分隔。 不會推薦已選擇託管規則對應資源類型的相關託管規則。 |
ram-user-last-login-expired-check |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
Schema of Response |
||
| RequestId |
string |
請求 ID。 |
DC300244-FCE3-5061-8214-C27ECB66**** |
| RecommendedManagedRules |
object |
規則列表 |
|
| NextToken |
string |
下一個查詢開始的 Token。 說明
如果為空白,則說明無下一頁。 |
zXZXbg4Mra0kOrhpwl21**** |
| MaxResults |
integer |
本次請求返回結果的最大記錄條數。 |
200 |
| TotalCount |
integer |
規則總數。 |
39 |
| RecommendedManagedRuleList |
array<object> |
託管規則列表 |
|
|
object |
|||
| ResourceTypeScope |
string |
資源類型 |
ACS::OSS::Bucket |
| Identifier |
string |
規則標識。 |
oss-bucket-referer-limit |
| Description |
string |
託管規則的描述資訊。 |
If the hotlink protection feature is enabled for the OSS bucket and the Referer is added to a specified whitelist, the configuration is considered compliant. |
| ConfigRuleName |
string |
規則名稱。 |
oss-bucket-referer-limit |
樣本
正常返回樣本
JSON格式
{
"RequestId": "DC300244-FCE3-5061-8214-C27ECB66****",
"RecommendedManagedRules": {
"NextToken": "zXZXbg4Mra0kOrhpwl21****",
"MaxResults": 200,
"TotalCount": 39,
"RecommendedManagedRuleList": [
{
"ResourceTypeScope": "ACS::OSS::Bucket",
"Identifier": "oss-bucket-referer-limit",
"Description": "If the hotlink protection feature is enabled for the OSS bucket and the Referer is added to a specified whitelist, the configuration is considered compliant.",
"ConfigRuleName": "oss-bucket-referer-limit"
}
]
}
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 400 | NoPermission | You are not authorized to perform this operation. | 您無權執行此操作。 |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。