访问控制 - REST API
Access Control - API
Passing User Credentials to the REST API
$ curl -u user:password http://localhost:8024/v1/public/context | jq
[
{
"changePending": false,
"leader": null,
"pendingSince": 0,
"metaData": {
"event.index-format": "JUMP_SKIP_INDEX",
"snapshot.index-format": "JUMP_SKIP_INDEX"
},
"roles": [
{
"role": "PRIMARY",
"node": "node-1"
},
{
"role": "PRIMARY",
"node": "node-2"
},
{
"role": "PRIMARY",
"node": "node-3"
}
],
"replicationGroup": "_admin",
"context": "_admin"
},
{
"changePending": false,
"leader": null,
"pendingSince": 0,
"metaData": {
"event.index-format": "JUMP_SKIP_INDEX",
"snapshot.index-format": "JUMP_SKIP_INDEX"
},
"roles": [
{
"role": "PRIMARY",
"node": "node-1"
},
{
"role": "PRIMARY",
"node": "node-2"
},
{
"role": "PRIMARY",
"node": "node-3"
}
],
"replicationGroup": "default",
"context": "default"
}
]Passing a Token to the REST and gRPC APIs
最后更新于