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
}
], - "project_id": "test-project",
- "resource_groups": [
- {
- "account_id": "Dolorem magni odio quia sed molestiae provident.",
- "created": 810010688645222700,
- "identifier": "Eveniet fuga velit.",
- "name": "Qui dolor cum possimus.",
- "org_id": "Saepe ratione voluptas molestiae quam.",
- "project_id": "Tempore voluptatibus est cupiditate aliquam dolor."
}, - {
- "account_id": "Dolorem magni odio quia sed molestiae provident.",
- "created": 810010688645222700,
- "identifier": "Eveniet fuga velit.",
- "name": "Qui dolor cum possimus.",
- "org_id": "Saepe ratione voluptas molestiae quam.",
- "project_id": "Tempore voluptatibus est cupiditate aliquam dolor."
}
], - "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
}
], - "project_id": "test-project",
- "resource_groups": [
- {
- "account_id": "Dolorem magni odio quia sed molestiae provident.",
- "created": 810010688645222700,
- "identifier": "Eveniet fuga velit.",
- "name": "Qui dolor cum possimus.",
- "org_id": "Saepe ratione voluptas molestiae quam.",
- "project_id": "Tempore voluptatibus est cupiditate aliquam dolor."
}, - {
- "account_id": "Dolorem magni odio quia sed molestiae provident.",
- "created": 810010688645222700,
- "identifier": "Eveniet fuga velit.",
- "name": "Qui dolor cum possimus.",
- "org_id": "Saepe ratione voluptas molestiae quam.",
- "project_id": "Tempore voluptatibus est cupiditate aliquam dolor."
}
], - "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
}
], - "project_id": "test-project",
- "resource_groups": [
- {
- "account_id": "Dolorem magni odio quia sed molestiae provident.",
- "created": 810010688645222700,
- "identifier": "Eveniet fuga velit.",
- "name": "Qui dolor cum possimus.",
- "org_id": "Saepe ratione voluptas molestiae quam.",
- "project_id": "Tempore voluptatibus est cupiditate aliquam dolor."
}, - {
- "account_id": "Dolorem magni odio quia sed molestiae provident.",
- "created": 810010688645222700,
- "identifier": "Eveniet fuga velit.",
- "name": "Qui dolor cum possimus.",
- "org_id": "Saepe ratione voluptas molestiae quam.",
- "project_id": "Tempore voluptatibus est cupiditate aliquam dolor."
}
], - "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_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
}, - {
- "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": "Rerum ut in non voluptas.",
- "created": 6314309071949452000,
- "identifier": "Illo eaque.",
- "name": "Eius illum.",
- "org_id": "Natus autem inventore ut ea voluptates sunt.",
- "project_id": "Error et rerum nam."
}, - {
- "account_id": "Rerum ut in non voluptas.",
- "created": 6314309071949452000,
- "identifier": "Illo eaque.",
- "name": "Eius illum.",
- "org_id": "Natus autem inventore ut ea voluptates sunt.",
- "project_id": "Error et rerum nam."
}
], - "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_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
}, - {
- "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": "Rerum ut in non voluptas.",
- "created": 6314309071949452000,
- "identifier": "Illo eaque.",
- "name": "Eius illum.",
- "org_id": "Natus autem inventore ut ea voluptates sunt.",
- "project_id": "Error et rerum nam."
}, - {
- "account_id": "Rerum ut in non voluptas.",
- "created": 6314309071949452000,
- "identifier": "Illo eaque.",
- "name": "Eius illum.",
- "org_id": "Natus autem inventore ut ea voluptates sunt.",
- "project_id": "Error et rerum nam."
}, - {
- "account_id": "Rerum ut in non voluptas.",
- "created": 6314309071949452000,
- "identifier": "Illo eaque.",
- "name": "Eius illum.",
- "org_id": "Natus autem inventore ut ea voluptates sunt.",
- "project_id": "Error et rerum nam."
}, - {
- "account_id": "Rerum ut in non voluptas.",
- "created": 6314309071949452000,
- "identifier": "Illo eaque.",
- "name": "Eius illum.",
- "org_id": "Natus autem inventore ut ea voluptates sunt.",
- "project_id": "Error et rerum nam."
}
], - "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"
}
], - "resource_groups": [
- {
- "account_id": "Sint itaque.",
- "identifier": "Qui cum dignissimos eligendi commodi.",
- "org_id": "Doloribus repellendus.",
- "project_id": "Sequi id."
}, - {
- "account_id": "Sint itaque.",
- "identifier": "Qui cum dignissimos eligendi commodi.",
- "org_id": "Doloribus repellendus.",
- "project_id": "Sequi id."
}, - {
- "account_id": "Sint itaque.",
- "identifier": "Qui cum dignissimos eligendi commodi.",
- "org_id": "Doloribus repellendus.",
- "project_id": "Sequi id."
}, - {
- "account_id": "Sint itaque.",
- "identifier": "Qui cum dignissimos eligendi commodi.",
- "org_id": "Doloribus repellendus.",
- "project_id": "Sequi id."
}
], - "type": "pipeline"
}