Listing Resource Analysis Configurations
Function
This API is used to list the resource analysis configuration of a specified analyzer.
Authorization Information
Each account has all the permissions required to call all APIs, but IAM users must be assigned the following required identity policy-based permissions. For details about the required permissions, see Permissions Policies and Supported Actions.
|
Action |
Access Level |
Resource Type (*: required) |
Condition Key |
Alias |
Dependencies |
|---|---|---|---|---|---|
|
AccessAnalyzer:analyzer:listResourceConfigurations |
List |
analyzer * |
g:ResourceTag/<tag-key> |
- |
- |
URI
GET /v5/analyzers/{analyzer_id}/resource-configurations
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
analyzer_id |
Yes |
String |
Unique identifier of an analyzer Minimum: 1 Maximum: 36 |
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
limit |
No |
Integer |
Maximum number of results on a page Minimum: 1 Maximum: 200 Default: 100 |
|
marker |
No |
String |
Page marker Minimum: 4 Maximum: 400 |
Request Parameters
None
Response Parameters
Status code: 200
|
Parameter |
Type |
Description |
|---|---|---|
|
resource_configurations |
Array of ResourceConfiguration objects |
Resource configuration in privilege escalation access. |
|
page_info |
PageInfo object |
Information on the page |
|
Parameter |
Type |
Description |
|---|---|---|
|
resource |
String |
Unique identifier of a resource. |
|
actions |
Array of strings |
List of operations to be analyzed for the current resource. |
|
Parameter |
Type |
Description |
|---|---|---|
|
current_count |
Integer |
Number of items on the current page |
|
next_marker |
String |
If present, it indicates that the available output is more than the output contained in the current response. Use this value in the marker request parameter in a subsequent call to the operation to get the next part of the output. You should repeat this operation until the next_marker response returns null. |
Status code: 400
|
Parameter |
Type |
Description |
|---|---|---|
|
error_code |
String |
Error code. |
|
error_msg |
String |
Error message. |
|
request_id |
String |
Request ID. |
|
encoded_authorization_message |
String |
Authentication information. |
Status code: 403
|
Parameter |
Type |
Description |
|---|---|---|
|
error_code |
String |
Error code. |
|
error_msg |
String |
Error message. |
|
request_id |
String |
Request ID. |
|
encoded_authorization_message |
String |
Authentication information. |
Status code: 404
|
Parameter |
Type |
Description |
|---|---|---|
|
error_code |
String |
Error code. |
|
error_msg |
String |
Error message. |
|
request_id |
String |
Request ID. |
|
encoded_authorization_message |
String |
Authentication information. |
Example Requests
Listing the resource analysis configuration of a specified analyzer
GET https://{hostname}/v5/analyzers/{analyzer_id}/resource-configurations
Example Responses
Status code: 200
OK
{
"resource_configurations" : [ {
"resource" : "iam::{domain_id}:agency:{agency_name}",
"actions" : [ "iam:agencies:create" ]
} ],
"page_info" : {
"current_count" : 1
}
}
Status Codes
|
Status Code |
Description |
|---|---|
|
200 |
OK |
|
400 |
Bad request |
|
403 |
Forbidden |
|
404 |
Not found |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot