该API允许管理员用户在Applications Manager中添加用户组。
http://[ APM Host ]:[ APM Port ]/AppManager/xml/Usergroup/create?apikey=[ API Key ]&usergroupName=[ User Group Name ]&groupName=[ Group Name ]&userName=[ User Name ]
http://[ APM Host ]:[ APM Port ]/AppManager/xml/Usergroup/create?apikey=[ API Key ]&usergroupName=[ User Group Name ]&groupId=[ Monitor Group ID ]&userId=[ User ID ]
http://[ APM Host ]:[ APM Port ]/AppManager/json/Usergroup/create?apikey=[ API Key ]&usergroupName=[ User Group Name ]&groupName=[ Group Name ]&userName=[ User Name ]
http://[ APM Host ]:[ APM Port ]/AppManager/json/Usergroup/create?apikey=[ API Key ]&usergroupName=[ User Group Name ]&groupId=[ Monitor Group ID ]&userId=[ User ID ]
执行此API请求所涉及的参数为:
字段 | 描述 |
---|---|
apikey | 使用管理标签中的生成API密钥选项生成的密钥。 |
userId | 要与用户组关联的用户的ID。 |
userName | 要添加的用户名。 |
usergroupName | 要添加的用户组的名称。 |
groupId | 该组的ID将被添加。 |
http://app-windows:59090/AppManager/xml/Usergroup/create?apikey=93c6eb60184e41f10fba2f365060b8e3&usergroupName=sample&groupName=ApplicationsManager&userName=user
http://app-windows:59090/AppManager/xml/Usergroup/create?apikey=93c6eb60184e41f10fba2f365060b8e3&usergroupName=sample&groupId=10011,10000019&userId=4,5