---
title: "Config - Host Check Command"
description: ""
url: "https://docs.itrsgroup.com/docs/opsview/6.11.7/rest-api/config/api-config-host-check-command/index.html"
---
Object type: hostcheckcommand

Request URL: `/rest/config/hostcheckcommand`

## Example GET

```
    {
       "object" : {
          "priority" : "1",
          "plugin" : {
             "ref" : "/rest/config/plugin/check_icmp",
             "name" : "check_icmp"
          },
          "hosts" : [
             {
                "ref" : "/rest/config/host/14",
                "name" : "doesnt_exist_1"
             },
             {
                "ref" : "/rest/config/host/15",
                "name" : "doesnt_exist_2"
             },
             {
                "ref" : "/rest/config/host/16",
                "name" : "singlehostgroup"
             }
          ],
          "name" : "ping",
          "args" : "-H $HOSTADDRESS$ -t 3 -w 500.0,80% -c 1000.0,100%",
          "id" : "15",
          "uncommitted" : "0"
       }
    }
```


**Note**


You cannot `PUT` the list of hosts. The reference to plugin is currently unavailable.



