Skip to content

Commit 89a229f

Browse files
authored
[DOCS] Add missing doc_id values (#3632)
1 parent 041889a commit 89a229f

File tree

160 files changed

+1085
-489
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

160 files changed

+1085
-489
lines changed

output/openapi/elasticsearch-openapi.json

Lines changed: 44 additions & 43 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/openapi/elasticsearch-serverless-openapi.json

Lines changed: 34 additions & 33 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/schema/schema.json

Lines changed: 535 additions & 370 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

specification/_doc_ids/table.csv

Lines changed: 55 additions & 1 deletion
Large diffs are not rendered by default.

specification/_global/get_script/GetScriptRequest.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ import { Duration } from '@_types/Time'
2929
* @availability serverless stability=stable visibility=public
3030
* @cluster_privileges manage
3131
* @doc_tag script
32+
* @doc_id script-get
3233
*/
3334
export interface Request extends RequestBase {
3435
urls: [

specification/_global/health_report/Request.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ import { Duration } from '@_types/Time'
4343
* @rest_spec_name health_report
4444
* @availability stack since=8.7.0 stability=stable
4545
* @availability serverless stability=stable visibility=private
46+
* @doc_id health-api
4647
*/
4748
export interface Request extends RequestBase {
4849
urls: [

specification/_global/msearch/MultiSearchRequest.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ import { RequestItem } from './types'
4545
* @availability serverless stability=stable visibility=public
4646
* @index_privileges read
4747
* @doc_tag search
48+
* @doc_id search-multi-search
4849
*/
4950
export interface Request extends RequestBase {
5051
urls: [

specification/_global/ping/PingRequest.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ import { RequestBase } from '@_types/Base'
2626
* @availability stack stability=stable
2727
* @availability serverless stability=stable visibility=public
2828
* @doc_tag cluster
29+
* @doc_id cluster-ping
2930
*/
3031
export interface Request extends RequestBase {
3132
urls: [

specification/_global/rank_eval/RankEvalRequest.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ import { RankEvalMetric, RankEvalRequestItem } from './types'
3030
* @availability serverless stability=stable visibility=public
3131
* @index_privileges read
3232
* @doc_tag search
33+
* @doc_id search-rank-eval
3334
*/
3435
export interface Request extends RequestBase {
3536
urls: [

specification/cat/tasks/CatTasksRequest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import { Duration, TimeUnit } from '@_types/Time'
2828
* @rest_spec_name cat.tasks
2929
* @availability stack since=5.0.0 stability=experimental
3030
* @availability serverless stability=experimental visibility=private
31-
* @doc_id tasks
31+
* @doc_id cat-tasks
3232
* @cluster_privileges monitor
3333
*/
3434
export interface Request extends CatRequestBase {

specification/enrich/delete_policy/DeleteEnrichPolicyRequest.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ import { Duration } from '@_types/Time'
2727
* @rest_spec_name enrich.delete_policy
2828
* @availability stack since=7.5.0 stability=stable
2929
* @availability serverless stability=stable visibility=public
30+
* @doc_id delete-enrich-policy-api
3031
*/
3132
export interface Request extends RequestBase {
3233
urls: [

specification/enrich/get_policy/GetEnrichPolicyRequest.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ import { Duration } from '@_types/Time'
2727
* @rest_spec_name enrich.get_policy
2828
* @availability stack since=7.5.0 stability=stable
2929
* @availability serverless stability=stable visibility=public
30+
* @doc_id get-enrich-policy-api
3031
*/
3132
export interface Request extends RequestBase {
3233
urls: [

specification/enrich/stats/EnrichStatsRequest.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ import { Duration } from '@_types/Time'
2626
* @rest_spec_name enrich.stats
2727
* @availability stack since=7.5.0 stability=stable
2828
* @availability serverless stability=stable visibility=private
29+
* @doc_id enrich-stats-api
2930
*/
3031
export interface Request extends RequestBase {
3132
urls: [

specification/eql/delete/EqlDeleteRequest.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ import { Id } from '@_types/common'
2727
* @rest_spec_name eql.delete
2828
* @availability stack since=7.9.0 stability=stable
2929
* @availability serverless stability=stable visibility=public
30+
* @doc_id eql-async-search-delete
3031
*/
3132
export interface Request extends RequestBase {
3233
urls: [

specification/eql/search/EqlSearchRequest.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ import { ResultPosition } from './types'
3232
* @rest_spec_name eql.search
3333
* @availability stack since=7.9.0 stability=stable
3434
* @availability serverless stability=stable visibility=public
35+
* @doc_id eql-search-api
3536
* @ext_doc_id eql
3637
*/
3738
export interface Request extends RequestBase {

specification/features/get_features/GetFeaturesRequest.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ import { Duration } from '@_types/Time'
3333
* In order for a feature state to be listed in this API and recognized as a valid feature state by the create snapshot API, the plugin that defines that feature must be installed on the master node.
3434
* @rest_spec_name features.get_features
3535
* @availability stack since=7.12.0 stability=stable
36+
* @doc_id get-features-api
3637
* @ext_doc_id snapshot-create
3738
*/
3839
export interface Request extends RequestBase {

specification/features/reset_features/ResetFeaturesRequest.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ import { Duration } from '@_types/Time'
4141
* @rest_spec_name features.reset_features
4242
* @availability stack since=7.12.0 stability=experimental
4343
* @availability serverless stability=experimental visibility=private
44+
* @doc_id features-reset
4445
*/
4546
export interface Request extends RequestBase {
4647
urls: [

specification/fleet/global_checkpoints/GlobalCheckpointsRequest.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,13 @@ import { Checkpoint } from '../_types/Checkpoints'
2424

2525
/**
2626
* Get global checkpoints.
27+
*
2728
* Get the current global checkpoints for an index.
2829
* This API is designed for internal use by the Fleet server project.
2930
* @rest_spec_name fleet.global_checkpoints
3031
* @availability stack since=7.13.0 stability=stable
3132
* @availability serverless stability=stable visibility=private
33+
* @doc_id get-global-checkpoints
3234
*/
3335
export interface Request extends RequestBase {
3436
urls: [

specification/fleet/msearch/MultiSearchRequest.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ import { Checkpoint } from '../_types/Checkpoints'
3737
* @availability stack since=7.16.0 stability=experimental
3838
* @availability serverless stability=experimental visibility=private
3939
* @index_privileges read
40+
* @doc_id fleet-multi-search
4041
*/
4142
export interface Request extends RequestBase {
4243
urls: [

specification/fleet/search/SearchRequest.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ import { Checkpoint } from '../_types/Checkpoints'
5959
* @availability stack since=7.16.0 stability=experimental
6060
* @availability serverless stability=experimental visibility=private
6161
* @index_privileges read
62+
* @doc_id fleet-search
6263
*/
6364
export interface Request extends RequestBase {
6465
urls: [

specification/ilm/delete_lifecycle/DeleteLifecycleRequest.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ import { Duration } from '@_types/Time'
2727
* @rest_spec_name ilm.delete_lifecycle
2828
* @availability stack since=6.6.0 stability=stable
2929
* @cluster_privileges manage_ilm
30+
* @doc_id ilm-delete-lifecycle
3031
*/
3132
export interface Request extends RequestBase {
3233
urls: [

specification/ilm/explain_lifecycle/ExplainLifecycleRequest.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ import { Duration } from '@_types/Time'
3030
* @rest_spec_name ilm.explain_lifecycle
3131
* @availability stack since=6.6.0 stability=stable
3232
* @index_privileges view_index_metadata,manage_ilm
33+
* @doc_id ilm-explain-lifecycle
3334
*/
3435
export interface Request extends RequestBase {
3536
urls: [

specification/ilm/get_lifecycle/GetLifecycleRequest.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ import { Duration } from '@_types/Time'
2626
* @rest_spec_name ilm.get_lifecycle
2727
* @availability stack since=6.6.0 stability=stable
2828
* @cluster_privileges manage_ilm, read_ilm
29+
* @doc_id ilm-get-lifecycle
2930
*/
3031
export interface Request extends RequestBase {
3132
urls: [

specification/ilm/get_status/GetIlmStatusRequest.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,12 @@ import { RequestBase } from '@_types/Base'
2121

2222
/**
2323
* Get the ILM status.
24+
*
2425
* Get the current index lifecycle management status.
2526
* @rest_spec_name ilm.get_status
2627
* @availability stack since=6.6.0 stability=stable
2728
* @cluster_privileges read_ilm
29+
* @doc_id ilm-get-status
2830
*/
2931
export interface Request extends RequestBase {
3032
urls: [

specification/ilm/migrate_to_data_tiers/Request.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ import { RequestBase } from '@_types/Base'
3636
* Use the stop ILM and get ILM status APIs to wait until the reported operation mode is `STOPPED`.
3737
* @rest_spec_name ilm.migrate_to_data_tiers
3838
* @availability stack since=7.14.0 stability=stable
39+
* @doc_id ilm-migrate-to-data-tiers
3940
* @ext_doc_id migrate-index-allocation-filters
4041
*/
4142
export interface Request extends RequestBase {

specification/ilm/move_to_step/MoveToStepRequest.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ import { StepKey } from './types'
3939
* @rest_spec_name ilm.move_to_step
4040
* @availability stack since=6.6.0 stability=stable
4141
* @index_privileges manage_ilm
42+
* @doc_id ilm-move-to-step
4243
*/
4344
export interface Request extends RequestBase {
4445
urls: [

specification/ilm/put_lifecycle/PutLifecycleRequest.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ import { Duration } from '@_types/Time'
3131
* @availability stack since=6.6.0 stability=stable
3232
* @cluster_privileges manage_ilm
3333
* @index_privileges manage
34+
* @doc_id ilm-put-lifecycle
3435
* @ext_doc_id ilm-index-lifecycle
3536
*/
3637
export interface Request extends RequestBase {

specification/ilm/remove_policy/RemovePolicyRequest.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ import { IndexName } from '@_types/common'
2727
* @rest_spec_name ilm.remove_policy
2828
* @availability stack since=6.6.0 stability=stable
2929
* @index_privileges manage_ilm
30+
* @doc_id ilm-remove-policy
3031
*/
3132
export interface Request extends RequestBase {
3233
urls: [

specification/ilm/retry/RetryIlmRequest.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ import { IndexName } from '@_types/common'
2828
* @rest_spec_name ilm.retry
2929
* @availability stack since=6.6.0 stability=stable
3030
* @index_privileges manage_ilm
31+
* @doc_id ilm-retry-policy
3132
*/
3233
export interface Request extends RequestBase {
3334
urls: [

specification/ilm/start/StartIlmRequest.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ import { Duration } from '@_types/Time'
2828
* @rest_spec_name ilm.start
2929
* @availability stack since=6.6.0 stability=stable
3030
* @cluster_privileges manage_ilm
31+
* @doc_id ilm-start
3132
*/
3233
export interface Request extends RequestBase {
3334
urls: [

specification/ilm/stop/StopIlmRequest.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ import { Duration } from '@_types/Time'
3030
* @rest_spec_name ilm.stop
3131
* @availability stack since=6.6.0 stability=stable
3232
* @cluster_privileges manage_ilm
33+
* @doc_id ilm-stop
3334
*/
3435
export interface Request extends RequestBase {
3536
urls: [

specification/indices/add_block/IndicesAddBlockRequest.ts

Lines changed: 45 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,13 @@ import { Duration } from '@_types/Time'
2323

2424
/**
2525
* Add an index block.
26-
* Limits the operations allowed on an index by blocking specific operation types.
26+
*
27+
* Add an index block to an index.
28+
* Index blocks limit the operations allowed on an index by blocking specific operation types.
2729
* @rest_spec_name indices.add_block
2830
* @availability stack since=7.9.0 stability=stable
2931
* @availability serverless stability=stable visibility=public
32+
* @doc_id index-block-add
3033
*/
3134
export interface Request extends RequestBase {
3235
urls: [
@@ -36,21 +39,62 @@ export interface Request extends RequestBase {
3639
}
3740
]
3841
path_parts: {
42+
/**
43+
* A comma-separated list or wildcard expression of index names used to limit the request.
44+
* By default, you must explicitly name the indices you are adding blocks to.
45+
* To allow the adding of blocks to indices with `_all`, `*`, or other wildcard expressions, change the `action.destructive_requires_name` setting to `false`.
46+
* You can update this setting in the `elasticsearch.yml` file or by using the cluster update settings API.
47+
*/
3948
index: IndexName
49+
/**
50+
* The block type to add to the index.
51+
*/
4052
block: IndicesBlockOptions
4153
}
4254
query_parameters: {
55+
/**
56+
* If `false`, the request returns an error if any wildcard expression, index alias, or `_all` value targets only missing or closed indices.
57+
* This behavior applies even if the request targets other open indices.
58+
* For example, a request targeting `foo*,bar*` returns an error if an index starts with `foo` but no index starts with `bar`.
59+
* @server_default true
60+
*/
4361
allow_no_indices?: boolean // default: true
62+
/**
63+
* The type of index that wildcard patterns can match.
64+
* If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.
65+
* It supports comma-separated values, such as `open,hidden`.
66+
* @server_default open
67+
*/
4468
expand_wildcards?: ExpandWildcards // default: open
69+
/**
70+
* If `false`, the request returns an error if it targets a missing or closed index.
71+
* @server_default false
72+
*/
4573
ignore_unavailable?: boolean // default: false
74+
/**
75+
* The period to wait for the master node.
76+
* If the master node is not available before the timeout expires, the request fails and returns an error.
77+
* It can also be set to `-1` to indicate that the request should never timeout.
78+
* @server_default 30s
79+
*/
4680
master_timeout?: Duration // default: 30s
81+
/**
82+
* The period to wait for a response from all relevant nodes in the cluster after updating the cluster metadata.
83+
* If no response is received before the timeout expires, the cluster metadata update still applies but the response will indicate that it was not completely acknowledged.
84+
* It can also be set to `-1` to indicate that the request should never timeout.
85+
* @server_default 30s
86+
*/
4787
timeout?: Duration // default: 30s
4888
}
4989
}
5090

5191
export enum IndicesBlockOptions {
92+
/** Disable metadata changes, such as closing the index. */
5293
metadata,
94+
/** Disable read operations. */
5395
read,
96+
/** Disable write operations and metadata changes. */
5497
read_only,
98+
/** Disable write operations. However, metadata changes are still allowed. */
5599
write
56100
}
Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
# summary: ''
2-
description: 'A successful response for adding an index block to an index.'
2+
description: A successful response from `PUT /my-index-000001/_block/write`, which adds an index block to an index.'
33
# type: response
44
# response_code: 200
5-
value:
6-
"{\n \"acknowledged\" : true,\n \"shards_acknowledged\" : true,\n \"indices\"\
7-
\ : [ {\n \"name\" : \"my-index-000001\",\n \"blocked\" : true\n } ]\n}"
5+
value: |-
6+
{
7+
"acknowledged" : true,
8+
"shards_acknowledged" : true,
9+
"indices" : [ {
10+
"name" : "my-index-000001",
11+
"blocked" : true
12+
} ]
13+
}

specification/indices/clear_cache/IndicesClearCacheRequest.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ import { ExpandWildcards, Fields, Indices } from '@_types/common'
3232
* @availability stack stability=stable
3333
* @availability serverless stability=stable visibility=private
3434
* @index_privileges manage
35+
* @doc_id indices-clearcache
3536
*/
3637
export interface Request extends RequestBase {
3738
urls: [

specification/indices/clone/IndicesCloneRequest.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ import { Duration } from '@_types/Time'
7373
* @rest_spec_name indices.clone
7474
* @availability stack since=7.4.0 stability=stable
7575
* @index_privileges manage
76+
* @doc_id indices-clone-index
7677
*/
7778
export interface Request extends RequestBase {
7879
urls: [

specification/indices/create_data_stream/IndicesCreateDataStreamRequest.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,14 @@ import { Duration } from '@_types/Time'
2323

2424
/**
2525
* Create a data stream.
26-
* Creates a data stream.
26+
*
2727
* You must have a matching index template with data stream enabled.
2828
* @rest_spec_name indices.create_data_stream
2929
* @availability stack since=7.9.0 stability=stable
3030
* @availability serverless stability=stable visibility=public
3131
* @index_privileges create_index
3232
* @doc_tag data stream
33+
* @doc_id indices-create-data-stream
3334
*/
3435
export interface Request extends RequestBase {
3536
urls: [

specification/indices/data_streams_stats/IndicesDataStreamsStatsRequest.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,14 @@ import { ExpandWildcards, IndexName } from '@_types/common'
2222

2323
/**
2424
* Get data stream stats.
25-
* Retrieves statistics for one or more data streams.
25+
*
26+
* Get statistics for one or more data streams.
2627
* @rest_spec_name indices.data_streams_stats
2728
* @availability stack since=7.9.0 stability=stable
2829
* @availability serverless stability=stable visibility=private
2930
* @index_privileges monitor
3031
* @doc_tag data stream
32+
* @doc_id data-stream-stats-api
3133
*/
3234
export interface Request extends RequestBase {
3335
urls: [

specification/indices/delete_data_lifecycle/IndicesDeleteDataLifecycleRequest.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ import { Duration } from '@_types/Time'
2727
* @rest_spec_name indices.delete_data_lifecycle
2828
* @availability stack since=8.11.0 stability=stable
2929
* @availability serverless stability=stable visibility=private
30+
* @doc_id data-stream-delete-lifecycle
3031
*/
3132
export interface Request extends RequestBase {
3233
urls: [

specification/indices/delete_data_stream/IndicesDeleteDataStreamRequest.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ import { Duration } from '@_types/Time'
2929
* @availability serverless stability=stable visibility=public
3030
* @index_privileges delete_index
3131
* @doc_tag data stream
32+
* @doc_id data-stream-delete
3233
*/
3334
export interface Request extends RequestBase {
3435
urls: [

0 commit comments

Comments
 (0)