Config

oci.config.from_file(file_location='~/.oci/config', profile_name='DEFAULT')

Create a config dict from a file.

Parameters:
  • file_location -- Path to the config file. Defaults to ~/.oci/config and with a fallback to ~/.oraclebmc/config.
  • profile_name -- The profile to load from the config file. Defaults to "DEFAULT"
Returns:

A config dict that can be used to create clients.

oci.config.validate_config(config, **kwargs)
oci.regions.is_region(region_name)
oci.regions.endpoint_for(service, region=None, endpoint=None, service_endpoint_template=None)

Returns the base URl for a service, either in the given region or at the specified endpoint.

If endpoint and region are provided, endpoint is used.