API Gateway の監査ロギング

このドキュメントでは、API Gateway の監査対象メソッドの一覧を示します。 Google Cloud サービスは、 Google Cloud リソース内の管理アクティビティとアクセス アクティビティを記録する監査ログを生成します。Cloud Audit Logs の詳細については、以下をご覧ください。

サービス名

API Gateway の監査ログを表示する手順は次のとおりです。

  1. Google Cloud コンソールで、[ログ エクスプローラ] ページに移動します。

    [ログ エクスプローラ] に移動

  2. 次のクエリをコピーして、ログ エクスプローラの [クエリ] フィールドに貼り付け、[クエリを実行] をクリックします。

        protoPayload.serviceName="apigateway.googleapis.com"
      

メソッド(権限タイプ別)

各 IAM 権限には type プロパティがあります。このプロパティの値は列挙型で、ADMIN_READADMIN_WRITEDATA_READDATA_WRITE のいずれかになります。メソッドを呼び出すと、API Gateway は監査ログを生成します。このログのカテゴリは、メソッドの実行に必要な権限の type プロパティによって異なります。type プロパティ値が DATA_READDATA_WRITE、または ADMIN_READ の IAM 権限を必要とするメソッドは、データアクセス監査ログを生成します。type プロパティ値が ADMIN_WRITE の IAM 権限を必要とするメソッドは、管理アクティビティ監査ログを生成します。

次のリスト中の(LRO)と付記されている API メソッドは、長時間実行オペレーション(LRO)です。これらのメソッドは、通常、2 つの監査ログエントリを生成します。一つはオペレーションの開始時、もう一つは終了時に生成されます。詳細については、長時間実行オペレーションの監査ログをご覧ください。
権限タイプ メソッド
ADMIN_READ google.cloud.apigateway.v1.ApiGatewayService.GetApi
google.cloud.apigateway.v1.ApiGatewayService.GetApiConfig
google.cloud.apigateway.v1.ApiGatewayService.GetGateway
google.cloud.apigateway.v1.ApiGatewayService.ListApiConfigs
google.cloud.apigateway.v1.ApiGatewayService.ListApis
google.cloud.apigateway.v1.ApiGatewayService.ListGateways
google.cloud.apigateway.v1beta.ApiGatewayService.GetApi
google.cloud.apigateway.v1beta.ApiGatewayService.GetApiConfig
google.cloud.apigateway.v1beta.ApiGatewayService.GetGateway
google.cloud.apigateway.v1beta.ApiGatewayService.ListApiConfigs
google.cloud.apigateway.v1beta.ApiGatewayService.ListApis
google.cloud.apigateway.v1beta.ApiGatewayService.ListGateways
GetIamPolicy
google.longrunning.Operations.GetOperation
google.longrunning.Operations.ListOperations
ADMIN_WRITE google.cloud.apigateway.v1.ApiGatewayService.CreateApi(LRO)
google.cloud.apigateway.v1.ApiGatewayService.CreateApiConfig(LRO)
google.cloud.apigateway.v1.ApiGatewayService.CreateGateway(LRO)
google.cloud.apigateway.v1.ApiGatewayService.DeleteApi(LRO)
google.cloud.apigateway.v1.ApiGatewayService.DeleteApiConfig(LRO)
google.cloud.apigateway.v1.ApiGatewayService.DeleteGateway(LRO)
google.cloud.apigateway.v1.ApiGatewayService.UpdateApi(LRO)
google.cloud.apigateway.v1.ApiGatewayService.UpdateApiConfig(LRO)
google.cloud.apigateway.v1.ApiGatewayService.UpdateGateway(LRO)
google.cloud.apigateway.v1beta.ApiGatewayService.CreateApi(LRO)
google.cloud.apigateway.v1beta.ApiGatewayService.CreateApiConfig(LRO)
google.cloud.apigateway.v1beta.ApiGatewayService.CreateGateway(LRO)
google.cloud.apigateway.v1beta.ApiGatewayService.DeleteApi(LRO)
google.cloud.apigateway.v1beta.ApiGatewayService.DeleteApiConfig(LRO)
google.cloud.apigateway.v1beta.ApiGatewayService.DeleteGateway(LRO)
google.cloud.apigateway.v1beta.ApiGatewayService.UpdateApi(LRO)
google.cloud.apigateway.v1beta.ApiGatewayService.UpdateApiConfig(LRO)
google.cloud.apigateway.v1beta.ApiGatewayService.UpdateGateway(LRO)
SetIamPolicy
google.longrunning.Operations.CancelOperation
google.longrunning.Operations.DeleteOperation

API インターフェースの監査ログ

各メソッドで評価される権限と評価方法については、Identity and Access Management のドキュメントで API Gateway の情報をご覧ください。

google.cloud.apigateway.v1.ApiGatewayService

次の監査ログは、google.cloud.apigateway.v1.ApiGatewayService に属するメソッドに関連付けられています。

CreateApi

  • メソッド: google.cloud.apigateway.v1.ApiGatewayService.CreateApi
  • 監査ログのタイプ: 管理アクティビティ
  • 権限:
    • apigateway.apis.create - ADMIN_WRITE
  • メソッドが長時間実行オペレーションまたはストリーミング オペレーションのどちらであるか: 長時間実行オペレーション
  • このメソッドのフィルタ: protoPayload.methodName="google.cloud.apigateway.v1.ApiGatewayService.CreateApi"

CreateApiConfig

  • メソッド: google.cloud.apigateway.v1.ApiGatewayService.CreateApiConfig
  • 監査ログのタイプ: 管理アクティビティ
  • 権限:
    • apigateway.apiconfigs.create - ADMIN_WRITE
  • メソッドが長時間実行オペレーションまたはストリーミング オペレーションのどちらであるか: 長時間実行オペレーション
  • このメソッドのフィルタ: protoPayload.methodName="google.cloud.apigateway.v1.ApiGatewayService.CreateApiConfig"

CreateGateway

  • メソッド: google.cloud.apigateway.v1.ApiGatewayService.CreateGateway
  • 監査ログのタイプ: 管理アクティビティ
  • 権限:
    • apigateway.gateways.create - ADMIN_WRITE
  • メソッドが長時間実行オペレーションまたはストリーミング オペレーションのどちらであるか: 長時間実行オペレーション
  • このメソッドのフィルタ: protoPayload.methodName="google.cloud.apigateway.v1.ApiGatewayService.CreateGateway"