Method: Fog::Compute::AWS::Real#describe_internet_gateways
- Defined in:
- lib/fog/aws/requests/compute/describe_internet_gateways.rb
#describe_internet_gateways(filters = {}) ⇒ Object
Describe all or specified internet_gateways
Parameters
-
filters<~Hash> - List of filters to limit results with
Returns
-
response<~Excon::Response>:
-
body<~Hash>:
-
‘requestId’<~String> - Id of request
-
‘InternetGatewaySet’<~Array>:
-
‘internetGatewayId’<~String> - The ID of the Internet gateway.
-
‘attachmentSet’<~Array>: - A list of VPCs attached to the Internet gateway
-
‘vpcId’<~String> - The ID of the VPC the Internet gateway is attached to
-
‘state’<~String> - The current state of the attachment
-
-
-
‘tagSet’<~Array>: Tags assigned to the resource.
-
‘key’<~String> - Tag’s key
-
‘value’<~String> - Tag’s value
-
27 28 29 30 31 32 33 34 35 36 37 38 |
# File 'lib/fog/aws/requests/compute/describe_internet_gateways.rb', line 27 def describe_internet_gateways(filters = {}) unless filters.is_a?(Hash) Fog::Logger.warning("describe_internet_gateways with #{filters.class} param is deprecated, use internet_gateways('internet-gateway-id' => []) instead [light_black](#{caller.first})[/]") filters = {'internet-gateway-id' => [*filters]} end params = Fog::AWS.indexed_filters(filters) request({ 'Action' => 'DescribeInternetGateways', :idempotent => true, :parser => Fog::Parsers::Compute::AWS::DescribeInternetGateways.new }.merge!(params)) end |