You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Each resource class implements `all` and `find`. You can use the `_max_results`and `_return_fields` parameters for both of these methods. See the Infoblox WAPI documentation on how to use these parameters.
28
+
Each resource class implements `.all`, `.find`, and `#get`.
29
29
30
+
### `.find`
31
+
Use find when you don't know what you are looking for or you don't have a `_ref` saved (see `get` below). Use `_max_results` to limit / expand the number of returned results.
32
+
33
+
# You can find hosts that match a regular expression:
You can also search across the Infoblox cluster using the `Infoblox::Search` resource. The response will contain any number of `Infoblox::Resource` subclass instances.
58
+
You can also search across all Infoblox resource types using the `Infoblox::Search` resource. The response will contain any number of `Infoblox::Resource` subclass instances.
46
59
47
60
result = Infoblox::Search.find(connection, "search_string~" => "webserver-")
48
61
# => [#<Infoblox::Host>, #<Infoblox::Ptr>, ...]
@@ -183,6 +196,7 @@ To run the tests:
183
196
184
197
To run the integration tests (you will be prompted for your Infoblox credentials):
185
198
199
+
INTEGRATION=true bundle
186
200
INTEGRATION=true rspec
187
201
188
202
Please note that the integration tests do not work in Ruby 1.8.7, but the unit tests function normally.
0 commit comments