MAPREDUCE服务 MRS-删除Manager用户:代码样例

时间:2024-06-13 09:39:14

代码样例

以下代码片段是删除用户的示例,在“rest”包的“UserManager”类的main方法中。

       //访问Manager接口完成删除用户            
       operationName = "DeleteUser";            
       String deleteJsonStr = "{\"userNames\":[\"user888\"]}";            
       operationUrl = webUrl + DELETE_USER_URL;            
       httpManager.sendHttpDeleteRequest(httpClient, operationUrl, deleteJsonStr, operationName);            
        LOG .info("Exit main.");
support.huaweicloud.com/devg-lts-mrs/mrs_07_440016.html