Get Least Privilege Access Metadata of a Resource
GET/iam/api/v1/resources/:resourceId/over-permissive-metadata
Returns metadata describing whether an asset has potential for access optimization
Request
Path Parameters
resourceId stringrequired
The resource ID
Responses
- 200
- 400
- 401
- 403
- 404
- 429
OK
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
- Array [
- ]
nextPageToken string
Next page token
permissionsInAssetCount int32
Number of actions in asset
permissionsInLeastPrivilegedCount int32
Number of actions in least privileged access
analysis object[]
Least Privileged result analysis
action string
configurationName string
keep boolean
value object[]
Least Privileged Access items
iamResourceName string
The name of the iam resource
iamResourceId string
The id of the iam resource
iamResourceType string
The type of iam resource
formatType string
Format type of the access policy
snippet string
The access policy
{
"nextPageToken": "++fdfkjsdlfsdfdFDSFDFSDFdfdssfdFDS",
"permissionsInAssetCount": 10,
"permissionsInLeastPrivilegedCount": 10,
"analysis": [
{
"action": "string",
"configurationName": "string",
"keep": true
}
],
"value": [
{
"iamResourceName": "MyIamResource",
"iamResourceId": "rrn:aws:iamRole::123456789012:3fab987adf7c268519219cdfe5a4c4c2d4dc:AROAXHNDH53GWC2HSVKSR",
"iamResourceType": "AWS_POLICY",
"formatType": "TERRAFORM",
"snippet": "A Terraform code for creating a policy"
}
]
}
Bad request
- application/json
- Schema
- Example (from schema)
Schema
error object
code stringrequired
message stringrequired
target string
details string[]
innerError
{
"error": {
"code": "string",
"message": "string",
"target": "string",
"details": [
"string"
]
}
}
Unauthorized
- application/json
- Schema
- Example (from schema)
Schema
error object
code stringrequired
message stringrequired
target string
details string[]
innerError
{
"error": {
"code": "string",
"message": "string",
"target": "string",
"details": [
"string"
]
}
}
Forbidden
- application/json
- Schema
- Example (from schema)
Schema
error object
code stringrequired
message stringrequired
target string
details string[]
innerError
{
"error": {
"code": "string",
"message": "string",
"target": "string",
"details": [
"string"
]
}
}
Not found
- application/json
- Schema
- Example (from schema)
Schema
error object
code stringrequired
message stringrequired
target string
details string[]
innerError
{
"error": {
"code": "string",
"message": "string",
"target": "string",
"details": [
"string"
]
}
}
Throttled
Response Headers
X-RateLimit-Remaining integer
X-RateLimit-Requested-Tokens integer
X-RateLimit-Burst-Capacity integer
X-RateLimit-Replenish-Rate integer
Loading...