All Products
Search
Document Center

Security Center:DescribeAccesskeyLeakList

Last Updated:Feb 20, 2024

Queries the AccessKey pair leaks that are detected on your assets.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
yundun-aegis:DescribeAccesskeyLeakListRead
  • All Resources
    *
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
StatusstringNo

Specifies whether an AccessKey pair leak is handled. Valid values:

  • pending: unhandled
  • dealed: handled
pending
QuerystringNo

The AccessKey ID that you want to query. Only exact match is supported.

LTAI4Fytv7ALKzkNVBV6****
StartTslongNo

The beginning of the time range to query. You can query all AccessKey pair leaks that are detected later than this time point. The value of this parameter is a UNIX timestamp. Unit: milliseconds.

1614155361489
PageSizeintegerYes

The number of entries to return on each page.
Maximum value: 100. Default value: 20. If you leave this parameter empty, 20 entries are returned on each page.

Note We recommend that you do not leave this parameter empty.
20
CurrentPageintegerYes

The number of the page to return. Default value: 1.

1

Response parameters

ParameterTypeDescriptionExample
object
CurrentPageinteger

The page number of the returned page.

1
RequestIdstring

The ID of the request.

B37C9052-A73E-4707-A024-9247702852BE
GmtLastlong

This parameter is deprecated.

1612357897000
AkLeakCountinteger

The number of AccessKey pair leaks that are unhandled.

1
PageSizeinteger

The number of entries returned per page.

20
TotalCountinteger

The total number of AccessKey pair leaks.

2
AccessKeyLeakListobject []

An array that consists of the details about AccessKey pair leaks.

DealTimestring

The time when the AccessKey pair leak is handled.

2020-12-03 21:23:38
Statusstring

Indicates whether the AccessKey pair leak is handled. Valid values:

  • pending: unhandled
  • dealed: handled
pending
Typestring

The type of the leak. The value is fixed as AccessKey.

AccessKey
UserTypestring

The type of the account to which the leaked AccessKey pair belongs. Valid values:

  • master: Alibaba Cloud account
  • ram: RAM user
master
AccesskeyIdstring

The ID of the AccessKey pair that is leaked.

LTAI4Fytv7ALKzkNVBV6****
AliUserNamestring

The name of the Alibaba Cloud account that is affected.

testAccountName
DealTypestring

The method to handle the AccessKey pair leak. Valid values:

  • pending: The AccessKey pair leak is unhandled.
  • manual: The AccessKey pair leak is manually handled.
  • disable: The AccessKey pair leak is disabled.
  • add-whitelist: The AccessKey pair leak is added to the whitelist.
pending
Urlstring

The URL of the platform on which the AccessKey pair leak is detected.

https://github.com/hht312/test-ak/blob/0e466d2ecce55b4c924d773a058e5dc602d8****/1001
GmtModifiedlong

The time when the AccessKey pair leak is first detected. The value of this parameter is a UNIX timestamp. Unit: milliseconds.

1612357897000
Assetstring

The platform to which the asset belongs. The value is fixed as Cloud platform.

Cloud platform
Idlong

The primary key ID of the database.

389357

Examples

Sample success responses

JSONformat

{
  "CurrentPage": 1,
  "RequestId": "B37C9052-A73E-4707-A024-9247702852BE",
  "GmtLast": 1612357897000,
  "AkLeakCount": 1,
  "PageSize": 20,
  "TotalCount": 2,
  "AccessKeyLeakList": [
    {
      "DealTime": "2020-12-03 21:23:38",
      "Status": "pending",
      "Type": "AccessKey",
      "UserType": "master",
      "AccesskeyId": "LTAI4Fytv7ALKzkNVBV6****",
      "AliUserName": "testAccountName",
      "DealType": "pending",
      "Url": "https://github.com/hht312/test-ak/blob/0e466d2ecce55b4c924d773a058e5dc602d8****/1001",
      "GmtModified": 1612357897000,
      "Asset": "Cloud platform\n",
      "Id": 389357
    }
  ]
}

Error codes

HTTP status codeError codeError messageDescription
400NoPermissionno permission-
403NoPermissioncaller has no permissionYou are not authorized to do this operation.
500ServerErrorServerError-

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2023-03-17The Error code has changedsee changesets
Change itemChange content
Error CodesThe Error code has changed.
    delete Error Codes: 400