However, the request is not successful. I get the following error:
"code":3,"message":"ReadObjectCB: expect { or n, but found \", error found in #10 byte of ...|ay_ids\":[\"gateway-ra|..., bigger context ...|{\"gateway_ids\":[\"gateway-rak-7268\"]}|..."}
As I could understand, the error is related to the quotes. Somehow the quotes get scaped (I think so because of the \" in the error message)
Reading through the forum, I was able to find this post and I tried the approach suggested by the poster, so I made the request like:
Also, I’d like to ask you about the proper usage of the “field_mask” field in order to issue the request, since it is not quite clear.
As far as I understand, it is not mandatory to be included in the body’s request, only the “gateway_ids” field is mandatory.
They are a list of fields that you want returning in the response - some you get regardless anyway, but if you need a particular field, you can specify it there.
Greetings @jssani,
Thanks for the quick reply by the way.
I’ve just tried what you suggested but I still get exactly the same behavior.
I’ve tried getting the gateways’ stats from two different accounts because I was suspecting that maybe I was requesting the info from a gateway which has been inactive and, for that reason, it might not have stats to consult, however, the following screenshot is the request for a bunch of gateways that I’m certain to be active and operating flawlessly.