Need to automate your infrastructure or use services provided by Yandex.Cloud? We've got you covered.
Installation:
dotnet add package Yandex.Cloud.SDK
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
using Yandex.Cloud;
using Yandex.Cloud.Credentials;
var sdk = new Sdk(new OAuthCredentialsProvider("AQAD-....."));
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.
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).