Skip to content

Commit 9c7125c

Browse files
Add api_key param to remote reindex (#5425)
* Add `api_key` param to remote reindex This reflects the change made in elastic/elasticsearch#135949. * Update specification/_global/reindex/types.ts Co-authored-by: Quentin Pradet <[email protected]> * Also code-font the `Authorization` header name * make contrib --------- Co-authored-by: Quentin Pradet <[email protected]>
1 parent 07640c8 commit 9c7125c

File tree

5 files changed

+46
-9
lines changed

5 files changed

+46
-9
lines changed

output/openapi/elasticsearch-openapi.json

Lines changed: 7 additions & 2 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: 7 additions & 2 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: 21 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/typescript/types.ts

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

specification/_global/reindex/types.ts

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,13 +125,21 @@ export class RemoteSource {
125125
*/
126126
host: Host
127127
/**
128-
* The username to use for authentication with the remote host.
128+
* The username to use for authentication with the remote host (required when using basic auth).
129129
*/
130130
username?: Username
131131
/**
132-
* The password to use for authentication with the remote host.
132+
* The password to use for authentication with the remote host (required when using basic auth).
133133
*/
134134
password?: Password
135+
/**
136+
* The API key to use for authentication with the remote host (as an alternative to basic auth when the remote cluster is in Elastic Cloud).
137+
* (It is not permitted to set this and also to set an `Authorization` header via `headers`.)
138+
*
139+
* @availability stack since=9.3.0
140+
* @availability serverless
141+
*/
142+
api_key?: string
135143
/**
136144
* The remote socket read timeout.
137145
* @server_default 30s

0 commit comments

Comments
 (0)