Method: Fog::Compute::AWS::Subnets#get
- Defined in:
- lib/fog/aws/models/compute/subnets.rb
permalink #get(subnet_id) ⇒ Object
Used to retrieve a Subnet subnet-id is required to get the associated VPC information.
You can run the following command to get the details: AWS.subnets.get(“subnet-12345678”)
Returns
>> AWS.subnets.get(“subnet-12345678”) <Fog::AWS::Compute::Subnet subnet_id=subnet-someId, state=, vpc_id=vpc-someId cidr_block=someIpRange available_ip_address_count=someInt tagset=nil >
89 90 91 92 93 |
# File 'lib/fog/aws/models/compute/subnets.rb', line 89 def get(subnet_id) if subnet_id self.class.new(:connection => connection).all('subnet-id' => subnet_id).first end end |