> For the complete documentation index, see [llms.txt](https://docs.octoxlabs.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.octoxlabs.com/adapters/o/oracle-cloud.md).

# Oracle Cloud

Oracle Cloud Infrastructure (OCI) hosts compute instances and networks. OctoXLabs lists the instances in every compartment of the tenancy, follows their VNIC attachments and creates one device per VNIC.

## Use cases

* List Oracle Cloud devices that OctoXLabs has collected.

```
Adapters = oracle-cloud
```

* Find cloud devices that no endpoint agent reports.

```
Adapters = oracle-cloud AND NOT Adapters = falcon-crowdstrike
```

## Before you begin

### Network

| Source              | Destination                                                         | Port | Protocol |
| ------------------- | ------------------------------------------------------------------- | ---- | -------- |
| OctoXLabs connector | `iaas.<region>.oraclecloud.com` (for example region `us-ashburn-1`) | 443  | HTTPS    |

### Required permissions

| Scope or role                           | Permission                                               | Needed for |
| --------------------------------------- | -------------------------------------------------------- | ---------- |
| Read access (IAM policy) in the tenancy | Read compartments, instances, vnic-attachments and vnics | Devices    |

## Create credentials in Oracle Cloud

{% stepper %}
{% step %}

### Copy the tenancy OCID

In the OCI Console open the Profile menu, choose **Tenancy information** and copy the OCID. Format: `ocid1.tenancy.oc1..<id>`.
{% endstep %}

{% step %}

### Copy the user OCID

Open the Profile menu, choose **User settings** and copy the OCID of the IAM user that owns the API key. This is not the console username. Format: `ocid1.user.oc1..<id>`.
{% endstep %}

{% step %}

### Create an API signing key

In **User settings > API Keys**, choose **Add API key** and **Generate API key pair**, then download the private key (PEM). You can also generate a key pair with OpenSSL and upload the public key. The private key must not have a passphrase.
{% endstep %}

{% step %}

### Copy the fingerprint

After the public key is added, the fingerprint is shown under **API Keys**. Format: `aa:bb:...:aa:bb`.
{% endstep %}

{% step %}

### Check access

The IAM user needs policies that allow reading compartments, compute instances, VNIC attachments and VNICs. The sources do not give exact policy statements.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter    | Required | Type       | Default  | Description                                                                               |
| ------------ | -------- | ---------- | -------- | ----------------------------------------------------------------------------------------- |
| Domain       | Yes      | String     |          | Pattern `iaas.<region>.oraclecloud.com`, for example `iaas.us-ashburn-1.oraclecloud.com`. |
| Tenancy OCID | Yes      | String     |          | OCID of the tenancy.                                                                      |
| User OCID    | Yes      | String     |          | OCID of the IAM user that owns the API key.                                               |
| Fingerprint  | Yes      | String     |          | Fingerprint of the API signing key.                                                       |
| Private Key  | Yes      | File (PEM) |          | Private key used to sign requests.                                                        |
| Proxy        | No       | String     |          | HTTPS proxy URL.                                                                          |
| Version      | No       | String     | 20160918 | OCI core services API version for compute and networking.                                 |
| Sleep Time   | No       | Integer    | 0        | Seconds between thread batches. Raise it on rate limit errors.                            |
| Thread Count | No       | Integer    | 32       | Parallel threads. Min 1, max 32.                                                          |
| Timeout      | No       | Integer    | 30       | Seconds to wait for API responses.                                                        |

## Troubleshooting

| Error message | Cause | Fix |
| ------------- | ----- | --- |

## Change history

{% hint style="info" %}
Available starting from version 5.5.0.
{% endhint %}
