Dear list, I have the impression that querying probes by ID returns unexpected results. An example is: https://atlas.ripe.net/api/v1/probe/?id=1 <https://atlas.ripe.net/api/v1/probe/?id=1> As a result, I get the entire probe list: "meta": { "total_count": 16973, "use_iso_time": false, "next": "/api/v1/probe/?id=1&limit=100&offset=100", "limit": 100, "offset": 0, "previous": null }, And ID 1 is an valid ID, which corresponds to the first entry of results: "id": 1, "type": "Probe", "is_public": false, "first_connected": "2010-10-29T15:53:03Z", "last_connected": "2016-02-03T10:02:28.407276Z", "is_anchor": false, "address_v4": null, "address_v6": null, "asn_v4": 3265, "asn_v6": 3265, "country_code": "NL", "prefix_v4": "212.238.0.0/16", "prefix_v6": "2001:980::/29", Regards, wenqin
On Wed, Feb 03, 2016 at 11:07:57AM +0100, Wenqin SHAO <wenqin.shao@telecom-paristech.fr> wrote a message of 98 lines which said:
An example is: https://atlas.ripe.net/api/v1/probe/?id=1
I use the URL <https://atlas.ripe.net/api/v1/probe/1/> and it seems to work.
Indeed! What if I’d like to select a list of probes, how should I compose the query in this fashion? Many thanks. Wenqin
On 03 Feb 2016, at 11:11, Stephane Bortzmeyer <bortzmeyer@nic.fr> wrote:
On Wed, Feb 03, 2016 at 11:07:57AM +0100, Wenqin SHAO <wenqin.shao@telecom-paristech.fr> wrote a message of 98 lines which said:
An example is: https://atlas.ripe.net/api/v1/probe/?id=1
I use the URL <https://atlas.ripe.net/api/v1/probe/1/> and it seems to work.
Wenqin, You could user the ?id__in= query-parameter in you query, like: https://atlas.ripe.net/api/v1/probe/?id__in=1,11,66 <https://atlas.ripe.net/api/v1/probe/?id__in=1,11,66> You are right BTW that ?id= is a documented feature, that is now working as advertised (although also completely useless). greetings, Jasper den Hertog Software Engineer RIPE NCC
On 03 Feb 2016, at 11:34, Wenqin SHAO <wenqin.shao@telecom-paristech.fr> wrote:
Indeed! What if I’d like to select a list of probes, how should I compose the query in this fashion? Many thanks.
Wenqin
On 03 Feb 2016, at 11:11, Stephane Bortzmeyer <bortzmeyer@nic.fr> wrote:
On Wed, Feb 03, 2016 at 11:07:57AM +0100, Wenqin SHAO <wenqin.shao@telecom-paristech.fr> wrote a message of 98 lines which said:
An example is: https://atlas.ripe.net/api/v1/probe/?id=1
I use the URL <https://atlas.ripe.net/api/v1/probe/1/> and it seems to work.
Jasper, Thank you a lot for your quick response as usual. Regards, wenqin
On 03 Feb 2016, at 11:35, Jasper den Hertog <jdenhertog@ripe.net> wrote:
Wenqin,
You could user the ?id__in= query-parameter in you query, like:
https://atlas.ripe.net/api/v1/probe/?id__in=1,11,66 <https://atlas.ripe.net/api/v1/probe/?id__in=1,11,66>
You are right BTW that ?id= is a documented feature, that is now working as advertised (although also completely useless).
greetings,
Jasper den Hertog Software Engineer RIPE NCC
On 03 Feb 2016, at 11:34, Wenqin SHAO <wenqin.shao@telecom-paristech.fr <mailto:wenqin.shao@telecom-paristech.fr>> wrote:
Indeed! What if I’d like to select a list of probes, how should I compose the query in this fashion? Many thanks.
Wenqin
On 03 Feb 2016, at 11:11, Stephane Bortzmeyer <bortzmeyer@nic.fr <mailto:bortzmeyer@nic.fr>> wrote:
On Wed, Feb 03, 2016 at 11:07:57AM +0100, Wenqin SHAO <wenqin.shao@telecom-paristech.fr <mailto:wenqin.shao@telecom-paristech.fr>> wrote a message of 98 lines which said:
An example is: https://atlas.ripe.net/api/v1/probe/?id=1 <https://atlas.ripe.net/api/v1/probe/?id=1>
I use the URL <https://atlas.ripe.net/api/v1/probe/1/ <https://atlas.ripe.net/api/v1/probe/1/>> and it seems to work.
participants (3)
-
Jasper den Hertog
-
Stephane Bortzmeyer
-
Wenqin SHAO