Organization Alerts By Organization ID and Policy ID

Retrieve a list of alerts by policy and organization

NameRequiredTypeInDescription
organizationIdyesstringbodyID of the organization to query by
policyIdyesstringbodyPolicy id to filter alerts by
statusno - default 'OPEN'stringbodyStatus of the alerts to retrieve
enum (OPEN, SUPPRESSED, COMPLIANT, REMEDIATED)

Request Example 1:

 { "organizationId": "123-123-123-123", "policyId": "BC_ORG_GITHUB_1" }

Response Example 1:

[
    { "policyId": "BC_ORG_GITHUB_1", "organizationId": "123-123-123-123", "s3Path": "/kisi/pisi/configuration1.json", "lines": [1, 2], "status": "OPEN" },
    { "policyId": "BC_ORG_GITHUB_1", "organizationId": "123-123-123-123", "s3Path": "/kisi/pisi/configuration2.json", "lines": [4, 6], "status": "OPEN" }
    { "policyId": "BC_ORG_GITHUB_1", "organizationId": "123-123-123-123", "s3Path": "/kisi/pisi/configuration3.json", "lines": [1, 6], "status": "OPEN" }
]

Request Example 2:

 { "organizationId": "123-123-123-123", "policyId": "BC_ORG_GITLAB_2", "status": "SUPPRESSED" }

Response Example 2:

[
    { "policyId": "BC_ORG_GITLAB_2", "organizationId": "123-123-123-123", "s3Path": "/kisi/pisi/configuration1.json", "lines": [1, 2], "status": "SUPPRESSED" },
    { "policyId": "BC_ORG_GITLAB_2", "organizationId": "123-123-123-123", "s3Path": "/kisi/pisi/configuration2.json", "lines": [4, 6], "status": "SUPPRESSED" }
    { "policyId": "BC_ORG_GITLAB_2", "organizationId": "123-123-123-123", "s3Path": "/kisi/pisi/configuration3.json", "lines": [1, 6], "status": "SUPPRESSED" }
]
Language
Authentication
Header
Click Try It! to start a request and see the response here!