List Environments of API Proxy Group
Endpoint
GET /apiops/projects/{projectName}/apiProxyGroups/{apiProxyGroupName}/environments/
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 |
| apiProxyGroupName | string | Yes | API Proxy Group name |
Query Parameters
None.
Response
Success Response (200 OK)
{
"status": "SUCCESS",
"resultList": [
{
"name": "production",
"type": "PRODUCTION",
"accessUrl": "https://api.example.com",
"deployed": true,
"redeployRequired": false
},
{
"name": "staging",
"type": "SANDBOX",
"accessUrl": "https://staging-api.example.com",
"deployed": true,
"redeployRequired": false
}
],
"resultCount": 2
}
Response Fields
| Field | Type | Description |
|---|---|---|
| status | string | Response status: SUCCESS or FAILURE |
| resultList | array[object] | List of group deploy records |
| resultCount | integer | Total number of records |
Environment Object (EnvironmentDTO)
| Field | Type | Description |
|---|---|---|
| name | string | Environment name |
| type | string | Environment type (for example PRODUCTION, SANDBOX) |
| accessUrl | string | Environment access URL (when available) |
| deployed | boolean | Whether the group is currently deployed to this environment |
| redeployRequired | boolean | Whether a redeploy is required for this environment |
Notes
- Returns entries from the group's deploy list (
proxyGroupDeployList), not all project environments - Empty list (
[]) is returned if the group has no deploy records resultCountis 0 if no deploy records exist
Error Response (400 Bad Request)
{
"status": "FAILURE",
"resultMessage": "API Proxy Group (PaymentAPIGroup) is not found or user does not have privilege to access it!"
}
cURL Example
curl -X GET \
"https://demo.apinizer.com/apiops/projects/MyProject/apiProxyGroups/PaymentAPIGroup/environments/" \
-H "Authorization: Bearer YOUR_TOKEN"
Notes and Warnings
- Deploy List:
- Returns environments that have a deploy record for this group
- Does not list every environment in the project
Permissions
- User must have any permission in the project (read access)
Related Documentation
- Deploy API Proxy Group - Deploy group to environment
- Undeploy API Proxy Group - Undeploy group from environment