| 123456789101112131415161718192021222324252627282930313233343536373839404142 | --:api: get-datafeed:request: GetDatafeedRequest:response: GetDatafeedResponse--[role="xpack"][id="{upid}-{api}"]=== Get datafeeds APIRetrieves configuration information about {ml} datafeeds in the cluster.It accepts a +{request}+ object and responds with a +{response}+ object.[id="{upid}-{api}-request"]==== Get datafeeds requestA +{request}+ object gets can have any number of `datafeedId` entries. However,they all must be non-null. An empty list is the same as requesting for alldatafeeds.["source","java",subs="attributes,callouts,macros"]--------------------------------------------------include-tagged::{doc-tests-file}[{api}-request]--------------------------------------------------<1> Constructing a new request referencing existing `datafeedIds`. It cancontain wildcards.<2> Whether to ignore if a wildcard expression matches no datafeeds. (This includes `_all` string or when no datafeeds have been specified).<3> Optional boolean value for requesting the datafeed in a format that canthen be put into another cluster. Certain fields that can only be set whenthe datafeed is created are removed.[id="{upid}-{api}-response"]==== Get datafeeds response["source","java",subs="attributes,callouts,macros"]--------------------------------------------------include-tagged::{doc-tests-file}[{api}-response]--------------------------------------------------<1> The count of retrieved datafeeds.<2> The retrieved datafeeds.include::../execution.asciidoc[]
 |