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_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": "Saepe aut soluta ut quia.",
- "created": 6663809881773907000,
- "identifier": "Quia vero a ut nihil.",
- "name": "Veniam quisquam quasi ut sint.",
- "org_id": "Excepturi saepe quos natus.",
- "project_id": "Debitis provident et."
}, - {
- "account_id": "Saepe aut soluta ut quia.",
- "created": 6663809881773907000,
- "identifier": "Quia vero a ut nihil.",
- "name": "Veniam quisquam quasi ut sint.",
- "org_id": "Excepturi saepe quos natus.",
- "project_id": "Debitis provident et."
}
], - "type": "pipeline",
- "updated": 1636669297674
}, - {
- "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": "Saepe aut soluta ut quia.",
- "created": 6663809881773907000,
- "identifier": "Quia vero a ut nihil.",
- "name": "Veniam quisquam quasi ut sint.",
- "org_id": "Excepturi saepe quos natus.",
- "project_id": "Debitis provident et."
}, - {
- "account_id": "Saepe aut soluta ut quia.",
- "created": 6663809881773907000,
- "identifier": "Quia vero a ut nihil.",
- "name": "Veniam quisquam quasi ut sint.",
- "org_id": "Excepturi saepe quos natus.",
- "project_id": "Debitis provident et."
}
], - "type": "pipeline",
- "updated": 1636669297674
}, - {
- "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": "Saepe aut soluta ut quia.",
- "created": 6663809881773907000,
- "identifier": "Quia vero a ut nihil.",
- "name": "Veniam quisquam quasi ut sint.",
- "org_id": "Excepturi saepe quos natus.",
- "project_id": "Debitis provident et."
}, - {
- "account_id": "Saepe aut soluta ut quia.",
- "created": 6663809881773907000,
- "identifier": "Quia vero a ut nihil.",
- "name": "Veniam quisquam quasi ut sint.",
- "org_id": "Excepturi saepe quos natus.",
- "project_id": "Debitis provident et."
}
], - "type": "pipeline",
- "updated": 1636669297674
}, - {
- "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": "Saepe aut soluta ut quia.",
- "created": 6663809881773907000,
- "identifier": "Quia vero a ut nihil.",
- "name": "Veniam quisquam quasi ut sint.",
- "org_id": "Excepturi saepe quos natus.",
- "project_id": "Debitis provident et."
}, - {
- "account_id": "Saepe aut soluta ut quia.",
- "created": 6663809881773907000,
- "identifier": "Quia vero a ut nihil.",
- "name": "Veniam quisquam quasi ut sint.",
- "org_id": "Excepturi saepe quos natus.",
- "project_id": "Debitis provident et."
}
], - "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
}, - {
- "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": "Aut officiis voluptatem rem quo.",
- "created": 6236716131165484000,
- "identifier": "Excepturi placeat ut.",
- "name": "Aut non voluptatem distinctio illum.",
- "org_id": "Minus vel in dolor voluptatem qui.",
- "project_id": "Voluptatum sequi repellendus ullam similique."
}, - {
- "account_id": "Aut officiis voluptatem rem quo.",
- "created": 6236716131165484000,
- "identifier": "Excepturi placeat ut.",
- "name": "Aut non voluptatem distinctio illum.",
- "org_id": "Minus vel in dolor voluptatem qui.",
- "project_id": "Voluptatum sequi repellendus ullam similique."
}
], - "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
}
], - "project_id": "test-project",
- "resource_groups": [
- {
- "account_id": "Aut officiis voluptatem rem quo.",
- "created": 6236716131165484000,
- "identifier": "Excepturi placeat ut.",
- "name": "Aut non voluptatem distinctio illum.",
- "org_id": "Minus vel in dolor voluptatem qui.",
- "project_id": "Voluptatum sequi repellendus ullam similique."
}, - {
- "account_id": "Aut officiis voluptatem rem quo.",
- "created": 6236716131165484000,
- "identifier": "Excepturi placeat ut.",
- "name": "Aut non voluptatem distinctio illum.",
- "org_id": "Minus vel in dolor voluptatem qui.",
- "project_id": "Voluptatum sequi repellendus ullam similique."
}, - {
- "account_id": "Aut officiis voluptatem rem quo.",
- "created": 6236716131165484000,
- "identifier": "Excepturi placeat ut.",
- "name": "Aut non voluptatem distinctio illum.",
- "org_id": "Minus vel in dolor voluptatem qui.",
- "project_id": "Voluptatum sequi repellendus ullam similique."
}
], - "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": "Natus ullam est qui maiores.",
- "identifier": "Nam nobis aut ab vitae voluptate.",
- "org_id": "Ad sint.",
- "project_id": "Velit est iusto commodi."
}, - {
- "account_id": "Natus ullam est qui maiores.",
- "identifier": "Nam nobis aut ab vitae voluptate.",
- "org_id": "Ad sint.",
- "project_id": "Velit est iusto commodi."
}
], - "type": "pipeline"
}