Querying User Details
Function
This API is used to query user details.
Calling Method
For details, see Calling APIs.
Authorization Information
Each account has all the permissions required to call all APIs, but IAM users must be assigned the required permissions.
- If you are using role/policy-based authorization, see Permissions Policies and Supported Actions for details on the required permissions.
- If you are using identity policy-based authorization, no identity policy-based permission required for calling this API.
URI
GET /v2/{project_id}/instances/{instance_id}/users/{user_name}
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
project_id |
Yes |
String |
Project ID. For details, see Obtaining a Project ID. |
|
instance_id |
Yes |
String |
Instance ID. |
|
user_name |
Yes |
String |
Username. |
Request Parameters
None
Response Parameters
Status code: 200
|
Parameter |
Type |
Description |
|---|---|---|
|
access_key |
String |
Definition Username. Range N/A |
|
secret_key |
String |
Definition Key. Range N/A |
|
white_remote_address |
String |
Definition IP address whitelist. Range N/A |
|
admin |
Boolean |
Definition Whether the user is an administrator. Range
|
|
default_topic_perm |
String |
Definition Default topic permissions. Range
|
|
default_group_perm |
String |
Definition Default consumer group permissions. Range
|
|
topic_perms |
Array of topic_perms objects |
Definition Special topic permissions. |
|
group_perms |
Array of group_perms objects |
Definition Special consumer group permissions. |
Example Requests
Querying user details
GET https://{endpoint}/v2/{project_id}/instances/{instance_id}/users/{user_name}
Example Responses
Status code: 200
User details queried.
{
"access_key" : "test_01",
"admin" : false,
"default_group_perm" : "DENY",
"default_topic_perm" : "SUB",
"group_perms" : [ ],
"secret_key" : "Abcd1234!",
"topic_perms" : [ ],
"white_remote_address" : ""
}
Status Codes
|
Status Code |
Description |
|---|---|
|
200 |
User details queried. |
Error Codes
See Error Codes.
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