Liking cljdoc? Tell your friends :D
Clojure only.

clj-oci.compute

OCI Compute API wrapper.

Provides paginated instance listing via list-instances. Uses clojure.java.data.builder/to-java with :limit pre-coerced to Integer to satisfy the SDK setter type while remaining compatible with cloverage instrumentation.

Results are cached via service.memo — subsequent calls with the same compartment-id return cached data unless :refresh? is set.

OCI Compute API wrapper.

Provides paginated instance listing via `list-instances`. Uses
`clojure.java.data.builder/to-java` with `:limit` pre-coerced to
`Integer` to satisfy the SDK setter type while remaining compatible
with cloverage instrumentation.

Results are cached via `service.memo` — subsequent calls with the same
compartment-id return cached data unless `:refresh?` is set.
raw docstring

list-instancesclj

(list-instances compartment-id)
(list-instances compartment-id
                {:keys [limit max-age-seconds refresh?]
                 :or {limit 100 refresh? false}})

Fetches all compute instances in compartment-id, paginating automatically.

Results are cached in Datahike; subsequent calls with the same compartment-id return cached data.

Returns {:data {:items [instance-maps...]}} or {:error ...} on failure. Each instance map has camelCase keyword keys as produced by from-java, e.g. :displayName, :shapeConfig, :definedTags, :lifecycleState, :id.

Options: :limit — page size (default 100) :refresh? — force re-fetch from OCI, replacing cached data (default false) :max-age-seconds — re-fetch if cached entry is older than this (default nil = no limit)

Fetches all compute instances in `compartment-id`, paginating automatically.

Results are cached in Datahike; subsequent calls with the same
compartment-id return cached data.

Returns {:data {:items [instance-maps...]}} or {:error ...} on failure.
Each instance map has camelCase keyword keys as produced by `from-java`,
e.g. :displayName, :shapeConfig, :definedTags, :lifecycleState, :id.

Options:
  :limit           — page size (default 100)
  :refresh?        — force re-fetch from OCI, replacing cached data (default false)
  :max-age-seconds — re-fetch if cached entry is older than this (default nil = no limit)
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