compute = Fog::Compute.new({
  :provider               => 'AWS'
})
puts compute.requests
sgp=compute.describe_security_groups({'description' => 'private'}).body
id=sgp['securityGroupInfo'][0]['groupId']
compute.authorize_security_group_ingress('GroupId' => id,
'IpPermissions' => [
        {
            'IpProtocol' => 'tcp',
            'FromPort' => 22,
            'ToPort' => 22
        }
])

#<Excon::Response:0x0000001a20bf10 
@data={:body=>{"requestId"=>"1576cfee-8a10-4575-999b-ec68228cc30e", 
"return"=>true},

-- 
You received this message because you are subscribed to the Google Groups 
"ruby-fog" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to