AWS 合作夥伴中心 API 參考已重組。如需支援的 API 操作的詳細資訊,請參閱 AWS 合作夥伴中心 API 參考。
本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。
記錄AWS Partner Central Revenue Attribution API
AWS CloudTrail 是一項服務,可讓您的 進行控管、合規、營運稽核和風險稽核AWS 帳戶。使用AWS CloudTrail,您可以記錄、持續監控和保留AWS與基礎設施中動作相關的帳戶活動。AWS合作夥伴中央營收測量 API 活動會記錄為 CloudTrail 中的事件。您可以建立線索,此組態可讓事件做為日誌檔案交付至 Amazon S3 儲存貯體。
概觀
AWS Partner Central Revenue Measurement API 已與 整合AWS CloudTrail,此服務提供由使用者、角色或AWS Partner Central 中的AWS服務所採取之動作的記錄。CloudTrail 會將AWS Partner Central Revenue Attribution 的所有 API 呼叫擷取為事件。擷取的呼叫包括來自AWS Partner Central 主控台的呼叫,以及來自AWS Partner Central Revenue Measurement API 操作的程式碼呼叫。
如果您建立線索,您可以將 CloudTrail 事件持續交付至 Amazon S3 儲存貯體,包括AWS Partner Central Revenue Measurement 的事件。即使您未設定追蹤,依然可以透過 CloudTrail 主控台中的事件歷史記錄檢視最新事件。
您可以使用 CloudTrail 所收集的資訊,判斷對AWS Partner Central Revenue Measurement 提出的請求、提出請求的 IP 地址、提出請求的人員、提出請求的時間,以及其他詳細資訊。
下列AWS Partner Central Revenue Measurement API 動作會記錄在 CloudTrail 中:
-
CreateRevenueAttribution -
UpdateRevenueAttribution -
GetRevenueAttribution -
ListRevenueAttributions -
TagResource -
UntagResource -
ListTagsForResource -
CreateMarketplaceRevenueShare -
GetMarketplaceRevenueShare -
ListMarketplaceRevenueShares -
CreateMarketplaceRevenueShareAllocation -
GetMarketplaceRevenueShareAllocation -
UpdateMarketplaceRevenueShareAllocation -
ListMarketplaceRevenueShareAllocations -
StartRevenueAttributionAllocationsTask -
GetRevenueAttributionAllocationsTask -
ListRevenueAttributionAllocations -
GetRevenueAttributionAllocation
了解AWS Partner Central Revenue Measurement API 日誌檔案項目
線索是一種組態,可將事件做為日誌檔案交付至 Amazon S3 儲存貯體。當您的線索追蹤AWS Partner Central Revenue Measurement 事件時,CloudTrail 會將事件視為所有區域的日誌檔案來處理。每個日誌檔案可以包含一或多個事件。
下列範例顯示 CloudTrail 日誌項目,示範AWS Partner Central Revenue Attribution 上的 CreateRevenueAttribution動作:
{ "eventVersion": "1.11", "userIdentity": { "type": "IAMUser", "principalId": "AIDAEXAMPLEID", "arn": "arn:aws:iam::123456789012:user/CloudTrailTestUser", "accountId": "123456789012", "accessKeyId": "AKIAEXAMPLEKEY", "userName": "CloudTrailTestUser" }, "eventTime": "2026-06-02T11:53:54Z", "eventSource": "partnercentral-prm.amazonaws.com", "eventName": "CreateRevenueAttribution", "awsRegion": "us-east-1", "sourceIPAddress": "192.0.2.1", "userAgent": "aws-sdk-java/2.20.0", "requestParameters": { "catalog": "AWS", "name": "my-revenue-attribution", "marketplaceProduct": { "tenancyModel": "MULTI_TENANT" } }, "responseElements": { "id": "ra-0123456789abcdef0", "arn": "arn:aws:partnercentral:us-east-1:123456789012:catalog/AWS/revenue-attribution/ra-0123456789abcdef0", "name": "my-revenue-attribution", "revision": "1" }, "requestID": "5ce2f907-3850-412a-b1a4-r012r1234567", "eventID": "80b39b72-eefe-4578-8db0-01ee2e34ee56", "readOnly": false, "eventType": "AwsApiCall", "recipientAccountId": "123456789012" }
在此範例中,名為 CloudTrailTestUser 的 IAM 使用者呼叫了 CreateRevenueAttribution動作。已於 us-east-1AWS 區域中呼叫 動作,並於 2026 年 6 月 2 日 11:53:54 UTC 提出請求。已使用 ID 建立新的收入歸因資源ra-0123456789abcdef0。
AWS Partner Central Revenue Measurement API 日誌檔項目中的欄位
CloudTrail 日誌檔中的每個項目都包含提出請求的人員、請求中處理的資源,以及AWS Partner Central Revenue Measurement 傳回的回應元素的相關資訊。日誌項目中的欄位清單,例如 eventVersion、 userIdentity和 eventTime,提供動作的詳細資訊。例如, sourceIPAddress 欄位會顯示提出請求的 IP 地址。