code: public String retrieveServiceStatus(String service, String cluster) throws Exception {
          String status = "";
          String endPoint = "/service/deploy-api/deploy/status/service?service=" + service;
          String element = "$.status";
          Future response;
  
          this.setRestProtocol("https://");
          this.setRestHost(cluster);
          this.setRestPort(":443");
  
          response = this.generateRequest("GET", true, null, null, endPoint, null, "json");
          this.setResponse("GET", (Response) response.get());
          assertThat(this.getResponse().getStatusCode()).as("It hasn't been possible to obtain status for service: " + service).isEqualTo(200);
  
          String json = this.getResponse().getResponse();
  
          String value = this.getJSONPathString(json, element, null);
  
          switch (value) {
              case "0":
                  status = "deploying";
                  break;
              case "1":
                  status = "suspended";
                  break;
              case "2":
                  status = "running";
                  break;
              case "3":
                  status = "delayed";
                  break;
              default:
                  throw new Exception("Unknown service status code");
          }
  
          return status;
      }
docs: Get service status
  
  @param service   name of the service to be checked
  @param cluster   URI of the cluster
  @return String   normalized service status
  @throws Exception exception     *