Skip to main content

Module oci

Module oci 

Source
Expand description

Oracle Cloud, through the OCI CLI (oci) and the config file it and Terraform’s provider sign in with (~/.oci/config, an API key): whether that sign-in holds, a compartment’s name, and the config file’s default profile.

Structs§

Config
The default profile of an OCI config file.

Constants§

CLI
The OCI CLI.
CONFIG_FILE_VAR
The variable that moves the config file from ~/.oci/config.

Functions§

compartment_name
Compartment id’s name (oci iam compartment get): the config file signs in and can reach it.
config
The config file at path’s default profile; None when it can’t be read (there is none).
parse_config
The [DEFAULT] profile’s tenancy and region in a config file’s text (the section matched in any case; a later one of the same name overrides; a value may hold =).
refusal
How the OCI CLI refused, read from what it said: a sign-in run out or missing, or the config file’s key rejected (the runner’s reading, NotAuthenticated, a config or private key problem, a 401), or a compartment it can’t see (NotAuthorizedOrNotFound).
signed_in
Whether the config file’s sign-in still holds: the regions it can list (oci iam region list).