Seitenhierarchie
Zum Ende der Metadaten springen
Zum Anfang der Metadaten

URL: https://123.123.123.123/hostgroups/edit/$HOSTGROUP_ID.json

Methode: POST

Response: HTML


JSON for editing host groups via REST API
{  
    "Container":{  
        "id":$CONTAINER_ID,
        "parent_id":$PARENT_CONTAINER_ID,
        "name":"API Hostgroup name modified"
    },
    "Hostgroup":{  
        "id":$HOSTGROUP_ID,
        "container_id":$CONTAINER_ID,
        "description":"API Hostgroup description modified",
        "hostgroup_url":"http://API-Hostgroup.url/modified",
        "Host":[$HOST_ID,$HOST_ID,....],
        "Hosttemplate":[$HOSTTEMPLATE_ID,$HOSTTEMPLATE_ID,...]
    }
}
  • Keine Stichwörter