mirror of
https://github.com/juanfont/headscale.git
synced 2025-08-12 08:47:35 +00:00
Add ExpireMachine spec to rpc
This commit is contained in:
@@ -92,6 +92,12 @@ service HeadscaleService {
|
||||
};
|
||||
}
|
||||
|
||||
rpc ExpireMachine(ExpireMachineRequest) returns (ExpireMachineResponse) {
|
||||
option (google.api.http) = {
|
||||
post: "/api/v1/machine/{machine_id}/expire"
|
||||
};
|
||||
}
|
||||
|
||||
rpc ListMachines(ListMachinesRequest) returns (ListMachinesResponse) {
|
||||
option (google.api.http) = {
|
||||
get: "/api/v1/machine"
|
||||
|
@@ -64,6 +64,14 @@ message DeleteMachineRequest {
|
||||
message DeleteMachineResponse {
|
||||
}
|
||||
|
||||
message ExpireMachineRequest {
|
||||
uint64 machine_id = 1;
|
||||
}
|
||||
|
||||
message ExpireMachineResponse {
|
||||
Machine machine = 1;
|
||||
}
|
||||
|
||||
message ListMachinesRequest {
|
||||
string namespace = 1;
|
||||
}
|
||||
|
Reference in New Issue
Block a user