Queries the details of AccessKey pair leaks in your assets.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes DescribeAccesskeyLeakList

The operation that you want to perform.

Set the value to DescribeAccesskeyLeakList.

CurrentPage Integer Yes 1

The page number of the current page. Default value: 1.

PageSize Integer Yes 20

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 per page by default.

Note We recommend that you do not leave this parameter empty.
Status String No pending

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

  • pending: unhandled
  • dealed: handled
Query String No LTAI4Fytv7ALKzkNVBV6****

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

StartTs Long No 1614155361489

The beginning of the time range to query. You can query all AccessKey pair leaks that are detected later than this time point. This value is a UNIX timestamp representing the number of milliseconds that have elapsed since the epoch time January 1, 1970, 00:00:00 UTC.

All Alibaba Cloud API operations must include common request parameters. For more information about common request parameters, see Common parameters.

For more information about sample requests, see the "Examples" section of this topic.

Response parameters

Parameter Type Example Description
AccessKeyLeakList Array of AccessKeyLeak

The details of AccessKey pair leaks.

AccesskeyId String LTAI4Fytv7ALKzkNVBV6****

The ID of the AccessKey pair that is leaked.

AliUserName String y****@test.aliyunid.com

The name of the Alibaba Cloud account that is affected.

Asset String Cloud platform

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

DealTime String 2020-12-03 21:23:38

The time when the AccessKey pair leak is handled.

DealType String pending

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

  • pending: The AccessKey leak is unhandled.
  • manual: The AccessKey pair leak is manually handled.
  • disable: The leaked AccessKey pair is disabled.
  • add-whitelist: The alert generated for the leaked AccessKey pair is added to the whitelist.
GmtModified Long 1612357897000

The time when the AccessKey pair leak is first detected. This value is a UNIX timestamp representing the number of milliseconds that have elapsed since the epoch time January 1, 1970, 00:00:00 UTC.

Id Long 389357

The primary key ID of the database.

Status String pending

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

  • pending: unhandled
  • dealed: handled
Type String AccessKey

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

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

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

UserType String master

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

  • master: Alibaba Cloud account
  • ram: RAM user
AkLeakCount Integer 1

The number of AccessKey pair leaks that are unhandled.

CurrentPage Integer 1

The page number of the current page.

GmtLast Long 1612357897000

This parameter is deprecated.

PageSize Integer 20

The number of entries returned per page.

RequestId String B37C9052-A73E-4707-A024-9247702852BE

The ID of the request.

TotalCount Integer 2

The total number of AccessKey pair leaks.

Examples

Sample requests

http(s)://[Endpoint]/?Action=DescribeAccesskeyLeakList
&CurrentPage=1
&PageSize=20
&<Common request parameters>

Sample success responses

XML format

<DescribeAccesskeyLeakListResponse>
      <AkLeakCount>1</AkLeakCount>
      <AccessKeyLeakList>
            <Status>pending</Status>
            <AliUserName>y****@test.aliyunid.com</AliUserName>
            <Type>AccessKey</Type>
            <DealType>pending</DealType>
            <AccesskeyId>LTAI4Fytv7ALKzkNVBV6****</AccesskeyId>
            <GmtModified>1612357897000</GmtModified>
            <Asset>Cloud platform</Asset>
            <Id>389357</Id>
            <DealTime>2021-03-03 15:58:34</DealTime>
            <UserType>master</UserType>
            <Url>https://github.com/hht312/test-ak/blob/0e466d2ecce55b4c924d773a058e5dc602d8****/1001</Url>
      </AccessKeyLeakList>
      <AccessKeyLeakList>
            <Status>dealed</Status>
            <AliUserName>y****@test.aliyunid.com</AliUserName>
            <Type>AccessKey</Type>
            <DealType>manual</DealType>
            <AccesskeyId>LTAI4Fytv7ALKzkNVBV6****</AccesskeyId>
            <GmtModified>1612357467000</GmtModified>
            <Asset>Cloud platform</Asset>
            <Id>389351</Id>
            <DealTime>2021-02-08 14:43:43</DealTime>
            <UserType>master</UserType>
            <Url>https://github.com/daijope/testak/blob/1fac284b5b003d3445ea9dcf1d50a9c0e367****/test.java</Url>
      </AccessKeyLeakList>
      <TotalCount>2</TotalCount>
      <RequestId>B37C9052-A73E-4707-A024-9247702852BE</RequestId>
      <PageSize>20</PageSize>
      <CurrentPage>1</CurrentPage>
</DescribeAccesskeyLeakListResponse>

JSON format

{
	"AkLeakCount": 1,
	"AccessKeyLeakList": [
		{
			"Status": "pending",
			"AliUserName": "y****@test.aliyunid.com",
			"Type": "AccessKey",
			"DealType": "pending",
			"AccesskeyId": "LTAI4Fytv7ALKzkNVBV6****",
			"GmtModified": 1612357897000,
			"Asset": "Cloud platform",
			"Id": 389357,
			"DealTime": "2021-03-03 15:58:34",
			"UserType": "master",
			"Url": "https://github.com/hht312/test-ak/blob/0e466d2ecce55b4c924d773a058e5dc602d8****/1001"
		},
		{
			"Status": "dealed",
			"AliUserName": "y****@test.aliyunid.com",
			"Type": "AccessKey",
			"DealType": "manual",
			"AccesskeyId": "LTAI4Fytv7ALKzkNVBV6****",
			"GmtModified": 1612357467000,
			"Asset": "Cloud platform",
			"Id": 389351,
			"DealTime": "2021-02-08 14:43:43",
			"UserType": "master",
			"Url": "https://github.com/daijope/testak/blob/1fac284b5b003d3445ea9dcf1d50a9c0e367****/test.java"
		}
	],
	"TotalCount": 2,
	"RequestId": "B37C9052-A73E-4707-A024-9247702852BE",
	"PageSize": 20,
	"CurrentPage": 1
}

Error codes

For a list of error codes, visit the API Error Center.