> 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/s/sangfor-cloud-platform.md).

# Sangfor Cloud Platform

Sangfor Cloud Platform is a hyper-converged infrastructure with a cloud management layer. OctoXLabs uses it to add virtual servers to the device inventory, with their network addresses, operating system and memory data.

## Use cases

* List Sangfor virtual servers.

```
Adapters = sangfor-cloud-platform
```

* Find Sangfor virtual servers that no EDR covers.

```
Adapters = sangfor-cloud-platform AND NOT Adapters = falcon-crowdstrike
```

## Before you begin

### Network

| Source              | Destination                                | Port                        | Protocol                           |
| ------------------- | ------------------------------------------ | --------------------------- | ---------------------------------- |
| OctoXLabs connector | Sangfor Cloud Platform host (IP you enter) | 443 (default, configurable) | HTTPS (HTTP when Is Secure is off) |

### Required permissions

| Scope or role        | Permission | Needed for                                |
| -------------------- | ---------- | ----------------------------------------- |
| System Administrator | Read       | All servers across the entire Sangfor HCI |
| Tenant Admin         | Read       | Servers within the tenant                 |
| Normal Tenant User   | Read       | Only the user's own VMs                   |

The account role decides which servers are visible.

## Create credentials in Sangfor Cloud Platform

Use a Sangfor account whose role matches the scope you want. The source instructions do not give the click path. Find the resource pool (availability zone) IDs on the Resource Pool overview page.

## Connection parameters

| Parameter                               | Required        | Type            | Default | Description                                                                          |
| --------------------------------------- | --------------- | --------------- | ------- | ------------------------------------------------------------------------------------ |
| IP                                      | Yes             | String          | None    | IP address of the Sangfor Cloud Platform host.                                       |
| Port                                    | No              | Integer         | 443     | Port of the API.                                                                     |
| Username                                | Yes             | String          | None    | Account used to connect.                                                             |
| Password                                | Yes             | String          | None    | Password. The connector encrypts it with the platform public key before login.       |
| Is Secure?                              | No              | Boolean         | True    | Use HTTPS.                                                                           |
| Timeout                                 | No              | Integer         | 20      | Seconds to wait for API responses.                                                   |
| Resource Pool ID (Availability Zone ID) | Effectively yes | List of strings | None    | IDs of the resource pools to fetch. One or more. The discovery loops over this list. |

## Troubleshooting

| Error message | Cause                                                                                                                                      | Fix                                                                                                                          |
| ------------- | ------------------------------------------------------------------------------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------- |
| Status Code:  | The API answered with a status other than the one the connector expects. The message also lists the URL, the method and the response body. | Read the status code and the response body in the message, then check the credentials, the permissions and the network path. |

## Change history

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