Implementation of the DigitalOcean API (v2) for .NET Standard 2+
DigitalOcean.API is available for install from NuGet and the GitHub Package Registry.
dotnet add package DigitalOcean.API
var client = new DigitalOceanClient("api_token");
var request = new Droplet {
Name = "example.com",
Region = "nyc3",
Size = "s-1vcpu-1gb",
Image = "ubuntu-16-04-x64",
SshKeys = new List<object> { 107149 },
Backups = false,
Ipv6 = true,
Tags = new List<string> { "web" }
};
var droplet = await client.Droplets.Create(request);
Check out DigitalOcean's documentation of their API to see all possible interactions.
This project is licensed under the MIT License - see the LICENSE.md file for details.