Method: Fog::Compute::AWS::Real#describe_availability_zones
- Defined in:
- lib/fog/compute/requests/aws/describe_availability_zones.rb
#describe_availability_zones(filters = {}) ⇒ Object
Describe all or specified availability zones
Params
-
filters<~Hash> - List of filters to limit results with
Returns
-
response<~Excon::Response>:
-
body<~Hash>:
-
‘requestId’<~String> - Id of request
-
‘availabilityZoneInfo’<~Array>:
-
‘regionName’<~String> - Name of region
-
‘zoneName’<~String> - Name of zone
-
‘zoneState’<~String> - State of zone
-
-
-
23 24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/fog/compute/requests/aws/describe_availability_zones.rb', line 23 def describe_availability_zones(filters = {}) unless filters.is_a?(Hash) Formatador.display_line("[yellow][WARN] describe_availability_zones with #{filters.class} param is deprecated, use describe_availability_zones('zone-name' => []) instead[/] [light_black](#{caller.first})[/]") filters = {'public-ip' => [*filters]} end params = Fog::AWS.indexed_filters(filters) request({ 'Action' => 'DescribeAvailabilityZones', :idempotent => true, :parser => Fog::Parsers::Compute::AWS::DescribeAvailabilityZones.new }.merge!(params)) end |