Warning
This content has been generated by machine translation. The translations are automated and have not undergone human review or validation.
14.3.3 Insomnia - Calling OCI REST API
Insomnia, a professional REST client tool, is more convenient to use through a GUI. Since OCI Request Signature is not yet natively supported, I would like to explain how to call OCI REST API in Insomnia.
Step 0. Download insomnia
Download the Free app from the official site.
Step 1. insomnia-plugin-oci-request-signature plugin
I made a plugin for OCI through the plugin extension provided by Insomina to make a call through OCI Request Signature. You can install and use it as follows.
Follow the Installation Guide to install the plugin.
Step 2. Setting environment variables
-
Set the Insomnia environment variable according to the following guide.
-
Required environment variables
- isOracleCloud: Set to “true”, the set plugin is applied globally, and the detailed script works only when true.
- tenancyId: tenancy OCID
- authUserId: User OCID
- keyFingerprint: Fingerprint of API Key
- privateKeyPath: the path of the private key that matches the public key registered with the API key
Step 3. Execute User Query REST API
If you select only the environment variable as shown below, you can call the REST API without any additional work.
- API Endpoints
- Among the endpoints below, IAM uses the Home Region endpoint.
- [Identity and Access Management Service API | Oracle Cloud Infrastructure API Reference and Endpoints] (https://docs.oracle.com/en-us/iaas/api/#/en/identity/20160918/)
- ListUsers
Step 4. Run REST API - CreateUser
If you select only the environment variable as shown below, you can call the REST API without any additional work.
As an individual, this article was written with my personal time. There may be errors in the content of the article, and the opinions in the article are personal opinions.