Basic 认证

使用 REST API 必须携带 HTTP Basic 格式的认证(Authentication)信息。因此,需要使用 Dashboard 中来创建的 AppID 和 AppSecret 进行认证:

  1. # 例如:获取当前集群状态
  2. curl -v --basic -u \<appid>:\<appsecret> -k http://localhost:8080/api/v3/brokers