class SecurityTrails::Clients::IPs
Public Instance Methods
explore(ipaddress)
click to toggle source
Returns the neighbors in any given IP level range and essentially allows you to explore closeby IP addresses.
@see docs.securitytrails.com/reference#explore-ips
@param [String] ipaddress Starting IP address (optionally with CIDR subnet mask)
@return [Hash]
# File lib/securitytrails/clients/ips.rb, line 15 def explore(ipaddress) get("/ips/nearby/#{ipaddress}") { |json| json } end
search(query)
click to toggle source
Search IPs
(DSL)
@see docs.securitytrails.com/reference#search-ips-dsl
@param [String] query The DSL query you want to run against the IPs
database.
@return [Hash]
# File lib/securitytrails/clients/ips.rb, line 28 def search(query) post("/ips/list", query: query) { |json| json } end
stats(query)
click to toggle source
IP Search statistics
@see docs.securitytrails.com/reference#ip-search-statistics
@param [String] query
@return [Hash]
# File lib/securitytrails/clients/ips.rb, line 41 def stats(query) post("/ips/stats", query: query) { |json| json } end