Password Update in SL

前端 未结 2 760
故里飘歌
故里飘歌 2021-01-26 17:15

I am trying to update a password/Username of OS using Java API in Softlayer. But after executing API, Password is not modified. Here is the code i\'ve tested. Please comment me

2条回答
  •  不知归路
    2021-01-26 17:38

    Here is java sample code to update software in device.

         com.softlayer.api.service.software.component.Password passtemplate =
         new com.softlayer.api.service.software.component.Password();
         passtemplate.setUsername("newUserName");
         passtemplate.setPassword("123456abcDF");
    
        com.softlayer.api.service.software.component.Password.Service passService = com.softlayer.api.service.software.component.Password
                .service(client, 10000000l); // Client and password ID
        passService.editObject(passtemplate);
    

提交回复
热议问题