Model

NOTE: Enth Internal, KEY must contains Enth Administrator privileges.

MODEL manages Schema information for the MODEL. Returns an XML string that contains Schema information for the MODEL specified in GUID.


Methods

   POST


Consumes

   application/x-www-form-urlencoded


Produces

   text/html


Returns

    An XML string containing information about the configuration of the MODEL.


Parameters

Parameter Data Type Required Administrator Description
KEY String Required A valid Enth Key (refer to Login). Must be an Owner or Administrator.
GUID String Required (or NAME) The GUID of the MODEL to be Administered.
NAME String Required (or GUID) The NAME of the MODEL to be Administered (NOTE: GUID is preferred).
ACTIVE Boolean If ACTIVE is true, the SCHEMA property ACTIVE is set to true. If ACTIVE is false, the SCHEMA property ACTIVE is set to false. NOTE: Applies only to locally installed MODELs.
PENDING Boolean If PENDING is true, the SCHEMA property PENDING is set to true. If PENDING is false, the SCHEMA property PENDING is set to false. NOTE: Applies only to locally installed MODELs. Typically used by Enth when an anomaly is dectected.
REINDEX Boolean If REINDEX is true, the MODEL identified in GUID is reindexed. If REINDEX is false has no affect. NOTE: REINDEX is a independent process, so calls to MODEL will return prior to completion the REINDEX process. Enth logs should be referred to for more information on the status of the REINDEX process.
STATISTICS Boolean If STATISTICS is true, the MODEL property STATISTICS is set to true and index statistics are collected each time REINDEX is performed on this MODEL. If STATISTICS is false, the MODEL property STATISTICS is set to false.
LONGITUDE Double Administrator A valid Longitude, typically generated from the requesting device.
LATITUDE Double Administrator A valid Latitude, typically generated from the requesting device.
SOURCE String Administrator The name or type of requesting source or device.

Also See:   Login    Models    Node    Nodes

Code Example

   https://YourEnthAppliance/EnthAPI/users/model