Source
pub async fn grant_role( &self, role: String, member: String, ) -> Result<GrantRoleResponse, KineticaError>
Grant membership in a role to a user or role
Grants membership in a role to a user or role.
role- Name of the role in which membership will be granted. Must be an existing role.member- Name of the user or role that will be granted membership inrole. Must be an existing user or role.
Source
pub async fn grant_role_with_opts( &self, role: String, member: String, options: GrantRoleRequestOptions, ) -> Result<GrantRoleResponse, KineticaError>
Grant membership in a role to a user or role
Grants membership in a role to a user or role.
role- Name of the role in which membership will be granted. Must be an existing role.member- Name of the user or role that will be granted membership inrole. Must be an existing user or role.options- The optional parameters; any left unset take the server’s defaults.
Source
pub async fn grant_role_raw( &self, request: &GrantRoleRequest, ) -> Result<GrantRoleResponse, KineticaError>
Sends a pre-built GrantRoleRequest to the /grant/role endpoint.
Source
pub async fn grant_role_from_url( &self, url: &str, request: &GrantRoleRequest, ) -> Result<GrantRoleResponse, KineticaError>
Sends a pre-built GrantRoleRequest to a specific worker URL, bypassing HA head-node selection. Used for multi-head access.