Greetings everyone,
I’ve been trying these endpoints to query stats from my gateways but every single one returns a 404.
Endpoint under test: Noc.QueryGatewaysConnected
Request:
curl -X POST 'https://nam1.cloud.thethings.network/api/v3/noc/gateways/connected' \
-H 'Authorization:Bearer NNSXS.xxyyzz' \
-H 'Content-Type:application/json' \
-d '{
"from": "0001-01-01T00:00:00Z",
"to": "0001-01-01T05:00:00Z",
"bucket_interval": "1s",
}'
Response:
{
"details":[
{
"namespace":"proxy",
"correlation_id":"2cbee1bb-41ee-46ba-b11d-425c22e03769",
"name":"404_route_not_found",
"@type":"type.googleapis.com/ttn.lorawan.v3.ErrorDetails",
"attributes":{
"cluster":"nam1.cloud.thethings.network",
"flags":"NR"
},
"message_format":"not found"
}
],
"message":"not found"
}
Endpoint under test: Noc.QueryGatewaysConnectivityTimes
Request:
curl -X POST 'https://nam1.cloud.thethings.network/api/v3/noc/gateways/connectivity' \
-H 'Authorization:Bearer NNSXS.VXLNZSJ3ZH5KNJGSHYZR3C4OFETVFD6S7DC744Q.GW56TKR4O6N42VYQGBKA4RTR4ABSGD2WLSX5ZBLAVCRW63HFW7VQ' \
-H 'Content-Type:application/json' \
-d '{
"from": "0001-01-01T00:00:00Z",
"to": "0001-01-01T05:00:00Z"
}'
Response:
{
"details":[
{
"correlation_id":"7f3e78f3-c442-41f8-abdd-78d37aa07ff4",
"@type":"type.googleapis.com/ttn.lorawan.v3.ErrorDetails",
"name":"404_route_not_found",
"attributes":{
"cluster":"nam1.cloud.thethings.network",
"flags":"NR"
},
"namespace":"proxy",
"message_format":"not found"
}
],
"message":"not found"
}
I don’t know what could I be missing over here. I’d really appreciate comments and suggestions on this matter.
Thanks in advance.
Best regards.