• Stars
    star
    126
  • Rank 282,894 (Top 6 %)
  • Language
    C#
  • License
    MIT License
  • Created over 10 years ago
  • Updated 11 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

🐋 .NET implementation of the DigitalOcean API

DigitalOcean API

GitHub Actions status

Implementation of the DigitalOcean API (v2) for .NET Standard 2+

Install

DigitalOcean.API is available for install from NuGet and the GitHub Package Registry.

dotnet add package DigitalOcean.API

Example

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);

Documentation

Check out DigitalOcean's documentation of their API to see all possible interactions.

License

This project is licensed under the MIT License - see the LICENSE.md file for details.