This API call retrieves information on management zone permissions for specific user group.
To execute this request, you need the Service Provider API (ServiceProviderAPI) permission assigned to your API token. Generate your API token via Cluster Management Console (CMC). To learn how to obtain and use it, see Cluster API - Authentication.
/api/v1.0/onpremise/groups/managementZones
| Parameter | Type | Description | In | Required |
|---|---|---|---|---|
| groupId | string | Group ID path parameter. Missing or empty values will return a 'Bad Request'. | path | required |
| includeEmptyEntries | boolean | Should include empty entries in response | query | optional |
| Code | Type | Description |
|---|---|---|
| 200 | Mz | Success |
| 400 | - | No ID information received for the request to get group MZ permissions |
| 404 | - | Group not found |
MzPermissionsForGroup object| Element | Type | Description |
|---|---|---|
| groupId | string | Group ID |
| mzPermissionsPerEnvironment | Mz | List of management zone permissions per environment |
MzListForEnvironment object| Element | Type | Description |
|---|---|---|
| environmentUuid | string | Environment UUID |
| mzPermissions | Mz | List of management zone models with permissions |
MzPermissionsList object| Element | Type | Description |
|---|---|---|
| mzId | string | The ID of the required management zone |
| permissions | string[] | The list of permissions for the required management zone
|
{"groupId": "string","mzPermissionsPerEnvironment": [{"environmentUuid": "string","mzPermissions": [{"mzId": "string","permissions": ["DEMO_USER"]}]}]}
This API call retrieves information on management zone permissions for salesgroup user group.
curl -X 'GET' \'https://mymanaged.cluster.com/api/v1.0/onpremise/groups/managementZones/salesgroup' \-H 'accept: application/json' \-H 'Authorization: Api-Token dt0c01.FDAI5YOMUQDKWFTPGON3V7SR.IE7R5J2Q4ZX5G67EKBTW7GT7T2H4GL3O6BV7CT53CCITSSS35PA3HAQDSJGY4C7W'
https://mymanaged.cluster.com/api/v1.0/onpremise/groups/managementZones/salesgroup
{"groupId": "salesgroup","mzPermissionsPerEnvironment": [{"environmentUuid": "5c6cf54c-5fe3-47e8-af18-54439090370b","mzPermissions": [{"mzId": "-3223778520145835472","permissions": ["REPLAY_SESSION_DATA","VIEWER","MANAGE_SECURITY_PROBLEMS","REPLAY_SESSION_DATA_WITHOUT_MASKING"]}]}
200