GetHealthCheckLastFailureReason - Amazon Route 53

GetHealthCheckLastFailureReason

Gets the reason that a specified health check failed most recently.

Request Syntax

GET /2013-04-01/healthcheck/HealthCheckId/lastfailurereason HTTP/1.1

URI Request Parameters

The request uses the following URI parameters.

HealthCheckId

The ID for the health check for which you want the last failure reason. When you created the health check, CreateHealthCheck returned the ID in the response, in the HealthCheckId element.

Note

If you want to get the last failure reason for a calculated health check, you must use the Amazon Route 53 console or the CloudWatch console. You can't use GetHealthCheckLastFailureReason for a calculated health check.

Length Constraints: Maximum length of 64.

Required: Yes

Request Body

The request does not have a request body.

Response Syntax

HTTP/1.1 200 <?xml version="1.0" encoding="UTF-8"?> <GetHealthCheckLastFailureReasonResponse> <HealthCheckObservations> <HealthCheckObservation> <IPAddress>string</IPAddress> <Region>string</Region> <StatusReport> <CheckedTime>timestamp</CheckedTime> <Status>string</Status> </StatusReport> </HealthCheckObservation> </HealthCheckObservations> </GetHealthCheckLastFailureReasonResponse>

Response Elements

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in XML format by the service.

GetHealthCheckLastFailureReasonResponse

Root level tag for the GetHealthCheckLastFailureReasonResponse parameters.

Required: Yes

HealthCheckObservations

A list that contains one Observation element for each Amazon Route 53 health checker that is reporting a last failure reason.

Type: Array of HealthCheckObservation objects

Errors

For information about the errors that are common to all actions, see Common Errors.

InvalidInput

The input is not valid.

HTTP Status Code: 400

NoSuchHealthCheck

No health check exists with the specified ID.

HTTP Status Code: 404

Examples

Example Request

This example illustrates one usage of GetHealthCheckLastFailureReason.

GET /2013-04-01/healthcheck/018927304987/lastfailurereason

Example Response

This example illustrates one usage of GetHealthCheckLastFailureReason.

HTTP/1.1 200 OK <?xml version="1.0" encoding="UTF-8"?> <GetHealthCheckLastFailureReasonResponse xmlns="https://route53.amazonaws.com/doc/2013-04-01/"> <HealthCheckObservations> <HealthCheckObservation> <IPAddress>192.0.2.197</IPAddress> <StatusReport> <Status>Failure: The health checker could not establish a connection within the timeout limit.</Status> <CheckedTime>2014-10-25T23:51:20.603Z</CheckedTime> </StatusReport> </HealthCheckObservation> <HealthCheckObservation> <IPAddress>192.0.2.226</IPAddress> <StatusReport> <Status>The health check endpoint has not failed since the Route 53 health checker for this endpoint restarted at 2014-10-24T02:55:12.106+00:00</Status> <CheckedTime>2014-10-24T03:02:48.809Z</CheckedTime> </StatusReport> </HealthCheckObservation> ... </HealthCheckObservations> <GetHealthCheckLastFailureReasonResponse>

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: