Before you use Ionos Cloud Docker Machine Driver, you need to authenticate with your Ionos Cloud credentials. These would be the same username and password that you use to log into the Ionos Cloud DCDarrow-up-right .
It is possible to pass your credentials:
using environment variables:
Copy export IONOSCLOUD_USERNAME="ionoscloud_username"
export IONOSCLOUD_PASSWORD="ionoscloud_password" or
Copy export IONOSCLOUD_TOKEN="ionoscloud_token" on command-line using --ionoscloud-username and --ionoscloud-password:
Copy docker-machine create --driver=ionoscloud --ionoscloud-username="ionoscloud_username" --ionoscloud-password="ionoscloud_password" test-machine or
Copy rancher-machine create --driver=ionoscloud --ionoscloud-username="ionoscloud_username" --ionoscloud-password="ionoscloud_password" test-machine on command-line using --ionoscloud-token:
Copy docker-machine create --driver=ionoscloud --ionoscloud-token="ionoscloud_token" test-machine or
Copy rancher-machine create --driver=ionoscloud --ionoscloud-token="ionoscloud_token" test-machine on Rancher UI, when creating a new Node Template.
If you want to authenticate against a different API endpoint, you can set that:
on command-line using --ionoscloud-endpoint
using environment variable:
on Rancher UI, when creating a new Node Template.
It is recommended to use api.ionos.com as IONOSCLOUD_ENDPOINT, for flexibility across versions.
Note : SDK Go will check if the /cloudapi/v6 suffix is set at the end of the API endpoint, and if not set, it will set it automatically.