All Products
Search
Document Center

Security Center:DescribeAccesskeyLeakList

Last Updated:Nov 13, 2024

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

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

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:DescribeAccesskeyLeakListget
  • 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
ResourceDirectoryAccountIdlongNo

The Alibaba Cloud account ID of the member in the resource directory.

Note You can call the DescribeMonitorAccounts operation to query the ID.
127608589417****

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
AccessKeyLeakListarray<object>

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

AccessKeyLeakobject
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-
400RdCheckNoPermissionResource directory account verification has no permission.-
403NoPermissioncaller has no permissionYou are not authorized to do this operation.
500RdCheckInnerErrorResource directory account service internal error.-
500ServerErrorServerError-

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

Change history

Change timeSummary of changesOperation
2024-04-18The Error code has changed. The request parameters of the API has changedView Change Details
2023-03-17The Error code has changedView Change Details