The configuration to launch a droplet in DigitalOcean using machine. Rancher is calling docker-machine, so any available options in docker-machine for specific drivers are exposed in Rancher. The default fields from docker-machine are not listed in the Rancher API, and they can be found in the docker-machine documentation.
| Field | Type | Create | Update | Default | Notes |
|---|---|---|---|---|---|
| accessToken | string | Optional | Yes | - | |
| backups | boolean | Optional | Yes | - | |
| image | string | Optional | Yes | - | |
| ipv6 | boolean | Optional | Yes | - | |
| privateNetworking | boolean | Optional | Yes | - | |
| region | string | Optional | Yes | - | The region to use when launching the host |
| size | string | Optional | Yes | - | |
| sshPort | string | Optional | Yes | - | The port to ssh into the host |
| sshUser | string | Optional | Yes | - | The ssh username to use to ssh into the host |
| userdata | string | Optional | Yes | - |
Please read more about the common resource fields. These fields are read only and applicable to almost every resource. We have segregated them from the list above.
CreatePOST: /v1/digitaloceanConfigs
curl -u "${RANCHER_ACCESS_KEY}:${RANCHER_SECRET_KEY}" \
-X POST \
-H 'Content-Type: application/json' \
-d '{
"accessToken": "string",
"backups": false,
"image": "string",
"ipv6": false,
"privateNetworking": false,
"region": "string",
"size": "string",
"sshPort": "string",
"sshUser": "string",
"userdata": "string"
}' 'http://${RANCHER_URL}:8080/v1/digitaloceanConfigs'