- HTTP request
- Path parameters
- Request body
- Response body
- Authorization scopes
- UpdateRuleRequest
- RuleUpdates
- Try it!
Full name: projects.locations.instances.rules.modifyRules
rules.modifyRules allows users to modify the rule config for multiple rules at once.
HTTP request
POST https://chronicle.africa-south1.rep.googleapis.com/v1alpha/{parent}/rules:modifyRules Path parameters
| Parameters | |
|---|---|
parent |
Required. The parent, which owns this collection of rules. Format: |
Request body
The request body contains data with the following structure:
| JSON representation |
|---|
{
"requests": [
{
object ( |
| Fields | |
|---|---|
requests[] |
Required. The list of requests to modify the rule configuration. |
Response body
Response message for rules.modifyRules method.
If successful, the response body contains data with the following structure:
| JSON representation |
|---|
{ "ruleUpdates": [ { object ( |
| Fields | |
|---|---|
ruleUpdates[] |
Updated Rule fields. Similar to the partial successes, the array index indicates the correct rule modification. |
failedRequests |
The key in this map is the index of the request in the requests field in the batch request. The value in each map entry must mirror the error(s) that would normally be returned by the singular Standard Update method. An object containing a list of |
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.
UpdateRuleRequest
Request message for rules.patch method.
| JSON representation |
|---|
{
"rule": {
object ( |
| Fields | |
|---|---|
rule |
Required. The rule to update. The rule's |
updateMask |
Optional. The list of fields to update. If not included, all fields with a non-empty value will be overwritten. This is a comma-separated list of fully qualified names of fields. Example: |
RuleUpdates
RuleUpdates indicates which fields were updated for a rule.
| JSON representation |
|---|
{ // Union field |
| Fields | |
|---|---|
Union field updated_rule_configuration. Indicates which fields were updated for a rule. updated_rule_configuration can be only one of the following: |
|
alertingStateUpdated |
Indicates if the alerting state was updated. |
liveModeStateUpdated |
Indicates if the live mode state was updated. |
archivedState |
Indicates if the archived state was updated. |
tagsUpdated |
Indicates if the tags were updated. |