List all policy sets
OK response.
BadRequest: Bad Request response.
Unauthorized: Unauthorized response.
Forbidden: Forbidden response.
NotFound: Not Found response.
InternalServer: Internal Server Error response.
BadGateway: Bad Gateway response.
[- {
- "account_id": "eBqAoNchMLKigC_qZ5EdC",
- "action": "onrun",
- "created": 1636669297674,
- "description": "Captures critical production policies",
- "enabled": true,
- "entity_selector": "all_entities_in_resource_groups",
- "identifier": "policyset-1",
- "name": "Production Policies",
- "org_id": "test-org",
- "policies": [
- {
- "account_id": "eBqAoNchMLKigC_qZ5EdC",
- "created": 1636669297674,
- "identifier": "policy-1",
- "name": "Pipeline Approval",
- "org_id": "test-org",
- "project_id": "test-project",
- "rego": "",
- "severity": "warning",
- "updated": 1636669297674
}, - {
- "account_id": "eBqAoNchMLKigC_qZ5EdC",
- "created": 1636669297674,
- "identifier": "policy-1",
- "name": "Pipeline Approval",
- "org_id": "test-org",
- "project_id": "test-project",
- "rego": "",
- "severity": "warning",
- "updated": 1636669297674
}, - {
- "account_id": "eBqAoNchMLKigC_qZ5EdC",
- "created": 1636669297674,
- "identifier": "policy-1",
- "name": "Pipeline Approval",
- "org_id": "test-org",
- "project_id": "test-project",
- "rego": "",
- "severity": "warning",
- "updated": 1636669297674
}
], - "project_id": "test-project",
- "resource_groups": [
- {
- "account_id": "Quos natus.",
- "created": 383075573201437060,
- "identifier": "Ut sint placeat saepe.",
- "name": "Soluta ut quia labore excepturi.",
- "org_id": "Debitis provident et.",
- "project_id": "Fuga velit ut."
}, - {
- "account_id": "Quos natus.",
- "created": 383075573201437060,
- "identifier": "Ut sint placeat saepe.",
- "name": "Soluta ut quia labore excepturi.",
- "org_id": "Debitis provident et.",
- "project_id": "Fuga velit ut."
}, - {
- "account_id": "Quos natus.",
- "created": 383075573201437060,
- "identifier": "Ut sint placeat saepe.",
- "name": "Soluta ut quia labore excepturi.",
- "org_id": "Debitis provident et.",
- "project_id": "Fuga velit ut."
}, - {
- "account_id": "Quos natus.",
- "created": 383075573201437060,
- "identifier": "Ut sint placeat saepe.",
- "name": "Soluta ut quia labore excepturi.",
- "org_id": "Debitis provident et.",
- "project_id": "Fuga velit ut."
}
], - "type": "pipeline",
- "updated": 1636669297674
}, - {
- "account_id": "eBqAoNchMLKigC_qZ5EdC",
- "action": "onrun",
- "created": 1636669297674,
- "description": "Captures critical production policies",
- "enabled": true,
- "entity_selector": "all_entities_in_resource_groups",
- "identifier": "policyset-1",
- "name": "Production Policies",
- "org_id": "test-org",
- "policies": [
- {
- "account_id": "eBqAoNchMLKigC_qZ5EdC",
- "created": 1636669297674,
- "identifier": "policy-1",
- "name": "Pipeline Approval",
- "org_id": "test-org",
- "project_id": "test-project",
- "rego": "",
- "severity": "warning",
- "updated": 1636669297674
}, - {
- "account_id": "eBqAoNchMLKigC_qZ5EdC",
- "created": 1636669297674,
- "identifier": "policy-1",
- "name": "Pipeline Approval",
- "org_id": "test-org",
- "project_id": "test-project",
- "rego": "",
- "severity": "warning",
- "updated": 1636669297674
}, - {
- "account_id": "eBqAoNchMLKigC_qZ5EdC",
- "created": 1636669297674,
- "identifier": "policy-1",
- "name": "Pipeline Approval",
- "org_id": "test-org",
- "project_id": "test-project",
- "rego": "",
- "severity": "warning",
- "updated": 1636669297674
}
], - "project_id": "test-project",
- "resource_groups": [
- {
- "account_id": "Quos natus.",
- "created": 383075573201437060,
- "identifier": "Ut sint placeat saepe.",
- "name": "Soluta ut quia labore excepturi.",
- "org_id": "Debitis provident et.",
- "project_id": "Fuga velit ut."
}, - {
- "account_id": "Quos natus.",
- "created": 383075573201437060,
- "identifier": "Ut sint placeat saepe.",
- "name": "Soluta ut quia labore excepturi.",
- "org_id": "Debitis provident et.",
- "project_id": "Fuga velit ut."
}, - {
- "account_id": "Quos natus.",
- "created": 383075573201437060,
- "identifier": "Ut sint placeat saepe.",
- "name": "Soluta ut quia labore excepturi.",
- "org_id": "Debitis provident et.",
- "project_id": "Fuga velit ut."
}, - {
- "account_id": "Quos natus.",
- "created": 383075573201437060,
- "identifier": "Ut sint placeat saepe.",
- "name": "Soluta ut quia labore excepturi.",
- "org_id": "Debitis provident et.",
- "project_id": "Fuga velit ut."
}
], - "type": "pipeline",
- "updated": 1636669297674
}, - {
- "account_id": "eBqAoNchMLKigC_qZ5EdC",
- "action": "onrun",
- "created": 1636669297674,
- "description": "Captures critical production policies",
- "enabled": true,
- "entity_selector": "all_entities_in_resource_groups",
- "identifier": "policyset-1",
- "name": "Production Policies",
- "org_id": "test-org",
- "policies": [
- {
- "account_id": "eBqAoNchMLKigC_qZ5EdC",
- "created": 1636669297674,
- "identifier": "policy-1",
- "name": "Pipeline Approval",
- "org_id": "test-org",
- "project_id": "test-project",
- "rego": "",
- "severity": "warning",
- "updated": 1636669297674
}, - {
- "account_id": "eBqAoNchMLKigC_qZ5EdC",
- "created": 1636669297674,
- "identifier": "policy-1",
- "name": "Pipeline Approval",
- "org_id": "test-org",
- "project_id": "test-project",
- "rego": "",
- "severity": "warning",
- "updated": 1636669297674
}, - {
- "account_id": "eBqAoNchMLKigC_qZ5EdC",
- "created": 1636669297674,
- "identifier": "policy-1",
- "name": "Pipeline Approval",
- "org_id": "test-org",
- "project_id": "test-project",
- "rego": "",
- "severity": "warning",
- "updated": 1636669297674
}
], - "project_id": "test-project",
- "resource_groups": [
- {
- "account_id": "Quos natus.",
- "created": 383075573201437060,
- "identifier": "Ut sint placeat saepe.",
- "name": "Soluta ut quia labore excepturi.",
- "org_id": "Debitis provident et.",
- "project_id": "Fuga velit ut."
}, - {
- "account_id": "Quos natus.",
- "created": 383075573201437060,
- "identifier": "Ut sint placeat saepe.",
- "name": "Soluta ut quia labore excepturi.",
- "org_id": "Debitis provident et.",
- "project_id": "Fuga velit ut."
}, - {
- "account_id": "Quos natus.",
- "created": 383075573201437060,
- "identifier": "Ut sint placeat saepe.",
- "name": "Soluta ut quia labore excepturi.",
- "org_id": "Debitis provident et.",
- "project_id": "Fuga velit ut."
}, - {
- "account_id": "Quos natus.",
- "created": 383075573201437060,
- "identifier": "Ut sint placeat saepe.",
- "name": "Soluta ut quia labore excepturi.",
- "org_id": "Debitis provident et.",
- "project_id": "Fuga velit ut."
}
], - "type": "pipeline",
- "updated": 1636669297674
}
]
Create a policy set
Created response.
BadRequest: Bad Request response.
Unauthorized: Unauthorized response.
Forbidden: Forbidden response.
NotFound: Not Found response.
InternalServer: Internal Server Error response.
BadGateway: Bad Gateway response.
{- "action": "onrun",
- "description": "Captures critical production policies",
- "enabled": true,
- "identifier": "policyset-1",
- "name": "Production Policies",
- "type": "pipeline"
}
{- "account_id": "eBqAoNchMLKigC_qZ5EdC",
- "action": "onrun",
- "created": 1636669297674,
- "description": "Captures critical production policies",
- "enabled": true,
- "entity_selector": "all_entities_in_scope",
- "identifier": "policyset-1",
- "name": "Production Policies",
- "org_id": "test-org",
- "policies": [
- {
- "account_id": "eBqAoNchMLKigC_qZ5EdC",
- "created": 1636669297674,
- "identifier": "policy-1",
- "name": "Pipeline Approval",
- "org_id": "test-org",
- "project_id": "test-project",
- "rego": "",
- "severity": "warning",
- "updated": 1636669297674
}, - {
- "account_id": "eBqAoNchMLKigC_qZ5EdC",
- "created": 1636669297674,
- "identifier": "policy-1",
- "name": "Pipeline Approval",
- "org_id": "test-org",
- "project_id": "test-project",
- "rego": "",
- "severity": "warning",
- "updated": 1636669297674
}, - {
- "account_id": "eBqAoNchMLKigC_qZ5EdC",
- "created": 1636669297674,
- "identifier": "policy-1",
- "name": "Pipeline Approval",
- "org_id": "test-org",
- "project_id": "test-project",
- "rego": "",
- "severity": "warning",
- "updated": 1636669297674
}
], - "project_id": "test-project",
- "resource_groups": [
- {
- "account_id": "Fugiat autem accusamus esse.",
- "created": 5151500800531891000,
- "identifier": "Non animi.",
- "name": "Voluptas tempora.",
- "org_id": "Voluptas non quam atque voluptates.",
- "project_id": "Dolor laborum soluta exercitationem veritatis hic."
}, - {
- "account_id": "Fugiat autem accusamus esse.",
- "created": 5151500800531891000,
- "identifier": "Non animi.",
- "name": "Voluptas tempora.",
- "org_id": "Voluptas non quam atque voluptates.",
- "project_id": "Dolor laborum soluta exercitationem veritatis hic."
}
], - "type": "pipeline",
- "updated": 1636669297674
}
Delete a policy set by identifier
No Content response.
BadRequest: Bad Request response.
Unauthorized: Unauthorized response.
Forbidden: Forbidden response.
NotFound: Not Found response.
InternalServer: Internal Server Error response.
BadGateway: Bad Gateway response.
Find a policy set by identifier
OK response.
BadRequest: Bad Request response.
Unauthorized: Unauthorized response.
Forbidden: Forbidden response.
NotFound: Not Found response.
InternalServer: Internal Server Error response.
BadGateway: Bad Gateway response.
{- "account_id": "eBqAoNchMLKigC_qZ5EdC",
- "action": "onrun",
- "created": 1636669297674,
- "description": "Captures critical production policies",
- "enabled": true,
- "entity_selector": "all_entities_in_scope",
- "identifier": "policyset-1",
- "name": "Production Policies",
- "org_id": "test-org",
- "policies": [
- {
- "account_id": "eBqAoNchMLKigC_qZ5EdC",
- "created": 1636669297674,
- "identifier": "policy-1",
- "name": "Pipeline Approval",
- "org_id": "test-org",
- "project_id": "test-project",
- "rego": "",
- "severity": "warning",
- "updated": 1636669297674
}, - {
- "account_id": "eBqAoNchMLKigC_qZ5EdC",
- "created": 1636669297674,
- "identifier": "policy-1",
- "name": "Pipeline Approval",
- "org_id": "test-org",
- "project_id": "test-project",
- "rego": "",
- "severity": "warning",
- "updated": 1636669297674
}, - {
- "account_id": "eBqAoNchMLKigC_qZ5EdC",
- "created": 1636669297674,
- "identifier": "policy-1",
- "name": "Pipeline Approval",
- "org_id": "test-org",
- "project_id": "test-project",
- "rego": "",
- "severity": "warning",
- "updated": 1636669297674
}, - {
- "account_id": "eBqAoNchMLKigC_qZ5EdC",
- "created": 1636669297674,
- "identifier": "policy-1",
- "name": "Pipeline Approval",
- "org_id": "test-org",
- "project_id": "test-project",
- "rego": "",
- "severity": "warning",
- "updated": 1636669297674
}
], - "project_id": "test-project",
- "resource_groups": [
- {
- "account_id": "Fugiat autem accusamus esse.",
- "created": 5151500800531891000,
- "identifier": "Non animi.",
- "name": "Voluptas tempora.",
- "org_id": "Voluptas non quam atque voluptates.",
- "project_id": "Dolor laborum soluta exercitationem veritatis hic."
}, - {
- "account_id": "Fugiat autem accusamus esse.",
- "created": 5151500800531891000,
- "identifier": "Non animi.",
- "name": "Voluptas tempora.",
- "org_id": "Voluptas non quam atque voluptates.",
- "project_id": "Dolor laborum soluta exercitationem veritatis hic."
}, - {
- "account_id": "Fugiat autem accusamus esse.",
- "created": 5151500800531891000,
- "identifier": "Non animi.",
- "name": "Voluptas tempora.",
- "org_id": "Voluptas non quam atque voluptates.",
- "project_id": "Dolor laborum soluta exercitationem veritatis hic."
}, - {
- "account_id": "Fugiat autem accusamus esse.",
- "created": 5151500800531891000,
- "identifier": "Non animi.",
- "name": "Voluptas tempora.",
- "org_id": "Voluptas non quam atque voluptates.",
- "project_id": "Dolor laborum soluta exercitationem veritatis hic."
}
], - "type": "pipeline",
- "updated": 1636669297674
}
Update a policy set by identifier
No Content response.
BadRequest: Bad Request response.
Unauthorized: Unauthorized response.
Forbidden: Forbidden response.
NotFound: Not Found response.
InternalServer: Internal Server Error response.
BadGateway: Bad Gateway response.
{- "action": "onrun",
- "description": "Captures critical production policies",
- "enabled": true,
- "entity_selector": "all_entities_in_scope",
- "name": "Production Policies",
- "policies": [
- {
- "identifier": "policy-1",
- "severity": "warning"
}, - {
- "identifier": "policy-1",
- "severity": "warning"
}, - {
- "identifier": "policy-1",
- "severity": "warning"
}, - {
- "identifier": "policy-1",
- "severity": "warning"
}
], - "resource_groups": [
- {
- "account_id": "Dignissimos beatae occaecati nostrum.",
- "identifier": "Et sit tempore odio et qui.",
- "org_id": "Ratione sit magnam quis libero dolore.",
- "project_id": "Velit nam quibusdam soluta officiis."
}, - {
- "account_id": "Dignissimos beatae occaecati nostrum.",
- "identifier": "Et sit tempore odio et qui.",
- "org_id": "Ratione sit magnam quis libero dolore.",
- "project_id": "Velit nam quibusdam soluta officiis."
}
], - "type": "pipeline"
}