Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update helper text in the apictl tool for add env command #2341

Open
pubudu538 opened this issue Dec 21, 2023 · 0 comments
Open

Update helper text in the apictl tool for add env command #2341

pubudu538 opened this issue Dec 21, 2023 · 0 comments

Comments

@pubudu538
Copy link

Problem

Apictl shows the old token endpoint which is 8243/token and this should be corrected as 9443/oauth2/token.

apictl add envs
Add new environment and its related endpoints to the config file

Usage:
  apictl add [command]

Examples:
apictl add env production \
--apim  https://localhost:9443

apictl add env dev \
--mi  https://localhost:9164

apictl add env prod \
--apim  https://apim.com:9443 \
--mi https://localhost:9164

apictl add env test \
--registration https://idp.com:9443 \
--publisher https://apim.com:9443 \
--devportal  https://apps.com:9443 \
--admin  https://apim.com:9443 \
--token https://gw.com:8243/token \
--mi https://localhost:9164

apictl add env dev \
--apim https://apim.com:9443 \
--registration https://idp.com:9443 \
--token https://gw.com:8243/token

NOTE: The flag --environment (-e) is mandatory.
You can either provide only the flag --apim , or all the other 4 flags (--registration --publisher --devportal --admin) without providing --apim flag.
If you are omitting any of --registration --publisher --devportal --admin flags, you need to specify --apim flag with the API Manager endpoint. In both of the
cases --token flag is optional and use it to specify the gateway token endpoint. This will be used for "apictl get-keys" operation.
To add a micro integrator instance to an environment you can use the --mi flag.

Available Commands:
  env         Add Environment to Config file

Flags:
  -h, --help   help for add

Global Flags:
  -k, --insecure   Allow connections to SSL endpoints without certs
      --verbose    Enable verbose mode

Use "apictl add [command] --help" for more information about a command.

Solution

Update the helper texts and other relevant places.

Affected Component

APICTL

Version

4.2.0

Implementation

No response

Related Issues

No response

Suggested Labels

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants