grant_permission_credential
- grant_permission_credential(
name: string,
permission: string,
credential_name: string,
options?: Record<string, string>,
callback?: GPUdbCallback,
): Promise<GrantPermissionCredentialResponse>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.
- credential_name: string
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.
Optionaloptions: Record<string, string>Optional parameters.
Optionalcallback: GPUdbCallbackOptional callback function
Returns Promise<GrantPermissionCredentialResponse>
Promise<Types.GrantPermissionCredentialResponse> - Promise resolving to the response
- Defined in src/GPUdb.ts:10583
- name: string
grant_permission_credential_request
- grant_permission_credential_request(
request: GrantPermissionCredentialRequest,
callback?: GPUdbCallback,
): Promise<GrantPermissionCredentialResponse>[DEPRECATED—please use
grant_permissioninstead] Grants a credential-level permission to a user or role.Parameters
- request: GrantPermissionCredentialRequest
Request object containing the parameters for the operation
Optionalcallback: GPUdbCallbackOptional callback function
Returns Promise<GrantPermissionCredentialResponse>
Promise<Types.GrantPermissionCredentialResponse> - Promise resolving to the response
- Defined in src/GPUdb.ts:10555
- request: GrantPermissionCredentialRequest
[DEPRECATED—please use
grant_permissioninstead] Grants a credential-level permission to a user or role.