Queries the metadata for all available governance evaluation items, including their names, IDs, descriptions, stages, resource detail metadata, and remediation guides.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
governance:ListEvaluationMetadata |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
The region ID. |
cn-hangzhou |
| Language |
string |
No |
The language. The definitions of the governance evaluation items are returned in this language. Valid values:
|
zh |
| LensCode |
string |
No |
||
| TopicCode |
string |
No |
ResourceUtilization |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response. |
||
| EvaluationMetadata |
array<object> |
The metadata of the governance evaluation definitions. |
|
|
array<object> |
The metadata of the governance evaluation definitions. |
||
| Metadata |
array<object> |
A list of metadata objects for a specific metadata type. |
|
|
array<object> |
A list of metadata objects for a specific metadata type. |
||
| Category |
string |
The pillar to which the check item belongs. |
Security |
| Description |
string |
The description of the check item. |
主账号 AccessKey 等同于主账号权限,无法进行条件限制(如访问来源 IP、访问时间等),一旦泄漏风险极大。有存在的主账号 AccessKey,则视为不合规。 |
| DisplayName |
string |
The display name. |
主账号存在启用的 AccessKey |
| Id |
string |
The random ID of the metadata. |
pxgtda**** |
| RecommendationLevel |
string |
The recommended administration level for the check item. |
High |
| RemediationMetadata |
object |
The remediation metadata. |
|
| Remediation |
array<object> |
The remediation item. |
|
|
array<object> |
The remediation item. |
||
| Actions |
array<object> |
The remediation action. |
|
|
array<object> |
The remediation action. |
||
| Classification |
string |
The category of the remediation method. Note
This parameter is returned only when |
UnusedAccessKeyInRamUser |
| CostDescription |
string |
The cost of the remediation. |
当前操作不产生费用 |
| Description |
string |
The description of the remediation. Note
This parameter is returned only when |
RAM 用户既启用控制台登录又保有子账号AK,且子账号AK从未使用。 |
| Guidance |
array<object> |
The remediation content. |
|
|
object |
The remediation content. |
||
| ButtonName |
string |
The display name of the button for the remediation step. |
手动修复 |
| ButtonRef |
string |
The URL to which the button for the remediation step redirects. |
https://ram.console.alibabacloud.com/users |
| Content |
string |
The content of the remediation step. |
需进行腾挪操作,步骤如下: |
| Title |
string |
The title of the remediation step. |
情况三:针对「90天内使用中的 AccessKey」 |
| Notice |
string |
Notes on remediation. |
此治理项会在配置审计中开启AccessKey及权限治理最佳实践合规包,从AccessKey、阿里云账号、RAM用户的设置和使用方式等方面进行检测。 |
| Suggestion |
string |
The suggested remediation. Note
This parameter is returned only when |
该RAM用户既启用控制台登录又保有子账号AK,且子账号AccessKey从未使用过,因此建议禁用该AccessKey。禁用90天后,如果没有发生与该AcccessKey相关的问题,则可以直接删除该AccessKey。 |
| RemediationType |
string |
The remediation type. Valid values:
|
Manual |
| ResourceMetadata |
object |
The resource metadata of the check item. |
|
| ResourcePropertyMetadata |
array<object> |
The resource property metadata. |
|
|
object |
The resource property metadata. |
||
| DisplayName |
string |
The display name of the property. |
AccessKey 最后使用时间 |
| PropertyName |
string |
The name of the resource property. |
AkLastUsedTime |
| PropertyType |
string |
The type of the resource property. |
String |
| Scope |
string |
The scope of the check item. Valid values:
|
Account |
| Stage |
string |
The stage of the check item. Valid values:
|
Released |
| TopicCode |
string |
ResourceUtilization |
|
| Type |
string |
The metadata type. Valid values:
|
Metric |
| RequestId |
string |
The request ID. |
16B208DD-86BD-5E7D-AC93-FFD44B6FBDF1 |
Examples
Success response
JSON format
{
"EvaluationMetadata": [
{
"Metadata": [
{
"Category": "Security",
"Description": "主账号 AccessKey 等同于主账号权限,无法进行条件限制(如访问来源 IP、访问时间等),一旦泄漏风险极大。有存在的主账号 AccessKey,则视为不合规。",
"DisplayName": "主账号存在启用的 AccessKey",
"Id": "pxgtda****",
"RecommendationLevel": "High",
"RemediationMetadata": {
"Remediation": [
{
"Actions": [
{
"Classification": "UnusedAccessKeyInRamUser",
"CostDescription": "当前操作不产生费用",
"Description": "RAM 用户既启用控制台登录又保有子账号AK,且子账号AK从未使用。",
"Guidance": [
{
"ButtonName": "手动修复",
"ButtonRef": "https://ram.console.alibabacloud.com/users",
"Content": "需进行腾挪操作,步骤如下:1. 进入 RAM 控制台,「身份管理」-「用户」,单击「创建用户」。2. 填写「登录名称」,下方「访问方式」,勾选 OpenAPI 调用访问。3. 创建成功后,保存该 RAM 用户的 AccessKey,勾选该 RAM 用户,单击「添加权限」,在弹出的侧边栏中,添加 AdministratorAccess权限。4. 在程序中将主账号 AccessKey 替换为上步骤中创建的 RAM 用户 AccessKey,在相应的测试环境中验证程序逻辑是否正常。5. 如果验证通过,将程序发布到生产环境,并将主账号 AccessKey 禁用,观察应用是否正常。6. 如果应用正常,则等待一定时间(如 3 个月),将禁用的主账号 AccessKey 删除。",
"Title": "情况三:针对「90天内使用中的 AccessKey」"
}
],
"Notice": "此治理项会在配置审计中开启AccessKey及权限治理最佳实践合规包,从AccessKey、阿里云账号、RAM用户的设置和使用方式等方面进行检测。",
"Suggestion": "该RAM用户既启用控制台登录又保有子账号AK,且子账号AccessKey从未使用过,因此建议禁用该AccessKey。禁用90天后,如果没有发生与该AcccessKey相关的问题,则可以直接删除该AccessKey。"
}
],
"RemediationType": "Manual"
}
]
},
"ResourceMetadata": {
"ResourcePropertyMetadata": [
{
"DisplayName": "AccessKey 最后使用时间",
"PropertyName": "AkLastUsedTime",
"PropertyType": "String"
}
]
},
"Scope": "Account",
"Stage": "Released",
"TopicCode": "ResourceUtilization"
}
],
"Type": "Metric"
}
],
"RequestId": "16B208DD-86BD-5E7D-AC93-FFD44B6FBDF1"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 500 | InternalError | A system error occurred. | A system error occurred. |
| 404 | InvalidEnterpriseRealName.NotFound | The specified account has not passed enterprise real name verification. Please complete the verification for the account first. | The specified account has not passed enterprise real-name verification. Please complete the verification for the account first. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.