Source
pub async fn grant_permission_credential( &self, name: String, permission: String, credential_name: String, ) -> Result<GrantPermissionCredentialResponse, KineticaError>
Grant a credential-level permission to a user or role
[DEPRECATED–please use /grant/permission instead] Grants a credential-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.credential_name- Name of the credential on which the permission will be granted. Must be an existing credential, or an empty string to grant access on all credentials.
Source
pub async fn grant_permission_credential_with_opts( &self, name: String, permission: String, credential_name: String, options: GrantPermissionCredentialRequestOptions, ) -> Result<GrantPermissionCredentialResponse, KineticaError>
Grant a credential-level permission to a user or role
[DEPRECATED–please use /grant/permission instead] Grants a credential-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.credential_name- Name of the credential on which the permission will be granted. Must be an existing credential, or an empty string to grant access on all credentials.options- The optional parameters; any left unset take the server’s defaults.
Source
pub async fn grant_permission_credential_raw( &self, request: &GrantPermissionCredentialRequest, ) -> Result<GrantPermissionCredentialResponse, KineticaError>
Sends a pre-built GrantPermissionCredentialRequest to the /grant/permission/credential endpoint.
Source
pub async fn grant_permission_credential_from_url( &self, url: &str, request: &GrantPermissionCredentialRequest, ) -> Result<GrantPermissionCredentialResponse, KineticaError>
Sends a pre-built GrantPermissionCredentialRequest to a specific worker URL, bypassing HA head-node selection. Used for multi-head access.