{"type":"api","title":"List Incident Aggregates Policies","meta":{"id":"/apps/pubhub/media/cloud-security-apis-in-eft/9d37d008417d562ab46d4b67547a68457ce288d2/eadd0b56-ea60-32bd-a1aa-155c29b52bed","info":{"title":"Cisco Cloudlock API","description":"The Cloudlock API provides data about an organization's activities, apps, incidents, and policies.","version":"1.0.0","contact":{"name":"Cloud Security Developer Community"}},"tags":[{"name":"Activities"},{"name":"Apps"},{"name":"Entities"},{"name":"Incidents"},{"name":"Incident Aggregates"},{"name":"Incident Entities"},{"name":"IP Libraries"},{"name":"Policies"}],"openapi":"3.0.0","servers":[{"url":"https://api.cloudlock.com/api/v2"}]},"spec":{"tags":["Incident Aggregates"],"description":"Get the aggregations (by policies/users/status) for the incidents.","operationId":"listIncidentAggregatesPolicies","summary":"List Incident Aggregates Policies","parameters":[{"name":"created_after","schema":{"type":"string"},"in":"query","description":"Filter the collection by the creation date.","example":"2021-01-01","$$ref":"#/components/parameters/createdAfterParam"},{"name":"vendor","schema":{"type":"string"},"in":"query","description":"Filter based on the platform (for example: google, salesforce)","example":"google"},{"name":"order","schema":{"type":"string"},"in":"query","description":"Order based on the severity. Only descending severity is supported.","example":"-severity"},{"name":"policies","in":"query","schema":{"type":"string"},"description":"Return aggregates by policies"},{"name":"users","schema":{"type":"string"},"in":"query","description":"Return aggregates by users"},{"name":"status","schema":{"type":"string"},"in":"query","description":"Return aggregates by status"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"agg":{"type":"object","description":"The aggregates object.","properties":{"info":{"type":"integer","description":"The number of `info` severity incidents."},"total":{"type":"integer","description":"The overall number of incidents."},"warning":{"type":"integer","description":"The number of `warning` severity incidents."},"critical":{"type":"integer","description":"The number of `critical` severity incidents.'"},"alert":{"type":"integer","description":"The number of `alert` severity incidents."}}},"id":{"type":"string","description":"The ID of the policy/status/user."},"name":{"type":"string","description":"The name of the policy/status/user."}},"$$ref":"#/components/schemas/IncidentAggregates"}},"examples":{"response":{"value":[{"agg":{"info":34,"alert":443,"critical":770,"total":1247,"warning":0},"id":"G8qz0vb49V","name":"Social Security Number"},{"agg":{"info":2549,"alert":0,"critical":0,"total":2549,"warning":0},"id":"GbO4Q6lxLp","name":"Custom Regex"}]}}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}}}}},"$$ref":"#/components/responses/400Error"},"401":{"description":"Unauthorized request","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}}}}},"$$ref":"#/components/responses/401Error"},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}}}}},"$$ref":"#/components/responses/403Error"},"404":{"description":"Not Found","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}}}}},"$$ref":"#/components/responses/404Error"},"500":{"description":"Server error","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}}}}},"$$ref":"#/components/responses/500Error"}},"__originalOperationId":"listIncidentAggregatesPolicies","method":"get","path":"/incidents/aggregates/policies"}}