mirror of
https://github.com/juanfont/headscale.git
synced 2026-01-22 18:18:00 +00:00
proto: add id field to API key expire/delete requests
Add id field to ExpireApiKeyRequest and DeleteApiKeyRequest messages. This allows API keys to be expired or deleted by their database ID in addition to the existing prefix-based lookup. Updates #2986
This commit is contained in:
parent
42bd9cd058
commit
b01eda721c
1 changed files with 8 additions and 2 deletions
|
|
@ -16,7 +16,10 @@ message CreateApiKeyRequest { google.protobuf.Timestamp expiration = 1; }
|
|||
|
||||
message CreateApiKeyResponse { string api_key = 1; }
|
||||
|
||||
message ExpireApiKeyRequest { string prefix = 1; }
|
||||
message ExpireApiKeyRequest {
|
||||
string prefix = 1;
|
||||
uint64 id = 2;
|
||||
}
|
||||
|
||||
message ExpireApiKeyResponse {}
|
||||
|
||||
|
|
@ -24,6 +27,9 @@ message ListApiKeysRequest {}
|
|||
|
||||
message ListApiKeysResponse { repeated ApiKey api_keys = 1; }
|
||||
|
||||
message DeleteApiKeyRequest { string prefix = 1; }
|
||||
message DeleteApiKeyRequest {
|
||||
string prefix = 1;
|
||||
uint64 id = 2;
|
||||
}
|
||||
|
||||
message DeleteApiKeyResponse {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue