Liking cljdoc? Tell your friends :D

clj-oci.maintenance

OCI Instance Maintenance API wrapper.

Provides operations for managing instance maintenance events:

  • list-maintenance-events — paginated listing with filters
  • get-maintenance-event — single event by OCID
  • update-maintenance-event — reschedule or modify an event
  • get-maintenance-reboot — max reschedule date for an instance

Uses ComputeClient via clj-oci.clients. No caching — maintenance events are dynamic (state transitions) and always fetched fresh.

OCI Instance Maintenance API wrapper.

Provides operations for managing instance maintenance events:
- `list-maintenance-events` — paginated listing with filters
- `get-maintenance-event` — single event by OCID
- `update-maintenance-event` — reschedule or modify an event
- `get-maintenance-reboot` — max reschedule date for an instance

Uses `ComputeClient` via `clj-oci.clients`. No caching — maintenance
events are dynamic (state transitions) and always fetched fresh.
raw docstring

get-maintenance-eventclj

(get-maintenance-event event-id)

Fetches a single maintenance event by its OCID.

Returns {:data {:etag "..." :opcRequestId "..." :instanceMaintenanceEvent {...}}} or {:error ...} on failure.

Fetches a single maintenance event by its OCID.

Returns {:data {:etag "..."
                :opcRequestId "..."
                :instanceMaintenanceEvent {...}}}
or {:error ...} on failure.
raw docstring

get-maintenance-rebootclj

(get-maintenance-reboot instance-id)

Fetches the maximum reschedule date for a maintenance reboot on instance-id.

Returns {:data {:opcRequestId "..." :instanceMaintenanceReboot {:timeMaintenanceRebootDueMax #inst "..."}}} or {:error ...} on failure.

Fetches the maximum reschedule date for a maintenance reboot on `instance-id`.

Returns {:data {:opcRequestId "..."
                :instanceMaintenanceReboot {:timeMaintenanceRebootDueMax #inst "..."}}}
or {:error ...} on failure.
raw docstring

list-maintenance-eventsclj

(list-maintenance-events compartment-id)
(list-maintenance-events compartment-id opts)

Fetches maintenance events for instances in compartment-id, paginating automatically.

Returns {:data {:items [event-summary-maps...]}} or {:error ...} on failure. Each event summary has camelCase keyword keys as produced by from-java.

Options (all optional): :instance-id — filter by instance OCID :lifecycle-state — keyword (:scheduled :started :processing :succeeded :failed :canceled) :correlation-token — filter by correlation token :instance-action — filter by action (e.g. "REBOOT_MIGRATION") :time-window-start-gte — java.util.Date, lower bound on maintenance window start :time-window-start-lte — java.util.Date, upper bound on maintenance window start :sort-by — keyword (:time-created :display-name) :sort-order — keyword (:asc :desc) :limit — page size, default 100

Fetches maintenance events for instances in `compartment-id`, paginating automatically.

Returns {:data {:items [event-summary-maps...]}} or {:error ...} on failure.
Each event summary has camelCase keyword keys as produced by `from-java`.

Options (all optional):
  :instance-id           — filter by instance OCID
  :lifecycle-state       — keyword (:scheduled :started :processing :succeeded :failed :canceled)
  :correlation-token     — filter by correlation token
  :instance-action       — filter by action (e.g. "REBOOT_MIGRATION")
  :time-window-start-gte — java.util.Date, lower bound on maintenance window start
  :time-window-start-lte — java.util.Date, upper bound on maintenance window start
  :sort-by               — keyword (:time-created :display-name)
  :sort-order            — keyword (:asc :desc)
  :limit                 — page size, default 100
raw docstring

update-maintenance-eventclj

(update-maintenance-event event-id details)
(update-maintenance-event event-id details opts)

Updates a maintenance event (reschedule, change action, etc.).

Async — returns {:data {:opcWorkRequestId "..." :opcRequestId "..."}} or {:error ...} on failure.

details is a map of fields to update (see update-maintenance-event-details). opts may include: :if-match — etag for optimistic concurrency :opc-retry-token — idempotency token

Updates a maintenance event (reschedule, change action, etc.).

Async — returns {:data {:opcWorkRequestId "..." :opcRequestId "..."}}
or {:error ...} on failure.

`details` is a map of fields to update (see `update-maintenance-event-details`).
`opts` may include:
  :if-match        — etag for optimistic concurrency
  :opc-retry-token — idempotency token
raw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close