public VaultHealth doWithRestOperations()

in common/src/main/java/org/jetbrains/teamcity/vault/support/VaultSysTemplate.java [161:177]


		public VaultHealth doWithRestOperations(RestOperations restOperations) {

			try {
				ResponseEntity<VaultHealthImpl> healthResponse = restOperations.exchange(
						"sys/health", HttpMethod.GET, null, VaultHealthImpl.class);
				return healthResponse.getBody();
			} catch (HttpStatusCodeException responseError) {

				try {
					ObjectMapper mapper = new ObjectMapper();
					return mapper.readValue(responseError.getResponseBodyAsString(),
							VaultHealthImpl.class);
				} catch (Exception ignored) {
					throw responseError;
				}
			}
		}