Table of Contents

Class SecretKeysController

Namespace
FoundationaLLM.Authorization.API.Controllers
Assembly
FoundationaLLM.Authorization.API.dll

Provides methods for processing secret keys requests.

[Authorize(Policy = "MicrosoftEntraIDNoScopes")]
[ApiController]
[Consumes("application/json", new string[] { })]
[Produces("application/json", new string[] { })]
[Route("instances/{instanceId}/secretkeys")]
public class SecretKeysController
Inheritance
SecretKeysController
Inherited Members
Extension Methods

Constructors

SecretKeysController(IAuthorizationCore)

Provides methods for processing secret keys requests.

public SecretKeysController(IAuthorizationCore authorizationCore)

Parameters

authorizationCore IAuthorizationCore

The IAuthorizationCore service used to process secret keys requests.

Methods

DeleteSecretKey(string, string, string)

[HttpDelete("{contextId}")]
public Task<IActionResult> DeleteSecretKey(string instanceId, string contextId, string secretKeyId)

Parameters

instanceId string
contextId string
secretKeyId string

Returns

Task<IActionResult>

GetSecretKeys(string, string)

[HttpGet("{contextId}")]
public IActionResult GetSecretKeys(string instanceId, string contextId)

Parameters

instanceId string
contextId string

Returns

IActionResult

UpsertSecretKey(string, SecretKey)

[HttpPost]
public Task<IActionResult> UpsertSecretKey(string instanceId, SecretKey secretKey)

Parameters

instanceId string
secretKey SecretKey

Returns

Task<IActionResult>

ValidateSecretKey(string, string, string)

[HttpPost("{contextId}")]
public Task<IActionResult> ValidateSecretKey(string instanceId, string contextId, string secretKeyValue)

Parameters

instanceId string
contextId string
secretKeyValue string

Returns

Task<IActionResult>