Package com.okta.sdk.resource.api
Class AgentPoolsApi
java.lang.Object
com.okta.sdk.resource.api.AgentPoolsApi
@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 AgentPoolsApi
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionactivateAgentPoolsUpdate(String poolId, String updateId) Activate an agent pool update Activates a scheduled agent pool updateActivate an agent pool update Activates a scheduled agent pool updatecreateAgentPoolsUpdate(String poolId, AgentPoolUpdate agentPoolUpdate) Create an agent pool update Creates an agent pool updatecreateAgentPoolsUpdate(String poolId, AgentPoolUpdate agentPoolUpdate, Map<String, String> additionalHeaders) Create an agent pool update Creates an agent pool updatedeactivateAgentPoolsUpdate(String poolId, String updateId) Deactivate an agent pool update Deactivates scheduled agent pool updateDeactivate an agent pool update Deactivates scheduled agent pool updatevoiddeleteAgentPoolsUpdate(String poolId, String updateId) Delete an agent pool update Deletes agent pool updatevoidDelete an agent pool update Deletes agent pool updategetAgentPoolsUpdateInstance(String poolId, String updateId) Retrieve an agent pool update by ID Retrieves an agent pool update by its `updateId`Retrieve an agent pool update by ID Retrieves an agent pool update by its `updateId`getAgentPoolsUpdateSettings(String poolId) Retrieve an agent pool update's settings Retrieves the current state of the agent pool update instance settingsgetAgentPoolsUpdateSettings(String poolId, Map<String, String> additionalHeaders) Retrieve an agent pool update's settings Retrieves the current state of the agent pool update instance settingsprotected static com.fasterxml.jackson.databind.ObjectMapperlistAgentPools(Integer limitPerPoolType, AgentType poolType, String after) List all agent pools Lists all agent pools with pagination supportlistAgentPools(Integer limitPerPoolType, AgentType poolType, String after, Map<String, String> additionalHeaders) List all agent pools Lists all agent pools with pagination supportlistAgentPoolsPaged(Integer limitPerPoolType, AgentType poolType, String after) List all agent pools (Paginated) Lists all agent pools with pagination support This method returns a lazy, paginated iterable that automatically handles pagination.listAgentPoolsPaged(Integer limitPerPoolType, AgentType poolType, String after, Map<String, String> additionalHeaders) List all agent pools (Paginated with additional headers) Lists all agent pools with pagination support This method returns a lazy, paginated iterable that automatically handles pagination.listAgentPoolsUpdates(String poolId, Boolean scheduled) List all agent pool updates Lists all agent pool updatesList all agent pool updates Lists all agent pool updateslistAgentPoolsUpdatesPaged(String poolId, Boolean scheduled) List all agent pool updates (Paginated) Lists all agent pool updates This method returns a lazy, paginated iterable that automatically handles pagination.List all agent pool updates (Paginated with additional headers) Lists all agent pool updates This method returns a lazy, paginated iterable that automatically handles pagination.pauseAgentPoolsUpdate(String poolId, String updateId) Pause an agent pool update Pauses a running or queued agent pool updatePause an agent pool update Pauses a running or queued agent pool updateresumeAgentPoolsUpdate(String poolId, String updateId) Resume an agent pool update Resumes a running or queued agent pool updateResume an agent pool update Resumes a running or queued agent pool updateretryAgentPoolsUpdate(String poolId, String updateId) Retry an agent pool update Retries an agent pool update if the update is unsuccessful or communication with Okta was interrupted during an agent auto-updateRetry an agent pool update Retries an agent pool update if the update is unsuccessful or communication with Okta was interrupted during an agent auto-updatevoidsetApiClient(ApiClient apiClient) stopAgentPoolsUpdate(String poolId, String updateId) Stop an agent pool update Stops an agent pool updateStop an agent pool update Stops an agent pool updateupdateAgentPoolsUpdate(String poolId, String updateId, AgentPoolUpdate agentPoolUpdate) Update an agent pool update by ID Updates an agent pool update instance and returns the latest agent pool updateupdateAgentPoolsUpdate(String poolId, String updateId, AgentPoolUpdate agentPoolUpdate, Map<String, String> additionalHeaders) Update an agent pool update by ID Updates an agent pool update instance and returns the latest agent pool updateupdateAgentPoolsUpdateSettings(String poolId, AgentPoolUpdateSetting agentPoolUpdateSetting) Update an agent pool update settings Updates an agent pool update instance settingsupdateAgentPoolsUpdateSettings(String poolId, AgentPoolUpdateSetting agentPoolUpdateSetting, Map<String, String> additionalHeaders) Update an agent pool update settings Updates an agent pool update instance settings
-
Constructor Details
-
AgentPoolsApi
public AgentPoolsApi() -
AgentPoolsApi
-
-
Method Details
-
getApiClient
-
setApiClient
-
activateAgentPoolsUpdate
Activate an agent pool update Activates a scheduled agent pool update- Parameters:
poolId- ID of the agent pool for which the settings apply to (required)updateId- ID of the update (required)- Returns:
- AgentPoolUpdate
- Throws:
ApiException- if fails to make API call
-
activateAgentPoolsUpdate
public AgentPoolUpdate activateAgentPoolsUpdate(String poolId, String updateId, Map<String, String> additionalHeaders) throws ApiExceptionActivate an agent pool update Activates a scheduled agent pool update- Parameters:
poolId- ID of the agent pool for which the settings apply to (required)updateId- ID of the update (required)additionalHeaders- additionalHeaders for this call- Returns:
- AgentPoolUpdate
- Throws:
ApiException- if fails to make API call
-
createAgentPoolsUpdate
public AgentPoolUpdate createAgentPoolsUpdate(String poolId, AgentPoolUpdate agentPoolUpdate) throws ApiException Create an agent pool update Creates an agent pool update- Parameters:
poolId- ID of the agent pool for which the settings apply to (required)agentPoolUpdate- (required)- Returns:
- AgentPoolUpdate
- Throws:
ApiException- if fails to make API call
-
createAgentPoolsUpdate
public AgentPoolUpdate createAgentPoolsUpdate(String poolId, AgentPoolUpdate agentPoolUpdate, Map<String, String> additionalHeaders) throws ApiExceptionCreate an agent pool update Creates an agent pool update- Parameters:
poolId- ID of the agent pool for which the settings apply to (required)agentPoolUpdate- (required)additionalHeaders- additionalHeaders for this call- Returns:
- AgentPoolUpdate
- Throws:
ApiException- if fails to make API call
-
deactivateAgentPoolsUpdate
public AgentPoolUpdate deactivateAgentPoolsUpdate(String poolId, String updateId) throws ApiException Deactivate an agent pool update Deactivates scheduled agent pool update- Parameters:
poolId- ID of the agent pool for which the settings apply to (required)updateId- ID of the update (required)- Returns:
- AgentPoolUpdate
- Throws:
ApiException- if fails to make API call
-
deactivateAgentPoolsUpdate
public AgentPoolUpdate deactivateAgentPoolsUpdate(String poolId, String updateId, Map<String, String> additionalHeaders) throws ApiExceptionDeactivate an agent pool update Deactivates scheduled agent pool update- Parameters:
poolId- ID of the agent pool for which the settings apply to (required)updateId- ID of the update (required)additionalHeaders- additionalHeaders for this call- Returns:
- AgentPoolUpdate
- Throws:
ApiException- if fails to make API call
-
deleteAgentPoolsUpdate
Delete an agent pool update Deletes agent pool update- Parameters:
poolId- ID of the agent pool for which the settings apply to (required)updateId- ID of the update (required)- Throws:
ApiException- if fails to make API call
-
deleteAgentPoolsUpdate
public void deleteAgentPoolsUpdate(String poolId, String updateId, Map<String, String> additionalHeaders) throws ApiExceptionDelete an agent pool update Deletes agent pool update- Parameters:
poolId- ID of the agent pool for which the settings apply to (required)updateId- ID of the update (required)additionalHeaders- additionalHeaders for this call- Throws:
ApiException- if fails to make API call
-
getAgentPoolsUpdateInstance
public AgentPoolUpdate getAgentPoolsUpdateInstance(String poolId, String updateId) throws ApiException Retrieve an agent pool update by ID Retrieves an agent pool update by its `updateId`- Parameters:
poolId- ID of the agent pool for which the settings apply to (required)updateId- ID of the update (required)- Returns:
- AgentPoolUpdate
- Throws:
ApiException- if fails to make API call
-
getAgentPoolsUpdateInstance
public AgentPoolUpdate getAgentPoolsUpdateInstance(String poolId, String updateId, Map<String, String> additionalHeaders) throws ApiExceptionRetrieve an agent pool update by ID Retrieves an agent pool update by its `updateId`- Parameters:
poolId- ID of the agent pool for which the settings apply to (required)updateId- ID of the update (required)additionalHeaders- additionalHeaders for this call- Returns:
- AgentPoolUpdate
- Throws:
ApiException- if fails to make API call
-
getAgentPoolsUpdateSettings
Retrieve an agent pool update's settings Retrieves the current state of the agent pool update instance settings- Parameters:
poolId- ID of the agent pool for which the settings apply to (required)- Returns:
- AgentPoolUpdateSetting
- Throws:
ApiException- if fails to make API call
-
getAgentPoolsUpdateSettings
public AgentPoolUpdateSetting getAgentPoolsUpdateSettings(String poolId, Map<String, String> additionalHeaders) throws ApiExceptionRetrieve an agent pool update's settings Retrieves the current state of the agent pool update instance settings- Parameters:
poolId- ID of the agent pool for which the settings apply to (required)additionalHeaders- additionalHeaders for this call- Returns:
- AgentPoolUpdateSetting
- Throws:
ApiException- if fails to make API call
-
listAgentPools
public List<AgentPool> listAgentPools(Integer limitPerPoolType, AgentType poolType, String after) throws ApiException List all agent pools Lists all agent pools with pagination support- Parameters:
limitPerPoolType- Maximum number of agent pools returned (optional, default to 5)poolType- Agent type to search for (optional)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:
- List<AgentPool>
- Throws:
ApiException- if fails to make API call
-
listAgentPools
public List<AgentPool> listAgentPools(Integer limitPerPoolType, AgentType poolType, String after, Map<String, String> additionalHeaders) throws ApiExceptionList all agent pools Lists all agent pools with pagination support- Parameters:
limitPerPoolType- Maximum number of agent pools returned (optional, default to 5)poolType- Agent type to search for (optional)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:
- List<AgentPool>
- Throws:
ApiException- if fails to make API call
-
listAgentPoolsPaged
public Iterable<AgentPool> listAgentPoolsPaged(Integer limitPerPoolType, AgentType poolType, String after) List all agent pools (Paginated) Lists all agent pools with pagination support This method returns a lazy, paginated iterable that automatically handles pagination. It is thread-safe and does not cause memory leaks. Use this method in a for-each loop to automatically fetch all pages without manual cursor management.- Parameters:
limitPerPoolType- Maximum number of agent pools returned (optional, default to 5)poolType- Agent type to search for (optional)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:
- Iterable<AgentPool> lazy iterable over all pages
-
listAgentPoolsPaged
public Iterable<AgentPool> listAgentPoolsPaged(Integer limitPerPoolType, AgentType poolType, String after, Map<String, String> additionalHeaders) List all agent pools (Paginated with additional headers) Lists all agent pools with pagination support This method returns a lazy, paginated iterable that automatically handles pagination. It is thread-safe and does not cause memory leaks.- Parameters:
limitPerPoolType- Maximum number of agent pools returned (optional, default to 5)poolType- Agent type to search for (optional)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- additional headers for this call- Returns:
- Iterable<AgentPool> lazy iterable over all pages
-
listAgentPoolsUpdates
public List<AgentPoolUpdate> listAgentPoolsUpdates(String poolId, Boolean scheduled) throws ApiException List all agent pool updates Lists all agent pool updates- Parameters:
poolId- ID of the agent pool for which the settings apply to (required)scheduled- Return only scheduled or ad-hoc updates. If this parameter isn't provided, Okta returns the entire list of updates. (optional)- Returns:
- List<AgentPoolUpdate>
- Throws:
ApiException- if fails to make API call
-
listAgentPoolsUpdates
public List<AgentPoolUpdate> listAgentPoolsUpdates(String poolId, Boolean scheduled, Map<String, String> additionalHeaders) throws ApiExceptionList all agent pool updates Lists all agent pool updates- Parameters:
poolId- ID of the agent pool for which the settings apply to (required)scheduled- Return only scheduled or ad-hoc updates. If this parameter isn't provided, Okta returns the entire list of updates. (optional)additionalHeaders- additionalHeaders for this call- Returns:
- List<AgentPoolUpdate>
- Throws:
ApiException- if fails to make API call
-
listAgentPoolsUpdatesPaged
List all agent pool updates (Paginated) Lists all agent pool updates This method returns a lazy, paginated iterable that automatically handles pagination. It is thread-safe and does not cause memory leaks. Use this method in a for-each loop to automatically fetch all pages without manual cursor management.- Parameters:
poolId- ID of the agent pool for which the settings apply to (required)scheduled- Return only scheduled or ad-hoc updates. If this parameter isn't provided, Okta returns the entire list of updates. (optional)- Returns:
- Iterable<AgentPoolUpdate> lazy iterable over all pages
-
listAgentPoolsUpdatesPaged
public Iterable<AgentPoolUpdate> listAgentPoolsUpdatesPaged(String poolId, Boolean scheduled, Map<String, String> additionalHeaders) List all agent pool updates (Paginated with additional headers) Lists all agent pool updates This method returns a lazy, paginated iterable that automatically handles pagination. It is thread-safe and does not cause memory leaks.- Parameters:
poolId- ID of the agent pool for which the settings apply to (required)scheduled- Return only scheduled or ad-hoc updates. If this parameter isn't provided, Okta returns the entire list of updates. (optional)additionalHeaders- additional headers for this call- Returns:
- Iterable<AgentPoolUpdate> lazy iterable over all pages
-
pauseAgentPoolsUpdate
Pause an agent pool update Pauses a running or queued agent pool update- Parameters:
poolId- ID of the agent pool for which the settings apply to (required)updateId- ID of the update (required)- Returns:
- AgentPoolUpdate
- Throws:
ApiException- if fails to make API call
-
pauseAgentPoolsUpdate
public AgentPoolUpdate pauseAgentPoolsUpdate(String poolId, String updateId, Map<String, String> additionalHeaders) throws ApiExceptionPause an agent pool update Pauses a running or queued agent pool update- Parameters:
poolId- ID of the agent pool for which the settings apply to (required)updateId- ID of the update (required)additionalHeaders- additionalHeaders for this call- Returns:
- AgentPoolUpdate
- Throws:
ApiException- if fails to make API call
-
resumeAgentPoolsUpdate
Resume an agent pool update Resumes a running or queued agent pool update- Parameters:
poolId- ID of the agent pool for which the settings apply to (required)updateId- ID of the update (required)- Returns:
- AgentPoolUpdate
- Throws:
ApiException- if fails to make API call
-
resumeAgentPoolsUpdate
public AgentPoolUpdate resumeAgentPoolsUpdate(String poolId, String updateId, Map<String, String> additionalHeaders) throws ApiExceptionResume an agent pool update Resumes a running or queued agent pool update- Parameters:
poolId- ID of the agent pool for which the settings apply to (required)updateId- ID of the update (required)additionalHeaders- additionalHeaders for this call- Returns:
- AgentPoolUpdate
- Throws:
ApiException- if fails to make API call
-
retryAgentPoolsUpdate
Retry an agent pool update Retries an agent pool update if the update is unsuccessful or communication with Okta was interrupted during an agent auto-update- Parameters:
poolId- ID of the agent pool for which the settings apply to (required)updateId- ID of the update (required)- Returns:
- AgentPoolUpdate
- Throws:
ApiException- if fails to make API call
-
retryAgentPoolsUpdate
public AgentPoolUpdate retryAgentPoolsUpdate(String poolId, String updateId, Map<String, String> additionalHeaders) throws ApiExceptionRetry an agent pool update Retries an agent pool update if the update is unsuccessful or communication with Okta was interrupted during an agent auto-update- Parameters:
poolId- ID of the agent pool for which the settings apply to (required)updateId- ID of the update (required)additionalHeaders- additionalHeaders for this call- Returns:
- AgentPoolUpdate
- Throws:
ApiException- if fails to make API call
-
stopAgentPoolsUpdate
Stop an agent pool update Stops an agent pool update- Parameters:
poolId- ID of the agent pool for which the settings apply to (required)updateId- ID of the update (required)- Returns:
- AgentPoolUpdate
- Throws:
ApiException- if fails to make API call
-
stopAgentPoolsUpdate
public AgentPoolUpdate stopAgentPoolsUpdate(String poolId, String updateId, Map<String, String> additionalHeaders) throws ApiExceptionStop an agent pool update Stops an agent pool update- Parameters:
poolId- ID of the agent pool for which the settings apply to (required)updateId- ID of the update (required)additionalHeaders- additionalHeaders for this call- Returns:
- AgentPoolUpdate
- Throws:
ApiException- if fails to make API call
-
updateAgentPoolsUpdate
public AgentPoolUpdate updateAgentPoolsUpdate(String poolId, String updateId, AgentPoolUpdate agentPoolUpdate) throws ApiException Update an agent pool update by ID Updates an agent pool update instance and returns the latest agent pool update- Parameters:
poolId- ID of the agent pool for which the settings apply to (required)updateId- ID of the update (required)agentPoolUpdate- (required)- Returns:
- AgentPoolUpdate
- Throws:
ApiException- if fails to make API call
-
updateAgentPoolsUpdate
public AgentPoolUpdate updateAgentPoolsUpdate(String poolId, String updateId, AgentPoolUpdate agentPoolUpdate, Map<String, String> additionalHeaders) throws ApiExceptionUpdate an agent pool update by ID Updates an agent pool update instance and returns the latest agent pool update- Parameters:
poolId- ID of the agent pool for which the settings apply to (required)updateId- ID of the update (required)agentPoolUpdate- (required)additionalHeaders- additionalHeaders for this call- Returns:
- AgentPoolUpdate
- Throws:
ApiException- if fails to make API call
-
updateAgentPoolsUpdateSettings
public AgentPoolUpdateSetting updateAgentPoolsUpdateSettings(String poolId, AgentPoolUpdateSetting agentPoolUpdateSetting) throws ApiException Update an agent pool update settings Updates an agent pool update instance settings- Parameters:
poolId- ID of the agent pool for which the settings apply to (required)agentPoolUpdateSetting- (required)- Returns:
- AgentPoolUpdateSetting
- Throws:
ApiException- if fails to make API call
-
updateAgentPoolsUpdateSettings
public AgentPoolUpdateSetting updateAgentPoolsUpdateSettings(String poolId, AgentPoolUpdateSetting agentPoolUpdateSetting, Map<String, String> additionalHeaders) throws ApiExceptionUpdate an agent pool update settings Updates an agent pool update instance settings- Parameters:
poolId- ID of the agent pool for which the settings apply to (required)agentPoolUpdateSetting- (required)additionalHeaders- additionalHeaders for this call- Returns:
- AgentPoolUpdateSetting
- Throws:
ApiException- if fails to make API call
-
getObjectMapper
protected static com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
-