About this task
The integration server token is used by the prebuilt skills to authenticate into the AIOps server during execution of the skills.
Procedure
-
Log in to the cluster.
oc login --token=<token> --server=<server>:643
- Open a new terminal and map the AIOps integration server to a local host https://localhost:4001.
oc port-forward -n wxa4z-aiops service/wxa4z-aiops-server 4001:4001
- Get the bearer token for the AIOps
integration server.
curl -k 'https://localhost:4001/ibm/bnz/v1/auth/login' -X POST -H 'Content-Type: application/json' -d '{ "name": "admin", "password": "bnz4You!"}'
The auth/login request provides the following response:
{"token":"eyJ..."}
.
- Copy the token from the
auth/login
request and define the token
variable.
Note: Save the token as you need it when you build your
AIOps Assistant. For more information, see
Building AIOps Assistants.