OpenSearch/docs/java-rest/high-level/transform/get_transform.asciidoc

50 lines
1.6 KiB
Plaintext
Raw Normal View History

2019-03-27 08:40:39 -04:00
--
:api: get-transform
:request: GetTransformRequest
:response: GetTransformResponse
2019-03-27 08:40:39 -04:00
--
[role="xpack"]
2019-03-27 08:40:39 -04:00
[id="{upid}-{api}"]
=== Get {transform} API
2019-03-27 08:40:39 -04:00
Retrieves configuration information about one or more {transforms}.
2019-03-27 08:40:39 -04:00
The API accepts a +{request}+ object and returns a +{response}+.
[id="{upid}-{api}-request"]
==== Get {transform} request
2019-03-27 08:40:39 -04:00
A +{request}+ requires either a {transform} ID, a comma separated list
of ids or the special wildcard `_all` to get all {transforms}.
2019-03-27 08:40:39 -04:00
["source","java",subs="attributes,callouts,macros"]
--------------------------------------------------
include-tagged::{doc-tests-file}[{api}-request]
--------------------------------------------------
<1> Constructing a new GET request referencing an existing {transform}
2019-03-27 08:40:39 -04:00
==== Optional arguments
2019-03-27 08:40:39 -04:00
The following arguments are optional.
["source","java",subs="attributes,callouts,macros"]
--------------------------------------------------
include-tagged::{doc-tests-file}[{api}-request-options]
--------------------------------------------------
<1> The page parameters `from` and `size`. `from` specifies the number of
{transforms} to skip. `size` specifies the maximum number of
{transforms} to get. Defaults to `0` and `100` respectively.
<2> Whether to ignore if a wildcard expression matches no {transforms}.
2019-03-27 08:40:39 -04:00
include::../execution.asciidoc[]
[id="{upid}-{api}-response"]
==== Response
The returned +{response}+ contains the requested {transforms}.
2019-03-27 08:40:39 -04:00
["source","java",subs="attributes,callouts,macros"]
--------------------------------------------------
include-tagged::{doc-tests-file}[{api}-response]
--------------------------------------------------