List Member Environment Role Bindings
GET /members/{member_id}/role_bindings
GET /members/{member_id}/role_bindingsInteractive request editor loads with JavaScript.
Authorization
BearerAdminToken Organization-scoped admin token. Read operations require a valid token, and write operations require a token with write permission.
In: header
Path Parameters
Organization membership ID.
uuidResponse Body
application/json
application/json
application/json
application/json
curl -X GET "$AISIX_CP/members/$MEMBER_ID/role_bindings" \ -H "Authorization: Bearer $AISIX_TOKEN"OK
{
"data": [
{
"env_id": "3f917d0d-4dff-42f3-97c4-6a5455dfe8c2",
"role": "string"
}
]
}Request body or parameters failed validation.
{
"error": {
"code": "string",
"message": "string"
}
}Missing or invalid bearer.
{
"error": {
"code": "UNAUTHENTICATED",
"message": "no org context"
}
}Resource not found.
{
"error": {
"code": "NOT_FOUND",
"message": "provider key not found"
}
}Complete operation details and schema variants
GET /members/{member_id}/role_bindings
List Member Environment Role Bindings
List the roles granted to one member in individual environments. Each binding adds its role to the member's organization role for resources inside that environment. It does not reduce the member's organization-level access or grant control over the environment object itself.
Parameters
member_id(path, string, required): Organization membership ID.
Responses
-
200: OK -
data(array, required): -
data[].env_id(string, required): Environment in the authenticated organization. -
data[].role(string, required):admin,member, or an existing custom role. Theownerrole cannot be granted for one environment. -
400: Request body or parameters failed validation. -
error(object, required): Error details. -
error.code(string, required): Machine-readable identifier. Examples:UNAUTHENTICATED,INVALID_REQUEST,MASTER_KEY_UNSET,INTERNAL. -
error.message(string, required): Human-readable explanation; safe to surface to operators. -
401: Missing or invalid bearer. Response fields (application/json): identical toGET /members/{member_id}/role_bindings, response 400 above. -
404: Resource not found. Response fields (application/json): identical toGET /members/{member_id}/role_bindings, response 400 above.
cURL
curl -X GET '$AISIX_CP/members/{member_id}/role_bindings' -H 'Authorization: Bearer $AISIX_TOKEN'