Query the Login Blacklist

Queries the login blacklist with pagination.

Request URL

GET {base_url}/uc-user/api/v1/admin/security/blacklist

Request parameters

Headers
Parameter Required Type Description
Authorization Yes String The access token used for authentication.

Format: Bearer {access_token}.

Query parameters
Parameter Required Type Description
page Yes Integer The page number to query, starting from 0.
size Yes Integer The number of records per page.

Response parameters

Parameter Type Description
requestId String The unique ID of the request, which can be used to quickly locate the request.
code String The HTTP status code of the request.
  • 200: Request succeeded.
  • Non-200 value: Request failed.
message String The status message of the request.
detailMessage String The detailed error information.

When the request is successful, this parameter returns empty.

result Object<Blacklist_Page> The page of login blacklist records.
Blacklist_Page
Parameter Type Description
content Array<Blacklist_Record> The list of blacklist records on the current page.
totalElements Integer The total number of blacklist records.
totalPages Integer The total number of pages.
size Integer The number of records per page.
number Integer The current page number.
numberOfElements Integer The number of records on the current page.
first Boolean Whether the current page is the first page.
last Boolean Whether the current page is the last page.
empty Boolean Whether the current page is empty.
Blacklist_Record
Parameter Type Description
id Integer The ID of the blacklist record.
defenseType Integer The defense type.
blockType Integer The block type.
blockScope String The block scope, in the format Login|User:{username} or IP:{ip}.
timeOfAttack Integer The time when the attack occurred, in Unix timestamp format (milliseconds).
attackedPort Integer The port that was attacked.
protocol String The protocol of the login attempt.
sourceIp String The source IP address of the request.
expirationTime Integer The time when the lock expires, in Unix timestamp format (milliseconds).
unblockTime Integer The time when the record is unblocked, in Unix timestamp format (milliseconds). This parameter is not returned if the record is not unblocked.
unblockUser Integer The ID of the user who unblocked the record.
createTime Integer The time when the record was created, in Unix timestamp format (milliseconds).
updateTime Integer The time when the record was last updated, in Unix timestamp format (milliseconds).
expired Boolean Whether the record has expired.
unblocked Boolean Whether the record has been unblocked.