Retrieving Information About an Archive Rule
Function
This API is used to retrieve information about an archive rule.
Authorization Information
Each account root user 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:get | Read | archiveRule * | - | - | - |
URI
GET /v5/analyzers/{analyzer_id}/archive-rules/{archive_rule_id}
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| analyzer_id | Yes | String | Definition: Unique identifier of an analyzer. You can call the ListAnalyzers API to obtain the analyzer ID. The response parameters of this API return an analyzer list. The id field of each analyzer object is the analyzer ID. Range: 1 to 36 characters. Only letters, digits, underscores (_), and hyphens (-) are allowed. |
| archive_rule_id | Yes | String | Definition: Unique identifier of an archive rule. You can call the ListArchiveRules API to retrieve the list of archive rules created for a specified analyzer. The response of this API contains an archive rule list. Each archive rule object in the list contains a unique id field, which is the archive rule ID. Range: 1 to 36 characters. Only letters, digits, underscores (_), and hyphens (-) are allowed. |
Request Parameters
None
Response Parameters
Status code: 200
| Parameter | Type | Description |
|---|---|---|
| archive_rule | ArchiveRuleSummary object | Definition: Archive rule created by an analyzer. Range: N/A |
| Parameter | Type | Description |
|---|---|---|
| created_at | String | Definition: Time when an archive rule was created. The UTC+0 time zone is used. The format is yyyy-MM-ddTHH:mm:ss.SSSZ, for example, 2023-09-07T07:51:10.502Z. Range: N/A |
| filters | Array of FindingFilter objects | Definition: A filter to match the returned findings. Range: Array length: 1 to 20. |
| id | String | Definition: Unique identifier of an archive rule. Range: 1 to 36 characters. Only letters, digits, underscores (_), and hyphens (-) are allowed. |
| name | String | Definition: Name of the archive rule. Range: 1 to 255 characters. Only letters, digits, underscores (_), hyphens (-), and periods (.) are allowed. |
| updated_at | String | Definition: Time when the archive rule was last updated. The UTC+0 time zone is used. The format is yyyy-MM-ddTHH:mm:ss.SSSZ, for example, 2023-09-07T07:51:10.502Z. Range: N/A |
| urn | String | Definition: Unique resource identifier of an archive rule. Range: The value can contain up to 1,500 characters. |
| Parameter | Type | Description |
|---|---|---|
| criterion | Criterion object | Definition: Criteria in the filter. Constraints: Only one operator is allowed. Range: N/A Default Value: N/A |
| key | String | Definition: Filter key. Constraints: N/A Range: Default Value: N/A |
| Parameter | Type | Description |
|---|---|---|
| contains | Array of strings | Definition: Matching the "contains" operator in the filter. Constraints: N/A Range: Array length: 1 to 20. Default Value: N/A |
| eq | Array of strings | Definition: Matching the "eq" operator in the filter. Constraints: N/A Range: Array length: 1 to 20. Default Value: N/A |
| exists | Boolean | Definition: Matching the "exists" operator in the filter Constraints: N/A Range: N/A Default Value: N/A |
| neq | Array of strings | Definition: Matching the "neq" operator in the filter. Constraints: N/A Range: Array length: 1 to 20. Default Value: N/A |
Example Requests
Retrieving information about an archive rule
GET https://{hostname}/v5/analyzers/{analyzer_id}/archive-rules/{archive_rule_id} Example Responses
Status code: 200
OK
{
"archive_rule" : {
"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}"
}
} 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