Open
Description
Given:
- I try to use v3 api to receive all space roles assignments.
- In v2 it was retrieved using this endpoint: https://apidocs.cloudfoundry.org/16.22.0/spaces/retrieving_the_roles_of_all_users_in_the_space.html
The response contains all the required info for the processing on our side:
-
list of roles (resources.entity.space_roles)
-
username (resources.entity.username)
-
In v3 I found that roles endpoint should be used: https://v3-apidocs.cloudfoundry.org/version/3.151.0/index.html#list-roles
-
It has Include parameter to get user, space, organization
-
org.cloudfoundry library version is 5.10.0.RELEASE
When:
- I try to construct request in Java library
Then:
- I don't see any option to specify include parameter
My query:
PaginationUtils.requestClientV3Resources(page -> getClient(hostName)
.rolesV3()
.list(ListRolesRequest.builder().spaceId(spaceId)
.types(RoleType.SPACE_AUDITOR, RoleType.SPACE_MANAGER, RoleType.SPACE_DEVELOPER)
.build()));
ListRolesRequest.builder() doen not provide any option to specify include parameter.
What did I do wrong ?
Could you please assist here ?
Thank you!
Metadata
Metadata
Assignees
Labels
No labels