Skip to content

Commit d950b49

Browse files
authored
[DOCS] Backports info API changes (#31443)
1 parent 3cc26c0 commit d950b49

File tree

2 files changed

+17
-17
lines changed

2 files changed

+17
-17
lines changed

docs/reference/rest-api/index.asciidoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ directly to configure and access {xpack} features.
1818
--
1919

2020

21-
include::{xes-repo-dir}/rest-api/info.asciidoc[]
21+
include::info.asciidoc[]
2222
include::{xes-repo-dir}/rest-api/graph/explore.asciidoc[]
2323
include::{es-repo-dir}/licensing/index.asciidoc[]
2424
include::{xes-repo-dir}/rest-api/migration.asciidoc[]

x-pack/docs/en/rest-api/info.asciidoc docs/reference/rest-api/info.asciidoc

+16-16
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
[role="xpack"]
2+
[testenv="basic"]
23
[[info-api]]
34
== Info API
45

5-
The info API provides general information about the installed {xpack}.
6+
The info API provides general information about the installed {xpack} features.
67

78
[float]
89
=== Request
@@ -55,30 +56,29 @@ Example response:
5556
"date" : "2015-04-07T13:34:42Z"
5657
},
5758
"license" : {
58-
"uid" : "893361dc-9749-4997-93cb-802e3dofh7aa",
59-
"type" : "trial",
60-
"mode" : "trial",
61-
"status" : "active",
62-
"expiry_date_in_millis" : 1914278399999
59+
"uid" : "893361dc-9749-4997-93cb-xxx",
60+
"type" : "basic",
61+
"mode" : "basic",
62+
"status" : "active"
6363
},
6464
"features" : {
6565
"graph" : {
6666
"description" : "Graph Data Exploration for the Elastic Stack",
67-
"available" : true,
67+
"available" : false,
6868
"enabled" : true
6969
},
7070
"logstash" : {
7171
"description" : "Logstash management component for X-Pack",
72-
"available" : true,
72+
"available" : false,
7373
"enabled" : true
7474
},
7575
"ml" : {
7676
"description" : "Machine Learning for the Elastic Stack",
77-
"available" : true,
77+
"available" : false,
7878
"enabled" : true,
7979
"native_code_info" : {
80-
"version" : "6.0.0-alpha1-SNAPSHOT",
81-
"build_hash" : "d081461967d61a"
80+
"version" : "6.3.0",
81+
"build_hash" : "54b5cf147d946c"
8282
}
8383
},
8484
"monitoring" : {
@@ -93,12 +93,12 @@ Example response:
9393
},
9494
"security" : {
9595
"description" : "Security for the Elastic Stack",
96-
"available" : true,
96+
"available" : false,
9797
"enabled" : true
9898
},
9999
"watcher" : {
100100
"description" : "Alerting, Notification and Automation for the Elastic Stack",
101-
"available" : true,
101+
"available" : false,
102102
"enabled" : true
103103
}
104104
},
@@ -107,10 +107,10 @@ Example response:
107107
------------------------------------------------------------
108108
// TESTRESPONSE[s/"hash" : "2798b1a3ce779b3611bb53a0082d4d741e4d3168",/"hash" : "$body.build.hash",/]
109109
// TESTRESPONSE[s/"date" : "2015-04-07T13:34:42Z"/"date" : "$body.build.date"/]
110-
// TESTRESPONSE[s/"uid" : "893361dc-9749-4997-93cb-802e3dofh7aa",/"uid": "$body.license.uid",/]
110+
// TESTRESPONSE[s/"uid" : "893361dc-9749-4997-93cb-xxx",/"uid": "$body.license.uid",/]
111111
// TESTRESPONSE[s/"expiry_date_in_millis" : 1914278399999/"expiry_date_in_millis" : "$body.license.expiry_date_in_millis"/]
112-
// TESTRESPONSE[s/"version" : "6.0.0-alpha1-SNAPSHOT",/"version": "$body.features.ml.native_code_info.version",/]
113-
// TESTRESPONSE[s/"build_hash" : "d081461967d61a"/"build_hash": "$body.features.ml.native_code_info.build_hash"/]
112+
// TESTRESPONSE[s/"version" : "6.3.0",/"version": "$body.features.ml.native_code_info.version",/]
113+
// TESTRESPONSE[s/"build_hash" : "54b5cf147d946c"/"build_hash": "$body.features.ml.native_code_info.build_hash"/]
114114
// So much s/// but at least we test that the layout is close to matching....
115115

116116
The following example only returns the build and features information:

0 commit comments

Comments
 (0)