Get Policy 1
Find a specific policy based on the input policy id.
Policy ID
computeStats
OK
{
"createdAt": "string",
"createdBy": "string",
"creator": {
"email": "string",
"firstname": "string",
"id": "string",
"lastname": "string",
"type": "string"
},
"criteria": {
"matchExpression": [
{}
]
},
"definition": {},
"definitionLegend": {
"definitionLegend": {
"description": "string",
"error": "string",
"id": "string",
"name": "string",
"properties": {
"properties": {}
}
}
},
"description": "string",
"enforcementType": "string",
"id": "string",
"lastUpdatedAt": "string",
"lastUpdatedBy": "string",
"lastUpdater": {
"email": "string",
"firstname": "string",
"id": "string",
"lastname": "string",
"type": "string"
},
"name": "string",
"opaRegoCriteria": "string",
"orgId": "string",
"projectId": "string",
"scopeCriteria": {
"matchExpression": [
{}
]
},
"statistics": {
"conflictCount": 0,
"enforcedCount": 0,
"notEnforcedCount": 0
},
"typeId": "string"
}
Policy creation timestamp.
Policy author.
Expanded policy last updater details
Policy-type-specific target object filter criteria applied during enforcement.
definition
definitionLegend
The policy description.
Defines enforcement type for policy. Default enforcement type is HARD.
The policy ID.
Most recent policy update timestamp.
Most recent policy editor.
Expanded policy last updater details
The policy name.
OPA Rego code applied during enforcement to filter target objects.
The ID of the organization to which the policy belongs.
For project-scoped policies, the ID of the project to which the policy belongs.
Policy-type-specific target object filter criteria applied during enforcement.
statistics
The policy type ID.
Unauthorized
"Policy Object"
Policy creation timestamp.
Policy author.
Expanded policy last updater details
Policy-type-specific target object filter criteria applied during enforcement.
definition
definitionLegend
The policy description.
Defines enforcement type for policy. Default enforcement type is HARD.
The policy ID.
Most recent policy update timestamp.
Most recent policy editor.
Expanded policy last updater details
The policy name.
OPA Rego code applied during enforcement to filter target objects.
The ID of the organization to which the policy belongs.
For project-scoped policies, the ID of the project to which the policy belongs.
Policy-type-specific target object filter criteria applied during enforcement.
statistics
The policy type ID.
Forbidden
"Policy Object"
Policy creation timestamp.
Policy author.
Expanded policy last updater details
Policy-type-specific target object filter criteria applied during enforcement.
definition
definitionLegend
The policy description.
Defines enforcement type for policy. Default enforcement type is HARD.
The policy ID.
Most recent policy update timestamp.
Most recent policy editor.
Expanded policy last updater details
The policy name.
OPA Rego code applied during enforcement to filter target objects.
The ID of the organization to which the policy belongs.
For project-scoped policies, the ID of the project to which the policy belongs.
Policy-type-specific target object filter criteria applied during enforcement.
statistics
The policy type ID.
Not Found
"Policy Object"
Policy creation timestamp.
Policy author.
Expanded policy last updater details
Policy-type-specific target object filter criteria applied during enforcement.
definition
definitionLegend
The policy description.
Defines enforcement type for policy. Default enforcement type is HARD.
The policy ID.
Most recent policy update timestamp.
Most recent policy editor.
Expanded policy last updater details
The policy name.
OPA Rego code applied during enforcement to filter target objects.
The ID of the organization to which the policy belongs.
For project-scoped policies, the ID of the project to which the policy belongs.
Policy-type-specific target object filter criteria applied during enforcement.
statistics
The policy type ID.
curl -H 'Authorization: <value>' https://{api_host}/policy/api/policies/{id}