Skip to content

Latest commit

 

History

History
43 lines (27 loc) · 1.31 KB

File metadata and controls

43 lines (27 loc) · 1.31 KB

Nuget CircleCI License

Yandex.Cloud SDK (C#)

Need to automate your infrastructure or use services provided by Yandex.Cloud? We've got you covered.

Installation:

dotnet add package Yandex.Cloud.SDK

Getting started

There are several options for authorization your requests - OAuth Token, Metadata Service (if you're executing code inside VMs or Functions running in Yandex.Cloud) and Service Account Keys

OAuth Token

using Yandex.Cloud;
using Yandex.Cloud.Credentials;

var sdk = new Sdk(new OAuthCredentialsProvider("AQAD-....."));

Metadata Service

Don't forget to assign Service Account for your Instance or Function and grant required roles.

using Yandex.Cloud;

var sdk = new Sdk();

Check Example directory for more examples.

Hacking

To build and test this SDK you need to have installed dotnet utility. All required tasks are defined in Makefile (all will build, generate and run all tests).