-
Notifications
You must be signed in to change notification settings - Fork 25k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updatable API keys - REST API spec and tests (#88270)
This PR adds REST API spec and YAML test files for the UpdateApiKey operation.
- Loading branch information
Showing
6 changed files
with
399 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
pr: 88270 | ||
summary: Updatable API keys - REST API spec and tests | ||
area: Security | ||
type: enhancement | ||
issues: [] |
38 changes: 38 additions & 0 deletions
38
rest-api-spec/src/main/resources/rest-api-spec/api/security.update_api_key.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{ | ||
"security.update_api_key": { | ||
"documentation": { | ||
"url": "https://www.elastic.co/guide/en/elasticsearch/reference/current/security-api-update-api-key.html", | ||
"description": "Updates attributes of an existing API key." | ||
}, | ||
"stability": "stable", | ||
"visibility": "public", | ||
"headers": { | ||
"accept": [ | ||
"application/json" | ||
], | ||
"content_type": [ | ||
"application/json" | ||
] | ||
}, | ||
"url": { | ||
"paths": [ | ||
{ | ||
"path": "/_security/api_key/{id}", | ||
"methods": [ | ||
"PUT" | ||
], | ||
"parts": { | ||
"id": { | ||
"type": "string", | ||
"description": "The ID of the API key to update" | ||
} | ||
} | ||
} | ||
] | ||
}, | ||
"body": { | ||
"description": "The API key request to update attributes of an API key.", | ||
"required": false | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[role="xpack"] | ||
[[security-api-update-api-key]] | ||
=== Update API key information API | ||
|
||
coming::[8.4.0] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -62,7 +62,7 @@ teardown: | |
|
||
- do: | ||
security.delete_role: | ||
name: "use_role" | ||
name: "user_role" | ||
ignore: 404 | ||
|
||
- do: | ||
|
Oops, something went wrong.