usergroups/{userGroup}/permission/{action}

API Name

usergroups/{userGroup}/permission/{action}

Description

Updates the passed permission in for that group.

REST Methods

POST

Precondition

Server Manager Console must be running.

Input Params

usergroup: The name of the user group for the which the permission is requested.

action: You can select either grantPermission or revokePermission.

permission: The permission for the user group to access log files.

(optional) serverGroupName: The name of server Group which configuration needs to be fetched.

Sample Request

curl --location --request POST 'http://phoenix175736.appsdev0.fusionappsdphx1.oraclevcn.com:7101/manage/mgmtrestservice/usergroups/wer/permission/grantPermission?permission=healthcheck&ServerGroupName=TestGanesh' \ --header 'Authorization: Basic amRlX2FkbWluOmpkZV9hZG1pbg==' \ --header 'Cookie: SMCONSOLE_SSID=quh_a1Vl7uUAk0rtZFkF6EeWeBKUzo-2Wd24tE9he5ZWmg1i5bCc!1894063880' \ --data ''

Return

Sample Response

Exception

Throws an exception if the operation fails for any reason.