Skip to content

Users

All operations require authentication.

7 operationsv2/publicCloud/project
Agent setup

List usersBeta

GET
/v2/publicCloud/project/{projectId}/managedDatabase/valkey/{serviceId}/user

Returns the users of the service with their access rules and status. Passwords are not returned.

Path parameters

projectId
required
string

Project ID

serviceId
required
stringuuid

Service ID

Headers

X-Pagination-Cursor
string

Pagination cursor

X-Pagination-Size
integer

Pagination size

Response

200User[]successful operation
admin
read-only
boolean

Whether this is the service administrator, the user created automatically at provisioning time, which cannot be deleted

categories
read-only
string[]

Command category rules granted to the user, each written as a category name prefixed with +@ when it is allowed or -@ when it is denied, for example +@read, -@dangerous

channels
read-only
string[]

Glob patterns of the Pub/Sub channels the user can subscribe to and publish on, for example news:*, chat:room1. * means every channel, and an empty list means the user cannot use any channel.

checksum
read-only
string

Hash of the resource used for concurrency control

commands
read-only
string[]

Individual command rules refining the permissions granted through the categories, each written as a Valkey command name prefixed with + when it is allowed or - when it is denied, for example +get, -flushall

createdAt
read-only
stringdate-time

Date at which the user was created

credentialsLastUpdatedAt
read-only
stringdate-time

Date at which the user credentials were last updated

id
read-only
stringuuid

Unique identifier of the user

keys
read-only
string[]

Glob patterns of the keys the user can access, for example cache:*, session:user:42. * means every key, and an empty list means the user cannot access any key.

password
read-only
stringpassword

Password of the user. Returned only on creation or password reset.

status
read-only
UserStatusEnum

Current readiness status of the user

ValuesCREATINGDELETINGERRORREADYUPDATING
username
read-only
string

Login name of the user

Example uses projectId = string, serviceId = 00000000-0000-0000-0000-000000000000

$ curl https://api.eu.ovhcloud.com/v2/publicCloud/project/{projectId}/managedDatabase/valkey/{serviceId}/user \
  -H "authorization: Bearer $OVH_TOKEN"
ResponseExample
[ { "admin": true, "categories": [ "string" ], "channels": [ "string" ], "checksum": "string", "commands": [ "string" ], "createdAt": "2024-01-01T12:00:00Z", "credentialsLastUpdatedAt": "2024-01-01T12:00:00Z", "id": "00000000-0000-0000-0000-000000000000", "keys": [ "string" ], "password": "string", "status": "CREATING", "username": "string" }]

Get a userBeta

GET
/v2/publicCloud/project/{projectId}/managedDatabase/valkey/{serviceId}/user/{userId}

Returns the user, its access rules and its status. The password is not returned.

Path parameters

projectId
required
string

Project ID

serviceId
required
stringuuid

Service ID

userId
required
stringuuid

User ID

Response

200Usersuccessful operation
admin
read-only
boolean

Whether this is the service administrator, the user created automatically at provisioning time, which cannot be deleted

categories
read-only
string[]

Command category rules granted to the user, each written as a category name prefixed with +@ when it is allowed or -@ when it is denied, for example +@read, -@dangerous

channels
read-only
string[]

Glob patterns of the Pub/Sub channels the user can subscribe to and publish on, for example news:*, chat:room1. * means every channel, and an empty list means the user cannot use any channel.

checksum
read-only
string

Hash of the resource used for concurrency control

commands
read-only
string[]

Individual command rules refining the permissions granted through the categories, each written as a Valkey command name prefixed with + when it is allowed or - when it is denied, for example +get, -flushall

createdAt
read-only
stringdate-time

Date at which the user was created

credentialsLastUpdatedAt
read-only
stringdate-time

Date at which the user credentials were last updated

id
read-only
stringuuid

Unique identifier of the user

keys
read-only
string[]

Glob patterns of the keys the user can access, for example cache:*, session:user:42. * means every key, and an empty list means the user cannot access any key.

password
read-only
stringpassword

Password of the user. Returned only on creation or password reset.

status
read-only
UserStatusEnum

Current readiness status of the user

ValuesCREATINGDELETINGERRORREADYUPDATING
username
read-only
string

Login name of the user

Example uses projectId = string, serviceId = 00000000-0000-0000-0000-000000000000, userId = 00000000-0000-0000-0000-000000000000

$ curl https://api.eu.ovhcloud.com/v2/publicCloud/project/{projectId}/managedDatabase/valkey/{serviceId}/user/{userId} \
  -H "authorization: Bearer $OVH_TOKEN"
ResponseExample
{ "admin": true, "categories": [ "string" ], "channels": [ "string" ], "checksum": "string", "commands": [ "string" ], "createdAt": "2024-01-01T12:00:00Z", "credentialsLastUpdatedAt": "2024-01-01T12:00:00Z", "id": "00000000-0000-0000-0000-000000000000", "keys": [ "string" ], "password": "string", "status": "CREATING", "username": "string"}

Create a userBeta

POST
/v2/publicCloud/project/{projectId}/managedDatabase/valkey/{serviceId}/user

Creates a user with access rules on command categories, commands, keys and Pub/Sub channels. An empty keys or channels list grants no access. The generated password is returned only on creation and on password reset.

Path parameters

projectId
required
string

Project ID

serviceId
required
stringuuid

Service ID

Request body (required)

categories
string[]

Command category rules granted to the user, each written as a category name prefixed with +@ to allow it or -@ to deny it, for example +@read, -@dangerous. Available categories are all, admin, bitmap, blocking, connection, dangerous, fast, geo, hash, hyperloglog, keyspace, list, pubsub, read, scripting, set, slow, sortedset, stream, string, transaction and write.

channels
string[]

Glob patterns of the Pub/Sub channels the user can subscribe to and publish on, for example news:*, chat:room1. Use * to allow every channel. When the list is empty, the user cannot use any channel.

commands
string[]

Individual command rules that refine the permissions granted through the categories, each written as a Valkey command name in lowercase prefixed with + to allow it or - to deny it, for example +get, -flushall

keys
string[]

Glob patterns of the keys the user can access, for example cache:*, session:user:42. Use * to allow every key. When the list is empty, the user cannot access any key.

name
required
string

Login name of the new user, unique on the service. It must be 1 to 32 characters long, start with a letter, a digit or an underscore, and contain only letters, digits, underscores, dots and hyphens.

Response

200Usersuccessful operation
admin
read-only
boolean

Whether this is the service administrator, the user created automatically at provisioning time, which cannot be deleted

categories
read-only
string[]

Command category rules granted to the user, each written as a category name prefixed with +@ when it is allowed or -@ when it is denied, for example +@read, -@dangerous

channels
read-only
string[]

Glob patterns of the Pub/Sub channels the user can subscribe to and publish on, for example news:*, chat:room1. * means every channel, and an empty list means the user cannot use any channel.

checksum
read-only
string

Hash of the resource used for concurrency control

commands
read-only
string[]

Individual command rules refining the permissions granted through the categories, each written as a Valkey command name prefixed with + when it is allowed or - when it is denied, for example +get, -flushall

createdAt
read-only
stringdate-time

Date at which the user was created

credentialsLastUpdatedAt
read-only
stringdate-time

Date at which the user credentials were last updated

id
read-only
stringuuid

Unique identifier of the user

keys
read-only
string[]

Glob patterns of the keys the user can access, for example cache:*, session:user:42. * means every key, and an empty list means the user cannot access any key.

password
read-only
stringpassword

Password of the user. Returned only on creation or password reset.

status
read-only
UserStatusEnum

Current readiness status of the user

ValuesCREATINGDELETINGERRORREADYUPDATING
username
read-only
string

Login name of the user

Example uses projectId = string, serviceId = 00000000-0000-0000-0000-000000000000

$ curl https://api.eu.ovhcloud.com/v2/publicCloud/project/{projectId}/managedDatabase/valkey/{serviceId}/user \
  -H "authorization: Bearer $OVH_TOKEN"
ResponseExample
{ "admin": true, "categories": [ "string" ], "channels": [ "string" ], "checksum": "string", "commands": [ "string" ], "createdAt": "2024-01-01T12:00:00Z", "credentialsLastUpdatedAt": "2024-01-01T12:00:00Z", "id": "00000000-0000-0000-0000-000000000000", "keys": [ "string" ], "password": "string", "status": "CREATING", "username": "string"}

Delete a userBeta

DELETE
/v2/publicCloud/project/{projectId}/managedDatabase/valkey/{serviceId}/user/{userId}

Permanently deletes the user.

Path parameters

projectId
required
string

Project ID

serviceId
required
stringuuid

Service ID

userId
required
stringuuid

User ID

Response

200Usersuccessful operation
admin
read-only
boolean

Whether this is the service administrator, the user created automatically at provisioning time, which cannot be deleted

categories
read-only
string[]

Command category rules granted to the user, each written as a category name prefixed with +@ when it is allowed or -@ when it is denied, for example +@read, -@dangerous

channels
read-only
string[]

Glob patterns of the Pub/Sub channels the user can subscribe to and publish on, for example news:*, chat:room1. * means every channel, and an empty list means the user cannot use any channel.

checksum
read-only
string

Hash of the resource used for concurrency control

commands
read-only
string[]

Individual command rules refining the permissions granted through the categories, each written as a Valkey command name prefixed with + when it is allowed or - when it is denied, for example +get, -flushall

createdAt
read-only
stringdate-time

Date at which the user was created

credentialsLastUpdatedAt
read-only
stringdate-time

Date at which the user credentials were last updated

id
read-only
stringuuid

Unique identifier of the user

keys
read-only
string[]

Glob patterns of the keys the user can access, for example cache:*, session:user:42. * means every key, and an empty list means the user cannot access any key.

password
read-only
stringpassword

Password of the user. Returned only on creation or password reset.

status
read-only
UserStatusEnum

Current readiness status of the user

ValuesCREATINGDELETINGERRORREADYUPDATING
username
read-only
string

Login name of the user

Example uses projectId = string, serviceId = 00000000-0000-0000-0000-000000000000, userId = 00000000-0000-0000-0000-000000000000

$ curl https://api.eu.ovhcloud.com/v2/publicCloud/project/{projectId}/managedDatabase/valkey/{serviceId}/user/{userId} \
  -H "authorization: Bearer $OVH_TOKEN"
ResponseExample
{ "admin": true, "categories": [ "string" ], "channels": [ "string" ], "checksum": "string", "commands": [ "string" ], "createdAt": "2024-01-01T12:00:00Z", "credentialsLastUpdatedAt": "2024-01-01T12:00:00Z", "id": "00000000-0000-0000-0000-000000000000", "keys": [ "string" ], "password": "string", "status": "CREATING", "username": "string"}

Update a userBeta

PUT
/v2/publicCloud/project/{projectId}/managedDatabase/valkey/{serviceId}/user/{userId}

Updates the access rules of the user. Each list replaces the current one, and an empty keys or channels list revokes all access. To reset the password, use the resetPassword route of the user or a partial update with credentialsLastUpdatedAt.

Path parameters

projectId
required
string

Project ID

serviceId
required
stringuuid

Service ID

userId
required
stringuuid

User ID

Request body (required)

categories
required
string[]

Command category rules granted to the user, each written as a category name prefixed with +@ to allow it or -@ to deny it, for example +@read, -@dangerous. Available categories are all, admin, bitmap, blocking, connection, dangerous, fast, geo, hash, hyperloglog, keyspace, list, pubsub, read, scripting, set, slow, sortedset, stream, string, transaction and write. The list replaces the one currently set on the user.

channels
required
string[]

Glob patterns of the Pub/Sub channels the user can subscribe to and publish on, for example news:*, chat:room1. Use * to allow every channel. The list replaces the one currently set on the user, and an empty list revokes access to every channel.

commands
required
string[]

Individual command rules that refine the permissions granted through the categories, each written as a Valkey command name in lowercase prefixed with + to allow it or - to deny it, for example +get, -flushall. The list replaces the one currently set on the user.

keys
required
string[]

Glob patterns of the keys the user can access, for example cache:*, session:user:42. Use * to allow every key. The list replaces the one currently set on the user, and an empty list revokes access to every key.

Response

200Usersuccessful operation
admin
read-only
boolean

Whether this is the service administrator, the user created automatically at provisioning time, which cannot be deleted

categories
read-only
string[]

Command category rules granted to the user, each written as a category name prefixed with +@ when it is allowed or -@ when it is denied, for example +@read, -@dangerous

channels
read-only
string[]

Glob patterns of the Pub/Sub channels the user can subscribe to and publish on, for example news:*, chat:room1. * means every channel, and an empty list means the user cannot use any channel.

checksum
read-only
string

Hash of the resource used for concurrency control

commands
read-only
string[]

Individual command rules refining the permissions granted through the categories, each written as a Valkey command name prefixed with + when it is allowed or - when it is denied, for example +get, -flushall

createdAt
read-only
stringdate-time

Date at which the user was created

credentialsLastUpdatedAt
read-only
stringdate-time

Date at which the user credentials were last updated

id
read-only
stringuuid

Unique identifier of the user

keys
read-only
string[]

Glob patterns of the keys the user can access, for example cache:*, session:user:42. * means every key, and an empty list means the user cannot access any key.

password
read-only
stringpassword

Password of the user. Returned only on creation or password reset.

status
read-only
UserStatusEnum

Current readiness status of the user

ValuesCREATINGDELETINGERRORREADYUPDATING
username
read-only
string

Login name of the user

Example uses projectId = string, serviceId = 00000000-0000-0000-0000-000000000000, userId = 00000000-0000-0000-0000-000000000000

$ curl https://api.eu.ovhcloud.com/v2/publicCloud/project/{projectId}/managedDatabase/valkey/{serviceId}/user/{userId} \
  -H "authorization: Bearer $OVH_TOKEN"
ResponseExample
{ "admin": true, "categories": [ "string" ], "channels": [ "string" ], "checksum": "string", "commands": [ "string" ], "createdAt": "2024-01-01T12:00:00Z", "credentialsLastUpdatedAt": "2024-01-01T12:00:00Z", "id": "00000000-0000-0000-0000-000000000000", "keys": [ "string" ], "password": "string", "status": "CREATING", "username": "string"}

Partially update a userBeta

PATCH
/v2/publicCloud/project/{projectId}/managedDatabase/valkey/{serviceId}/user/{userId}

Partially updates the access rules of the user. Each list replaces the current one, and an empty keys or channels list revokes all access. Setting credentialsLastUpdatedAt resets the password and returns the new one.

Path parameters

projectId
required
string

Project ID

serviceId
required
stringuuid

Service ID

userId
required
stringuuid

User ID

Request body (required)

categories
string[]

Command category rules granted to the user, each written as a category name prefixed with +@ to allow it or -@ to deny it, for example +@read, -@dangerous. Available categories are all, admin, bitmap, blocking, connection, dangerous, fast, geo, hash, hyperloglog, keyspace, list, pubsub, read, scripting, set, slow, sortedset, stream, string, transaction and write. The list replaces the one currently set on the user.

channels
string[]

Glob patterns of the Pub/Sub channels the user can subscribe to and publish on, for example news:*, chat:room1. Use * to allow every channel. The list replaces the one currently set on the user, and an empty list revokes access to every channel.

commands
string[]

Individual command rules that refine the permissions granted through the categories, each written as a Valkey command name in lowercase prefixed with + to allow it or - to deny it, for example +get, -flushall. The list replaces the one currently set on the user.

credentialsLastUpdatedAt
stringdate-time

Date at which the user credentials were last updated. Setting this field triggers a credential reset and returns the new password.

keys
string[]

Glob patterns of the keys the user can access, for example cache:*, session:user:42. Use * to allow every key. The list replaces the one currently set on the user, and an empty list revokes access to every key.

Response

200Usersuccessful operation
admin
read-only
boolean

Whether this is the service administrator, the user created automatically at provisioning time, which cannot be deleted

categories
read-only
string[]

Command category rules granted to the user, each written as a category name prefixed with +@ when it is allowed or -@ when it is denied, for example +@read, -@dangerous

channels
read-only
string[]

Glob patterns of the Pub/Sub channels the user can subscribe to and publish on, for example news:*, chat:room1. * means every channel, and an empty list means the user cannot use any channel.

checksum
read-only
string

Hash of the resource used for concurrency control

commands
read-only
string[]

Individual command rules refining the permissions granted through the categories, each written as a Valkey command name prefixed with + when it is allowed or - when it is denied, for example +get, -flushall

createdAt
read-only
stringdate-time

Date at which the user was created

credentialsLastUpdatedAt
read-only
stringdate-time

Date at which the user credentials were last updated

id
read-only
stringuuid

Unique identifier of the user

keys
read-only
string[]

Glob patterns of the keys the user can access, for example cache:*, session:user:42. * means every key, and an empty list means the user cannot access any key.

password
read-only
stringpassword

Password of the user. Returned only on creation or password reset.

status
read-only
UserStatusEnum

Current readiness status of the user

ValuesCREATINGDELETINGERRORREADYUPDATING
username
read-only
string

Login name of the user

Example uses projectId = string, serviceId = 00000000-0000-0000-0000-000000000000, userId = 00000000-0000-0000-0000-000000000000

$ curl https://api.eu.ovhcloud.com/v2/publicCloud/project/{projectId}/managedDatabase/valkey/{serviceId}/user/{userId} \
  -H "authorization: Bearer $OVH_TOKEN"
ResponseExample
{ "admin": true, "categories": [ "string" ], "channels": [ "string" ], "checksum": "string", "commands": [ "string" ], "createdAt": "2024-01-01T12:00:00Z", "credentialsLastUpdatedAt": "2024-01-01T12:00:00Z", "id": "00000000-0000-0000-0000-000000000000", "keys": [ "string" ], "password": "string", "status": "CREATING", "username": "string"}

Reset the password of a userBeta

POST
/v2/publicCloud/project/{projectId}/managedDatabase/valkey/{serviceId}/user/{userId}/resetPassword

Generates a new password for the user and returns it in the response. Reading the user never returns it. The previous password stops working once the new one is applied, and credentialsLastUpdatedAt becomes the date of this reset. This is the same reset as a partial update of the user that sets credentialsLastUpdatedAt.

Path parameters

projectId
required
string

Project ID

serviceId
required
stringuuid

Service ID

userId
required
stringuuid

User ID

Response

200Usersuccessful operation
admin
read-only
boolean

Whether this is the service administrator, the user created automatically at provisioning time, which cannot be deleted

categories
read-only
string[]

Command category rules granted to the user, each written as a category name prefixed with +@ when it is allowed or -@ when it is denied, for example +@read, -@dangerous

channels
read-only
string[]

Glob patterns of the Pub/Sub channels the user can subscribe to and publish on, for example news:*, chat:room1. * means every channel, and an empty list means the user cannot use any channel.

checksum
read-only
string

Hash of the resource used for concurrency control

commands
read-only
string[]

Individual command rules refining the permissions granted through the categories, each written as a Valkey command name prefixed with + when it is allowed or - when it is denied, for example +get, -flushall

createdAt
read-only
stringdate-time

Date at which the user was created

credentialsLastUpdatedAt
read-only
stringdate-time

Date at which the user credentials were last updated

id
read-only
stringuuid

Unique identifier of the user

keys
read-only
string[]

Glob patterns of the keys the user can access, for example cache:*, session:user:42. * means every key, and an empty list means the user cannot access any key.

password
read-only
stringpassword

Password of the user. Returned only on creation or password reset.

status
read-only
UserStatusEnum

Current readiness status of the user

ValuesCREATINGDELETINGERRORREADYUPDATING
username
read-only
string

Login name of the user

Example uses projectId = string, serviceId = 00000000-0000-0000-0000-000000000000, userId = 00000000-0000-0000-0000-000000000000

$ curl https://api.eu.ovhcloud.com/v2/publicCloud/project/{projectId}/managedDatabase/valkey/{serviceId}/user/{userId}/resetPassword \
  -H "authorization: Bearer $OVH_TOKEN"
ResponseExample
{ "admin": true, "categories": [ "string" ], "channels": [ "string" ], "checksum": "string", "commands": [ "string" ], "createdAt": "2024-01-01T12:00:00Z", "credentialsLastUpdatedAt": "2024-01-01T12:00:00Z", "id": "00000000-0000-0000-0000-000000000000", "keys": [ "string" ], "password": "string", "status": "CREATING", "username": "string"}