全部產品
Search
文件中心

ActionTrail:GetAccessKeyLastUsedProducts - 查詢指定AccessKey的最後使用的雲端服務記錄

更新時間:Apr 21, 2026

查詢指定AccessKey的最後使用的雲端服務記錄。

介面說明

本介面僅可查詢自 2022 年 02 月 01 日起(最長 400 天),指定 AccessKey 最後使用的雲端服務記錄。因該資料存在一定的延遲(一般小時級),請您務必謹慎變更 AccessKey。

調試

您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。

調試

授權資訊

下表是API對應的授權資訊,可以在RAM權限原則語句的Action元素中使用,用來給RAM使用者或RAM角色授予調用此API的許可權。具體說明如下:

  • 操作:是指具體的許可權點。

  • 存取層級:是指每個操作的存取層級,取值為寫入(Write)、讀取(Read)或列出(List)。

  • 資源類型:是指操作中支援授權的資源類型。具體說明如下:

    • 對於必選的資源類型,用前面加 * 表示。

    • 對於不支援資源級授權的操作,用全部資源表示。

  • 條件關鍵字:是指雲產品自身定義的條件關鍵字。

  • 關聯操作:是指成功執行操作所需要的其他許可權。操作者必須同時具備關聯操作的許可權,操作才能成功。

操作

存取層級

資源類型

條件關鍵字

關聯操作

actiontrail:GetAccessKeyLastUsedProducts

list

*全部資源

*

請求參數

名稱

類型

必填

描述

樣本值

AccessKey

string

AccessKey ID。

LTAI****************

返回參數

名稱

類型

描述

樣本值

object

Products

array<object>

檢索到的雲端服務列表。

object

Detail

string

事件詳情。

{ "eventId": "239EB588-CD24-522E-B0B5-174A1A58****", "eventVersion": 1, "eventSource": "ecs.cn-hangzhou.aliyuncs.com", "sourceIpAddress": "10.10.**.**", "eventType": "ApiCall", "userIdentity": { "accountId": "104758519118****", "principalId": "24549429003625****", "type": "ram-user", "userName": "alice" }, "serviceName": "Ecs", "apiVersion": "2016-01-20", "requestId": "239EB588-CD24-522E-B0B5-174A1A588BE0", "eventTime": "2021-08-05T09:21:32Z", "isGlobal": false, "acsRegion": "cn-hangzhou", "eventName": "DescribeInstances" }

ServiceName

string

使用的雲端服務。

Ecs

ServiceNameCn

string

雲端服務中文名稱。

Elastic Compute Service

ServiceNameEn

string

雲端服務英文名稱。

Elastic Compute Service

Source

string

最後使用記錄來源。

枚舉值:

  • Internal :

    其他事件

  • ManagementEvent :

    管控事件

  • DataEvent :

    資料事件

ManagementEvent

UsedTimestamp

integer

使用雲端服務的時間戳記。 單位:毫秒。

1657247532000

RequestId

string

請求 ID。

145318BE-DEE1-4C57-AA7C-5BE7D34A6AE0

樣本

正常返回樣本

JSON格式

{
  "Products": [
    {
      "Detail": "{\n  \"eventId\": \"239EB588-CD24-522E-B0B5-174A1A58****\",\n  \"eventVersion\": 1,\n  \"eventSource\": \"ecs.cn-hangzhou.aliyuncs.com\",\n  \"sourceIpAddress\": \"10.10.**.**\",\n  \"eventType\": \"ApiCall\",\n  \"userIdentity\": {\n    \"accountId\": \"104758519118****\",\n    \"principalId\": \"24549429003625****\",\n    \"type\": \"ram-user\",\n    \"userName\": \"alice\"\n  },\n  \"serviceName\": \"Ecs\",\n  \"apiVersion\": \"2016-01-20\",\n  \"requestId\": \"239EB588-CD24-522E-B0B5-174A1A588BE0\",\n  \"eventTime\": \"2021-08-05T09:21:32Z\",\n  \"isGlobal\": false,\n  \"acsRegion\": \"cn-hangzhou\",\n  \"eventName\": \"DescribeInstances\"\n}",
      "ServiceName": "Ecs",
      "ServiceNameCn": "Elastic Compute Service",
      "ServiceNameEn": "Elastic Compute Service",
      "Source": "ManagementEvent",
      "UsedTimestamp": 1657247532000
    }
  ],
  "RequestId": "145318BE-DEE1-4C57-AA7C-5BE7D34A6AE0"
}

錯誤碼

HTTP status code

錯誤碼

錯誤資訊

描述

400 IncompleteSignature The request signature does not conform to Alibaba Cloud standards. 簽名不匹配。請檢查AcceseKey ID和AccessKey Secret是否正確;檢查簽名方法是否正確。詳細資料參見“簽名機制”。
400 InvalidQueryParameter The specified query parameter is invalid. 無效的查詢參數。

訪問錯誤中心查看更多錯誤碼。

變更歷史

更多資訊,參考變更詳情