This API call updates management zone permissions for a single 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
MzPermissionsForGroup
objectGroup ID
List of management zone permissions per environment
MzListForEnvironment
objectEnvironment UUID
MzPermissionsList
objectThe ID of the required management zone
The list of permissions for the required management zone
DEMO_USER
LOG_VIEWER
MANAGE_SECURITY_PROBLEMS
MANAGE_SETTINGS
REPLAY_SESSION_DATA
REPLAY_SESSION_DATA_WITHOUT_MASKING
VIEWER
VIEW_SECURITY_PROBLEMS
VIEW_SENSITIVE_REQUEST_DATA
This is a model of the request body, showing the possible elements. It has to be adjusted for usage in an actual request.
{"groupId": "string","mzPermissionsPerEnvironment": [{"environmentUuid": "string","mzPermissions": [{"mzId": "string","permissions": ["DEMO_USER"]}]}]}
Successfully updated
Provided model is incorrect or is missing required elements
A group, environment or management zone does not exist
Operation failed
In this example, you update the salesgroup
user group to assign permissions to 5c6cf54c-5fe3-47e8-af18-54439090370b
environment's
management zones.
curl -X 'PUT' \'https://mymanaged.cluster.com/api/v1.0/onpremise/groups/managementZones' \-H 'accept: */*' \-H 'Authorization: Api-Token FG563.LKJHDFLKJHDFHLKJDGV.ABCDEFGHJKLMNOP' \-H 'Content-Type: application/json' \-d '{"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"]}]}]}'
https://mymanaged.cluster.com/api/v1.0/onpremise/groups/managementZones
No response body
200