Hi trying to create a bash script that creates a droplet, then once created gets the IP address of that droplet and store it as a variable to I used that IP address throughout the remaining bash script.
Any pointers ...
You could do something like this:
First get create the new Droplet:
Here make sure to update your Token and the other Droplet details like the region, your SSH key and etc.
DigitalOcean API and CLI (doctl)
I want to create a script that will create a snapshot of a droplet, then add that snapshot to another region for redundancy. Is is possible to do this through the DO API?
Yes. The DigitalOcean API supports both taking a snapshot (https://developers.digitalocean.com/documentation/v2/#snapshot-a-droplet) of a Droplet and transferring a copy (https://developers.digitalocean.com/documenta...