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.
Source
pub async fn grant_permission_datasource_with_opts( &self, name: String, permission: String, datasource_name: String, options: GrantPermissionDatasourceRequestOptions, ) -> 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.options- The optional parameters; any left unset take the server’s defaults.
Source
pub async fn grant_permission_datasource_raw( &self, request: &GrantPermissionDatasourceRequest, ) -> Result<GrantPermissionDatasourceResponse, KineticaError>
Sends a pre-built GrantPermissionDatasourceRequest to the /grant/permission/datasource endpoint.
Source
pub async fn grant_permission_datasource_from_url( &self, url: &str, request: &GrantPermissionDatasourceRequest, ) -> Result<GrantPermissionDatasourceResponse, KineticaError>
Sends a pre-built GrantPermissionDatasourceRequest to a specific worker URL, bypassing HA head-node selection. Used for multi-head access.