Skip to main content
Source

pub async fn grant_permission_datasource( &self, name: String, permission: String, datasource_name: String, ) -> Result<GrantPermissionDatasourceResponse, KineticaError>

Grant a data source permission to a user or role

[DEPRECATED–please use /grant/permission instead] Grants a data source 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.
  • datasource_name - Name of the data source on which the permission will be granted. Must be an existing data source, or an empty string to grant permission on all data sources.

Grant a data source permission to a user or role

[DEPRECATED–please use /grant/permission instead] Grants a data source 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.
  • datasource_name - Name of the data source on which the permission will be granted. Must be an existing data source, or an empty string to grant permission on all data sources.
  • options - The optional parameters; any left unset take the server’s defaults.

Sends a pre-built GrantPermissionDatasourceRequest to the /grant/permission/datasource endpoint.

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