> 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/f/fortimanager-cloud.md).

# FortiManager Cloud

FortiManager Cloud is the cloud-hosted version of FortiManager for centrally managing FortiGate devices. OctoXLabs reads the managed devices through the JSON-RPC API.

## Use cases

* List all devices managed by FortiManager Cloud.

```
Adapters = fortimanager-cloud
```

* Find devices known to FortiManager Cloud but not to FortiManager On Prem.

```
Adapters = fortimanager-cloud AND NOT Adapters = fortimanager
```

## Before you begin

### Network

| Source              | Destination                                         | Port | Protocol |
| ------------------- | --------------------------------------------------- | ---- | -------- |
| OctoXLabs connector | `customerapiauth.fortinet.com` (token)              | 443  | HTTPS    |
| OctoXLabs connector | `{account_id}.{region}.fortimanager.forticloud.com` | 443  | HTTPS    |

### Required permissions

| Scope or role | Permission                                | Needed for |
| ------------- | ----------------------------------------- | ---------- |
| IAM API user  | Access to the FortiManager Cloud instance | Devices    |

The exact permission is Not verified.

## Create credentials in FortiManager Cloud

{% stepper %}
{% step %}

### Create an IAM API user

Create an IAM API user by following the vendor guide: [How to create an IAM API user](https://how-to-fortimanager-api.readthedocs.io/en/latest/022_fmg_cloud.html#how-to-create-an-iam-api-user).
{% endstep %}

{% step %}

### Find the API ID

1. Log in to the FortiCloud IAM portal at `https://iam.forticloud.com` (or through FortiCloud > Services > IAM).
2. Go to **Users** > **API Users**.
3. Click the API user.
4. Read the ID in the details pane. It is the Username in OctoXLabs.
   {% endstep %}

{% step %}

### Note the account, region and client ID

You also need the account ID, the region of the FortiManager Cloud instance, and the client ID of the user.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter   | Required | Type             | Default | Description                                             |
| ----------- | -------- | ---------------- | ------- | ------------------------------------------------------- |
| Username    | Yes      | Text             | None    | API ID of the IAM API user.                             |
| Password    | Yes      | Text (sensitive) | None    | Password of the API user.                               |
| Account id  | Yes      | Text             | None    | Account ID. Part of the instance host name.             |
| Region      | Yes      | Text             | None    | Region of the instance. Part of the instance host name. |
| Client id   | Yes      | Text             | None    | Client ID of the user.                                  |
| Use adom    | No       | Boolean          | False   | Enable when you use ADOMs.                              |
| Https proxy | No       | Text             | Empty   | Proxy URL.                                              |
| Timeout     | No       | Integer          | 30      | Seconds to wait for API responses.                      |

## Troubleshooting

| Error message                     | Cause                                           | Fix                                                           |
| --------------------------------- | ----------------------------------------------- | ------------------------------------------------------------- |
| `Session ID was not found!` (log) | The token or session request returned no value. | Check the API ID, password, client ID, account ID and region. |

## Change history

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