Просмотр исходного кода

feature:新增根据域名证书绑定id获取该域名绑定在CF绑定的证书信息,

liufan 1 месяц назад
Родитель
Сommit
e97859aef8
1 измененных файлов с 23 добавлено и 1 удалено
  1. 23 1
      certificate.proto

+ 23 - 1
certificate.proto

@@ -12,11 +12,24 @@ service CertificateCloudflare {
   rpc CreateCertificate (CreateCertificateRequestCloudflare) returns  (CreateCertificateReplyCloudflare) {}
   rpc CreateCertificateV2 (CreateCertificateRequestCloudflareV2) returns  (CreateCertificateReplyCloudflare) {}
   rpc DeleteCertificate (DeleteCertificateRequestCloudflare) returns (DeleteCertificateReplyCloudflare) {}
+  rpc ListZoneCertificates (ListZoneCertificatesRequestCloudflare) returns (ListZoneCertificatesReplyCloudflare) {}
   rpc EditCertificate (EditCertificateRequestCloudflare) returns (EditCertificateReplyCloudflare) {}
   rpc EditCertificateV2 (EditCertificateRequestCloudflareV2) returns (EditCertificateReplyCloudflare) {}
   rpc UniversalCertificate(UniversalCertificateRequestCloudflare) returns(UniversalCertificateReplyCloudflare) {}
 }
-
+message ZoneCustomSSL{
+  string id = 1;
+  repeated string hosts = 2;
+  string issuer = 3;
+  string signature = 4;
+  string status = 5;
+  string bundleMethod = 6;
+  string zoneId = 7;
+  string uploadedOn = 8;
+  string modifiedOn = 9;
+  string expiresOn = 10;
+  int32 priority = 11;
+}
 message CreateCertificateRequestCloudflare {
   string apiKey = 1;
   string apiEmail = 2;
@@ -39,6 +52,15 @@ message DeleteCertificateRequestCloudflare {
   string zoneName = 3;
   string certificateId = 4;
 }
+message ListZoneCertificatesRequestCloudflare {
+  string apiKey = 1;
+  string apiEmail = 2;
+  string zoneId = 3;
+}
+message ListZoneCertificatesReplyCloudflare {
+  repeated ZoneCustomSSL result = 1;
+  bool success = 2;
+}
 message EditCertificateRequestCloudflare {
   string apiKey = 1;
   string apiEmail = 2;