Package com.atlan.api
Class GroupsEndpoint
java.lang.Object
com.atlan.api.AbstractEndpoint
com.atlan.api.HeraclesEndpoint
com.atlan.api.GroupsEndpoint
API endpoints for interacting with Atlan's groups.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.atlan.api.AbstractEndpoint
AbstractEndpoint.RawResponse
-
Field Summary
Fields inherited from class com.atlan.api.AbstractEndpoint
client
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreate
(AtlanGroup group) Create a new group.create
(AtlanGroup group, RequestOptions options) Create a new group.create
(AtlanGroup group, List<String> userIds) Create a new group and associate the provided users with it.create
(AtlanGroup group, List<String> userIds, RequestOptions options) Create a new group and associate the provided users with it.Retrieves all groups with a name that contains the provided string.get
(String alias, RequestOptions options) Retrieves all groups with a name that contains the provided string.list()
Retrieve all groups defined in Atlan.list
(int pageSize, RequestOptions options) Retrieve all groups defined in Atlan.list
(GroupRequest request) Retrieve groups defined in Atlan.list
(GroupRequest request, RequestOptions options) Retrieve groups defined in Atlan.list
(RequestOptions options) Retrieve all groups defined in Atlan.Retrieves a list of the groups defined in Atlan.list
(String filter, RequestOptions options) Retrieves a list of the groups defined in Atlan.Retrieves a list of the groups defined in Atlan.list
(String filter, String sort, boolean count, int offset, int limit, RequestOptions options) Retrieves a list of the groups defined in Atlan.listMembers
(String id) Retrieves the members (users) of a group.listMembers
(String id, UserRequest request) Retrieves the members (users) of a group.listMembers
(String id, UserRequest request, RequestOptions options) Retrieves the members (users) of a group.listMembers
(String id, RequestOptions options) Retrieves the members (users) of a group.void
Delete a group.void
purge
(String id, RequestOptions options) Delete a group.void
removeMembers
(String id, List<String> userIds) Remove one or more users from a group.void
removeMembers
(String id, List<String> userIds, RequestOptions options) Remove one or more users from a group.void
update
(String id, AtlanGroup group) Update a group.void
update
(String id, AtlanGroup group, RequestOptions options) Update a group.Methods inherited from class com.atlan.api.HeraclesEndpoint
getBaseUrl
Methods inherited from class com.atlan.api.AbstractEndpoint
getBaseUrl
-
Constructor Details
-
GroupsEndpoint
-
-
Method Details
-
list
Retrieve groups defined in Atlan.- Parameters:
request
- containing details about which groups to retrieve- Returns:
- a list of the groups in Atlan
- Throws:
AtlanException
- on any API communication issue
-
list
Retrieve groups defined in Atlan.- Parameters:
request
- containing details about which groups to retrieveoptions
- to override default client settings- Returns:
- a list of the groups in Atlan
- Throws:
AtlanException
- on any API communication issue
-
list
public GroupResponse list(String filter, String sort, boolean count, int offset, int limit) throws AtlanException Retrieves a list of the groups defined in Atlan.- Parameters:
filter
- which groups to retrievesort
- property by which to sort the resultscount
- whether to return the total number of records (true) or not (false)offset
- starting point for results to return, for paginglimit
- maximum number of results to be returned- Returns:
- a list of groups that match the provided criteria
- Throws:
AtlanException
- on any API communication issue
-
list
public GroupResponse list(String filter, String sort, boolean count, int offset, int limit, RequestOptions options) throws AtlanException Retrieves a list of the groups defined in Atlan.- Parameters:
filter
- which groups to retrievesort
- property by which to sort the resultscount
- whether to return the total number of records (true) or not (false)offset
- starting point for results to return, for paginglimit
- maximum number of results to be returnedoptions
- to override default client settings- Returns:
- a list of groups that match the provided criteria
- Throws:
AtlanException
- on any API communication issue
-
list
Retrieves a list of the groups defined in Atlan.- Parameters:
filter
- which groups to retrieve- Returns:
- a list of groups that match the provided criteria
- Throws:
AtlanException
- on any API communication issue
-
list
Retrieves a list of the groups defined in Atlan.- Parameters:
filter
- which groups to retrieveoptions
- to override default client settings- Returns:
- a list of groups that match the provided criteria
- Throws:
AtlanException
- on any API communication issue
-
list
Retrieve all groups defined in Atlan.- Returns:
- a list of all the groups in Atlan
- Throws:
AtlanException
- on any API communication issue
-
list
Retrieve all groups defined in Atlan.- Parameters:
options
- to override default client settings- Returns:
- a list of all the groups in Atlan
- Throws:
AtlanException
- on any API communication issue
-
list
Retrieve all groups defined in Atlan.- Parameters:
pageSize
- maximum number of groups to retrieve per requestoptions
- to override default client settings- Returns:
- a list of all the groups in Atlan
- Throws:
AtlanException
- on any API communication issue
-
get
Retrieves all groups with a name that contains the provided string. (This could include a complete group name, in which case there should be at most a single item in the returned list, or could be a partial group name to retrieve all groups with that naming convention.)- Parameters:
alias
- name (as it appears in the UI) on which to filter the groups- Returns:
- all groups whose name (in the UI) contains the provided string
- Throws:
AtlanException
- on any error during API invocation
-
get
Retrieves all groups with a name that contains the provided string. (This could include a complete group name, in which case there should be at most a single item in the returned list, or could be a partial group name to retrieve all groups with that naming convention.)- Parameters:
alias
- name (as it appears in the UI) on which to filter the groupsoptions
- to override default client settings- Returns:
- all groups whose name (in the UI) contains the provided string
- Throws:
AtlanException
- on any error during API invocation
-
create
Create a new group.- Parameters:
group
- the details of the new group- Returns:
- the unique identifier (GUID) of the group that was created, or null if none was created
- Throws:
AtlanException
- on any API communication issue
-
create
Create a new group.- Parameters:
group
- the details of the new groupoptions
- to override default client settings- Returns:
- the unique identifier (GUID) of the group that was created, or null if none was created
- Throws:
AtlanException
- on any API communication issue
-
create
Create a new group and associate the provided users with it.- Parameters:
group
- the details of the new groupuserIds
- list of unique identifiers (GUIDs) of users to associate with the group- Returns:
- details of the created group and user associations
- Throws:
AtlanException
- on any API communication issue
-
create
public CreateGroupResponse create(AtlanGroup group, List<String> userIds, RequestOptions options) throws AtlanException Create a new group and associate the provided users with it.- Parameters:
group
- the details of the new groupuserIds
- list of unique identifiers (GUIDs) of users to associate with the groupoptions
- to override default client settings- Returns:
- details of the created group and user associations
- Throws:
AtlanException
- on any API communication issue
-
update
Update a group.- Parameters:
id
- unique identifier (GUID) of the group to updategroup
- the details to update on the group- Throws:
AtlanException
- on any API communication issue
-
update
Update a group.- Parameters:
id
- unique identifier (GUID) of the group to updategroup
- the details to update on the groupoptions
- to override default client settings- Throws:
AtlanException
- on any API communication issue
-
listMembers
Retrieves the members (users) of a group.- Parameters:
id
- unique identifier (GUID) of the group from which to retrieve membersrequest
- containing details about which members to retrieve- Returns:
- list of users that are members of the group
- Throws:
AtlanException
- on any API communication issue
-
listMembers
public UserResponse listMembers(String id, UserRequest request, RequestOptions options) throws AtlanException Retrieves the members (users) of a group.- Parameters:
id
- unique identifier (GUID) of the group from which to retrieve membersrequest
- containing details about which members to retrieveoptions
- to override default client settings- Returns:
- list of users that are members of the group
- Throws:
AtlanException
- on any API communication issue
-
listMembers
Retrieves the members (users) of a group.- Parameters:
id
- unique identifier (GUID) of the group from which to retrieve members- Returns:
- list of users that are members of the group
- Throws:
AtlanException
- on any API communication issue
-
listMembers
Retrieves the members (users) of a group.- Parameters:
id
- unique identifier (GUID) of the group from which to retrieve membersoptions
- to override default client settings- Returns:
- list of users that are members of the group
- Throws:
AtlanException
- on any API communication issue
-
removeMembers
Remove one or more users from a group.- Parameters:
id
- unique identifier (GUID) of the group from which to remove usersuserIds
- unique identifiers (GUIDs) of the users to remove from the group- Throws:
AtlanException
- on any API communication issue
-
removeMembers
public void removeMembers(String id, List<String> userIds, RequestOptions options) throws AtlanException Remove one or more users from a group.- Parameters:
id
- unique identifier (GUID) of the group from which to remove usersuserIds
- unique identifiers (GUIDs) of the users to remove from the groupoptions
- to override default client settings- Throws:
AtlanException
- on any API communication issue
-
purge
Delete a group.- Parameters:
id
- unique identifier (GUID) of the group to delete- Throws:
AtlanException
- on any API communication issue
-
purge
Delete a group.- Parameters:
id
- unique identifier (GUID) of the group to deleteoptions
- to override default client settings- Throws:
AtlanException
- on any API communication issue
-