grant_permission_datasource
- grant_permission_datasource(
name: string,
permission: string,
datasource_name: string,
options?: Record<string, string>,
callback?: GPUdbCallback,
): Promise<GrantPermissionDatasourceResponse>Parameters
- name: string
Name of the user or role to which the permission will be granted. Must be an existing user or role.
- permission: string
Permission to grant to the user or role.
- datasource_name: string
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.
Optionaloptions: Record<string, string>Optional parameters.
Optionalcallback: GPUdbCallbackOptional callback function
Returns Promise<GrantPermissionDatasourceResponse>
Promise<Types.GrantPermissionDatasourceResponse> - Promise resolving to the response
- Defined in src/GPUdb.ts:10639
- name: string
grant_permission_datasource_request
- grant_permission_datasource_request(
request: GrantPermissionDatasourceRequest,
callback?: GPUdbCallback,
): Promise<GrantPermissionDatasourceResponse>[DEPRECATED—please use
grant_permissioninstead] Grants a data source permission to a user or role.Parameters
- request: GrantPermissionDatasourceRequest
Request object containing the parameters for the operation
Optionalcallback: GPUdbCallbackOptional callback function
Returns Promise<GrantPermissionDatasourceResponse>
Promise<Types.GrantPermissionDatasourceResponse> - Promise resolving to the response
- Defined in src/GPUdb.ts:10611
- request: GrantPermissionDatasourceRequest
[DEPRECATED—please use
grant_permissioninstead] Grants a data source permission to a user or role.