Closed shon closed 10 years ago
Droplet creation fails if ssh_keys parameter is provided. Also I have verified that ssh key is correct.
Equivalent Curl command:
curl -X POST https://api.digitalocean.com/v2/droplets \ -d "{'ssh_keys': [189024], 'image': 'ubuntu-14-04-x32', \ 'private_networking': False,\ 'region': 'nyc2', 'size': '512mb', 'backups': False,\ 'name': 'test05'}"\ -H\ "content_type:application/json" -H "authorization:Bearer xxxx"
Error code: 422 Error message: { "id":"unprocessable_entity", "message":"You specified invalid ssh key ids for Droplet creation." }
Never mind
So.. what was wrong? or what did you fix?
Don't remember now but there was nothing wrong with rubygem and digitalocean API.
Droplet creation fails if ssh_keys parameter is provided. Also I have verified that ssh key is correct.
Equivalent Curl command:
Error code: 422 Error message: { "id":"unprocessable_entity", "message":"You specified invalid ssh key ids for Droplet creation." }