Queries the list of members in a workspace.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
emr-serverless-spark:ListMembers |
list |
*All Resource
|
None | None |
Request syntax
GET /api/v1/auth/{workspaceId}/members HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| workspaceId |
string |
Yes |
The ID of the workspace. |
w-975bcfda9625**** |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| nextToken |
string |
No |
The pagination token that specifies the starting position for the query. |
1 |
| maxResults |
integer |
No |
The maximum number of records to return per request. |
20 |
| regionId |
string |
No |
The region ID. |
cn-hangzhou |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response data. |
||
| members |
array<object> |
The list of members. |
|
|
array<object> |
The member. |
||
| memberArn |
string |
The ARN of the member. |
acs:emr::w-1234****abcd:member/202265*****276 |
| userName |
string |
The username. |
jia***test@195*****7311.onaliyun.com |
| displayName |
string |
The display name of the user. |
jia***test |
| userType |
string |
The type of the user. Valid values:
Valid values:
|
MEMBER |
| roles |
array<object> |
The list of roles in the workspace. |
|
|
array<object> |
The user role. |
||
| roleArn |
string |
The ARN of the role. |
acs:emr::w-1234****abcd:role/DataScience |
| roleName |
string |
The name of the role. |
DataScience |
| description |
string |
The description. |
DataScience |
| createTime |
integer |
The creation time. The value is a UNIX timestamp in milliseconds. |
1753412502000 |
| actions |
array<object> |
The list of permissions. |
|
|
object |
|||
| actionArn |
string |
The ARN of the action. |
acs:emr::w-1234****abcd:action/add_MEMBER |
| actionName |
string |
The name of the action. |
add |
| displayName |
string |
The display name of the permission. |
add members |
| description |
string |
The description of the action. |
add members |
| dependencies |
array |
The list of dependencies for the action. |
["view"] |
|
string |
The dependency. |
VIEW |
|
| actions |
array<object> |
The list of actions allowed for the user. |
|
|
object |
|||
| actionArn |
string |
The ARN of the action. |
acs:emr::w-1234****abcd:action/add_MEMBER |
| actionName |
string |
The name of the action. |
add |
| displayName |
string |
The display name of the permission. |
add members |
| description |
string |
The description of the action. |
add members |
| dependencies |
array |
The list of dependencies for the action. |
["view"] |
|
string |
The dependency. |
VIEW |
|
| visible |
boolean |
Indicates whether the member is visible. |
true |
| createTime |
string |
The creation time. The value is a UNIX timestamp in milliseconds. |
1753412502000 |
| requestId |
string |
The ID of the request. |
DD6B1B2A-5837-5237-ABE4-FF0C8944**** |
| nextToken |
string |
The pagination token for the next page. |
1 |
| maxResults |
integer |
The maximum number of records to return per request. |
20 |
| totalCount |
integer |
The total number of records. |
200 |
Examples
Success response
JSON format
{
"members": [
{
"memberArn": "acs:emr::w-1234****abcd:member/202265*****276",
"userName": "jia***test@195*****7311.onaliyun.com",
"displayName": "jia***test",
"userType": "MEMBER",
"roles": [
{
"roleArn": "acs:emr::w-1234****abcd:role/DataScience",
"roleName": "DataScience",
"description": "DataScience",
"createTime": 1753412502000,
"actions": [
{
"actionArn": "acs:emr::w-1234****abcd:action/add_MEMBER",
"actionName": "add",
"displayName": "add members",
"description": "add members\n",
"dependencies": [
"VIEW"
]
}
]
}
],
"actions": [
{
"actionArn": "acs:emr::w-1234****abcd:action/add_MEMBER",
"actionName": "add",
"displayName": "add members",
"description": "add members",
"dependencies": [
"VIEW"
]
}
],
"visible": true,
"createTime": "1753412502000"
}
],
"requestId": "DD6B1B2A-5837-5237-ABE4-FF0C8944****",
"nextToken": "1",
"maxResults": 20,
"totalCount": 200
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.