setPermission()
Set ACL to queue
The user performing this operation needs the FULL_CONTROL permission of the queue
Queue's owner has FULL_CONTROL permission for queue by default
Parameters SetPermissionRequest
queueName : String : required
teamId : String : required
The teamId of the privileged user
permission : Permission : required
Need to set permissions. The permission here is already the result of the combination, and the permission combination is not supported again. The specific types of permissions are:
- NONE
No permissions
- SEND_MESSAGE
Can send message to queue
- RECEIVE_MESSAGE
Can receive message from queue
- SEND_RECEIVE_MESSAGE
Equivalent to a combination of permissions 2 and 3
- HANDLE_MESSAGE
Can receive message from queue, can change message visibility, and can delete message
- SEND_HANDLE_MESSAGE
Equivalent to a combination of permissions 2 and 5
- GET_QUEUE_INFO
Can get Queue information
- USE_QUEUE
Equivalent to a combination of permissions 6 and 7
- ADMIN_QUEUE
Except for not setting permissions for users, all permissions of the queue owner
- PEEK_MESSAGE
Query all status information
- DELETE_PEEK_MESSAGE
Delete messages that have not been received
- FULL_CONTROL
All permissions of the queue owner. The queue owner has this permission by default.
Return void
revokePermission()
Cancel other users' access to queue
The user performing this operation needs the FULL_CONTROL permission of the queue
Parameters RevokePermissionRequest
queueName : String : required
teamId : String : required
The teamId whose permissions were removed
Return void
queryPermission()
Query permissions for a queue
Users who perform this operation do not need to have any permissions for the queue that they want to query
Parameter QueryPermissionRequest
queueName : String : required
Return QueryPermissionResponse
permission : Permission
For the specific meaning of the permissions see setPermission()
queryPermissionForId()
Query other users' permissions for the queue. The user performing this operation needs to have the ADMIN_QUEUE permission for the queue
Parameters QueryPermissionForIdRequest
queueName : String : required
teamId : String : required
The teamId of the queried user
Return QueryPermissionForIdResponse
permission : Permission
listPermissions()
List each user's permissions for the queue. The user performing this operation needs to have the ADMIN_QUEUE permission for the queue
Parameters ListPermissionsRequest
queueName : String : required
Return ListPermissionsResponse
permissionList : Map< String, Permission >
Return the mapping from teamId to its owned permission