ListRecommendManagedRules
Retrieves a list of recommended managed rules.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
config:ListRecommendManagedRules |
list |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| NextToken |
string |
No |
The token that specifies the position from which to start reading. If this parameter is left empty, the query starts from the beginning. |
IWBjqMYSy0is7zSMGu16**** |
| MaxResults |
integer |
No |
The maximum number of records to return for the current query. Default value: 200. |
200 |
| RegionIdsScope |
string |
No |
The scope of region IDs. Separate multiple region IDs with commas (,). |
cn-hangzhou |
| ExcludeRegionIdsScope |
string |
No |
The scope of region IDs to exclude. The rule does not apply to resources in the specified regions, and no evaluation is performed on resources in these regions. Separate multiple region IDs with commas (,). |
cn-shanghai |
| ResourceGroupIdsScope |
string |
No |
The scope of resource group IDs. The rule applies only to resources in the specified resource groups. Separate multiple resource group IDs with commas (,). |
rg-aekzc7r7rhx**** |
| ExcludeResourceGroupIdsScope |
string |
No |
The scope of resource group IDs to exclude. The rule does not apply to resources in the specified resource groups, and no evaluation is performed on resources in these resource groups. Separate multiple resource group IDs with commas (,). |
rg-bnczc6r7rml**** |
| ResourceIdsScope |
string |
No |
The scope of resource IDs. The rule applies to the specified resources. Separate multiple resource IDs with commas (,). |
lb-5cmbowstbkss9ta03**** |
| ExcludeResourceIdsScope |
string |
No |
The scope of resource IDs to exclude. The rule does not apply to the specified resources, and no evaluation is performed on these resources. Separate multiple resource IDs with commas (,). |
23642660635687**** |
| SelectedManagedRuleIdentifiers |
string |
No |
The identifiers of the managed rules that have been selected. Separate multiple rule identifiers with commas (,). Managed rules related to the resource types of the selected managed rules are not recommended. |
ram-user-last-login-expired-check |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The request ID. |
DC300244-FCE3-5061-8214-C27ECB66**** |
| RecommendedManagedRules |
object |
The list of recommended managed rules. |
|
| NextToken |
string |
The token used to start the next query. Note
If this value is empty, no more pages exist. |
zXZXbg4Mra0kOrhpwl21**** |
| MaxResults |
integer |
The maximum number of records returned for the current request. |
200 |
| TotalCount |
integer |
The total number of rules. |
39 |
| RecommendedManagedRuleList |
array<object> |
The list of managed rules. |
|
|
object |
|||
| ResourceTypeScope |
string |
The resource type. |
ACS::OSS::Bucket |
| Identifier |
string |
The identifier of the rule. |
oss-bucket-referer-limit |
| Description |
string |
The description of the managed rule. |
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 |
The name of the rule. |
oss-bucket-referer-limit |
Examples
Success response
JSON format
{
"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"
}
]
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | NoPermission | You are not authorized to perform this operation. | You are not authorized to perform this operation. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.