From 2b39b21f0fdfb8e4eec3325e433987631f4ebd9d Mon Sep 17 00:00:00 2001 From: Denislav Denov Date: Fri, 8 May 2020 11:13:41 +0300 Subject: [PATCH 1/2] Update license.mdx Hello team, I noticed that the reset part of the consul license command was missing in the documentation so I added it and created this PR. --- website/pages/docs/commands/license.mdx | 40 +++++++++++++++++++++++-- 1 file changed, 38 insertions(+), 2 deletions(-) diff --git a/website/pages/docs/commands/license.mdx b/website/pages/docs/commands/license.mdx index 10bb6c3259..4cb903bee9 100644 --- a/website/pages/docs/commands/license.mdx +++ b/website/pages/docs/commands/license.mdx @@ -42,12 +42,17 @@ Usage: consul license [options] [args] Retrieve the current license: $ consul license get + + Reset the current license: + + $ consul license reset For more examples, ask for subcommand help or view the documentation. Subcommands: - get Get the current license - put Puts a new license in the datacenter + get Get the current license + put Puts a new license in the datacenter + reset Resets the license in the datacenter ``` ## put @@ -109,3 +114,34 @@ Licensed Features: Redundancy Zone Advanced Network Federation ``` + +## reset + +Resets a license in the datacenter to the builtin on if it is still valid. +If the builtin license is invalid, the current one stays active. + +Usage: `consul license reset [options]` + +#### API Options + +@include 'http_api_options_client.mdx' + +@include 'http_api_options_server.mdx' + +The output looks like this: + +```text +License is valid +License ID: 2afbf681-0d1a-0649-cb6c-333ec9f0989c +Customer ID: 0259271d-8ffc-e85e-0830-c0822c1f5f2b +Expires At: 2019-05-22 03:59:59.999 +0000 UTC +Datacenter: * +Package: premium +Licensed Features: + Automated Backups + Automated Upgrades + Enhanced Read Scalability + Network Segments + Redundancy Zone + Advanced Network Federation +``` From 6cb782708f0f4eb7f109de9ce540d70ac3b83683 Mon Sep 17 00:00:00 2001 From: Denislav Denov Date: Fri, 8 May 2020 15:51:52 +0300 Subject: [PATCH 2/2] Update website/pages/docs/commands/license.mdx Co-authored-by: danielehc <40759828+danielehc@users.noreply.github.com> --- website/pages/docs/commands/license.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/pages/docs/commands/license.mdx b/website/pages/docs/commands/license.mdx index 4cb903bee9..a47b5095c5 100644 --- a/website/pages/docs/commands/license.mdx +++ b/website/pages/docs/commands/license.mdx @@ -117,7 +117,7 @@ Licensed Features: ## reset -Resets a license in the datacenter to the builtin on if it is still valid. +Resets license for the datacenter to the one builtin in Consul binary, if it is still valid. If the builtin license is invalid, the current one stays active. Usage: `consul license reset [options]`