pem.findHost

This method is supported by Operations starting from version 5.2.1

This method allows getting Operations host ID by Hostname or any of assigned IP Addresses.

The method has the following input parameters:

Name

Type

Short Description

[hostname]

string

Fully qualified name of the host

[ip_address]

string

One of IP Addresses assigned to the host

The method has the following output parameters:

Name

Type

Short Description

host_id

int

ID of the host.