Method: Fog::Compute::AWS::Real#describe_vpcs
- Defined in:
- lib/fog/aws/requests/compute/describe_vpcs.rb
#describe_vpcs(filters = {}) ⇒ Object
Describe all or specified vpcs
Parameters
-
filters<~Hash> - List of filters to limit results with
Returns
-
response<~Excon::Response>:
-
body<~Hash>:
-
‘requestId’<~String> - Id of request
-
‘vpcSet’<~Array>:
-
‘vpcId’<~String> - The VPC’s ID
-
‘state’<~String> - The current state of the VPC. [‘pending’, ‘available’]
-
‘cidrBlock’<~String> - The CIDR block the VPC covers.
-
‘dhcpOptionsId’<~String> - The ID of the set of DHCP options.
-
‘tagSet’<~Array>: Tags assigned to the resource.
-
‘key’<~String> - Tag’s key
-
‘value’<~String> - Tag’s value
-
‘instanceTenancy’<~String> - The allowed tenancy of instances launched into the VPC.
28 29 30 31 32 33 34 35 36 37 38 39 |
# File 'lib/fog/aws/requests/compute/describe_vpcs.rb', line 28 def describe_vpcs(filters = {}) unless filters.is_a?(Hash) Fog::Logger.warning("describe_vpcs with #{filters.class} param is deprecated, use describe_vpcs('vpc-id' => []) instead [light_black](#{caller.first})[/]") filters = {'vpc-id' => [*filters]} end params = Fog::AWS.indexed_filters(filters) request({ 'Action' => 'DescribeVpcs', :idempotent => true, :parser => Fog::Parsers::Compute::AWS::DescribeVpcs.new }.merge!(params)) end |