The Akeyless Dev Hub

If you're looking for help with the only zero-trust, SaaS, unified platform for secrets management - you've come to the right place.

This is our documentation and updates center.

Documentation

C# .NET Core SDK

Introduction

The Akeyless SDK for C# .NET Core makes it easy for you to integrate your C# .NET Core applications, libraries, or scripts with the Akeyless Vault secret management services.
The below C# .NET Core code examples shows a typical sequence of how to integrate secrets into your application.

Installation

Build project and use the following namespaces:

using Akeyless.ApiGateway.Core.Api;
using Akeyless.ApiGateway.Core.Client;
using Akeyless.ApiGateway.Core.Model;

API Server Configuration

Configuration.Default.BasePath = "https://127.0.0.1:8080";
var apiInstance = new DefaultApi(Configuration.Default);

Authentication

string accessId = Environment.GetEnvironmentVariable("AKEYLESS_ACCESS_ID");
string accessKey = Environment.GetEnvironmentVariable("AKEYLESS_ACCESS_KEY");
var response = apiInstance.Auth(accessId, "access_key", accessKey);
var token = response.Token;

📘

Authentication methods

In addition to authentication with Access-ID and Access-Key, you can authenticate to Akeyless Vault with username and password.

Create a New Static Secret

string name = "name_example";
string value = "value_example";
var response = apiInstance.CreateSecret(name, value, token);

Get Static Secret Value

string name = "name_example";
var getValReplyObj = apiInstance.GetSecretValue(name, token);

📘

Documentation for API calls

https://github.com/akeylesslabs/akeyless-csharp-core-sdk

Updated 4 months ago

C# .NET Core SDK


Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.