tohoff82 / DigitalOcean.API

:whale2: .NET implementation of the DigitalOcean API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

:whale2: .NET implementation of the DigitalOcean API

License:MIT License


Languages

Language:C# 100.0%