You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Transform] add new exclude_generated flag to GET transform (#63093)
This adds a new flag `exclude_generated` for GET transform API.
This flag is useful for when a transform needs to be cloned within a cluster or exported/imported between clusters.
It removes certain fields that are not able to be set via the PUT api (e.g. version, create_time).
relates #63055
Copy file name to clipboardExpand all lines: x-pack/plugin/src/test/resources/rest-api-spec/api/data_frame_transform_deprecated.get_transform.json
+6
Original file line number
Diff line number
Diff line change
@@ -50,6 +50,12 @@
50
50
"type":"boolean",
51
51
"required":false,
52
52
"description":"Whether to ignore if a wildcard expression matches no transforms. (This includes `_all` string or when no transforms have been specified)"
53
+
},
54
+
"exclude_generated": {
55
+
"required": false,
56
+
"type": "boolean",
57
+
"default": false,
58
+
"description": "Omits generated fields. Allows transform configurations to be easily copied between clusters and within the same cluster"
Copy file name to clipboardExpand all lines: x-pack/plugin/src/test/resources/rest-api-spec/api/transform.get_transform.json
+6
Original file line number
Diff line number
Diff line change
@@ -42,6 +42,12 @@
42
42
"type":"boolean",
43
43
"required":false,
44
44
"description":"Whether to ignore if a wildcard expression matches no transforms. (This includes `_all` string or when no transforms have been specified)"
45
+
},
46
+
"exclude_generated": {
47
+
"required": false,
48
+
"type": "boolean",
49
+
"default": false,
50
+
"description": "Omits fields that are illegal to set on transform PUT"
Copy file name to clipboardExpand all lines: x-pack/plugin/transform/qa/single-node-tests/src/javaRestTest/java/org/elasticsearch/xpack/transform/integration/TransformPivotRestIT.java
Copy file name to clipboardExpand all lines: x-pack/plugin/transform/src/main/java/org/elasticsearch/xpack/transform/rest/action/RestGetTransformAction.java
Copy file name to clipboardExpand all lines: x-pack/plugin/transform/src/main/java/org/elasticsearch/xpack/transform/rest/action/compat/RestGetTransformActionDeprecated.java
0 commit comments