aistore.sdk.authn.role_manager
aistore.sdk.authn.role_manager
Module Contents
Classes
Data
API
Manages role-related operations.
This class provides methods to interact with roles, including retrieving, creating, updating, and deleting role information.
Parameters:
The RequestClient used to make HTTP requests.
Returns the RequestClient instance used by this RoleManager.
Creates a new role.
Parameters:
The name of the role.
A description of the role.
The alias of the cluster this role will have access to.
A list of permissions to be granted for this role.
The name of the bucket this role will have access to.
Returns: RoleInfo
Information about the newly created role.
Raises:
aistore.sdk.errors.AISError: All other types of errors with AIStore.requests.RequestException: If the HTTP request fails.
Deletes a role.
Parameters:
The name of the role to delete.
Ignore error if role does not exist. Defaults to False
Raises:
ErrRoleNotFound: If the role does not exist and missing_ok is False.aistore.sdk.errors.AISError: All other types of errors with AIStore.requests.RequestException: If the HTTP request fails.
Retrieves information about a specific role.
Parameters:
The name of the role to retrieve.
Returns: RoleInfo
Information about the specified role.
Raises:
aistore.sdk.errors.AISError: All other types of errors with AIStore.requests.RequestException: If the HTTP request fails.
Retrieves information about all roles.
Returns: RolesList
A list containing information about all roles.
Raises:
aistore.sdk.errors.AISError: All other types of errors with AIStore.requests.RequestException: If the HTTP request fails.
Updates an existing role.
Parameters:
The name of the role.
An updated description of the role.
The alias of the cluster this role will have access to.
A list of updated permissions to be granted for this role.
The name of the bucket this role will have access to.
Raises:
aistore.sdk.errors.AISError: All other types of errors with AIStore.requests.RequestException: If the HTTP request fails.ValueError: If the role does not exist or if invalid parameters are provided.