> 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/c/cisco-adaptive-security-appliance-beta.md).

# Cisco Adaptive Security Appliance (Beta)

Cisco Adaptive Security Appliance (Beta) (ASA) is a network security platform with firewall, VPN and intrusion prevention. OctoXLabs reads the network objects defined on the ASA through its REST API and adds them to the device inventory. The adapter is marked Beta in its name.

## Use cases

* **List ASA network objects.** Review the network objects that the firewall defines.

```
Adapters = cisco-adaptive-security-appliance
```

* **Find ASA objects not present in other sources.** Compare the ASA objects with a second source, such as Active Directory.

```
Adapters = cisco-adaptive-security-appliance AND NOT Adapters = active-directory
```

## Before you begin

### Network

| Source              | Destination              | Port                            | Protocol                           |
| ------------------- | ------------------------ | ------------------------------- | ---------------------------------- |
| OctoXLabs connector | Cisco ASA (IP parameter) | 443 by default (Port parameter) | HTTPS (HTTP when Is Secure is off) |

The ASA must allow the connector IP address to reach its HTTP server (see the `http` command in the steps below).

### Required permissions

| Scope or role                         | Permission | Needed for                              |
| ------------------------------------- | ---------- | --------------------------------------- |
| Local ASA user with privilege level 7 | Read       | Network objects and version information |

The baseline creates the API user with `privilege 7`.

## Create credentials in Cisco Adaptive Security Appliance (Beta)

Run these commands on the ASA CLI.

{% stepper %}
{% step %}

### Enable the REST API agent

Enable the REST API with `rest-api agent`.
{% endstep %}

{% step %}

### Enable the HTTPS server

Enable the web engine with `http server enable`.
{% endstep %}

{% step %}

### Allow the connector IP

Run `http <connector_ip> 255.255.255.255 <interface>`. Replace the connector IP and the interface name with your values.
{% endstep %}

{% step %}

### Create the API user

Run `username <username> password <password> privilege 7`.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter | Required | Type    | Default | Description                                           |
| --------- | -------- | ------- | ------- | ----------------------------------------------------- |
| IP        | Yes      | String  | None    | IP address of the ASA.                                |
| Port      | No       | Integer | 443     | Port number.                                          |
| Username  | Yes      | String  | None    | The ASA CLI user created for the API.                 |
| Password  | Yes      | String  | None    | Password of the user. Stored as a sensitive value.    |
| Is Secure | No       | Boolean | True    | Use HTTPS. Advanced option.                           |
| Timeout   | No       | Integer | 30      | Seconds to wait for an API response. Advanced option. |

## Troubleshooting

| Error message                                                  | Cause                                  | Fix                                                                                                                                       |
| -------------------------------------------------------------- | -------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- |
| Status Code: `, followed by URL, Method and the response body` | The API answered with an error status. | Check that the REST API agent and HTTP server are enabled, the connector IP is allowed, and the user and its privilege level are correct. |

## Change history

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