grant_permission
- grant_permission(
principal: string | undefined,
object: string,
object_type: string,
permission: string,
options?: Record<string, string>,
callback?: GPUdbCallback,
): Promise<GrantPermissionResponse>Parameters
- principal: string | undefined
Name of the user or role for which the permission is being granted. Must be an existing user or role.
- object: string
Name of object permission is being granted to. It is recommended to use a fully-qualified name when possible.
- object_type: string
The type of object being granted to.
- permission: string
Permission being granted.
Optionaloptions: Record<string, string>Optional parameters.
Optionalcallback: GPUdbCallbackOptional callback function
Returns Promise<GrantPermissionResponse>
Promise<Types.GrantPermissionResponse> - Promise resolving to the response
- Defined in src/GPUdb.ts:10525
- principal: string | undefined
grant_permission_request
- grant_permission_request(
request: GrantPermissionRequest,
callback?: GPUdbCallback,
): Promise<GrantPermissionResponse>Grant user or role the specified permission on the specified object.
Parameters
- request: GrantPermissionRequest
Request object containing the parameters for the operation
Optionalcallback: GPUdbCallbackOptional callback function
Returns Promise<GrantPermissionResponse>
Promise<Types.GrantPermissionResponse> - Promise resolving to the response
- Defined in src/GPUdb.ts:10496
- request: GrantPermissionRequest
Grant user or role the specified permission on the specified object.