查询指定资源在Analyzer中的分析详情。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
accessanalyzer:GetAnalyzedResource |
none |
*Analyzer
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| ResourceArn |
string |
是 |
资源 ARN |
acs:ram::1944809621972557:role/testrole |
| AnalyzerName |
string |
是 |
分析器名称 |
MyAnalyzer |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
Schema of Response |
||
| RequestId |
string |
请求 ID |
E50DF194-4173-5ECF-A2C1-EB2BF7C54868 |
| Resource |
object |
被分析资源的详情 |
|
| Actions |
array |
外部主体被允许对该资源执行的操作列表。仅当资源存在外部访问 Finding 时返回 |
|
|
string |
对该资源执行的 RAM 权限动作 |
oss:GetBucket |
|
| AnalyzedTime |
string |
资源最近一次被分析的时间。时间格式为 ISO 8601,时区为 UTC。 |
2026-05-19T08:02:36Z |
| CreatedTime |
string |
资源对应 Finding 创建的时间。时间格式为 ISO 8601,时区为 UTC。 |
2026-05-18T14:04:55Z |
| UpdatedTime |
string |
资源对应 Finding 更新的时间。时间格式为 ISO 8601,时区为 UTC。 |
2026-05-19T08:02:36Z |
| Error |
string |
如果分析报错,则为报错的原因 |
ACCESS_DENIED |
| IsPublic |
boolean |
是否允许所有外部访问 |
true |
| ResourceArn |
string |
资源 Arn |
acs:ram::1944809621972557:role/testrole |
| ResourceType |
string |
资源类型 |
ACS::RAM::Role |
| ResourceOwnerAccount |
string |
资源所属的账号 ID |
1944809621972557 |
| SourceTypes |
array |
暴露的途径,当资源类型是 OSS Bucket 时有值 |
|
|
string |
暴露的途径 |
BUCKET_ACL |
|
| Status |
string |
从分析的资源生成的 Finding 的当前状态 |
Active |
示例
正常返回示例
JSON格式
{
"RequestId": "E50DF194-4173-5ECF-A2C1-EB2BF7C54868",
"Resource": {
"Actions": [
"oss:GetBucket"
],
"AnalyzedTime": "2026-05-19T08:02:36Z",
"CreatedTime": "2026-05-18T14:04:55Z",
"UpdatedTime": "2026-05-19T08:02:36Z",
"Error": "ACCESS_DENIED",
"IsPublic": true,
"ResourceArn": "acs:ram::1944809621972557:role/testrole",
"ResourceType": "ACS::RAM::Role",
"ResourceOwnerAccount": "1944809621972557",
"SourceTypes": [
"BUCKET_ACL"
],
"Status": "Active"
}
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 500 | InternalError | The request processing has failed due to some unknown error. | 内部服务错误。 |
| 404 | EntityNotExist.%s | The %s does not exist. | %s不存在 |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。