Get Policies 1
Find all the policies associated with current org.
Retrieves policy definition information for each returned policy.
Retrieves OPA Rego criteria, if defined, for each returned policy.
computeStats
Matches will start with this string in their name or have this string somewhere in their description.
typeId
Zero-based page index (0..N)
The size of the page to be returned
Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.
Number of records you want
1
Number of records you want to skip
1
Sorting criteria in the format: property (asc|desc). Default sort order is ascending. Multiple sort criteria are supported.
OK
{
"content": [
{
"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"
}
],
"empty": false,
"first": false,
"last": false,
"number": 0,
"numberOfElements": 0,
"pageable": {
"offset": 0,
"pageNumber": 0,
"pageSize": 0,
"paged": false,
"sort": [
{
"ascending": false,
"direction": "string",
"ignoreCase": false,
"nullHandling": "string",
"property": "string"
}
],
"unpaged": false
},
"size": 0,
"sort": [
{
"ascending": false,
"direction": "string",
"ignoreCase": false,
"nullHandling": "string",
"property": "string"
}
],
"totalElements": 0,
"totalPages": 0
}
The policy to be created or updated
empty
first
last
number
numberOfElements
pageable
size
sort
totalElements
totalPages
Unauthorized
"PagePolicy Object"
The policy to be created or updated
empty
first
last
number
numberOfElements
pageable
size
sort
totalElements
totalPages
Forbidden
"PagePolicy Object"
The policy to be created or updated
empty
first
last
number
numberOfElements
pageable
size
sort
totalElements
totalPages
curl -H 'Authorization: <value>' https://{api_host}/policy/api/policies