Memstore User Methods

These methods allow you to manage Memstore users.

This functionality is not available through the OpenStack Object Storage API.

memstore.user.create()

Create a new user in a Memstore instance.

Parameters:
  • name (String) – Name of the service. Service names are 1-64 characters A-Z, a-z, 0-9, -, . and _. Ensure this value has at most 64 characters.
  • username (String) – Name of the user. Username can only contain numbers, letters, dots, dashes and underscores, and can’t start with a dot. Ensure this value has at most 50 characters.
  • password (String) – User password.
  • enabled (Boolean) – If the user is enabled or not after being created.
Returns:

a dictionary as described in memstore.user.info().

The user name must be unique for the cloud storage - if not it returns ApiErrorNotUnique.

User name can only contain numbers, letters, dots, dashes and underscores, and can’t start with a dot.

memstore.user.delete()

Delete a user in a Memstore instance.

The admin user can’t be deleted.

Parameters:
  • name (String) – Name of the service. Service names are 1-64 characters A-Z, a-z, 0-9, -, . and _. Ensure this value has at most 64 characters.
  • username (String) – Name of the user. Username can only contain numbers, letters, dots, dashes and underscores, and can’t start with a dot. Ensure this value has at most 50 characters.
memstore.user.disable()

Disable a user in a Memstore instance.

A disabled user can’t login through any of the cloud storage interfaces.

The admin user can’t be disabled.

Parameters:
  • name (String) – Name of the service. Service names are 1-64 characters A-Z, a-z, 0-9, -, . and _. Ensure this value has at most 64 characters.
  • username (String) – Name of the user. Username can only contain numbers, letters, dots, dashes and underscores, and can’t start with a dot. Ensure this value has at most 50 characters.
memstore.user.enable()

Enable a user in a Memstore instance.

Parameters:
  • name (String) – Name of the service. Service names are 1-64 characters A-Z, a-z, 0-9, -, . and _. Ensure this value has at most 64 characters.
  • username (String) – Name of the user. Username can only contain numbers, letters, dots, dashes and underscores, and can’t start with a dot. Ensure this value has at most 50 characters.
memstore.user.info()

Describe an existing user in a Memstore instance.

Parameters:
  • name (String) – Name of the service. Service names are 1-64 characters A-Z, a-z, 0-9, -, . and _. Ensure this value has at most 64 characters.
  • username (String) – Name of the user. Username can only contain numbers, letters, dots, dashes and underscores, and can’t start with a dot. Ensure this value has at most 50 characters.
Returns:

a dictionary with the following keys:

username

String: Name of the user.

enabled:

Boolean: If the user is enabled or not.

admin

Boolean: If the user is the administrator of the storage.

memstore.user.list()

List all existing users in a Memstore instance.

Parameters:name (String) – Name of the service. Service names are 1-64 characters A-Z, a-z, 0-9, -, . and _. Ensure this value has at most 64 characters.
Returns:a list of dictionaries where each dictionary is as described in memstore.user.info().

The returned user name must be concatenated to the storage name using a dot to get the username for authentication purposes (ie. msstore1 and admin would be msstore1.admin).

memstore.user.set_password()

Set a new password for an existing user in a Memstore instance.

Parameters:
  • name (String) – Name of the service. Service names are 1-64 characters A-Z, a-z, 0-9, -, . and _. Ensure this value has at most 64 characters.
  • username (String) – Name of the user. Username can only contain numbers, letters, dots, dashes and underscores, and can’t start with a dot. Ensure this value has at most 50 characters.
  • password (String) – User new password.

Previous topic

Memstore Container Methods

Next topic

Openstack Methods

This Page