lora.provider.list

The lora.provider.list command is used to return a list of LoRa providers.

TR50 Request

{
  "cmd": {
    "command": "lora.provider.list",
    "params": {
      "offset": 0,
      "limit": 10,
      "sort": "+name"
    }
  }
}

Request Parameters

Name Type Required Description
offset Integer   The starting record offset, used for pagination. Defaults to 0 if not specified.
limit Integer   Limits the number of results returned. Defaults to the 2000.
sort String   sort is an optional parameter that defines the sort order of the result set. It allows to arrange the list in either ascending(+) or descending(-) order. It is possible to sort lora.provider.list in the following categories:
  • id
  • name
  • type

If the command is sent successfully a success message and the property values found are returned. Otherwise, an error and error message will be returned.

TR50 Response

{
  "1": {
    "success": true,
    "params": {
      "count": 15,
      "result": [
        {
          "id": "500000000000000000000001",
          "name":"LoRa Provider Name",
          "desc":"The description of the LoRa provider.",
          "type":"actility",
          "enableLocationPublish":true,
          "autoRegThingDefId":"550000000000000000000005",
          "autoRegTags":["tag1", "tag2"],
          "autoRegSecTags":["secure", "restricted"]   							
        },
        ...
      ]
    }
  }
}

Response Parameters

Name Type Description
count Integer The total number of matching records.
result Array The array of records.

Result Object

Name Type Description
id String The ID of the LoRa provider.
orgId String The orgId.
name String The name of the LoRa provider.
desc String The description of the LoRa provider.
type String The type of the LoRa provider
enableLocationPublish Boolean If enabled, allows LoRa devices to publish location.
autoRegThingDefId String A Thing definition assigned to the LoRa devices.
autoRegTags Array Tags assigned to the LoRa devices.
autoRegSecTags Array Security Tags assigned to the LoRa devices.
createdBy String The user that created the record.
createdOn String The date and time of creation.
updatedBy String The user that last updated the record.
updatedOn String The date and time of the last update.