Skip to main content
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.

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.

Sends a pre-built GrantPermissionCredentialRequest to the /grant/permission/credential endpoint.

Sends a pre-built GrantPermissionCredentialRequest to a specific worker URL, bypassing HA head-node selection. Used for multi-head access.