subscriptions/short_name

The subscriptions/short_name URI manipulates a web service subscription record.

URI path

subscriptions/short_name

Subscription configuration records

Subscription configuration records include:

Supported request methods

GET

Queries the system for the record associated with the specified short name, which is supplied by the user when the record is first stored in the device.

PUT

If the requested record does not yet exist, adds a new record with the requested URI to the system. If the requested record already exists in the system, the existing record is modified to match the supplied record data.

DELETE

Removes the specified record from the system.

Supported content types

XML

The GET and PUT forms use a subscription record. For example:

<subscription>
         <uri>vehicle/data/EngineSpeed</uri>
          <buffer>queue</buffer>
          <interval>10</interval>
</subscription>

JSON

The GET and PUT forms create an object assigned to a subscription field. In PUT requests, numeric fields need not be quoted, but GET responses feature all fields and values as quoted strings, regardless of type. For example:

{ “subscription” : { “uri” :  “vehicle/data/EngineSpeed”,
                     “buffer” :  “queue”, “interval” : “10” }}

 

© 2019 Digi International Inc. All rights reserved.
subscriptions/short_name updated on 18 Oct 2017 09:36 AM