Interface IAMPermissionSets
- All Known Implementing Classes:
IAMPermissionSetsImpl
/v1/projects/{projectId}/permissionSets).
Provides the permission set lifecycle - list / create / get / update / delete. A permission
set groups the granular permissions that a role or access policy confers. All operations are
scoped to a projectId.
ERN addressing. getPermissionSet additionally accepts the spec's ERN-addressing
form, where projectId is the literal "*" and permissionSetId is an Equinix
Resource Name (ERN) - or a managed-permission-set id - rather than a local permissionset:
id. Because an ERN contains reserved characters (: and /), the API requires it to
be URL-encoded when used as a path segment. This SDK does not provide a dedicated byErn
overload: the shared core path-substitution layer does not percent-encode individual path
segments, and adding that encoding would require a core change. Callers needing ERN addressing
must therefore pass a pre-URL-encoded ERN as the permissionSetId argument together with
projectId == "*".
-
Method Summary
Modifier and TypeMethodDescriptioncreate(String projectId, CreatePermissionSetRequest request) Creates a new permission set in a project.Deletes a permission set.Retrieves a single permission set by id.Lists the permission sets of a project (first page).Lists the permission sets of a project, controlling pagination.update(String projectId, String permissionSetId, UpdatePermissionSetRequest request) Updates a permission set.
-
Method Details
-
list
Lists the permission sets of a project (first page).- Parameters:
projectId- the IAM project id,project:<id>(for exampleproject:abc-123); a bare Resource Manager UUID is rejected, convert it withProjectIds.of(String). Project-scoped endpoints need an STS access-policy token (new IAM(BearerTokenProvider))- Returns:
- the first page of permission sets
-
list
Lists the permission sets of a project, controlling pagination.- Parameters:
projectId- the IAM project id,project:<id>(for exampleproject:abc-123); a bare Resource Manager UUID is rejected, convert it withProjectIds.of(String). Project-scoped endpoints need an STS access-policy token (new IAM(BearerTokenProvider))pageToken- the opaque page token from a prior response, ornullfor the first pagepageSize- the maximum number of results per page, ornullfor the server default- Returns:
- the requested page of permission sets
-
create
Creates a new permission set in a project.- Parameters:
projectId- the IAM project id,project:<id>(for exampleproject:abc-123); a bare Resource Manager UUID is rejected, convert it withProjectIds.of(String). Project-scoped endpoints need an STS access-policy token (new IAM(BearerTokenProvider))request- the permission set to create- Returns:
- the created permission set
-
getByUuid
Retrieves a single permission set by id.- Parameters:
projectId- the IAM project id,project:<id>(for exampleproject:abc-123); a bare Resource Manager UUID is rejected, convert it withProjectIds.of(String). Project-scoped endpoints need an STS access-policy token (new IAM(BearerTokenProvider))permissionSetId- the permission set identifier- Returns:
- the matching permission set
-
update
Updates a permission set.- Parameters:
projectId- the IAM project id,project:<id>(for exampleproject:abc-123); a bare Resource Manager UUID is rejected, convert it withProjectIds.of(String). Project-scoped endpoints need an STS access-policy token (new IAM(BearerTokenProvider))permissionSetId- the permission set identifierrequest- the update (the request'slastRevguards against concurrent updates)- Returns:
- the updated permission set
-
delete
Deletes a permission set.The spec requires the permission set's last-known revision in the request body for optimistic-concurrency-controlled deletion.
- Parameters:
projectId- the IAM project id,project:<id>(for exampleproject:abc-123); a bare Resource Manager UUID is rejected, convert it withProjectIds.of(String). Project-scoped endpoints need an STS access-policy token (new IAM(BearerTokenProvider))permissionSetId- the permission set identifierlastRev- the last-known revision of the permission set (required; fromPermissionSet.getRev())- Returns:
trueif the deletion request was accepted
-