Package com.okta.sdk.resource.api
Class RoleDResourceSetBindingApi
java.lang.Object
com.okta.sdk.resource.api.RoleDResourceSetBindingApi
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2026-03-13T17:36:05.533634+05:30[Asia/Kolkata]",
comments="Generator version: 7.15.0")
public class RoleDResourceSetBindingApi
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateResourceSetBinding(String resourceSetIdOrLabel, ResourceSetBindingCreateRequest instance) Create a role resource set binding Creates a binding for the resource set, custom role, and members (users or groups) > **Note:** If you use a custom role with permissions that don't apply to the resources in the resource set, it doesn't affect the admin role.createResourceSetBinding(String resourceSetIdOrLabel, ResourceSetBindingCreateRequest instance, Map<String, String> additionalHeaders) Create a role resource set binding Creates a binding for the resource set, custom role, and members (users or groups) > **Note:** If you use a custom role with permissions that don't apply to the resources in the resource set, it doesn't affect the admin role.voiddeleteBinding(String resourceSetIdOrLabel, String roleIdOrLabel) Delete a role resource set binding Deletes a binding of a role (identified by `roleIdOrLabel`) and a resource set (identified by `resourceSetIdOrLabel`)voiddeleteBinding(String resourceSetIdOrLabel, String roleIdOrLabel, Map<String, String> additionalHeaders) Delete a role resource set binding Deletes a binding of a role (identified by `roleIdOrLabel`) and a resource set (identified by `resourceSetIdOrLabel`)getBinding(String resourceSetIdOrLabel, String roleIdOrLabel) Retrieve a role resource set binding Retrieves the binding of a role (identified by `roleIdOrLabel`) for a resource set (identified by `resourceSetIdOrLabel`)Retrieve a role resource set binding Retrieves the binding of a role (identified by `roleIdOrLabel`) for a resource set (identified by `resourceSetIdOrLabel`)protected static com.fasterxml.jackson.databind.ObjectMapperlistBindings(String resourceSetIdOrLabel, String after) List all role resource set bindings Lists all bindings for a resource set with pagination support.List all role resource set bindings Lists all bindings for a resource set with pagination support.voidsetApiClient(ApiClient apiClient)
-
Constructor Details
-
RoleDResourceSetBindingApi
public RoleDResourceSetBindingApi() -
RoleDResourceSetBindingApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
createResourceSetBinding
public ResourceSetBindingEditResponse createResourceSetBinding(String resourceSetIdOrLabel, ResourceSetBindingCreateRequest instance) throws ApiException Create a role resource set binding Creates a binding for the resource set, custom role, and members (users or groups) > **Note:** If you use a custom role with permissions that don't apply to the resources in the resource set, it doesn't affect the admin role. For example, the `okta.users.userprofile.manage` permission gives the admin no privileges if it's granted to a resource set that only includes `https://{yourOktaDomain}/api/v1/groups/{targetGroupId}` resources. If you want the admin to be able to manage the users within the group, the resource set must include the corresponding `https://{yourOktaDomain}/api/v1/groups/{targetGroupId}/users` resource.- Parameters:
resourceSetIdOrLabel- `id` or `label` of the resource set (required)instance- (required)- Returns:
- ResourceSetBindingEditResponse
- Throws:
ApiException- if fails to make API call
-
createResourceSetBinding
public ResourceSetBindingEditResponse createResourceSetBinding(String resourceSetIdOrLabel, ResourceSetBindingCreateRequest instance, Map<String, String> additionalHeaders) throws ApiExceptionCreate a role resource set binding Creates a binding for the resource set, custom role, and members (users or groups) > **Note:** If you use a custom role with permissions that don't apply to the resources in the resource set, it doesn't affect the admin role. For example, the `okta.users.userprofile.manage` permission gives the admin no privileges if it's granted to a resource set that only includes `https://{yourOktaDomain}/api/v1/groups/{targetGroupId}` resources. If you want the admin to be able to manage the users within the group, the resource set must include the corresponding `https://{yourOktaDomain}/api/v1/groups/{targetGroupId}/users` resource.- Parameters:
resourceSetIdOrLabel- `id` or `label` of the resource set (required)instance- (required)additionalHeaders- additionalHeaders for this call- Returns:
- ResourceSetBindingEditResponse
- Throws:
ApiException- if fails to make API call
-
deleteBinding
Delete a role resource set binding Deletes a binding of a role (identified by `roleIdOrLabel`) and a resource set (identified by `resourceSetIdOrLabel`)- Parameters:
resourceSetIdOrLabel- `id` or `label` of the resource set (required)roleIdOrLabel- `id` or `label` of the role (required)- Throws:
ApiException- if fails to make API call
-
deleteBinding
public void deleteBinding(String resourceSetIdOrLabel, String roleIdOrLabel, Map<String, String> additionalHeaders) throws ApiExceptionDelete a role resource set binding Deletes a binding of a role (identified by `roleIdOrLabel`) and a resource set (identified by `resourceSetIdOrLabel`)- Parameters:
resourceSetIdOrLabel- `id` or `label` of the resource set (required)roleIdOrLabel- `id` or `label` of the role (required)additionalHeaders- additionalHeaders for this call- Throws:
ApiException- if fails to make API call
-
getBinding
public ResourceSetBindingResponse getBinding(String resourceSetIdOrLabel, String roleIdOrLabel) throws ApiException Retrieve a role resource set binding Retrieves the binding of a role (identified by `roleIdOrLabel`) for a resource set (identified by `resourceSetIdOrLabel`)- Parameters:
resourceSetIdOrLabel- `id` or `label` of the resource set (required)roleIdOrLabel- `id` or `label` of the role (required)- Returns:
- ResourceSetBindingResponse
- Throws:
ApiException- if fails to make API call
-
getBinding
public ResourceSetBindingResponse getBinding(String resourceSetIdOrLabel, String roleIdOrLabel, Map<String, String> additionalHeaders) throws ApiExceptionRetrieve a role resource set binding Retrieves the binding of a role (identified by `roleIdOrLabel`) for a resource set (identified by `resourceSetIdOrLabel`)- Parameters:
resourceSetIdOrLabel- `id` or `label` of the resource set (required)roleIdOrLabel- `id` or `label` of the role (required)additionalHeaders- additionalHeaders for this call- Returns:
- ResourceSetBindingResponse
- Throws:
ApiException- if fails to make API call
-
listBindings
public ResourceSetBindings listBindings(String resourceSetIdOrLabel, String after) throws ApiException List all role resource set bindings Lists all bindings for a resource set with pagination support. The returned `roles` array contains the roles for each binding associated with the specified resource set. If there are more than 100 bindings for the specified resource set, `links.next` provides the resource with pagination for the next list of bindings.- Parameters:
resourceSetIdOrLabel- `id` or `label` of the resource set (required)after- The cursor to use for pagination. It is an opaque string that specifies your current location in the list and is obtained from the `Link` response header. See [Pagination](https://developer.okta.com/docs/api/#pagination) and [Link header](https://developer.okta.com/docs/api/#link-header). (optional)- Returns:
- ResourceSetBindings
- Throws:
ApiException- if fails to make API call
-
listBindings
public ResourceSetBindings listBindings(String resourceSetIdOrLabel, String after, Map<String, String> additionalHeaders) throws ApiExceptionList all role resource set bindings Lists all bindings for a resource set with pagination support. The returned `roles` array contains the roles for each binding associated with the specified resource set. If there are more than 100 bindings for the specified resource set, `links.next` provides the resource with pagination for the next list of bindings.- Parameters:
resourceSetIdOrLabel- `id` or `label` of the resource set (required)after- The cursor to use for pagination. It is an opaque string that specifies your current location in the list and is obtained from the `Link` response header. See [Pagination](https://developer.okta.com/docs/api/#pagination) and [Link header](https://developer.okta.com/docs/api/#link-header). (optional)additionalHeaders- additionalHeaders for this call- Returns:
- ResourceSetBindings
- Throws:
ApiException- if fails to make API call
-
getObjectMapper
protected static com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
-