Files
ionscale/proto/api/machines.proto
T
Johan Siebens 5ad89ff02f initial working version
Signed-off-by: Johan Siebens <johan.siebens@gmail.com>
2022-05-09 21:54:06 +02:00

34 lines
639 B
Protocol Buffer

syntax = "proto3";
package api;
option go_package = "github.com/jsiebens/ionscale/pkg/gen;api";
import "google/protobuf/timestamp.proto";
import "google/protobuf/duration.proto";
import "api/ref.proto";
message ListMachinesRequest {
uint64 tailnet_id = 1;
}
message ListMachinesResponse {
repeated Machine machines = 1;
}
message DeleteMachineRequest {
uint64 machine_id = 1;
}
message DeleteMachineResponse {}
message Machine {
uint64 id = 1;
string name = 2;
string ipv4 = 3;
string ipv6 = 4;
bool ephemeral = 5;
google.protobuf.Timestamp last_seen = 6;
bool connected = 7;
Ref tailnet = 8;
Ref user = 9;
}