diff --git a/src/main/java/com/venafi/vcert/sdk/connectors/cloud/Cloud.java b/src/main/java/com/venafi/vcert/sdk/connectors/cloud/Cloud.java index 0c148db..2a26a91 100644 --- a/src/main/java/com/venafi/vcert/sdk/connectors/cloud/Cloud.java +++ b/src/main/java/com/venafi/vcert/sdk/connectors/cloud/Cloud.java @@ -66,10 +66,6 @@ Response retrieveCertificate(@Param("id") String id, @Param("apiKey") String api @RequestLine("GET /outagedetection/v1/certificates/{id}") CertificateDetails certificateDetails(@Param("id") String id, @Param("apiKey") String apiKey); - @RequestLine("GET ping") - @Headers("x-venafi-api-key: {apiKey}") - Response ping(@Param("apiKey") String apiKey); - @RequestLine("GET /v1/certificateauthorities/{CA}/accounts") @Headers("tppl-api-key: {apiKey}") CAAccountsList getCAAccounts(@Param("CA") String caName, @Param("apiKey") String apiKey); diff --git a/src/main/java/com/venafi/vcert/sdk/connectors/cloud/CloudConnector.java b/src/main/java/com/venafi/vcert/sdk/connectors/cloud/CloudConnector.java index 69063c1..6e31032 100644 --- a/src/main/java/com/venafi/vcert/sdk/connectors/cloud/CloudConnector.java +++ b/src/main/java/com/venafi/vcert/sdk/connectors/cloud/CloudConnector.java @@ -104,17 +104,12 @@ public String getVendorAndProductName() { return vendorAndProductName; } + /** + * @deprecated The ping capability is not longer supported by VaaS. + */ @Override - public void ping() throws VCertException { - Response response = doPing(); - if (response.status() != 200) { - throw new CloudPingException( response.status(), response.reason()); - } - } - - private Response doPing() { - return cloud.ping(credentials.apiKey()); - } + @Deprecated + public void ping() throws VCertException {} /** * {@inheritDoc}