Class IamAccessGroups
- java.lang.Object
-
- com.ibm.cloud.sdk.core.service.BaseService
-
- com.ibm.cloud.platform_services.iam_access_groups.v2.IamAccessGroups
-
public class IamAccessGroups extends com.ibm.cloud.sdk.core.service.BaseServiceThe IAM Access Groups API allows for the management of access groups (Create, Read, Update, Delete) as well as the management of memberships and rules within the group container. API Version: 2.0
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringDEFAULT_SERVICE_NAMEDefault service name used when configuring the `IamAccessGroups` client.static java.lang.StringDEFAULT_SERVICE_URLDefault service endpoint URL.
-
Constructor Summary
Constructors Constructor Description IamAccessGroups(java.lang.String serviceName, com.ibm.cloud.sdk.core.security.Authenticator authenticator)Constructs an instance of the `IamAccessGroups` client.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.ibm.cloud.sdk.core.http.ServiceCall<Rule>addAccessGroupRule(AddAccessGroupRuleOptions addAccessGroupRuleOptions)Create rule for an access group.com.ibm.cloud.sdk.core.http.ServiceCall<AddGroupMembersResponse>addMembersToAccessGroup(AddMembersToAccessGroupOptions addMembersToAccessGroupOptions)Add members to an access group.com.ibm.cloud.sdk.core.http.ServiceCall<AddMembershipMultipleGroupsResponse>addMemberToMultipleAccessGroups(AddMemberToMultipleAccessGroupsOptions addMemberToMultipleAccessGroupsOptions)Add member to multiple access groups.com.ibm.cloud.sdk.core.http.ServiceCall<java.lang.Void>commitTemplate(CommitTemplateOptions commitTemplateOptions)Commit a template.com.ibm.cloud.sdk.core.http.ServiceCall<Group>createAccessGroup(CreateAccessGroupOptions createAccessGroupOptions)Create an access group.com.ibm.cloud.sdk.core.http.ServiceCall<TemplateAssignmentResponse>createAssignment(CreateAssignmentOptions createAssignmentOptions)Create assignment.com.ibm.cloud.sdk.core.http.ServiceCall<TemplateResponse>createTemplate(CreateTemplateOptions createTemplateOptions)Create template.com.ibm.cloud.sdk.core.http.ServiceCall<TemplateVersionResponse>createTemplateVersion(CreateTemplateVersionOptions createTemplateVersionOptions)Create template version.com.ibm.cloud.sdk.core.http.ServiceCall<java.lang.Void>deleteAccessGroup(DeleteAccessGroupOptions deleteAccessGroupOptions)Delete an access group.com.ibm.cloud.sdk.core.http.ServiceCall<java.lang.Void>deleteAssignment(DeleteAssignmentOptions deleteAssignmentOptions)Delete assignment.com.ibm.cloud.sdk.core.http.ServiceCall<java.lang.Void>deleteTemplate(DeleteTemplateOptions deleteTemplateOptions)Delete template.com.ibm.cloud.sdk.core.http.ServiceCall<java.lang.Void>deleteTemplateVersion(DeleteTemplateVersionOptions deleteTemplateVersionOptions)Delete template version.com.ibm.cloud.sdk.core.http.ServiceCall<Group>getAccessGroup(GetAccessGroupOptions getAccessGroupOptions)Get an access group.com.ibm.cloud.sdk.core.http.ServiceCall<Rule>getAccessGroupRule(GetAccessGroupRuleOptions getAccessGroupRuleOptions)Get an access group rule.com.ibm.cloud.sdk.core.http.ServiceCall<AccountSettings>getAccountSettings(GetAccountSettingsOptions getAccountSettingsOptions)Get account settings.com.ibm.cloud.sdk.core.http.ServiceCall<TemplateAssignmentVerboseResponse>getAssignment(GetAssignmentOptions getAssignmentOptions)Get assignment.com.ibm.cloud.sdk.core.http.ServiceCall<TemplateVersionResponse>getLatestTemplateVersion(GetLatestTemplateVersionOptions getLatestTemplateVersionOptions)Get latest template version.com.ibm.cloud.sdk.core.http.ServiceCall<TemplateVersionResponse>getTemplateVersion(GetTemplateVersionOptions getTemplateVersionOptions)Get template version.com.ibm.cloud.sdk.core.http.ServiceCall<java.lang.Void>isMemberOfAccessGroup(IsMemberOfAccessGroupOptions isMemberOfAccessGroupOptions)Check membership in an access group.com.ibm.cloud.sdk.core.http.ServiceCall<GroupMembersList>listAccessGroupMembers(ListAccessGroupMembersOptions listAccessGroupMembersOptions)List access group members.com.ibm.cloud.sdk.core.http.ServiceCall<RulesList>listAccessGroupRules(ListAccessGroupRulesOptions listAccessGroupRulesOptions)List access group rules.com.ibm.cloud.sdk.core.http.ServiceCall<GroupsList>listAccessGroups(ListAccessGroupsOptions listAccessGroupsOptions)List access groups.com.ibm.cloud.sdk.core.http.ServiceCall<ListTemplateAssignmentResponse>listAssignments(ListAssignmentsOptions listAssignmentsOptions)List assignments.com.ibm.cloud.sdk.core.http.ServiceCall<ListTemplatesResponse>listTemplates(ListTemplatesOptions listTemplatesOptions)List templates.com.ibm.cloud.sdk.core.http.ServiceCall<ListTemplateVersionsResponse>listTemplateVersions(ListTemplateVersionsOptions listTemplateVersionsOptions)List template versions.static IamAccessGroupsnewInstance()Class method which constructs an instance of the `IamAccessGroups` client.static IamAccessGroupsnewInstance(java.lang.String serviceName)Class method which constructs an instance of the `IamAccessGroups` client.com.ibm.cloud.sdk.core.http.ServiceCall<java.lang.Void>removeAccessGroupRule(RemoveAccessGroupRuleOptions removeAccessGroupRuleOptions)Delete an access group rule.com.ibm.cloud.sdk.core.http.ServiceCall<java.lang.Void>removeMemberFromAccessGroup(RemoveMemberFromAccessGroupOptions removeMemberFromAccessGroupOptions)Delete member from an access group.com.ibm.cloud.sdk.core.http.ServiceCall<DeleteFromAllGroupsResponse>removeMemberFromAllAccessGroups(RemoveMemberFromAllAccessGroupsOptions removeMemberFromAllAccessGroupsOptions)Delete member from all access groups.com.ibm.cloud.sdk.core.http.ServiceCall<DeleteGroupBulkMembersResponse>removeMembersFromAccessGroup(RemoveMembersFromAccessGroupOptions removeMembersFromAccessGroupOptions)Delete members from an access group.com.ibm.cloud.sdk.core.http.ServiceCall<Rule>replaceAccessGroupRule(ReplaceAccessGroupRuleOptions replaceAccessGroupRuleOptions)Replace an access group rule.com.ibm.cloud.sdk.core.http.ServiceCall<Group>updateAccessGroup(UpdateAccessGroupOptions updateAccessGroupOptions)Update an access group.com.ibm.cloud.sdk.core.http.ServiceCall<AccountSettings>updateAccountSettings(UpdateAccountSettingsOptions updateAccountSettingsOptions)Update account settings.com.ibm.cloud.sdk.core.http.ServiceCall<TemplateAssignmentVerboseResponse>updateAssignment(UpdateAssignmentOptions updateAssignmentOptions)Update Assignment.com.ibm.cloud.sdk.core.http.ServiceCall<TemplateVersionResponse>updateTemplateVersion(UpdateTemplateVersionOptions updateTemplateVersionOptions)Update template version.-
Methods inherited from class com.ibm.cloud.sdk.core.service.BaseService
configureClient, configureService, constructServiceUrl, constructServiceURL, disableRetries, enableGzipCompression, enableRetries, getAuthenticator, getClient, getDefaultHeaders, getEndPoint, getName, getServiceUrl, isJsonMimeType, isJsonPatchMimeType, setClient, setDefaultHeaders, setEndPoint, setServiceUrl, toString
-
-
-
-
Field Detail
-
DEFAULT_SERVICE_NAME
public static final java.lang.String DEFAULT_SERVICE_NAME
Default service name used when configuring the `IamAccessGroups` client.- See Also:
- Constant Field Values
-
DEFAULT_SERVICE_URL
public static final java.lang.String DEFAULT_SERVICE_URL
Default service endpoint URL.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
IamAccessGroups
public IamAccessGroups(java.lang.String serviceName, com.ibm.cloud.sdk.core.security.Authenticator authenticator)Constructs an instance of the `IamAccessGroups` client. The specified service name and authenticator are used to configure the client instance.- Parameters:
serviceName- the service name to be used when configuring the client instanceauthenticator- theAuthenticatorinstance to be configured for this client
-
-
Method Detail
-
newInstance
public static IamAccessGroups newInstance()
Class method which constructs an instance of the `IamAccessGroups` client. The default service name is used to configure the client instance.- Returns:
- an instance of the `IamAccessGroups` client using external configuration
-
newInstance
public static IamAccessGroups newInstance(java.lang.String serviceName)
Class method which constructs an instance of the `IamAccessGroups` client. The specified service name is used to configure the client instance.- Parameters:
serviceName- the service name to be used when configuring the client instance- Returns:
- an instance of the `IamAccessGroups` client using external configuration
-
createAccessGroup
public com.ibm.cloud.sdk.core.http.ServiceCall<Group> createAccessGroup(CreateAccessGroupOptions createAccessGroupOptions)
Create an access group. Create a new access group to assign multiple users and service ids to multiple policies. The group will be created in the account specified by the `account_id` parameter. The group name is a required field, but a description is optional. Because the group's name does not have to be unique, it is possible to create multiple groups with the same name.- Parameters:
createAccessGroupOptions- theCreateAccessGroupOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeGroup
-
listAccessGroups
public com.ibm.cloud.sdk.core.http.ServiceCall<GroupsList> listAccessGroups(ListAccessGroupsOptions listAccessGroupsOptions)
List access groups. This API lists access groups within an account. Parameters for pagination and sorting can be used to filter the results. The `account_id` query parameter determines which account to retrieve groups from. Only the groups you have access to are returned (either because of a policy on a specific group or account level access (admin, editor, or viewer)). There may be more groups in the account that aren't shown if you lack the aforementioned permissions.- Parameters:
listAccessGroupsOptions- theListAccessGroupsOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeGroupsList
-
getAccessGroup
public com.ibm.cloud.sdk.core.http.ServiceCall<Group> getAccessGroup(GetAccessGroupOptions getAccessGroupOptions)
Get an access group. Retrieve an access group by its `access_group_id`. Only the groups data is returned (group name, description, account_id, ...), not membership or rule information. A revision number is returned in the `ETag` header, which is needed when updating the access group.- Parameters:
getAccessGroupOptions- theGetAccessGroupOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeGroup
-
updateAccessGroup
public com.ibm.cloud.sdk.core.http.ServiceCall<Group> updateAccessGroup(UpdateAccessGroupOptions updateAccessGroupOptions)
Update an access group. Update the group name or description of an existing access group using this API. An `If-Match` header must be populated with the group's most recent revision number (which can be acquired in the `Get an access group` API).- Parameters:
updateAccessGroupOptions- theUpdateAccessGroupOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeGroup
-
deleteAccessGroup
public com.ibm.cloud.sdk.core.http.ServiceCall<java.lang.Void> deleteAccessGroup(DeleteAccessGroupOptions deleteAccessGroupOptions)
Delete an access group. This API is used for deleting an access group. If the access group has no members or rules associated with it, the group and its policies will be deleted. However, if rules or members do exist, set the `force` parameter to true to delete the group as well as its associated members, rules, and policies.- Parameters:
deleteAccessGroupOptions- theDeleteAccessGroupOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a void result
-
isMemberOfAccessGroup
public com.ibm.cloud.sdk.core.http.ServiceCall<java.lang.Void> isMemberOfAccessGroup(IsMemberOfAccessGroupOptions isMemberOfAccessGroupOptions)
Check membership in an access group. This HEAD operation determines if a given `iam_id` is present in a group either explicitly or via dynamic rules. No response body is returned with this request. If the membership exists, a `204 - No Content` status code is returned. If the membership or the group does not exist, a `404 - Not Found` status code is returned.- Parameters:
isMemberOfAccessGroupOptions- theIsMemberOfAccessGroupOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a void result
-
addMembersToAccessGroup
public com.ibm.cloud.sdk.core.http.ServiceCall<AddGroupMembersResponse> addMembersToAccessGroup(AddMembersToAccessGroupOptions addMembersToAccessGroupOptions)
Add members to an access group. Use this API to add users (`IBMid-...`), service IDs (`iam-ServiceId-...`) or trusted profiles (`iam-Profile-...`) to an access group. Any member added gains access to resources defined in the group's policies. To revoke a given members's access, simply remove them from the group. There is no limit to the number of members one group can have, but each `iam_id` can only be added to 50 groups. Additionally, this API request payload can add up to 50 members per call.- Parameters:
addMembersToAccessGroupOptions- theAddMembersToAccessGroupOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeAddGroupMembersResponse
-
listAccessGroupMembers
public com.ibm.cloud.sdk.core.http.ServiceCall<GroupMembersList> listAccessGroupMembers(ListAccessGroupMembersOptions listAccessGroupMembersOptions)
List access group members. List all members of a given group using this API. Parameters for pagination and sorting can be used to filter the results. The most useful query parameter may be the `verbose` flag. If `verbose=true`, user, service ID and trusted profile names will be retrieved for each `iam_id`. If performance is a concern, leave the `verbose` parameter off so that name information does not get retrieved.- Parameters:
listAccessGroupMembersOptions- theListAccessGroupMembersOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeGroupMembersList
-
removeMemberFromAccessGroup
public com.ibm.cloud.sdk.core.http.ServiceCall<java.lang.Void> removeMemberFromAccessGroup(RemoveMemberFromAccessGroupOptions removeMemberFromAccessGroupOptions)
Delete member from an access group. Remove one member from a group using this API. If the operation is successful, only a `204 - No Content` response with no body is returned. However, if any error occurs, the standard error format will be returned. Dynamic member cannot be deleted using this API. Dynamic rules needs to be adjusted to delete dynamic members.- Parameters:
removeMemberFromAccessGroupOptions- theRemoveMemberFromAccessGroupOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a void result
-
removeMembersFromAccessGroup
public com.ibm.cloud.sdk.core.http.ServiceCall<DeleteGroupBulkMembersResponse> removeMembersFromAccessGroup(RemoveMembersFromAccessGroupOptions removeMembersFromAccessGroupOptions)
Delete members from an access group. Remove multiple members from a group using this API. On a successful call, this API will always return 207. It is the caller's responsibility to iterate across the body to determine successful deletion of each member. This API request payload can delete up to 50 members per call. This API doesnt delete dynamic members accessing the access group via dynamic rules.- Parameters:
removeMembersFromAccessGroupOptions- theRemoveMembersFromAccessGroupOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeDeleteGroupBulkMembersResponse
-
removeMemberFromAllAccessGroups
public com.ibm.cloud.sdk.core.http.ServiceCall<DeleteFromAllGroupsResponse> removeMemberFromAllAccessGroups(RemoveMemberFromAllAccessGroupsOptions removeMemberFromAllAccessGroupsOptions)
Delete member from all access groups. This API removes a given member from every group they are a member of within the specified account. By using one operation, you can revoke one member's access to all access groups in the account. If a partial failure occurs on deletion, the response will be shown in the body.- Parameters:
removeMemberFromAllAccessGroupsOptions- theRemoveMemberFromAllAccessGroupsOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeDeleteFromAllGroupsResponse
-
addMemberToMultipleAccessGroups
public com.ibm.cloud.sdk.core.http.ServiceCall<AddMembershipMultipleGroupsResponse> addMemberToMultipleAccessGroups(AddMemberToMultipleAccessGroupsOptions addMemberToMultipleAccessGroupsOptions)
Add member to multiple access groups. This API will add a member to multiple access groups in an account. The limit of how many groups that can be in the request is 50. The response is a list of results that show if adding the member to each group was successful or not.- Parameters:
addMemberToMultipleAccessGroupsOptions- theAddMemberToMultipleAccessGroupsOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeAddMembershipMultipleGroupsResponse
-
addAccessGroupRule
public com.ibm.cloud.sdk.core.http.ServiceCall<Rule> addAccessGroupRule(AddAccessGroupRuleOptions addAccessGroupRuleOptions)
Create rule for an access group. Rules can be used to dynamically add users to an access group. If a user's SAML assertions match the rule's conditions during login, the user will be dynamically added to the group. The duration of the user's access to the group is determined by the `expiration` field. After access expires, the user will need to log in again to regain access. Note that the condition's value field must be a stringified JSON value. [Consult this documentation for further explanation of dynamic rules.](/docs/account?topic=account-rules).- Parameters:
addAccessGroupRuleOptions- theAddAccessGroupRuleOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeRule
-
listAccessGroupRules
public com.ibm.cloud.sdk.core.http.ServiceCall<RulesList> listAccessGroupRules(ListAccessGroupRulesOptions listAccessGroupRulesOptions)
List access group rules. This API lists all rules in a given access group. Because only a few rules are created on each group, there is no pagination or sorting support on this API.- Parameters:
listAccessGroupRulesOptions- theListAccessGroupRulesOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeRulesList
-
getAccessGroupRule
public com.ibm.cloud.sdk.core.http.ServiceCall<Rule> getAccessGroupRule(GetAccessGroupRuleOptions getAccessGroupRuleOptions)
Get an access group rule. Retrieve a rule from an access group. A revision number is returned in the `ETag` header, which is needed when updating the rule.- Parameters:
getAccessGroupRuleOptions- theGetAccessGroupRuleOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeRule
-
replaceAccessGroupRule
public com.ibm.cloud.sdk.core.http.ServiceCall<Rule> replaceAccessGroupRule(ReplaceAccessGroupRuleOptions replaceAccessGroupRuleOptions)
Replace an access group rule. Update the body of an existing rule using this API. An `If-Match` header must be populated with the rule's most recent revision number (which can be acquired in the `Get an access group rule` API).- Parameters:
replaceAccessGroupRuleOptions- theReplaceAccessGroupRuleOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeRule
-
removeAccessGroupRule
public com.ibm.cloud.sdk.core.http.ServiceCall<java.lang.Void> removeAccessGroupRule(RemoveAccessGroupRuleOptions removeAccessGroupRuleOptions)
Delete an access group rule. Remove one rule from a group using this API. If the operation is successful, only a `204 - No Content` response with no body is returned. However, if any error occurs, the standard error format will be returned.- Parameters:
removeAccessGroupRuleOptions- theRemoveAccessGroupRuleOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a void result
-
getAccountSettings
public com.ibm.cloud.sdk.core.http.ServiceCall<AccountSettings> getAccountSettings(GetAccountSettingsOptions getAccountSettingsOptions)
Get account settings. Retrieve the access groups settings for a specific account.- Parameters:
getAccountSettingsOptions- theGetAccountSettingsOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeAccountSettings
-
updateAccountSettings
public com.ibm.cloud.sdk.core.http.ServiceCall<AccountSettings> updateAccountSettings(UpdateAccountSettingsOptions updateAccountSettingsOptions)
Update account settings. Update the access groups settings for a specific account. Note: When the `public_access_enabled` setting is set to false, all policies within the account attached to the Public Access group will be deleted. Only set `public_access_enabled` to false if you are sure that you want those policies to be removed.- Parameters:
updateAccountSettingsOptions- theUpdateAccountSettingsOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeAccountSettings
-
createTemplate
public com.ibm.cloud.sdk.core.http.ServiceCall<TemplateResponse> createTemplate(CreateTemplateOptions createTemplateOptions)
Create template. Create an access group template. Make sure that the template is generic enough to apply to multiple different child accounts. Before you can assign an access group template to child accounts, you must commit it so that no further changes can be made to the version.- Parameters:
createTemplateOptions- theCreateTemplateOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeTemplateResponse
-
listTemplates
public com.ibm.cloud.sdk.core.http.ServiceCall<ListTemplatesResponse> listTemplates(ListTemplatesOptions listTemplatesOptions)
List templates. List the access group templates in an enterprise account.- Parameters:
listTemplatesOptions- theListTemplatesOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeListTemplatesResponse
-
createTemplateVersion
public com.ibm.cloud.sdk.core.http.ServiceCall<TemplateVersionResponse> createTemplateVersion(CreateTemplateVersionOptions createTemplateVersionOptions)
Create template version. Create a new version of an access group template.- Parameters:
createTemplateVersionOptions- theCreateTemplateVersionOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeTemplateVersionResponse
-
listTemplateVersions
public com.ibm.cloud.sdk.core.http.ServiceCall<ListTemplateVersionsResponse> listTemplateVersions(ListTemplateVersionsOptions listTemplateVersionsOptions)
List template versions. List all the versions of an access group template.- Parameters:
listTemplateVersionsOptions- theListTemplateVersionsOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeListTemplateVersionsResponse
-
getTemplateVersion
public com.ibm.cloud.sdk.core.http.ServiceCall<TemplateVersionResponse> getTemplateVersion(GetTemplateVersionOptions getTemplateVersionOptions)
Get template version. Get a specific version of a template.- Parameters:
getTemplateVersionOptions- theGetTemplateVersionOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeTemplateVersionResponse
-
updateTemplateVersion
public com.ibm.cloud.sdk.core.http.ServiceCall<TemplateVersionResponse> updateTemplateVersion(UpdateTemplateVersionOptions updateTemplateVersionOptions)
Update template version. Update a template version. You can only update a version that isn't committed. Create a new version if you need to update a committed version.- Parameters:
updateTemplateVersionOptions- theUpdateTemplateVersionOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeTemplateVersionResponse
-
deleteTemplateVersion
public com.ibm.cloud.sdk.core.http.ServiceCall<java.lang.Void> deleteTemplateVersion(DeleteTemplateVersionOptions deleteTemplateVersionOptions)
Delete template version. Delete a template version. You must remove all assignments for a template version before you can delete it.- Parameters:
deleteTemplateVersionOptions- theDeleteTemplateVersionOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a void result
-
commitTemplate
public com.ibm.cloud.sdk.core.http.ServiceCall<java.lang.Void> commitTemplate(CommitTemplateOptions commitTemplateOptions)
Commit a template. Commit a template version. You must do this before you can assign a template version to child accounts. After you commit the template version, you can't make any further changes.- Parameters:
commitTemplateOptions- theCommitTemplateOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a void result
-
getLatestTemplateVersion
public com.ibm.cloud.sdk.core.http.ServiceCall<TemplateVersionResponse> getLatestTemplateVersion(GetLatestTemplateVersionOptions getLatestTemplateVersionOptions)
Get latest template version. Get the latest version of a template.- Parameters:
getLatestTemplateVersionOptions- theGetLatestTemplateVersionOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeTemplateVersionResponse
-
deleteTemplate
public com.ibm.cloud.sdk.core.http.ServiceCall<java.lang.Void> deleteTemplate(DeleteTemplateOptions deleteTemplateOptions)
Delete template. Endpoint to delete a template. All access assigned by that template is deleted from all of the accounts where the template was assigned.- Parameters:
deleteTemplateOptions- theDeleteTemplateOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a void result
-
createAssignment
public com.ibm.cloud.sdk.core.http.ServiceCall<TemplateAssignmentResponse> createAssignment(CreateAssignmentOptions createAssignmentOptions)
Create assignment. Assign a template version to accounts that have enabled enterprise-managed IAM. You can specify individual accounts, or an entire account group to assign the template to all current and future child accounts of that account group.- Parameters:
createAssignmentOptions- theCreateAssignmentOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeTemplateAssignmentResponse
-
listAssignments
public com.ibm.cloud.sdk.core.http.ServiceCall<ListTemplateAssignmentResponse> listAssignments(ListAssignmentsOptions listAssignmentsOptions)
List assignments. List template assignments from an enterprise account.- Parameters:
listAssignmentsOptions- theListAssignmentsOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeListTemplateAssignmentResponse
-
getAssignment
public com.ibm.cloud.sdk.core.http.ServiceCall<TemplateAssignmentVerboseResponse> getAssignment(GetAssignmentOptions getAssignmentOptions)
Get assignment. Get a specific template assignment.- Parameters:
getAssignmentOptions- theGetAssignmentOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeTemplateAssignmentVerboseResponse
-
updateAssignment
public com.ibm.cloud.sdk.core.http.ServiceCall<TemplateAssignmentVerboseResponse> updateAssignment(UpdateAssignmentOptions updateAssignmentOptions)
Update Assignment. Endpoint to update template assignment.- Parameters:
updateAssignmentOptions- theUpdateAssignmentOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeTemplateAssignmentVerboseResponse
-
deleteAssignment
public com.ibm.cloud.sdk.core.http.ServiceCall<java.lang.Void> deleteAssignment(DeleteAssignmentOptions deleteAssignmentOptions)
Delete assignment. Delete an access group template assignment.- Parameters:
deleteAssignmentOptions- theDeleteAssignmentOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a void result
-
-