Accesscontrol: Remove service account creation code from addapikey (#43900)
* Remove service account creation code from addapikey Co-authored-by: J Guerreiro <joao.guerreiro@grafana.com>
This commit is contained in:
co-authored by
J Guerreiro
parent
6409e761b5
commit
e894837b7e
@@ -27,15 +27,13 @@ type ApiKey struct {
|
||||
// ---------------------
|
||||
// COMMANDS
|
||||
type AddApiKeyCommand struct {
|
||||
Name string `json:"name" binding:"Required"`
|
||||
Role RoleType `json:"role" binding:"Required"`
|
||||
OrgId int64 `json:"-"`
|
||||
Key string `json:"-"`
|
||||
SecondsToLive int64 `json:"secondsToLive"`
|
||||
ServiceAccountId int64 `json:"serviceAccount"`
|
||||
CreateNewServiceAccount bool `json:"createServiceAccount"`
|
||||
|
||||
Result *ApiKey `json:"-"`
|
||||
Name string `json:"name" binding:"Required"`
|
||||
Role RoleType `json:"role" binding:"Required"`
|
||||
OrgId int64 `json:"-"`
|
||||
Key string `json:"-"`
|
||||
SecondsToLive int64 `json:"secondsToLive"`
|
||||
ServiceAccountId int64 `json:"-"`
|
||||
Result *ApiKey `json:"-"`
|
||||
}
|
||||
|
||||
type DeleteApiKeyCommand struct {
|
||||
|
||||
Reference in New Issue
Block a user