Updating the Criteria and Values of the Specified Archive Rule
Function
This API is used to update the criteria and values of the specified archive rule.
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:update |
Write |
archiveRule * |
- |
- |
- |
URI
PUT /v5/analyzers/{analyzer_id}/archive-rules/{archive_rule_id}
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
analyzer_id |
Yes |
String |
Unique identifier of an analyzer Minimum: 1 Maximum: 36 |
|
archive_rule_id |
Yes |
String |
Unique identifier of an archive rule Minimum: 1 Maximum: 36 |
Request Parameters
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
filters |
Yes |
Array of FindingFilter objects |
A filter to match the returned findings. Array Length: 1 - 10 |
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
criterion |
Yes |
Criterion object |
Criteria in the filter. Only one operator is allowed. |
|
key |
Yes |
String |
Filter key.
|
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
contains |
No |
Array of strings |
Matching the "contains" operator in the filter Array Length: 1 - 20 |
|
eq |
No |
Array of strings |
Matching the "eq" operator in the filter Array Length: 1 - 20 |
|
exists |
No |
Boolean |
Matching the "exists" operator in the filter |
|
neq |
No |
Array of strings |
Matching the "neq" operator in the filter Array Length: 1 - 20 |
Response Parameters
Status code: 200
OK
None
Example Requests
Updating the criteria and values of the specified archive rule
PUT https://{hostname}/v5/analyzers/{analyzer_id}/archive-rules/{archive_rule_id}
{
"filters" : [ {
"criterion" : {
"eq" : [ "iam:agency" ]
},
"key" : "resource_type"
}, {
"criterion" : {
"eq" : [ "obs:bucket" ]
},
"key" : "resource_type"
} ]
}
Example Responses
None
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