mirror of
https://github.com/psviderski/uncloud.git
synced 2026-08-26 11:03:34 +00:00
feat(dns): cluster API for reserving/releasing cluster domain in Uncloud DNS
This commit is contained in:
@@ -10,7 +10,10 @@ import "internal/machine/api/pb/machine.proto";
|
||||
service Cluster {
|
||||
rpc AddMachine(AddMachineRequest) returns (AddMachineResponse);
|
||||
rpc ListMachines(google.protobuf.Empty) returns (ListMachinesResponse);
|
||||
|
||||
rpc ReserveDomain(ReserveDomainRequest) returns (Domain);
|
||||
rpc GetDomain(google.protobuf.Empty) returns (Domain);
|
||||
rpc ReleaseDomain(google.protobuf.Empty) returns (Domain);
|
||||
rpc UpdateDomainRecords(UpdateDomainRecordsRequest) returns (google.protobuf.Empty);
|
||||
}
|
||||
|
||||
@@ -48,6 +51,10 @@ message Domain {
|
||||
string name = 1;
|
||||
}
|
||||
|
||||
message ReserveDomainRequest {
|
||||
string api_endpoint = 1;
|
||||
}
|
||||
|
||||
message UpdateDomainRecordsRequest {
|
||||
repeated DNSRecord records = 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user