List Policy Groups
Endpoint
GET /apiops/projects/{projectName}/policyGroups/
Authentication
Requires a Personal API Access Token.
Header
Authorization: Bearer YOUR_TOKEN
Request
Headers
| Header | Value | Required |
|---|---|---|
| Authorization | Bearer {token} | Yes |
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| projectName | string | Yes | Project name |
Query Parameters
None
Response
Success Response (200 OK)
{
"status": "SUCCESS",
"resultList": [
{
"id": "665f2a1c9b3e4a0012ab35aa",
"name": "standard-security-bundle",
"targetPipeline": "REQUEST"
},
{
"id": "665f2a1c9b3e4a0012ab35ab",
"name": "response-masking-bundle",
"targetPipeline": "RESPONSE"
}
],
"resultCount": 2
}
Response Fields
| Field | Type | Description |
|---|---|---|
| status | string | Response status: SUCCESS or FAILURE |
| resultList | array | List of policy group descriptors |
| resultCount | integer | Total number of policy groups returned |
Policy Group Descriptor Fields
| Field | Type | Description |
|---|---|---|
| id | string | Internal policy group ID (name is the API reference) |
| name | string | Policy group name (unique within the project) |
| targetPipeline | string | Pipeline the group is bound to: REQUEST, RESPONSE or ERROR |
EnumStatus
SUCCESS- Operation successfulFAILURE- Operation failed
Error Response (400 Bad Request)
{
"status": "FAILURE",
"resultMessage": "Project (MyProject) is not found!"
}
Error Response (401 Unauthorized)
{
"status": "FAILURE",
"resultMessage": "Token is not valid!"
}
cURL Example
curl -X GET \
"https://demo.apinizer.com/apiops/projects/MyProject/policyGroups/" \
-H "Authorization: Bearer YOUR_TOKEN"
Notes and Warnings
- Lightweight Listing: Only
id,nameandtargetPipelineare returned — never the embedded policy list. Use Get Policy Group for a single group's descriptor; the embedded policies (and any of their secrets) are never returned by this API. - Empty List: If the project has no policy groups, an empty
resultListis returned withresultCount=0. - Case Sensitivity: Project names are case-sensitive in path references; policy group
namelookups on the other endpoints are case-insensitive. - Permission: Requires
API_MANAGEMENT+VIEWin the project.
Related Documentation
- Get Policy Group - Retrieve a single policy group by name
- Create Policy Group - Create a new policy group
- Policy Groups API - Resource overview