|
@@ -12,6 +12,8 @@ service LogPushCloudflare {
|
|
|
rpc CreateLogPushJobByZoneId(CreateLogPushJobRequestByZoneId) returns (CreateLogPushJobReplay) {}
|
|
|
rpc DeleteLogPushJobByZoneId(DeleteLogPushJobRequestByZoneId) returns (DeleteLogPushJobReplay) {}
|
|
|
rpc GetOwnershipChallengeByZoneId(GetOwnershipChallengeRequestByZoneId) returns (GetOwnershipChallengeReply) {}
|
|
|
+ rpc CheckDestinationExist(CheckDestinationExistRequest) returns (CheckDestinationExistReply) {}
|
|
|
+ rpc ValidateOwnershipChallenge(ValidateOwnershipChallengeRequest) returns (ValidateOwnershipChallengeReply) {}
|
|
|
}
|
|
|
|
|
|
message LogPushJobEntity {
|
|
@@ -74,4 +76,27 @@ message GetOwnershipChallengeRequestByZoneId {
|
|
|
|
|
|
message GetOwnershipChallengeReply {
|
|
|
OwnershipChallengeEntity result = 1;
|
|
|
+}
|
|
|
+
|
|
|
+message CheckDestinationExistRequest {
|
|
|
+ string apiKey = 1;
|
|
|
+ string apiEmail = 2;
|
|
|
+ string zoneId = 3;
|
|
|
+ string destinationConf = 4;
|
|
|
+}
|
|
|
+
|
|
|
+message CheckDestinationExistReply {
|
|
|
+ bool exists = 1;
|
|
|
+}
|
|
|
+
|
|
|
+message ValidateOwnershipChallengeRequest {
|
|
|
+ string apiKey = 1;
|
|
|
+ string apiEmail = 2;
|
|
|
+ string zoneId = 3;
|
|
|
+ string destinationConf = 4;
|
|
|
+ string ownershipChallenge = 5;
|
|
|
+}
|
|
|
+
|
|
|
+message ValidateOwnershipChallengeReply {
|
|
|
+ bool valid = 1;
|
|
|
}
|