2014-12-30 17:25:09 -05:00
|
|
|
module Fog
|
|
|
|
module DNS
|
2015-01-02 12:34:40 -05:00
|
|
|
class AWS
|
2014-12-30 17:25:09 -05:00
|
|
|
class Real
|
|
|
|
require 'fog/aws/parsers/dns/health_check'
|
|
|
|
|
|
|
|
# This action gets information about a specified health check.
|
|
|
|
#http://docs.aws.amazon.com/Route53/latest/APIReference/API_GetHealthCheck.html
|
|
|
|
#
|
|
|
|
# ==== Parameters
|
|
|
|
# * id<~String> - The ID of the health check
|
|
|
|
#
|
|
|
|
# ==== Returns
|
|
|
|
# * response<~Excon::Response>:
|
|
|
|
# * body<~Hash>:
|
|
|
|
# * 'HealthCheck'<~Hash>:
|
|
|
|
# * 'Id'<~String> -
|
|
|
|
# * 'CallerReference'<~String>
|
|
|
|
# * 'HealthCheckConfig'<~Hash>:
|
|
|
|
# * 'IPAddress'<~String> -
|
|
|
|
# * 'Port'<~String> -
|
|
|
|
# * 'Type'<~String> -
|
|
|
|
# * 'ResourcePath'<~String> -
|
|
|
|
# * 'FullyQualifiedDomainName'<~String> -
|
|
|
|
# * 'SearchString'<~String> -
|
|
|
|
# * 'RequestInterval'<~Integer> -
|
|
|
|
# * 'FailureThreshold'<~String> -
|
|
|
|
# * 'HealthCheckVersion'<~Integer> -
|
|
|
|
# * status<~Integer> - 200 when successful
|
|
|
|
def get_health_check(id)
|
|
|
|
request({
|
|
|
|
:expects => 200,
|
|
|
|
:parser => Fog::Parsers::DNS::AWS::HealthCheck.new,
|
|
|
|
:method => 'GET',
|
|
|
|
:path => "healthcheck/#{id}"
|
|
|
|
})
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|