Class ContextsController
Context lifecycle management: list, start, stop, restart, remove.
Route-level operations are in .
[Route("/api/contexts")]
public class ContextsController : RedbController
Inheritance
Inherited Members
Methods
GetContext(string)
[HttpGet("/{name}")]
public object? GetContext(string name)
GetEndpoints(string)
[HttpGet("/{name}/endpoints")]
public object? GetEndpoints(string name)
ListContexts()
[HttpGet("")]
public object ListContexts()
RemoveContext(string)
[HttpDelete("/{name}")]
[RequiresRole(new string[] { "admin" })]
public Task<object?> RemoveContext(string name)
ResetRouteStates(string)
[HttpPost("/{name}/reset-route-states")]
public Task<object?> ResetRouteStates(string name)
RestartContext(string, int?)
[HttpPost("/{name}/restart")]
public Task<object?> RestartContext(string name, int? timeoutSeconds = null)
StartContext(string)
[HttpPost("/{name}/start")]
public Task<object?> StartContext(string name)
StopContext(string, int?)
[HttpPost("/{name}/stop")]
public Task<object?> StopContext(string name, int? timeoutSeconds = null)