Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/trmcnvn/digitalocean.api

:whale2: .NET implementation of the DigitalOcean API
https://github.com/trmcnvn/digitalocean.api

digitalocean digitalocean-api dotnet

Last synced: 4 days ago
JSON representation

:whale2: .NET implementation of the DigitalOcean API

Awesome Lists containing this project

README

        





DigitalOcean API



GitHub Actions status


Implementation of the [DigitalOcean API (v2)](https://developers.digitalocean.com/documentation/v2/#introduction) for .NET Standard 2+

## Install

DigitalOcean.API is available for install from [NuGet](https://www.nuget.org/packages/DigitalOcean.API) and the [GitHub Package Registry](https://github.com/trmcnvn/DigitalOcean.API/packages).

```
dotnet add package DigitalOcean.API
```

## Example

```csharp
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 { 107149 },
Backups = false,
Ipv6 = true,
Tags = new List { "web" }
};

var droplet = await client.Droplets.Create(request);
```

## Documentation

Check out [DigitalOcean's documentation](https://developers.digitalocean.com/documentation/v2/#introduction) of their API to see all possible interactions.

## License

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