Skip to content

Commit

Permalink
Query and Get API Key Information endpoints support for profile uid (#…
Browse files Browse the repository at this point in the history
…2473)

* Ok

* regen, code style

---------

Co-authored-by: Laura <[email protected]>
  • Loading branch information
albertzaharovits and l-trotta authored Apr 4, 2024
1 parent bda8a6d commit 76da5bd
Show file tree
Hide file tree
Showing 7 changed files with 195 additions and 6 deletions.
50 changes: 50 additions & 0 deletions output/openapi/elasticsearch-serverless-openapi.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

104 changes: 101 additions & 3 deletions output/schema/schema.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 6 additions & 2 deletions output/schema/validation-errors.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions output/typescript/types.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions specification/security/_types/ApiKey.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,22 @@ export class ApiKey {
* Realm name of the principal for which this API key was created.
*/
realm?: string
/**
* Realm type of the principal for which this API key was created
* @availability stack since=8.14.0
* @availability serverless
*/
realm_type?: string
/**
* Principal for which this API key was created
*/
username?: Username
/**
* The profile uid for the API key owner principal, if requested and if it exists
* @availability stack since=8.14.0
* @availability serverless
*/
profile_uid?: string
/**
* Metadata of the API key
* @availability stack since=7.13.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,5 +75,12 @@ export interface Request extends RequestBase {
* @availability serverless
*/
active_only?: boolean
/**
* Determines whether to also retrieve the profile uid, for the API key owner principal, if it exists.
* @server_default false
* @availability stack since=8.14.0
* @availability serverless
*/
with_profile_uid?: boolean
}
}
15 changes: 14 additions & 1 deletion specification/security/query_api_keys/QueryApiKeysRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,22 @@ export interface Request extends RequestBase {
* An API key's actual permission is the intersection of its assigned role descriptors and the owner user's role descriptors.
* @availability stack since=8.5.0
* @availability serverless
*/
with_limited_by?: boolean
/**
* Determines whether to also retrieve the profile uid, for the API key owner principal, if it exists.
* @server_default false
* @availability stack since=8.14.0
* @availability serverless
*/
with_profile_uid?: boolean
/**
* Determines whether aggregation names are prefixed by their respective types in the response.
* @server_default false
* @availability stack since=8.14.0
* @availability serverless
*/
typed_keys?: boolean
}
body: {
/**
Expand Down

0 comments on commit 76da5bd

Please sign in to comment.