Consul ACL 规则规范 (HTTP API)

Consul ACL Rule specification (HTTP API)

我正在尝试通过 HTTP API 发送以下 JSON 来修改我刚刚创建的 ACL 令牌:

{
  "ID": "UUID HERE",
  "Name": "loadbalancer",
  "Type": "client",
  "Rules": "service {policy=read}"
}

但是,我的规则的这种语法被拒绝了。我还尝试以 JSON 格式发送信息,类似于 ACL 内部页面中记录的方式:

{
  "ID: "UUID HERE",
  "Name": "loadbalancer",
  "Type": "client",
  "Rules": 
  {
    "service":
    {
      "": { "policy": "read" }
    }
  }
}

这些都因格式不正确而被拒绝。这里的正确语法是什么?

{
      "ID: "UUID HERE", ==> missing double quote in "ID"
      "Name": "loadbalancer",
      "Type": "client",
      "Rules": 
      {
        "service":
        {
          "": { "policy": "read" }
        }
      }
    }