add_autodetect_task
Use this command to add an auto-discovery process to the specified host and port name(s).
This API is available in Guardium V9.5 and later.
REST API syntax
This API is available as a REST service with the
POST
method. Call this API as follows:
POST https://[Guardium hostname or IP address]:8443/restAPI/add_autodetect_task
GuardAPI syntax
add_autodetect_task parameter=value
Parameters
Parameter | Value type | Description |
---|---|---|
hosts_list | String | Required. Lists of hosts. Space separated list of IPs or IP ranges and wild cards such as 192.168.0.1 192.168.1.* |
ports_list | String | Required. Comma separated list of ports or port ranges, such as: 22,23,1400-1600. |
process_name | String | Required. Name of the auto-discovery process |
api_target_host | String |
Specifies the target hosts where the API executes. Valid values:
IP addresses must conform to the IP mode of your network. For dual IP mode, use the same IP protocol with which the managed unit is registered with the central manager. For example, if the registration uses IPv6, specify an IPv6 address. The hostname is independent of IP mode and can be used with any mode. |
Examples
To add the auto-discovery task myProcess to the hosts 192.168.1.1 and 192.168.1.3, on ports 22 and 23:
grdapi add_autodetect_task process_name=myProcess hosts_list="192.168.1.1 192.168.1.3" ports_list="22,23"