curl -u 用户名:密码 http://localhost:9000/api/system/health
curl -u admin:admin123! http://localhost:9000/api/system/health
? ~/ curl -u admin:admin123! http://localhost:9000/api/system/health
{"health":"GREEN","causes":[]}
? ~/
? ~/
上述的调用方式也可以改成请求头的方式
curl --location 'http://localhost:9000/api/system/health' \
--header 'Authorization: Basic base64(用户名:密码)'
? ~/ curl --location 'http://localhost:9000/api/system/health' \
--header 'Authorization: Basic YWRtaW46YWRtaW4xMjMh'
{"health":"GREEN","causes":[]}
? ~/
? ~/
curl -u token:密码 http://localhost:9000/api/system/health
curl -u squ_f3e6a41f36625d930122a262c94b114646c1bbc3: http://localhost:9000/api/system/health
? ~/
? ~/ curl -u squ_f3e6a41f36625d930122a262c94b114646c1bbc3: http://localhost:9000/api/system/health
{"health":"GREEN","causes":[]}
? ~/
? ~/
上述的调用方式也可以改成请求头的方式
curl --location 'http://localhost:9000/api/system/health' \
--header 'Authorization: Basic base64(token:密码)'
? ~/ curl --location 'http://localhost:9000/api/system/health' \
--header 'Authorization: Basic c3F1X2YzZTZhNDFmMzY2MjVkOTMwMTIyYTI2MmM5NGIxMTQ2NDZjMWJiYzM6'
{"health":"GREEN","causes":[]}
? ~/
? ~/
Global analysis tokens
好像调用不了接口,User Token
类型的可以