Skip to content

Commit fdd441c

Browse files
committed
Add an ipinfo example
1 parent 6b045b5 commit fdd441c

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

docs/reference/ingest/apis/put-ip-location-database.asciidoc

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ to download from Maxmind. The license key setting does not take effect until all
1313

1414
[source,console]
1515
----
16-
PUT _ingest/ip_location/database/my-database-id
16+
PUT _ingest/ip_location/database/my-database-1
1717
{
1818
"name": "GeoIP2-Domain",
1919
"maxmind": {
@@ -23,6 +23,18 @@ PUT _ingest/ip_location/database/my-database-id
2323
----
2424
// TEST[skip:we don't want to leak the enterprise-geoip-downloader task, which touching these APIs would cause. Therefore, skip this test.]
2525

26+
[source,console]
27+
----
28+
PUT _ingest/ip_location/database/my-database-2
29+
{
30+
"name": "standard_location",
31+
"ipinfo": {
32+
}
33+
}
34+
----
35+
// TEST[skip:we don't want to leak the enterprise-geoip-downloader task, which touching these APIs would cause. Therefore, skip this test.]
36+
37+
2638
[[put-ip-location-database-api-request]]
2739
==== {api-request-title}
2840

0 commit comments

Comments
 (0)