Create a DBaaS OpenSearch ACL configuration
Path parameters
-
Service name
Minimum length is
0
, maximum length is63
.
Body Required
-
acls array[object]
List of OpenSearch ACLs
-
acl-enabled boolean
Enable OpenSearch ACLs. When disabled authenticated service users have unrestricted access.
-
extended-acl-enabled boolean
Enable to enforce index rules in a limited fashion for requests that use the _mget, _msearch, and _bulk APIs
PUT /dbaas-opensearch/{name}/acl-config
curl \
-X PUT https://api-ch-gva-2.exoscale.com/v2/dbaas-opensearch/{name}/acl-config \
-H "Content-Type: application/json" \
-d '{"acls":[{"rules":[{"index":"string","permission":"admin"}],"username":"string"}],"acl-enabled":true,"extended-acl-enabled":true}'
Request examples
{
"acls": [
{
"rules": [
{
"index": "string",
"permission": "admin"
}
],
"username": "string"
}
],
"acl-enabled": true,
"extended-acl-enabled": true
}
Response examples (200)
{
"id": "string",
"reason": "incorrect",
"reference": {
"id": "string",
"link": "string",
"command": "string"
},
"message": "string",
"state": "failure"
}