Ana içeriğe geç

Get Policy Group

Endpoint

GET /apiops/projects/{projectName}/policyGroups/{policyGroupName}/

Authentication

Requires a Personal API Access Token.

Authorization: Bearer YOUR_TOKEN

Request

Headers

HeaderValueRequired
AuthorizationBearer {token}Yes

Path Parameters

ParameterTypeRequiredDescription
projectNamestringYesProject name
policyGroupNamestringYesPolicy group name (the group must already exist)

Query Parameters

None

Response

Success Response (200 OK)

{
"status": "SUCCESS",
"resultList": [
{
"id": "665f2a1c9b3e4a0012ab35aa",
"name": "standard-security-bundle",
"targetPipeline": "REQUEST"
}
],
"resultCount": 1
}

Response Fields

FieldTypeDescription
statusstringResponse status: SUCCESS or FAILURE
resultListarraySingle-element list containing the policy group descriptor
resultCountintegerAlways 1 on success

Policy Group Descriptor Fields

FieldTypeDescription
idstringInternal policy group ID
namestringPolicy group name
targetPipelinestringPipeline the group is bound to: REQUEST, RESPONSE or ERROR

EnumStatus

  • SUCCESS - Operation successful
  • FAILURE - Operation failed

Error Response (400 Bad Request)

{
"status": "FAILURE",
"resultMessage": "Policy group (name: standard-security-bundle) was 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/standard-security-bundle/" \
-H "Authorization: Bearer YOUR_TOKEN"

Notes and Warnings

  • Lightweight Response: Only id, name and targetPipeline are returned. The embedded policy list — including any of its policies' @SecretData fields — is never returned by this endpoint, not even masked.
  • Case-Insensitive Match: policyGroupName is matched case-insensitively against the stored name.
  • Not Found: Requesting a name that does not exist returns a 400 Bad Request with a FAILURE status, not 404.
  • Permission: Requires API_MANAGEMENT + VIEW in the project.