Skip to main content

agent_pool_updates

Creates, updates, deletes, gets or lists an agent_pool_updates resource.

Overview​

Nameagent_pool_updates
TypeResource
Idokta.agentpools.agent_pool_updates

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringID of the agent pool update
namestringName of the agent pool update (example: region1A.dc)
_linksobjectSpecifies link relations (see Web Linking) available using the JSON Hypertext Application Language specification. This object is used for dynamic discovery of related resources and lifecycle operations.
agentTypestringAgent types that are being monitored (AD, IWA, LDAP, MFA, OPP, RUM, Radius)
agentsarray
enabledbooleanIndicates if auto-update is enabled for the agent pool
notifyAdminbooleanIndicates if the admin is notified about the update
reasonstringReason for the update (example: Update failed.)
scheduleobjectThe schedule of auto-update configured by the admin
sortOrderintegerSpecifies the sort order
statusstringOverall state for the auto-update job from the admin perspective (Cancelled, Failed, InProgress, Paused, Scheduled, Success)
targetVersionstringThe agent version to update to (example: 3.20.0)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_agent_pools_update_instanceselectpoolId, updateId, subdomainRetrieves an agent pool update by its updateId
list_agent_pools_updatesselectpoolId, subdomainscheduledLists all agent pool updates
create_agent_pools_updateinsertpoolId, subdomainCreates an agent pool update
update_agent_pools_updateupdatepoolId, updateId, subdomainUpdates an agent pool update instance and returns the latest agent pool update
delete_agent_pools_updatedeletepoolId, updateId, subdomainDeletes agent pool update
activate_agent_pools_updateexecpoolId, updateId, subdomainActivates a scheduled agent pool update
deactivate_agent_pools_updateexecpoolId, updateId, subdomainDeactivates scheduled agent pool update
pause_agent_pools_updateexecpoolId, updateId, subdomainPauses a running or queued agent pool update
resume_agent_pools_updateexecpoolId, updateId, subdomainResumes a running or queued agent pool update
retry_agent_pools_updateexecpoolId, updateId, subdomainRetries an agent pool update if the update is unsuccessful or communication with Okta was interrupted during an agent auto-update
stop_agent_pools_updateexecpoolId, updateId, subdomainStops an agent pool update

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
poolIdstringID of the agent pool for which the settings apply to
subdomainstring(default: my-org)
updateIdstringID of the update
scheduledstringReturn only scheduled or ad-hoc updates. If this parameter isn't provided, Okta returns the entire list of updates.

SELECT examples​

Retrieves an agent pool update by its updateId

SELECT
id,
name,
_links,
agentType,
agents,
enabled,
notifyAdmin,
reason,
schedule,
sortOrder,
status,
targetVersion
FROM okta.agentpools.agent_pool_updates
WHERE poolId = '{{ poolId }}' -- required
AND updateId = '{{ updateId }}' -- required
AND subdomain = '{{ subdomain }}' -- required
;

INSERT examples​

Creates an agent pool update

INSERT INTO okta.agentpools.agent_pool_updates (
agents,
agentType,
enabled,
name,
notifyAdmin,
reason,
schedule,
sortOrder,
status,
targetVersion,
poolId,
subdomain
)
SELECT
'{{ agents }}',
'{{ agentType }}',
{{ enabled }},
'{{ name }}',
{{ notifyAdmin }},
'{{ reason }}',
'{{ schedule }}',
{{ sortOrder }},
'{{ status }}',
'{{ targetVersion }}',
'{{ poolId }}',
'{{ subdomain }}'
RETURNING
id,
name,
_links,
agentType,
agents,
enabled,
notifyAdmin,
reason,
schedule,
sortOrder,
status,
targetVersion
;

UPDATE examples​

Updates an agent pool update instance and returns the latest agent pool update

UPDATE okta.agentpools.agent_pool_updates
SET
agents = '{{ agents }}',
agentType = '{{ agentType }}',
enabled = {{ enabled }},
name = '{{ name }}',
notifyAdmin = {{ notifyAdmin }},
reason = '{{ reason }}',
schedule = '{{ schedule }}',
sortOrder = {{ sortOrder }},
status = '{{ status }}',
targetVersion = '{{ targetVersion }}'
WHERE
poolId = '{{ poolId }}' --required
AND updateId = '{{ updateId }}' --required
AND subdomain = '{{ subdomain }}' --required
RETURNING
id,
name,
_links,
agentType,
agents,
enabled,
notifyAdmin,
reason,
schedule,
sortOrder,
status,
targetVersion;

DELETE examples​

Deletes agent pool update

DELETE FROM okta.agentpools.agent_pool_updates
WHERE poolId = '{{ poolId }}' --required
AND updateId = '{{ updateId }}' --required
AND subdomain = '{{ subdomain }}' --required
;

Lifecycle Methods​

Activates a scheduled agent pool update

EXEC okta.agentpools.agent_pool_updates.activate_agent_pools_update
@poolId='{{ poolId }}' --required,
@updateId='{{ updateId }}' --required,
@subdomain='{{ subdomain }}' --required
;