|
| 1 | +--- |
| 2 | +page_title: "Resource: okta_agent_pool_update" |
| 3 | +description: |- |
| 4 | + Manages an Okta Agent Pool Update. Agent pool updates allow you to schedule and manage updates for agent pools. |
| 5 | +--- |
| 6 | + |
| 7 | +# Resource: okta_agent_pool_update |
| 8 | + |
| 9 | +Manages an Okta Agent Pool Update. Agent pool updates allow you to schedule and manage updates for agent pools. |
| 10 | + |
| 11 | +## Example Usage |
| 12 | + |
| 13 | +```terraform |
| 14 | +resource "okta_agent_pool_update" "example" { |
| 15 | + name = "scheduled_update" |
| 16 | + agent_type = "AD" |
| 17 | + notify_admins = true |
| 18 | + pool_id = "0oaspf3cfatE1nDO31d7" |
| 19 | +
|
| 20 | + agents { |
| 21 | + id = "a53slzqkptH2xEJ1r1d7" |
| 22 | + pool_id = "0oaspf3cfatE1nDO31d7" |
| 23 | + } |
| 24 | +
|
| 25 | + schedule { |
| 26 | + cron = "0 3 * * MON" |
| 27 | + timezone = "America/Los_Angeles" |
| 28 | + delay = 0 |
| 29 | + duration = 1020 |
| 30 | + } |
| 31 | +} |
| 32 | +``` |
| 33 | + |
| 34 | +<!-- schema generated by tfplugindocs --> |
| 35 | +## Schema |
| 36 | + |
| 37 | +### Required |
| 38 | + |
| 39 | +- `pool_id` (String) The unique identifier of the agent pool to update. |
| 40 | + |
| 41 | +### Optional |
| 42 | + |
| 43 | +- `agent_type` (String) Agent types that are being monitored (e.g., AD, IWA, LDAP, MFA, OPP, RUM, Radius). |
| 44 | +- `agents` (Block List) The agents associated with the agent pool update. (see [below for nested schema](#nestedblock--agents)) |
| 45 | +- `description` (String) The description of the agent pool update. |
| 46 | +- `enabled` (Boolean) Whether auto-update is enabled for the agent pool. |
| 47 | +- `name` (String) The name of the agent pool update. |
| 48 | +- `notify_admins` (Boolean) Whether to notify admins about the update. |
| 49 | +- `notify_on_completion` (Boolean) Whether to send notifications when the update completes. |
| 50 | +- `reason` (String) Reason for the update. |
| 51 | +- `schedule` (Block, Optional) The schedule configuration for the agent pool update. (see [below for nested schema](#nestedblock--schedule)) |
| 52 | +- `sort_order` (Number) Specifies the sort order. |
| 53 | +- `target_version` (String) The agent version to update to. |
| 54 | + |
| 55 | +### Read-Only |
| 56 | + |
| 57 | +- `id` (String) The unique identifier of the agent pool update. |
| 58 | +- `status` (String) The status of the agent pool update (e.g., Scheduled, InProgress, Completed, Failed). |
| 59 | + |
| 60 | +<a id="nestedblock--agents"></a> |
| 61 | +### Nested Schema for `agents` |
| 62 | + |
| 63 | +Optional: |
| 64 | + |
| 65 | +- `id` (String) The unique identifier of the agent. |
| 66 | +- `pool_id` (String) Pool ID. |
| 67 | + |
| 68 | +Read-Only: |
| 69 | + |
| 70 | +- `is_hidden` (Boolean) Determines if an agent is hidden from the Admin Console. |
| 71 | +- `is_latest_gaed_version` (Boolean) Determines if the agent is on the latest generally available version. |
| 72 | +- `last_connection` (Number) Timestamp when the agent last connected to Okta. |
| 73 | +- `name` (String) The name of the agent. |
| 74 | +- `operational_status` (String) Operational status of a given agent (e.g., OPERATIONAL, DEGRADED, DISRUPTED). |
| 75 | +- `type` (String) Agent types that are being monitored. |
| 76 | +- `update_message` (String) Status message of the agent. |
| 77 | +- `update_status` (String) Status for one agent regarding the status to auto-update that agent. |
| 78 | +- `version` (String) Agent version number. |
| 79 | + |
| 80 | +<a id="nestedblock--schedule"></a> |
| 81 | +### Nested Schema for `schedule` |
| 82 | + |
| 83 | +Optional: |
| 84 | + |
| 85 | +- `cron` (String) The schedule of the update in cron format. |
| 86 | +- `delay` (Number) Delay in days. |
| 87 | +- `duration` (Number) Duration in minutes. |
| 88 | +- `timezone` (String) Timezone of where the scheduled job takes place. |
| 89 | + |
| 90 | +Read-Only: |
| 91 | + |
| 92 | +- `last_updated` (String) Timestamp when the update finished (only for a successful or failed update, not for a cancelled update). Null is returned if the job hasn't finished once yet. |
| 93 | + |
| 94 | +## Import |
| 95 | + |
| 96 | +Import is supported using the following syntax: |
| 97 | + |
| 98 | +```shell |
| 99 | +terraform import okta_agent_pool_update.example <pool_id>/<update_id> |
| 100 | +``` |
0 commit comments