Obtaining User Information
Description
This interface is invoked to query user information.
Method
GET
Interface URL
https://Domain name/apiaccess/CC-Management/v1/oauth/api/user. For example, the domain name is service.besclouds.com.
Request Description
|
No. |
Parameter |
Value Type |
Mandatory |
Description |
|---|---|---|---|---|
|
1 |
Authorization |
String |
Yes |
Authentication field. The format is Bearer Value of ACCESS_TOKEN. (A space is required after Bearer.) The value of ACCESS_TOKEN is that of access_token in the response returned by the interface in C7 Lightweight Agent Workbench Page OAuth 2.0 Interface Authentication. |
Response Description
- Status code: 200
Table 2 Parameters in the response body No.
Parameter
Value Type
Mandatory
Description
1
name
String
Yes
Username.
The value is the same as the value of Employee on the page.
2
id
String
Yes
User ID.
3
account
String
Yes
User account.
The value is the same as the value of Account on the page.
- Status code: 400
Incorrect request. Check the request path and parameters.
- Status code: 401
Unauthorized operation. 1. Check whether you have purchased related services. 2. Contact customer service to check the status of your account.
- Status code: 404
The requested content is not found. Check the request path.
- Status code: 500
Business failure. Check the values of parameters in the request.
Example
Request header:
Authorization:Bearer e******************************e
Response parameters:
{
"name": "HW5600145081",
"id": "1725612668987109147",
"account": "HW5600145081"
}
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot