File tree Expand file tree Collapse file tree 3 files changed +46
-2
lines changed
docs/rest_apis/data_stream_apis Expand file tree Collapse file tree 3 files changed +46
-2
lines changed Original file line number Diff line number Diff line change @@ -899,7 +899,7 @@ npm run docs:dev
899899 - Resume auto-follow pattern
900900 - :heavy_check_mark : 数据流 API [ :link : ] ( https://elasticsearch.bookhub.tech/rest_apis/data_stream_apis/ )
901901 - :heavy_check_mark : 创建数据流 [ :link : ] ( https://elasticsearch.bookhub.tech/rest_apis/data_stream_apis/create_data_stream )
902- - Delete data stream
902+ - : heavy_check_mark : 删除数据流 [ : link : ] ( https://elasticsearch.bookhub.tech/rest_apis/data_stream_apis/delete_data_stream )
903903 - Get data stream
904904 - Migrate to data stream
905905 - Data stream stats
Original file line number Diff line number Diff line change 1+ # 删除数据流 API
2+
3+ 删除一个或多个[ 数据流] ( /data_streams ) 及其支持索引。参阅[ 删除数据流] ( /data_streams/set_up_a_data_stream#删除数据流 ) 。
4+
5+ ``` bash
6+ DELETE /_data_stream/my-data-stream
7+ ```
8+
9+ ## 请求
10+
11+ ` DELETE /_data_stream/<data-stream> `
12+
13+ ## 前置条件
14+
15+ - 如果 Elasticsearch 安全特性启用,你必须有 ` delete_index ` 或 ` manage ` 的[ 索引权限] ( /secure_the_elastic_statck/user_authorization/security_privileges#索引权限 ) :
16+
17+ ## 路径参数
18+
19+ - ` <data-stream> `
20+
21+ (必需,字符串)要删除的数据流的逗号分隔列表。支持通配符 (` * ` ) 表达式。
22+
23+ ## 查询参数
24+
25+ - ` expand_wildcards `
26+
27+ (可选,字符串)通配符模式可以匹配的数据流类型。支持逗号分隔值,例如 ` open,hidden ` 。有效值为:
28+
29+ - ` all ` ,` hidden `
30+
31+ 匹配任何数据流或索引,包括[隐藏的](/rest_apis/api_conventions/multi_target_syntax#隐藏数据流和索引)。
32+
33+ - ` open ` ,` closed `
34+
35+ 匹配任何非隐藏的数据流。无法关闭 Data Streams。
36+
37+ - ` none `
38+
39+ 不接受通配符模式。
40+
41+ 默认为 ` open ` 。
42+
43+ > [ 原文链接] ( https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-delete-data-stream.html#delete-data-stream-api-prereqs )
Original file line number Diff line number Diff line change @@ -156,7 +156,8 @@ const sidebars = {
156156 label : '数据流 API' ,
157157 link : { type : 'doc' , id : "rest_apis/data_stream_apis/data_stream_apis" } ,
158158 items : [
159- 'rest_apis/data_stream_apis/create_data_stream'
159+ 'rest_apis/data_stream_apis/create_data_stream' ,
160+ 'rest_apis/data_stream_apis/delete_data_stream' ,
160161 ]
161162 } ,
162163 {
You can’t perform that action at this time.
0 commit comments