mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
API: Optionally list expired keys (#20468)
* API: Optionally list expired keys * Update docs
This commit is contained in:
committed by
GitHub
parent
1b38d94537
commit
d1c523838b
@@ -10,7 +10,7 @@ import (
|
||||
)
|
||||
|
||||
func GetAPIKeys(c *models.ReqContext) Response {
|
||||
query := models.GetApiKeysQuery{OrgId: c.OrgId}
|
||||
query := models.GetApiKeysQuery{OrgId: c.OrgId, IncludeExpired: c.QueryBool("includeExpired")}
|
||||
|
||||
if err := bus.Dispatch(&query); err != nil {
|
||||
return Error(500, "Failed to list api keys", err)
|
||||
|
||||
Reference in New Issue
Block a user