Anthropic managed Claude API 稽核記錄

本文列出 Anthropic managed Claude API 的稽核方法。 Cloud de Confiance by S3NS 服務會產生稽核記錄,用來記錄 Cloud de Confiance by S3NS 資源中的管理和存取活動。如要進一步瞭解 Cloud 稽核記錄,請參閱以下內容:

服務名稱

如要查看 Anthropic managed Claude API 稽核記錄,請按照下列步驟操作:

  1. 前往 Cloud de Confiance 控制台的「Logs Explorer」頁面:

    前往 Logs Explorer

  2. 複製下列查詢,並貼到 Logs Explorer 的「Query」(查詢) 欄位,然後按一下「Run query」(執行查詢)。

        protoPayload.serviceName="claude.googleapis.com"
      

依權限類型區分的方法

每個 IAM 權限都具有 type 屬性,其值為以下四個列舉值之一:ADMIN_READ、ADMIN_WRITE、DATA_READ 或 DATA_WRITE。呼叫方法時,Anthropic managed Claude API 會產生一筆稽核記錄,類別取決於執行該方法所需權限的 type 屬性。若方法需要的 IAM 權限,type 屬性值為 DATA_READ、DATA_WRITE 或 ADMIN_READ,就會產生資料存取稽核記錄;若所需 IAM 權限的 type 屬性值為 ADMIN_WRITE,則會產生管理員活動稽核記錄。

下表列出的 API 方法中,如標有 (LRO) 字樣,表示為長時間執行的作業。這類方法通常會產生兩個稽核記錄項目,作業開始和結束時各一個。詳情請參閱「長時間執行的作業稽核記錄」。
權限類型 方法
ADMIN_READ google.cloud.ai.claude.v1.ClaudeGatewayService.InvokeClaudeOrganization
google.cloud.ai.claude.v1.ClaudeManagementService.GetClaudeOrganization
google.longrunning.Operations.GetOperation
google.longrunning.Operations.ListOperations
ADMIN_WRITE google.cloud.ai.claude.v1.ClaudeManagementService.ActivateClaudeOrganization (LRO)
google.cloud.ai.claude.v1.ClaudeManagementService.GenerateConsoleAdminUrl
google.longrunning.Operations.CancelOperation
google.longrunning.Operations.DeleteOperation
DATA_WRITE google.cloud.ai.claude.v1.ClaudeGatewayService.InvokeWorkspace

API 介面稽核記錄

如要瞭解各方法所需的權限及評估方式,請參閱 Anthropic managed Claude API 的 Identity and Access Management 說明文件。

google.cloud.ai.claude.v1.ClaudeGatewayService

屬於 google.cloud.ai.claude.v1.ClaudeGatewayService 的方法會產生以下稽核記錄。

InvokeClaudeOrganization

  • 方法:google.cloud.ai.claude.v1.ClaudeGatewayService.InvokeClaudeOrganization
  • 稽核記錄類型:管理員活動
  • 權限:請參閱 IAM 說明文件,瞭解權限。
  • 方法的作業種類: 串流 RPC
  • 篩選條件: protoPayload.methodName="google.cloud.ai.claude.v1.ClaudeGatewayService.InvokeClaudeOrganization"

InvokeWorkspace

  • 方法:google.cloud.ai.claude.v1.ClaudeGatewayService.InvokeWorkspace
  • 稽核記錄類型:資料存取
  • 權限:
    • claude.googleapis.com/messages.create - DATA_WRITE
  • 方法的作業種類: 串流 RPC
  • 篩選條件: protoPayload.methodName="google.cloud.ai.claude.v1.ClaudeGatewayService.InvokeWorkspace"

google.cloud.ai.claude.v1.ClaudeManagementService

屬於 google.cloud.ai.claude.v1.ClaudeManagementService 的方法會產生以下稽核記錄。

ActivateClaudeOrganization

  • 方法:google.cloud.ai.claude.v1.ClaudeManagementService.ActivateClaudeOrganization
  • 稽核記錄類型:管理員活動
  • 權限:
    • claude.claudeOrganizations.activate - ADMIN_WRITE
  • 方法的作業種類: 長時間執行的作業
  • 篩選條件: protoPayload.methodName="google.cloud.ai.claude.v1.ClaudeManagementService.ActivateClaudeOrganization"

GenerateConsoleAdminUrl

  • 方法:google.cloud.ai.claude.v1.ClaudeManagementService.GenerateConsoleAdminUrl
  • 稽核記錄類型:管理員活動
  • 權限:
    • claude.claudeOrganizations.generateConsoleAdminUrl - ADMIN_WRITE
  • 方法的作業種類: 非長時間執行或串流作業。
  • 篩選條件: protoPayload.methodName="google.cloud.ai.claude.v1.ClaudeManagementService.GenerateConsoleAdminUrl"

GetClaudeOrganization

  • 方法:google.cloud.ai.claude.v1.ClaudeManagementService.GetClaudeOrganization
  • 稽核記錄類型:資料存取
  • 權限:
    • claude.claudeOrganizations.get - ADMIN_READ
  • 方法的作業種類: 非長時間執行或串流作業。
  • 篩選條件: protoPayload.methodName="google.cloud.ai.claude.v1.ClaudeManagementService.GetClaudeOrganization"

google.longrunning.Operations

屬於 google.longrunning.Operations 的方法會產生以下稽核記錄。

CancelOperation

  • 方法:google.longrunning.Operations.CancelOperation
  • 稽核記錄類型:管理員活動
  • 權限:
    • claude.operations.cancel - ADMIN_WRITE
  • 方法的作業種類: 非長時間執行或串流作業。
  • 篩選條件: protoPayload.methodName="google.longrunning.Operations.CancelOperation"

DeleteOperation

  • 方法:google.longrunning.Operations.DeleteOperation
  • 稽核記錄類型:管理員活動
  • 權限:
    • claude.operations.delete - ADMIN_WRITE
  • 方法的作業種類: 非長時間執行或串流作業。
  • 篩選條件: protoPayload.methodName="google.longrunning.Operations.DeleteOperation"

GetOperation

  • 方法:google.longrunning.Operations.GetOperation
  • 稽核記錄類型:資料存取
  • 權限:
    • claude.operations.get - ADMIN_READ
  • 方法的作業種類: 非長時間執行或串流作業。
  • 篩選條件: protoPayload.methodName="google.longrunning.Operations.GetOperation"

ListOperations

  • 方法:google.longrunning.Operations.ListOperations
  • 稽核記錄類型:資料存取
  • 權限:
    • claude.operations.list - ADMIN_READ
  • 方法的作業種類: 非長時間執行或串流作業。
  • 此方法的篩選條件: protoPayload.methodName="google.longrunning.Operations.ListOperations"