How Do I Obtain the ServiceCenter Token over an Interface Called by Running the curl Command

【Product�?
ManageOne ServiceCenter

【Version�?
3.X

【Question�?
How do I obtain the ServiceCenter token over an interface called by running the curl command?

【Answer�?
Example of obtaining the token over an interface:

Obtaining the token as user Cloud_admin
curl -i -k -X POST 'https://162.162.226.188:643/goku/rest/v1.5/tokens' -H "User-Agent:HttpClient" -H "Content-Type:application/json" -H "Accept:application/json" -d '{"userName":"cloud_admin","password":"FusionSphere123","loginScene":"1"}'

Obtaining the token as a VDC administrator
curl -i -k -X POST 'https://162.162.226.166:543/goku/rest/v1.5/tokens' -H "User-Agent:HttpClient" -H "Content-Type:application/json" -H "Accept:application/json" -d '{"userName":"ygq_user16601","password":"Huawei@1234","loginScene":"2"}'

----End

Scroll to top