mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-04-24 23:27:25 -04:00
63 lines
1.6 KiB
Text
63 lines
1.6 KiB
Text
[role="xpack"]
|
|
[testenv="basic"]
|
|
[[schedule-now-transform]]
|
|
= Schedule Now {transform} API
|
|
|
|
[subs="attributes"]
|
|
++++
|
|
<titleabbrev>Shedule Now {transform}</titleabbrev>
|
|
++++
|
|
|
|
Schedules now a {transform}.
|
|
|
|
[[schedule-now-transform-request]]
|
|
== {api-request-title}
|
|
|
|
`POST _transform/<transform_id>/_schedule_now`
|
|
|
|
[[schedule-now-transform-prereqs]]
|
|
== {api-prereq-title}
|
|
|
|
* Requires the `manage_transform` cluster privilege. This privilege is included
|
|
in the `transform_admin` built-in role.
|
|
|
|
[schedule-now-transform-desc]]
|
|
== {api-description-title}
|
|
|
|
If you _schedule_now a {transform}, it will process the new data instantly,
|
|
without waiting for the configured `frequency` interval.
|
|
After _schedule_now API is called, the transform will be processed again at
|
|
`now + frequency` unless _schedule_now API is called again in the meantime.
|
|
|
|
[[schedule-now-transform-path-parms]]
|
|
== {api-path-parms-title}
|
|
|
|
`<transform_id>`::
|
|
(Required, string)
|
|
include::{es-repo-dir}/rest-api/common-parms.asciidoc[tag=transform-id]
|
|
|
|
[[schedule-now-transform-query-parms]]
|
|
== {api-query-parms-title}
|
|
|
|
`timeout`::
|
|
(Optional, time)
|
|
Period to wait for a response. If no response is received before the timeout
|
|
expires, the request fails and returns an error. Defaults to `30s`.
|
|
|
|
[[schedule-now-transform-examples]]
|
|
== {api-examples-title}
|
|
|
|
[source,console]
|
|
--------------------------------------------------
|
|
POST _transform/ecommerce_transform/_schedule_now
|
|
--------------------------------------------------
|
|
// TEST[skip:setup kibana sample data]
|
|
|
|
When the {transform} is scheduled now, you receive the following results:
|
|
|
|
[source,console-result]
|
|
----
|
|
{
|
|
"acknowledged" : true
|
|
}
|
|
----
|