English
Connect a server provider
To let FlashPanel create servers directly in your provider account, get an API Key from the provider and add it on the Connect VPS Provider page. After that, you can create a server through the provider's API.
TIP
If your server provider restricts which IP addresses can use its API, add the FlashPanel IP address to the allowlist: 91.98.134.129
Vultr
- Visit the Vultr API page.
- In the
Personal Access Tokensection, clickEnable APIif this is your first time, then copy theAPI Key. - Return to the Connect VPS Provider page in FlashPanel.
- Click the Add Credential button.
- Select the
Vultrserver provider. - Enter a note for this API Key in the Api Key Memo field.
- Paste the API Key from step 2 into the API Key field.
- Click Add Credential to save.
Digital Ocean
- Visit the Digital Ocean API page.
- In the
Personal Access Tokenssection, clickGenerate New Token. - Copy the API Token.
- Return to the Connect VPS Provider page in FlashPanel.
- Click the Add Credential button.
- Select the
Digital Oceanserver provider. - Enter a note for this API Token in the Api Key Memo field.
- Paste the API Token from step 3 into the API Key field.
- Click Add Credential to save.
Linode
- Visit the Linode API page.
- In the
Personal Access Tokenssection, clickCreate A Personal Access Token. - Enter a
Labelfor the API Token. In the access table, select theRead/Writecolumn on theLinodesrow and keepNonefor all other rows, then click theCreate Tokenbutton. - Copy the API Token.
- Return to the Connect VPS Provider page in FlashPanel.
- Click the Add Credential button.
- Select the
Linodeserver provider. - Enter a note for this API Token in the Api Key Memo field.
- Paste the API Token from step 4 into the API Key field.
- Click Add Credential to save.
UpCloud
- Visit the UpCloud API page.
- In the
Accountsection, clickCreate subaccount. - Enter the
subaccountdetails (username and password) and clickCreate subaccount. - After the subaccount is created, click its edit button to open the edit page, scroll down to the
Permissionssection, and clickGo to permissions. Set the permissions as follows and disable all the others:Control Panel: turn offAllow access to Control Panel(the subaccount does not need to log in to the UpCloud interface).API connections: turn onAllow API connections. To restrict IP addresses, clickAdd IPsand add the FlashPanel IP address.Servers: turn onAll servers.
- Return to the Connect VPS Provider page in FlashPanel.
- Click the Add Credential button.
- Select the
UpCloudserver provider. - Enter a note for this credential in the Api Key Memo field.
- Enter the username and password of the
subaccountcreated in step 3 into the Username and Password fields. - Click Add Credential to save.
Hetzner
- Go to Hetzner > select a
project> in the left sidebar selectSecurity> in the top tabs selectAPI Tokens. - Click
Generate API Tokenin the upper right corner. - Enter a description and select
Read & Writeunder Permissions. - After the token is created, click Copy to copy the
Token. - Return to the Connect VPS Provider page in FlashPanel.
- Click the Add Credential button.
- Select the
Hetznerserver provider. - Enter a note for this API Token in the Api Key Memo field.
- Paste the API Token from step 4 into the API Key field.
- Click Add Credential to save.
AWS Lightsail
- Sign in to the AWS Management Console.
- Go to the IAM service.
- In the left navigation pane, select
Usersand then clickCreate user. - Enter a user name (for example, "flashpanel-access") and click
Next. - Select
Attach policies directly, then search for and select theAmazonLightsailFullAccesspolicy. - Click
Nextand thenCreate user. - After the user is created, click the user name to view its details.
- Go to the
Security credentialstab and clickCreate access key. - Select
Third-party serviceas the use case and clickNext. - Enter a description tag (optional) and click
Create access key. - Copy both the
Access keyand theSecret access key(this is your only chance to view theSecret access key). - Return to the Connect VPS Provider page in FlashPanel.
- Click the Add Credential button.
- Select the
AWS Lightsailserver provider. - Enter a note for this credential in the Api Key Memo field.
- Paste the
Access keyinto the API Key field and theSecret access keyinto the API Secret field (both from step 11). - Click Add Credential to save.
CloudFly
- Go to the CloudFly login page.
- After logging in, click your avatar in the top right corner to open your user profile (or use this direct link: User Profile).
- Click the API tab (this takes you to the Access API page).
- Click the
Enable APIbutton. - After enabling, the API Key appears. Copy it.
- Return to the Connect VPS Provider page in FlashPanel.
- Click the Add Credential button.
- Select the
CloudFlyserver provider. - Enter a note for this API Key in the Api Key Memo field.
- Paste the API Key from step 5 into the API Key field.
- Click Add Credential to save.
Onidel
- Log in to your Onidel Cloud account.
- Open the Account Settings page.
- Create an API Key (if you do not have one yet) and copy it.
- Return to the Connect VPS Provider page in FlashPanel.
- Click the Add Credential button.
- Select the
Onidelserver provider. - Enter a note for this API Key in the Api Key Memo field.
- Paste the API Key from step 3 into the API Key field.
- Click Add Credential to save.
Manage credentials
The Connect VPS Provider page lists the credentials you have added, with their provider and an In Use? column that shows whether any server is using the key.
When you add a credential or enter a new API Key, FlashPanel checks the key with the provider and only saves it if it can list and create servers. Keys are checked again once a day, and the Status column shows the latest result. Hover over the status to see the provider's message and when the key was last checked.
| Status | Meaning |
|---|---|
| Working | The key works and can manage servers. |
| Read-only key | The key can only read data. Create a key with write access (for example, Read & Write on Hetzner). |
| No access to servers | The key is accepted but is not allowed to list servers. Grant it access to servers. |
| Invalid key | The key is wrong, revoked or expired, or the provider does not allow API calls from the IP of FlashPanel. |
| Not checked yet | The key has not been checked yet. |
During each check, servers you added yourself whose IP matches a server in the provider account are linked to the credential, so you can restart or rename them through the provider API. Servers whose VPS no longer exists in the provider account are unlinked from the credential.
- Click the edit icon to change the note or enter a new API Key. Leave the API Key field empty to keep the current key.
- Click the delete icon to delete a credential you no longer use.
- Use the search box and the Provider, In Use? and Status filters to find credentials, for example every key whose status is Invalid key.
- To delete several credentials at once, tick them in the table and click Delete Selected in the bar at the bottom of the page.
WARNING
Avoid deleting a credential that is in use. FlashPanel needs it to manage the server in your provider account (for example, to restart or reinstall the server).