Obtains all member records in a warehouse.
Function
This interface is used to obtain the warehouse member list. You can search for a member by keyword.
URI
GET /v1/repositories/{repository_uuid}/members
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
repository_uuid |
Yes |
String |
Repository UUID, which is returned by the CreateRepository API. |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
page_index |
No |
Integer |
Indicates the page number. |
page_size |
No |
Integer |
Size of Each Page |
subject |
No |
String |
Keyword entered for search |
Request Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
X-Auth-Token |
Yes |
String |
Specifies the user token. It can be obtained by calling an IAM API. The value of X-Subject-Token in the response header is the user token. |
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
error |
Error object |
Response error. |
result |
RepositoryMemberList object |
Result |
status |
String |
Status code in a response |
Parameter |
Type |
Description |
---|---|---|
total |
Integer |
Total Warehouse Members |
users |
Array of RepositoryMember objects |
Warehouse Member List |
Parameter |
Type |
Description |
---|---|---|
description |
String |
Warehouse Member Description |
domain_id |
String |
Tenant ID Minimum: 8 Maximum: 32 |
domain_name |
String |
Tenant Name |
|
String |
|
enabled |
String |
Indicates whether a member is available. |
name |
String |
User Name |
role |
Integer |
Repository user permission. The options are as follows: 30->common member, 40->administrator |
user_id |
String |
Specifies the user ID. Minimum: 4 Maximum: 32 |
Example Requests
GET https://{endpoint}/v1/repositories/{repository_uuid}/members
Example Responses
Status code: 200
OK
{ "result" : { "total" : 2, "users" : [ { "user_id" : "5836", "name" : "repo", "domain_name" : "repo", "description" : null, "enabled" : null, "role" : 40, "domain_id" : "159b65b41ead484d8ddff250a4731781", "email" : null }, { "user_id" : "6057", "name" : "repo", "domain_name" : "repo", "description" : null, "enabled" : null, "role" : 30, "domain_id" : "159b65b41ead484d8ddff250a4731781", "email" : null } ] }, "status" : "success" }
Status Codes
Status Code |
Description |
---|---|
200 |
OK |
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.