IoT Stadium

API Documentation

LoRa Gateway

LoRa Gateway - GET LoRa Gateway List

Get

{{url_iot_backend}}/ext/lora-gateway
{
	"key": "Content-Type",
	"value": "application/json"
},
{
	"key": "Authorization",
	"value": "Bearer {{token}}"
},

Parameter

Field Type Description
page Integer

Number of page

limit Integer

Limit of search result in one page

search String

Searched keyword

{
    "message": "success",
    "code": 200,
    "data": {
        "lora_gateways": [
            {
                "id": 23,
                "gateway_id": "b21394f4-ecbd-442d-abd0-38b81f5b50d1",
                "gateway_name": "AAA",
                "shared": 1,
                "status_connection": 0,
                "description": "AAA",
                "token": "EZAHO48bo7ZvVWkjTrKf7m5pAyqI6edGSZcStoeVAeT5jhn9VgJw7xkEtW0teIRruehEay00NHY9MmnW",
                "telemetry_index": null
            },
            {
                "id": 22,
                "gateway_id": "c3b63dac-7ee9-455a-9335-56790cf0191c",
                "gateway_name": "a",
                "shared": 1,
                "status_connection": 0,
                "description": "a",
                "token": "NPWEQ7NpSHU9SDvSBn6AEB4xyjFiwvmWPpZpribFIgugZ3COWAlZa8W54bbvIFwRwn7jzfXDkMKpNF9U",
                "telemetry_index": null
            },
            {
                "id": 21,
                "gateway_id": "98349277-1f25-45b4-9785-829d6ee86954",
                "gateway_name": "eLora edit",
                "shared": 0,
                "status_connection": 0,
                "description": "eLora",
                "token": "d6cGDlaM5uuVObUlDxxbEFB7CoRcE2nkpd3SuhhvRet7JjOCjCkPS5eqD8yvFaDtYB3oLdFEe8UyWJGi",
                "telemetry_index": {
                    "uuid": "98349277-1f25-45b4-9785-829d6ee86954",
                    "id": 363,
                    "device_status": []
                }
            },
            {
                "id": 20,
                "gateway_id": "64771281-4a25-4472-b0cc-6003c2753e64",
                "gateway_name": "lora-baru",
                "shared": 1,
                "status_connection": 0,
                "description": null,
                "token": "r2cSaCKtiCGzpnJNahoMFgHi39v0tlte4gFc2PG47ZSggXaUptowLvawSvotm2o0lX09cN1pDKTyJXAb",
                "telemetry_index": null
            },
            {
                "id": 17,
                "gateway_id": "2dfed7e1-3738-4c3a-a78d-f1c7713e006f",
                "gateway_name": "testasa",
                "shared": 0,
                "status_connection": 0,
                "description": "teast",
                "token": false,
                "telemetry_index": null
            },
            {
                "id": 15,
                "gateway_id": "1a5aa964-1b55-4cd2-a061-355eeef5dad4",
                "gateway_name": "add new",
                "shared": 0,
                "status_connection": 0,
                "description": null,
                "token": false,
                "telemetry_index": {
                    "uuid": "1a5aa964-1b55-4cd2-a061-355eeef5dad4",
                    "id": 342,
                    "device_status": [
                        {
                            "id": 25025763,
                            "timestamp": "2024-01-26 15:33:50",
                            "key": "RSSI",
                            "key_wording": "RSSI",
                            "key_raw": "RSSI",
                            "value": "-100",
                            "is_controller": 0,
                            "telemetry_index_id": 342,
                            "is_group": 0,
                            "aggregation_type_id": 0,
                            "unit": null,
                            "type": null,
                            "port": null,
                            "friendly_name": "",
                            "count_group": 0
                        }
                ]
                    ]
                }
            },
    }
}
{
    "message": "success",
    "code": 200,
    "data": {
        "lora_gateways": [
            {
                "id": 23,
                "gateway_id": "b21394f4-ecbd-442d-abd0-38b81f5b50d1",
                "gateway_name": "AAA",
                "shared": 1,
                "status_connection": 0,
                "description": "AAA",
                "token": "EZAHO48bo7ZvVWkjTrKf7m5pAyqI6edGSZcStoeVAeT5jhn9VgJw7xkEtW0teIRruehEay00NHY9MmnW",
                "telemetry_index": null
            },
            {
                "id": 15,
                "gateway_id": "1a5aa964-1b55-4cd2-a061-355eeef5dad4",
                "gateway_name": "add new",
                "shared": 0,
                "status_connection": 0,
                "description": null,
                "token": false,
                "telemetry_index": {
                    "uuid": "1a5aa964-1b55-4cd2-a061-355eeef5dad4",
                    "id": 342,
                    "device_status": [
                        {
                            "id": 25025763,
                            "timestamp": "2024-01-26 15:33:50",
                            "key": "RSSI",
                            "key_wording": "RSSI",
                            "key_raw": "RSSI",
                            "value": "-100",
                            "is_controller": 0,
                            "telemetry_index_id": 342,
                            "is_group": 0,
                            "aggregation_type_id": 0,
                            "unit": null,
                            "type": null,
                            "port": null,
                            "friendly_name": "",
                            "count_group": 0
                        }
                    ]
                }
            }
        ],
        "total": 2,
        "page": 1,
        "total_page": 1
    }
}
{
    "success": false,
    "error": {
        "code": 401,
        "message": "Unauthorized: Invalid or missing token"
    }
}