GET/v1/policy

Returns a list of all policies

Requires permission POLICY_MANAGEMENT or POLICY_MANAGEMENT_READ

6 parameters
pageNumberstringoptional
The page to return. To be used in conjunction with <code>pageSize</code>.
Default:1
pageSizestringoptional
Number of elements to return per page. To be used in conjunction with <code>pageNumber</code>.
Default:100
offsetstringoptional
Offset to start returning elements from. To be used in conjunction with <code>limit</code>.
limitstringoptional
Number of elements to return per page. To be used in conjunction with <code>offset</code>.
sortNamestringoptional
Name of the resource field to sort on.
sortOrderstringoptional
Ordering of items when sorting with <code>sortName</code>.
Allowed:asc, desc

2 status codes
200A list of all policies
globalbooleanoptional
includeChildrenbooleanoptional
invertTagMatchbooleanoptional
namestringrequired
onlyLatestProjectVersionbooleanoptional
operatorstringrequired
Allowed:ALLANY
policyConditionsarray<object>optional
projectsarray<object>optional
tagsarray<object>optional
uuidstringrequired
violationStatestringrequired
Allowed:INFOWARNFAIL
401Unauthorized

Error handling

A 401 is returned: Unauthorized.