Skip to main content
DigitalOcean API credentials store a DigitalOcean personal access token, used to provision and manage self-managed DigitalOcean droplet clusters and DigitalOcean Kubernetes (DOKS). The token is validated against the DigitalOcean API on creation.

Creating a DigitalOcean API Credential

1

Get a DigitalOcean token

  1. Log in to the DigitalOcean Control Panel
  2. Go to APITokensGenerate New Token
  3. Give it Read & Write scopes and copy the token (prefixed with dop_v1_; shown once)
2

Add to Ankra (UI)

Go to CredentialsAddDigitalOcean, enter a name, and paste the token.
3

Or via CLI

ankra credentials digitalocean create --name my-do-token
# You will be securely prompted for the API token
For self-managed droplet clusters you also need an SSH key credential - create one with ankra credentials digitalocean ssh-key create --name my-key --generate.

Listing DigitalOcean Credentials

ankra credentials digitalocean list
curl https://platform.ankra.app/api/v1/credentials/digitalocean \
  -H "Authorization: Bearer $ANKRA_API_TOKEN"