Source
pub async fn grant_permission_proc( &self, name: String, permission: String, proc_name: String, ) -> Result<GrantPermissionProcResponse, KineticaError>
Grant a proc-level permission to a user or role
[DEPRECATED–please use /grant/permission instead] Grants a proc-level permission to a user or role.
name- Name of the user or role to which the permission will be granted. Must be an existing user or role.permission- Permission to grant to the user or role.proc_name- Name of the proc to which the permission grants access. Must be an existing proc, or an empty string to grant access to all procs.
Source
pub async fn grant_permission_proc_with_opts( &self, name: String, permission: String, proc_name: String, options: GrantPermissionProcRequestOptions, ) -> Result<GrantPermissionProcResponse, KineticaError>
Grant a proc-level permission to a user or role
[DEPRECATED–please use /grant/permission instead] Grants a proc-level permission to a user or role.
name- Name of the user or role to which the permission will be granted. Must be an existing user or role.permission- Permission to grant to the user or role.proc_name- Name of the proc to which the permission grants access. Must be an existing proc, or an empty string to grant access to all procs.options- The optional parameters; any left unset take the server’s defaults.
Source
pub async fn grant_permission_proc_raw( &self, request: &GrantPermissionProcRequest, ) -> Result<GrantPermissionProcResponse, KineticaError>
Sends a pre-built GrantPermissionProcRequest to the /grant/permission/proc endpoint.
Source
pub async fn grant_permission_proc_from_url( &self, url: &str, request: &GrantPermissionProcRequest, ) -> Result<GrantPermissionProcResponse, KineticaError>
Sends a pre-built GrantPermissionProcRequest to a specific worker URL, bypassing HA head-node selection. Used for multi-head access.