Newer
Older
syntax = "proto3";
package gosdn.csbi;
import "gosdn/pnd/pnd.proto";
option go_package = "code.fbi.h-da.de/cocsn/api/go/gosdn/csbi";
service csbi {
rpc Get(GetRequest) returns (GetResponse);
rpc Create(CreateRequest) returns (CreateResponse);
rpc Delete(DeleteRequest) returns (DeleteResponse);
}
message GetRequest {
int64 timestamp = 1; // Timestamp in nanoseconds since Epoch.
bool all = 2;
repeated string pid = 3;
}
message GetResponse {
int64 timestamp = 1; // Timestamp in nanoseconds since Epoch.
repeated .gosdn.pnd.PrincipalNetworkDomain pnd = 2;
}
message CreateRequest {
int64 timestamp = 1; // Timestamp in nanoseconds since Epoch.
}
message CreateResponse {
int64 timestamp = 1; // Timestamp in nanoseconds since Epoch.
repeated .gosdn.pnd.OrchestratedNetworkingDevice device = 2;
}
message DeleteRequest {
int64 timestamp = 1; // Timestamp in nanoseconds since Epoch.
repeated .gosdn.pnd.OrchestratedNetworkingDevice device = 2;
}
message DeleteResponse {
int64 timestamp = 1; // Timestamp in nanoseconds since Epoch.
enum status {
OK = 0;
ERROR = 1;
}
status Status = 2;
}