File tree Expand file tree Collapse file tree 4 files changed +29
-3
lines changed
docs/rest_apis/data_stream_apis Expand file tree Collapse file tree 4 files changed +29
-3
lines changed Original file line number Diff line number Diff line change @@ -919,7 +919,7 @@ npm run docs:dev
919919 - :heavy_check_mark : 获取数据流 [ :link : ] ( https://elasticsearch.bookhub.tech/rest_apis/data_stream_apis/get_data_stream )
920920 - :heavy_check_mark : 迁移数据流 [ :link : ] ( https://elasticsearch.bookhub.tech/rest_apis/data_stream_apis/migrate_to_data_stream )
921921 - :heavy_check_mark : 数据流统计 [ :link : ] ( https://elasticsearch.bookhub.tech/rest_apis/data_stream_apis/data_stream_stats )
922- - Promote data stream
922+ - : heavy_check_mark : 推广数据流 [ : link : ] ( https://elasticsearch.bookhub.tech/rest_apis/data_stream_apis/promote_data_stream )
923923 - :heavy_check_mark : 文档 API [ :link : ] ( https://elasticsearch.bookhub.tech/rest_apis/document_apis/ )
924924 - :heavy_check_mark : 读写 API [ :link : ] ( https://elasticsearch.bookhub.tech/rest_apis/document_apis/replication )
925925 - :heavy_check_mark : 索引 API [ :link : ] ( https://elasticsearch.bookhub.tech/rest_apis/document_apis/docs_index )
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ DELETE /_data_stream/my-data-stream
1212
1313## 前置条件
1414
15- - 如果 Elasticsearch 安全特性启用,你必须有 ` delete_index ` 或 ` manage ` 的[ 索引权限] ( /secure_the_elastic_statck/user_authorization/security_privileges#索引权限 ) :
15+ - 如果 Elasticsearch 安全特性启用,你必须有 ` delete_index ` 或 ` manage ` 的[ 索引权限] ( /secure_the_elastic_statck/user_authorization/security_privileges#索引权限 ) 。
1616
1717## 路径参数
1818
Original file line number Diff line number Diff line change 1+ # 推广数据流 API
2+
3+ 推广[ 数据流] ( /data_streams ) API 的目的是将 CCR 复制的数据流转化为常规数据流。
4+
5+ 通过 CCR 自动跟踪,远程群集的数据流可复制到本地群集。这些数据流无法在本地群集中滚动。只有当上游数据流滚动时,这些复制的数据流才会滚动。如果远程群集不再可用,本地群集中的数据流可升级为常规数据流,从而允许这些数据流在本地群集中滚动。
6+
7+ ``` bash
8+ POST /_data_stream/_promote/my-data-stream
9+ ```
10+
11+ ## 请求
12+
13+ ` POST /_data_stream/_promote/<data-stream> `
14+
15+ ## 前置条件
16+
17+ - 如果 Elasticsearch 安全特性启用,你必须有 ` manage_follow_index ` 的[ 集群权限] ( /secure_the_elastic_statck/user_authorization/security_privileges#集群权限 ) 。
18+
19+ ## 路径参数
20+
21+ - ` <data-stream> `
22+
23+ (必填,字符串) 要推广的数据流名称。
24+
25+ > [ 原文链接] ( https://www.elastic.co/guide/en/elasticsearch/reference/current/promote-data-stream-api.html )
Original file line number Diff line number Diff line change @@ -160,7 +160,8 @@ const sidebars = {
160160 'rest_apis/data_stream_apis/delete_data_stream' ,
161161 'rest_apis/data_stream_apis/get_data_stream' ,
162162 'rest_apis/data_stream_apis/migrate_to_data_stream' ,
163- 'rest_apis/data_stream_apis/data_stream_stats'
163+ 'rest_apis/data_stream_apis/data_stream_stats' ,
164+ 'rest_apis/data_stream_apis/promote_data_stream'
164165 ]
165166 } ,
166167 {
You can’t perform that action at this time.
0 commit comments