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
IAuthorizationCoreThe 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
Returns
GetSecretKeys(string, string)
[HttpGet("{contextId}")]
public IActionResult GetSecretKeys(string instanceId, string contextId)
Parameters
Returns
UpsertSecretKey(string, SecretKey)
[HttpPost]
public Task<IActionResult> UpsertSecretKey(string instanceId, SecretKey secretKey)
Parameters
Returns
ValidateSecretKey(string, string, string)
[HttpPost("{contextId}")]
public Task<IActionResult> ValidateSecretKey(string instanceId, string contextId, string secretKeyValue)