Set Up API Authentication for OCI
To connect a local environment to an OCI tenancy, set up API authentication in a config file.
Overview
Key tasks:
- Create API keys in the Console.
- Set up an OCI configuration file for API authentication from a local environment.
- Install OCI CLI in the local environment.
For more information, see the following resources:
Before You Begin
To successfully perform this tutorial, you must have the following configuration in place.
- A supported browser
- A MacOS, Linux, or a Windows environment with Windows Subsystem for Linux (WSL).
- Python 3 installed. For the supported Python versions, see the Python SDK documentation.
- Python 3 installed.
- Perform the Create a Sandbox User for Tutorials tutorial and:
- Have the Oracle Mobile Authenticator app ready.
- Write down the following information from the tutorial:
- <sandbox-username>
- <sandbox-user-password>
- <tenancy-name>
- <domain-name>
- <sandbox-compartment>
1. Create API Keys
In this tutorial, you generate the private/public key pair for the sandbox user in the Console. When you use the Console to add the key pair, the Console also generates a configuration file preview snippet for you.
If you need help, see Required Keys and OCIDs for API signing.