Method: Fog::Compute::AWS::Real#delete_subnet
- Defined in:
- lib/fog/aws/requests/compute/delete_subnet.rb
#delete_subnet(subnet_id) ⇒ Object
Deletes a subnet from a VPC. You must terminate all running instances in the subnet before deleting it, otherwise Amazon VPC returns an error
Parameters
-
subnet_id<~String> - The ID of the Subnet you want to delete.
Returns
-
response<~Excon::Response>:
-
body<~Hash>:
-
‘requestId’<~String> - Id of request
-
‘return’<~Boolean> - Returns true if the request succeeds.
20 21 22 23 24 25 26 |
# File 'lib/fog/aws/requests/compute/delete_subnet.rb', line 20 def delete_subnet(subnet_id) request( 'Action' => 'DeleteSubnet', 'SubnetId' => subnet_id, :parser => Fog::Parsers::Compute::AWS::DeleteSubnet.new ) end |