database
Modify user access control
Return access controls settings for the OpenSearch Managed Database service {uuid}.
patch/1.3/database/{uuid}/users/{username}/access-control
Request
- Base URL: https://api.upcloud.com
- URL: https://api.upcloud.com/1.3/database/{uuid}/users/{username}/access-control
- Auth: HTTP bearer
Path parameters
uuidstring uuid required
The unique identifier for the integration.
Example:01234567-89ab-cdef-0123-456789abcdef
Service UUID
usernamestring required
The title of an entity.
Example:my-service
Username identifier
Request body
Example request
{
"redis_access_control": {
"categories": [
"@admin",
"@read"
],
"channels": [
"news",
"alerts"
],
"commands": [
"GET",
"SET"
],
"keys": [
"user:*",
"session:*"
]
},
"pg_access_control": {
"allow_replication": true
},
"opensearch_access_control": {
"rules": [
{
"index": "logs-*",
"permission": "read"
}
]
},
"valkey_access_control": {
"categories": [
"@write"
],
"channels": [
"updates"
],
"commands": [
"DEL"
],
"keys": [
"cache:*"
]
}
}Response
OK
Example response
{
"username": "admin",
"password": "my-password",
"authentication": "caching_sha2_password",
"type": "admin"
}Changes
No recorded changes to this operation across all 1 revision of this API.