* Fetches the owner details. * @param type: The search type. IP and Host are expected values. * @param value: The value to be searched.
(type, value)
| 476 | * @param value: The value to be searched. |
| 477 | */ |
| 478 | function ibloxOwner(type, value) { |
| 479 | var url = new URI('/api/v1.0/iblox/owners'); |
| 480 | url.addSearch({ |
| 481 | 'type': type, |
| 482 | 'value': value |
| 483 | }); |
| 484 | |
| 485 | retrieve_results(url.toString(), 'ownershipInformation') |
| 486 | .then(function (owner_details) { |
| 487 | owner_detail_renderer(owner_details, type, 'ownershipInformation'); |
| 488 | }); |
| 489 | } |
| 490 | |
| 491 | function ctResults(results) { |
| 492 | if (results.length === 0) { |
no test coverage detected