-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add examples to licensing APIs (#3420)
Co-authored-by: István Zoltán Szabó <[email protected]> (cherry picked from commit e153632)
- Loading branch information
Showing
11 changed files
with
135 additions
and
7 deletions.
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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,11 @@ | ||
# summary: licensing/get-license.asciidoc:61 | ||
description: A successful response from `GET /_license`. | ||
# type: response | ||
# response_code: '' | ||
value: | ||
"{\n \"license\" : {\n \"status\" : \"active\",\n \"uid\" : \"cbff45e7-c553-41f7-ae4f-9205eabd80xx\"\ | ||
,\n \"type\" : \"trial\",\n \"issue_date\" : \"2018-10-20T22:05:12.332Z\"\ | ||
,\n \"issue_date_in_millis\" : 1540073112332,\n \"expiry_date\" : \"2018-11-19T22:05:12.332Z\"\ | ||
,\n \"expiry_date_in_millis\" : 1542665112332,\n \"max_nodes\" : 1000,\n \ | ||
\ \"max_resource_units\" : null,\n \"issued_to\" : \"test\",\n \"issuer\"\ | ||
\ : \"elasticsearch\",\n \"start_date_in_millis\" : -1\n }\n}" |
6 changes: 6 additions & 0 deletions
6
specification/license/get_basic_status/GetBasicLicenseStatusResponseExample1.yaml
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,6 @@ | ||
# summary: licensing/get-basic-status.asciidoc:42 | ||
description: A successful response from `GET /_license/basic_status`. | ||
# type: response | ||
# response_code: 200 | ||
value: | ||
eligible_to_start_basic: true |
6 changes: 6 additions & 0 deletions
6
specification/license/get_trial_status/GetTrialLicenseStatusResponseExample1.yaml
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,6 @@ | ||
# summary: licensing/get-trial-status.asciidoc:47 | ||
description: A successful response from `GET /_license/trial_status`. | ||
# type: response | ||
# response_code: 200 | ||
value: | ||
eligible_to_start_trial: true |
11 changes: 11 additions & 0 deletions
11
specification/license/post/PostLicenseRequestExample1.yaml
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,11 @@ | ||
# summary: licensing/update-license.asciidoc:63 | ||
# method_request: PUT _license | ||
description: > | ||
Run `PUT _license` to update to a basic license. NOTE: These values are invalid; you must substitute the appropriate contents from your license file. | ||
# type: request | ||
value: | ||
"{\n \"licenses\": [\n {\n \"uid\":\"893361dc-9749-4997-93cb-802e3d7fa4xx\"\ | ||
,\n \"type\":\"basic\",\n \"issue_date_in_millis\":1411948800000,\n \ | ||
\ \"expiry_date_in_millis\":1914278399999,\n \"max_nodes\":1,\n \"\ | ||
issued_to\":\"issuedTo\",\n \"issuer\":\"issuer\",\n \"signature\":\"\ | ||
xx\"\n }\n ]\n}" |
15 changes: 15 additions & 0 deletions
15
specification/license/post/PostLicenseResponseExample1.yaml
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,15 @@ | ||
# summary: licensing/get-trial-status.asciidoc:47 | ||
description: If you update to a basic license and you previously had a license with more features, you receive this type of response. You must re-submit the API request and set the `acknowledge` parameter to `true`. | ||
# type: response | ||
# response_code: 200 | ||
value: | ||
acknowledged: false | ||
license_status: valid | ||
acknowledge: | ||
message: '"""This license update requires acknowledgement. To acknowledge the license, please read the following messages and update the license again, this time with the "acknowledge=true" parameter:"""' | ||
watcher: | ||
- Watcher will be disabled | ||
logstash: | ||
- Logstash will no longer poll for centrally-managed pipelines | ||
security: | ||
- The following X-Pack security functionality will be disabled ... |
7 changes: 7 additions & 0 deletions
7
specification/license/post_start_basic/StartBasicLicenseResponseExample1.yaml
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,7 @@ | ||
# summary: | ||
description: A successful response from `POST /_license/start_basic?acknowledge=true`. If you currently have a license with more features than a basic license and you start a basic license, you must pass the acknowledge parameter. | ||
# type: response | ||
# response_code: 200 | ||
value: | ||
basic_was_started: true | ||
acknowledged: true |
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
7 changes: 7 additions & 0 deletions
7
specification/license/post_start_trial/StartTrialLicenseResponseExample1.yaml
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,7 @@ | ||
# summary: | ||
description: A successful response from `POST /_license/start_trial?acknowledge=true`. | ||
# type: response | ||
# response_code: 200 | ||
value: | ||
trial_was_started: true | ||
acknowledged: true |