Tenancy resource wrappers + env-var helper.
SDK ops here use IdentityClient — region-routed via
clj-oci.clients/identity-client-for. For tenancies whose home region
differs from the auth provider's default, supply :region in opts.
Tenancy resource wrappers + env-var helper. SDK ops here use `IdentityClient` — region-routed via `clj-oci.clients/identity-client-for`. For tenancies whose home region differs from the auth provider's default, supply `:region` in `opts`.
(get-tenancy tenancy-id)(get-tenancy tenancy-id opts)Fetches the Tenancy by OCID.
Returns the standard oci/http-request envelope:
{:data {:tenancy {:id … :name … :description … :homeRegionKey …
:freeformTags … :definedTags …}
:httpStatusCode 200
:headers {…}
:opcRequestId "…"}}
or {:error …} on failure.
For tenancies homed in a region other than the auth provider's
default, supply :region in opts (region-id like "us-chicago-1"
or 3-letter code like "ord"). The Identity service is regional —
wrong-region requests return TenantNotFound regardless of IAM
grants.
Options: :region — region-id or 3-letter code routing the request
Fetches the Tenancy by OCID.
Returns the standard `oci/http-request` envelope:
{:data {:tenancy {:id … :name … :description … :homeRegionKey …
:freeformTags … :definedTags …}
:__httpStatusCode__ 200
:headers {…}
:opcRequestId "…"}}
or {:error …} on failure.
For tenancies homed in a region other than the auth provider's
default, supply `:region` in `opts` (region-id like "us-chicago-1"
or 3-letter code like "ord"). The Identity service is regional —
wrong-region requests return `TenantNotFound` regardless of IAM
grants.
Options:
:region — region-id or 3-letter code routing the request(ocid)(ocid envar-name)Returns the OCI tenancy OCID from environment variables.
With no arguments, reads the OCI_TENANCY_OCID environment variable.
With envar-name (a keyword), reads that variable instead.
Returns nil if the variable is not set.
Returns the OCI tenancy OCID from environment variables. With no arguments, reads the `OCI_TENANCY_OCID` environment variable. With `envar-name` (a keyword), reads that variable instead. Returns nil if the variable is not set.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |