- HTTP request
- Path parameters
- Request body
- Response body
- Authorization scopes
- IAM Permissions
- UserFacingRuleTypeToCount
- Try it!
Full name: projects.locations.instances.legacy.legacyGetRuleCounts
RPC to get rule counts.
HTTP request
Path parameters
| Parameters | |
|---|---|
| instance | 
 Required. The name of the parent resource, which is the SecOps instance the resource belongs to. Format: projects/{project}/locations/{location}/instances/{instance} | 
Request body
The request body must be empty.
Response body
A legacy rpc response for rule count stats.
If successful, the response body contains data with the following structure:
| JSON representation | 
|---|
| { "totalActiveCount": integer, "totalArchivedCount": integer, "totalLiveRuleCountsPerRuleType": [ { object ( | 
| Fields | |
|---|---|
| totalActiveCount | 
 Number of active rules for a customer. | 
| totalArchivedCount | 
 Number of archived rules for a customer. | 
| totalLiveRuleCountsPerRuleType[] | 
 Total rule count of all enabled Live Rules, per RuleType. | 
| maxLiveRuleCountsPerRuleType[] | 
 Maximum rule count of all enabled Live Rules, per RuleType. | 
| totalLiveRuleCount | 
 Total rule count | 
| maxLiveRuleCount | 
 Maximum rule count | 
| chronicleRulesQuotaLimit | 
 Chronicle rules quota limit. | 
| chronicleRulesQuotaUsage | 
 Chronicle rules quota usage. | 
Authorization scopes
Requires the following OAuth scope:
- https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.
IAM Permissions
Requires the following IAM permission on the instance resource:
- chronicle.legacies.legacyGetRuleCounts
For more information, see the IAM documentation.
UserFacingRuleTypeToCount
| JSON representation | 
|---|
| {
  "type": enum ( | 
| Fields | |
|---|---|
| type | 
 | 
| count | 
 |