Skip to content

Commit 76da5bd

Browse files
Query and Get API Key Information endpoints support for profile uid (#2473)
* Ok * regen, code style --------- Co-authored-by: Laura <[email protected]>
1 parent bda8a6d commit 76da5bd

File tree

7 files changed

+195
-6
lines changed

7 files changed

+195
-6
lines changed

output/openapi/elasticsearch-serverless-openapi.json

+50
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/schema/schema.json

+101-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/schema/validation-errors.json

+6-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/typescript/types.ts

+5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

specification/security/_types/ApiKey.ts

+12
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,22 @@ export class ApiKey {
5050
* Realm name of the principal for which this API key was created.
5151
*/
5252
realm?: string
53+
/**
54+
* Realm type of the principal for which this API key was created
55+
* @availability stack since=8.14.0
56+
* @availability serverless
57+
*/
58+
realm_type?: string
5359
/**
5460
* Principal for which this API key was created
5561
*/
5662
username?: Username
63+
/**
64+
* The profile uid for the API key owner principal, if requested and if it exists
65+
* @availability stack since=8.14.0
66+
* @availability serverless
67+
*/
68+
profile_uid?: string
5769
/**
5870
* Metadata of the API key
5971
* @availability stack since=7.13.0

specification/security/get_api_key/SecurityGetApiKeyRequest.ts

+7
Original file line numberDiff line numberDiff line change
@@ -75,5 +75,12 @@ export interface Request extends RequestBase {
7575
* @availability serverless
7676
*/
7777
active_only?: boolean
78+
/**
79+
* Determines whether to also retrieve the profile uid, for the API key owner principal, if it exists.
80+
* @server_default false
81+
* @availability stack since=8.14.0
82+
* @availability serverless
83+
*/
84+
with_profile_uid?: boolean
7885
}
7986
}

specification/security/query_api_keys/QueryApiKeysRequest.ts

+14-1
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,22 @@ export interface Request extends RequestBase {
3737
* An API key's actual permission is the intersection of its assigned role descriptors and the owner user's role descriptors.
3838
* @availability stack since=8.5.0
3939
* @availability serverless
40-
4140
*/
4241
with_limited_by?: boolean
42+
/**
43+
* Determines whether to also retrieve the profile uid, for the API key owner principal, if it exists.
44+
* @server_default false
45+
* @availability stack since=8.14.0
46+
* @availability serverless
47+
*/
48+
with_profile_uid?: boolean
49+
/**
50+
* Determines whether aggregation names are prefixed by their respective types in the response.
51+
* @server_default false
52+
* @availability stack since=8.14.0
53+
* @availability serverless
54+
*/
55+
typed_keys?: boolean
4356
}
4457
body: {
4558
/**

0 commit comments

Comments
 (0)