def get_zone(name)
      params = {
          'command' => 'listZones',
          'available' => 'true'
      }
      json = send_request(params)

      networks = json['zone']
      return nil unless networks

      networks.each { |z|
        if name.is_uuid? then
          return z if z['id'] == name
        else
          return z if z['name'] == name
        end
      }
      nil
    end
def get_zone(name)
      params = {
          'command' => 'listZones',
          'available' => 'true'
      }
      json = send_request(params)

      networks = json['zone']
      return nil unless networks

      networks.each { |z|
        if name.is_uuid? then
          return z if z['id'] == name
        else
          return z if z['name'] == name
        end
      }
      nil
    end
Finds the zone with the specified name.