mirror of
https://github.com/juanfont/headscale.git
synced 2025-10-15 08:10:24 +00:00
Nickname support
This commit is contained in:
@@ -99,6 +99,12 @@ service HeadscaleService {
|
||||
};
|
||||
}
|
||||
|
||||
rpc RenameMachine(RenameMachineRequest) returns (RenameMachineResponse) {
|
||||
option (google.api.http) = {
|
||||
post: "/api/v1/machine/{machine_id}/rename/{new_name}"
|
||||
};
|
||||
}
|
||||
|
||||
rpc ListMachines(ListMachinesRequest) returns (ListMachinesResponse) {
|
||||
option (google.api.http) = {
|
||||
get: "/api/v1/machine"
|
||||
|
@@ -38,6 +38,8 @@ message Machine {
|
||||
// bytes host_info = 15;
|
||||
// bytes endpoints = 16;
|
||||
// bytes enabled_routes = 17;
|
||||
|
||||
string nickname = 18;
|
||||
}
|
||||
|
||||
message RegisterMachineRequest {
|
||||
@@ -72,6 +74,15 @@ message ExpireMachineResponse {
|
||||
Machine machine = 1;
|
||||
}
|
||||
|
||||
message RenameMachineRequest {
|
||||
uint64 machine_id = 1;
|
||||
string new_name = 2;
|
||||
}
|
||||
|
||||
message RenameMachineResponse {
|
||||
Machine machine = 1;
|
||||
}
|
||||
|
||||
message ListMachinesRequest {
|
||||
string namespace = 1;
|
||||
}
|
||||
|
Reference in New Issue
Block a user