Skip to content

Commit 889bac9

Browse files
committed
Add examples
1 parent 5231acf commit 889bac9

11 files changed

+83
-8
lines changed

docs/overlays/elasticsearch-openapi-overlays.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -392,6 +392,24 @@ actions:
392392
examples:
393393
indicesLegacyPutTemplateRequestExample1:
394394
$ref: "../../specification/indices/put_template/indicesPutTemplateRequestExample1.yaml"
395+
- target: "$.paths['/_security/api_key/_bulk_update']['post']"
396+
description: "Add examples for bulk update API keys operation"
397+
update:
398+
requestBody:
399+
content:
400+
application/json:
401+
examples:
402+
bulkUpdateApiKeysRequestExample1:
403+
$ref: "../../specification/security/bulk_update_api_keys/SecurityBulkUpdateApiKeysRequestExample1.yaml"
404+
bulkUpdateApiKeysRequestExample2:
405+
$ref: "../../specification/security/bulk_update_api_keys/SecurityBulkUpdateApiKeysRequestExample2.yaml"
406+
responses:
407+
200:
408+
content:
409+
application/json:
410+
examples:
411+
bulkUpdateApiKeysResponseExample1:
412+
$ref: "../../specification/security/bulk_update_api_keys/SecurityBulkUpdateApiKeysResponseExample1.yaml"
395413
- target: "$.paths['/_security/delegate_pki']['post']"
396414
description: "Add examples for delegate PKI operation"
397415
update:

output/openapi/elasticsearch-openapi.json

Lines changed: 4 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

output/schema/schema.json

Lines changed: 13 additions & 2 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.
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# summary:
2+
description: Assign new role descriptors and metadata and update the expiration time for two API keys.
3+
# type": "response",
4+
# response_code": 200,
5+
value:
6+
ids:
7+
- VuaCfGcBCdbkQm-e5aOx
8+
- H3_AhoIBA9hmeQJdg7ij
9+
role_descriptors:
10+
role-a:
11+
indices:
12+
- names:
13+
- '*'
14+
privileges:
15+
- write
16+
metadata:
17+
environment:
18+
level: 2
19+
trusted: true
20+
tags:
21+
- production
22+
expiration: 30d
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# summary:
2+
description: Remove the previously assigned permissions for two API keys, making them inherit the owner user's full permissions.
3+
# type": "response",
4+
# response_code": 200,
5+
value:
6+
ids:
7+
- VuaCfGcBCdbkQm-e5aOx
8+
- H3_AhoIBA9hmeQJdg7ij
9+
role_descriptors: {}

specification/security/bulk_update_api_keys/SecurityBulkUpdateApiKeysResponse.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,12 @@
1717
* under the License.
1818
*/
1919

20+
import { BulkError } from '@security/_types/Bulk'
2021
import { integer } from '@_types/Numeric'
2122

2223
export class Response {
2324
body: {
25+
errors?: BulkError
2426
noops: Array<integer>
2527
updated: Array<string>
2628
}
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# summary:
2+
description: A successful response from updating two API keys.
3+
# type": "response",
4+
# response_code": 200,
5+
value:
6+
updated:
7+
- VuaCfGcBCdbkQm-e5aOx
8+
- H3_AhoIBA9hmeQJdg7ij
9+
noops: []

specification/security/delegate_pki/SecurityDelegatePkiRequest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export interface Request extends RequestBase {
4141
* The X509Certificate chain, which is represented as an ordered string array.
4242
* Each string in the array is a base64-encoded (Section 4 of RFC4648 - not base64url-encoded) of the certificate's DER encoding.
4343
*
44-
* The first element is the target certificate that contains the subject distinguished name that is requesting access.
44+
* The first element is the target certificate that contains the subject distinguished name that is requesting access.
4545
* This may be followed by additional certificates; each subsequent certificate is used to certify the previous one.
4646
*/
4747
x509_certificate_chain: string[]
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# summary:
1+
# summary:
22
description: Delegate a one element certificate chain.
33
# type": "response",
44
# response_code": 200,
5-
value: "{\n\"x509_certificate_chain\": [\"MIIDeDCCAmCgAwIBAgIUBzj/nGGKxP2iXawsSquHmQjCJmMwDQYJKoZIhvcNAQELBQAwUzErMCkGA1UEAxMiRWxhc3RpY3NlYXJjaCBUZXN0IEludGVybWVkaWF0ZSBDQTEWMBQGA1UECxMNRWxhc3RpY3NlYXJjaDEMMAoGA1UEChMDb3JnMB4XDTIzMDcxODE5MjkwNloXDTQzMDcxMzE5MjkwNlowSjEiMCAGA1UEAxMZRWxhc3RpY3NlYXJjaCBUZXN0IENsaWVudDEWMBQGA1UECxMNRWxhc3RpY3NlYXJjaDEMMAoGA1UEChMDb3JnMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAllHL4pQkkfwAm/oLkxYYO+r950DEy1bjH+4viCHzNADLCTWO+lOZJVlNx7QEzJE3QGMdif9CCBBxQFMapA7oUFCLq84fPSQQu5AnvvbltVD9nwVtCs+9ZGDjMKsz98RhSLMFIkxdxi6HkQ3Lfa4ZSI4lvba4oo+T/GveazBDS+NgmKyq00EOXt3tWi1G9vEVItommzXWfv0agJWzVnLMldwkPqsw0W7zrpyT7FZS4iLbQADGceOW8fiauOGMkscu9zAnDR/SbWl/chYioQOdw6ndFLn1YIFPd37xL0WsdsldTpn0vH3YfzgLMffT/3P6YlwBegWzsx6FnM/93Ecb4wIDAQABo00wSzAJBgNVHRMEAjAAMB0GA1UdDgQWBBQKNRwjW+Ad/FN1Rpoqme/5+jrFWzAfBgNVHSMEGDAWgBRcya0c0x/PaI7MbmJVIylWgLqXNjANBgkqhkiG9w0BAQsFAAOCAQEACZ3PF7Uqu47lplXHP6YlzYL2jL0D28hpj5lGtdha4Muw1m/BjDb0Pu8l0NQ1z3AP6AVcvjNDkQq6Y5jeSz0bwQlealQpYfo7EMXjOidrft1GbqOMFmTBLpLA9SvwYGobSTXWTkJz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AAOCAQEACZ3PF7Uqu47lplXHP6YlzYL2jL0D28hpj5lGtdha4Muw1m/BjDb0Pu8l0NQ1z3AP6AVcvjNDkQq6Y5jeSz0bwQlealQpYfo7EMXjOidrft1GbqOMFmTBLpLA9SvwYGobSTXWTkJzonqVaTcf80HpMgM2uEhodwTcvz6v1WEfeT/HMjmdIsq4ImrOL9RNrcZG6nWfw0HR3JNOgrbfyEztEI471jHznZ336OEcyX7gQuvHE8tOv5+oD1d7s3Xg1yuFp+Ynh+FfOi3hPCuaHA+7F6fLmzMDLVUBAllugst1C3U+L/paD7tqIa4ka+KNPCbSfwazmJrt4XNiivPR4hwH5g==\"]\n}"

specification/security/delegate_pki/SecurityDelegatePkiResponseExample1.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# summary:
1+
# summary:
22
description: A successful response from delegating a one element certificate chain.
33
# type": "response",
44
# response_code": 200,
@@ -23,4 +23,4 @@ value:
2323
lookup_realm:
2424
name: pki1
2525
type: pki
26-
authentication_type: realm
26+
authentication_type: realm

0 commit comments

Comments
 (0)