Skip to content
This repository was archived by the owner on Jun 5, 2025. It is now read-only.

Commit 9e03826

Browse files
fix: The Ping function is not supported by VaaS
1 parent 82b1846 commit 9e03826

2 files changed

Lines changed: 5 additions & 14 deletions

File tree

src/main/java/com/venafi/vcert/sdk/connectors/cloud/Cloud.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,6 @@ Response retrieveCertificate(@Param("id") String id, @Param("apiKey") String api
6666
@RequestLine("GET /outagedetection/v1/certificates/{id}")
6767
CertificateDetails certificateDetails(@Param("id") String id, @Param("apiKey") String apiKey);
6868

69-
@RequestLine("GET ping")
70-
@Headers("x-venafi-api-key: {apiKey}")
71-
Response ping(@Param("apiKey") String apiKey);
72-
7369
@RequestLine("GET /v1/certificateauthorities/{CA}/accounts")
7470
@Headers("tppl-api-key: {apiKey}")
7571
CAAccountsList getCAAccounts(@Param("CA") String caName, @Param("apiKey") String apiKey);

src/main/java/com/venafi/vcert/sdk/connectors/cloud/CloudConnector.java

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -104,17 +104,12 @@ public String getVendorAndProductName() {
104104
return vendorAndProductName;
105105
}
106106

107+
/**
108+
* @deprecated The ping capability is not longer supported by VaaS.
109+
*/
107110
@Override
108-
public void ping() throws VCertException {
109-
Response response = doPing();
110-
if (response.status() != 200) {
111-
throw new CloudPingException( response.status(), response.reason());
112-
}
113-
}
114-
115-
private Response doPing() {
116-
return cloud.ping(credentials.apiKey());
117-
}
111+
@Deprecated
112+
public void ping() throws VCertException {}
118113

119114
/**
120115
* {@inheritDoc}

0 commit comments

Comments
 (0)