Upload
khasim-saheb
View
113
Download
1
Embed Size (px)
Citation preview
MMC Rest API – User Groups
Introduction•This presentation contains the following MMC Rest API
operations of User Groups.
1.Create a User Group2.Get All User Groups3.Get a User Group4.Update a User Group5.Delete a User Group6.Get All User Group Permissions
Create a User Group•To create a user group, need to provide the group name,
description and Permissions as shown in the below URL.•curl --basic -u username:password -d '{ "name" :
"NewUserGroup", "description": "View and Delete Events", "permissions": ["VIEW_ACTIVITY","TRACKING_DELETE"] }' --header 'Content-Type: application/json' http://localhost:8585/mmc/api/usergroups
•HTTP Method: POST
Get All User Groups•To get all available user groups, need to provide the
below URL.•curl --basic -u username:password
http://localhost:8585/mmc/api/usergroups•HTTP Method: GET
Get a User Group•To get a specific user group, need to provide the user
group name as shown in the below URL.•curl --basic -u username:password
http://localhost:8585/mmc/api/usergroups/{userGroupName}
•HTTP Method: GET
Update a User Group•To update a specific user group, need to provide the json
string as shown in the below URL.•curl --basic -u username:password -X PUT -d { "name" :
"NewUserGroup", "description": "View and Delete Events", "permissions": ["VIEW_ACTIVITY","TRACKING_DELETE"] }" --header 'Content-Type: application/json' http://localhost:8585/mmc/api/usergroups/Deployers
•HTTP Method: PUT
Delete a User Group•To remove/delete a specific user group, need to give the
user group name as shown in the below URL.•curl --basic -u username:password -X DELETE
http://localhost:8585/mmc/api/usergroups/{userGroupName}
•HTTP Method: DELETE
Get All User Group Permissions•To get all available user group permissions, need to
provide the user group name as shown in the below URL.•curl --basic -u username:password
http://localhost:8585/mmc/api/usergroups/permissions•HTTP Method: GET
References•https://
docs.mulesoft.com/mule-management-console/v/3.7/user-groups
•https://docs.mulesoft.com/mule-management-console/v/3.7/rest-api-reference
Thank You