Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

I’m receiving The provided ssh_keys value must be an array., and I’ve tried various dumping of the array of ssh key ids. using API attribute described in https://developers.digitalocean.com/documentation/v2/#create-a-new-droplet.
# list of numbers
print(type(key_ids), key_ids)
<class 'list'> [12345678, 12345678]
# stringified list via `str()` or via `json.dumps()`
<class 'str'> [12345678, 12345678]
# mapping each value to string, seems unlikely since ids are returned as numbers when creating droplets... but trying many things anyway. via `list(map(lambda k: str(k), [12345678, 12345678]))`
<class 'list'> ['12345678', '12345678']
The payload looks like:
{
'name': 'mydropletname',
'region': 'sfo2',
'size': '4gb',
'image': 'ghost-18-04',
'ssh_keys': <variations of above>
}
And I’m using the following endpoint: https://api.digitalocean.com/v2/droplets
jeffs
0621335d663b4b699a60eb27e28153
accesstrax
Dwight Trumbower
admin
yimprogramming
samunyi90
1d6ce141ab5444dfb1ea2dd29cf4b1
Matt Fricker
joel9b158e40551b15093f213f
EmilJacobs