0
我在Bluemix上创建了IBM Message Hub的新实例,并且可以使用Kafka Java客户端连接到它(从我的笔记本电脑)和列表主题。我不能做的是通过行政的REST API创建一个话题(换行符增加了清晰度):当我尝试在IBM Message Hub上创建主题时,为什么会收到403未授权
curl -H "Content-Type: application/json"
-H "X-Auth-Token: [value from 'password' field of credentials shown on Bluemix Service credentials]"
-d "{ \"name\": \"topic1\" }"
https://kafka-admin-prod01.messagehub.services.us-south.bluemix.net:443/admin/topics
...这会导致这样的:
{
"error_code":403,
"message":"Unauthorized"
}