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
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
targetVersionstringThe agent version to update to (example: 3.20.0)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_agent_pools_updatesselectsubdomainscheduledLists all agent pool updates
get_agent_pools_update_instanceselectsubdomainRetrieves an agent pool update by its updateId
create_agent_pools_updateinsertsubdomainCreates an agent pool update
update_agent_pools_updateupdatesubdomainUpdates an agent pool update instance and returns the latest agent pool update
delete_agent_pools_updatedeletesubdomainDeletes agent pool update
activate_agent_pools_updateexecsubdomainActivates a scheduled agent pool update
deactivate_agent_pools_updateexecsubdomainDeactivates scheduled agent pool update
pause_agent_pools_updateexecsubdomainPauses a running or queued agent pool update
resume_agent_pools_updateexecsubdomainResumes a running or queued agent pool update
retry_agent_pools_updateexecsubdomainRetries an agent pool update if the update is unsuccessful or communication with Okta was interrupted during an agent auto-update
stop_agent_pools_updateexecsubdomainStops 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
subdomainstringThe domain of your organization. This can be a provided subdomain of an official okta domain (okta.com, oktapreview.com, etc) or one of your configured custom domains. (default: my-org)
scheduledbooleanReturn only scheduled or ad-hoc updates. If this parameter isn't provided, Okta returns the entire list of updates.

SELECT examples

Lists all agent pool updates

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

INSERT examples

Creates an agent pool update

INSERT INTO okta.agentpools.agent_pool_updates (
data__agents,
data__agentType,
data__enabled,
data__name,
data__notifyAdmin,
data__reason,
data__schedule,
data__sortOrder,
data__status,
data__targetVersion,
subdomain
)
SELECT
'{{ agents }}',
'{{ agentType }}',
{{ enabled }},
'{{ name }}',
{{ notifyAdmin }},
'{{ reason }}',
'{{ schedule }}',
{{ sortOrder }},
'{{ status }}',
'{{ targetVersion }}',
'{{ 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
data__agents = '{{ agents }}',
data__agentType = '{{ agentType }}',
data__enabled = {{ enabled }},
data__name = '{{ name }}',
data__notifyAdmin = {{ notifyAdmin }},
data__reason = '{{ reason }}',
data__schedule = '{{ schedule }}',
data__sortOrder = {{ sortOrder }},
data__status = '{{ status }}',
data__targetVersion = '{{ targetVersion }}'
WHERE
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 subdomain = '{{ subdomain }}' --required
;

Lifecycle Methods

Activates a scheduled agent pool update

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