Retrieving a List of Archive Rules Created for the Specified Analyzer
Function
This API is used to retrieve a list of archive rules created for the 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:archiveRule:list |
List |
archiveRule * |
- |
- |
- |
URI
GET /v5/analyzers/{analyzer_id}/archive-rules
|
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 |
|---|---|---|
|
archive_rules |
Array of ArchiveRuleSummary objects |
List of archive rules created for the specified analyzer. |
|
page_info |
PageInfo object |
Information on the page |
|
Parameter |
Type |
Description |
|---|---|---|
|
created_at |
String |
Time when an archive rule was created. |
|
filters |
Array of FindingFilter objects |
A filter to match the returned findings. |
|
id |
String |
Unique identifier of an archive rule |
|
name |
String |
Name of the archive rule. |
|
updated_at |
String |
Time when the archive rule was last updated |
|
urn |
String |
Unique resource identifier of an archive rule. |
|
Parameter |
Type |
Description |
|---|---|---|
|
criterion |
Criterion object |
Criteria in the filter. Only one operator is allowed. |
|
key |
String |
Filter key.
|
|
Parameter |
Type |
Description |
|---|---|---|
|
contains |
Array of strings |
Matching the "contains" operator in the filter Array Length: 1 - 20 |
|
eq |
Array of strings |
Matching the "eq" operator in the filter Array Length: 1 - 20 |
|
exists |
Boolean |
Matching the "exists" operator in the filter |
|
neq |
Array of strings |
Matching the "neq" operator in the filter Array Length: 1 - 20 |
|
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. |
Example Requests
Retrieving a list of archive rules created for the specified analyzer
GET https://{hostname}/v5/analyzers/{analyzer_id}/archive-rules
Example Responses
Status code: 200
OK
{
"archive_rules" : [ {
"created_at" : "2023-09-07T08:35:41.997Z",
"filters" : [ {
"criterion" : {
"eq" : [ "iam:agency" ]
},
"key" : "resource_type"
} ],
"id" : "{archive_rule_id}",
"name" : "my-archive-rules",
"updated_at" : "2023-09-07T08:35:41.997Z",
"urn" : "AccessAnalyzer:{region_id}:{domain_id}:archiveRule:{analyzer_id}/{archive_rule_id}"
} ],
"page_info" : {
"current_count" : 1,
"next_marker" : null
}
}
Status Codes
|
Status Code |
Description |
|---|---|
|
200 |
OK |
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