API Gateway の監査ロギング
このドキュメントでは、API Gateway の監査対象メソッドの一覧を示します。 Google Cloud サービスは、 Google Cloud リソース内の管理アクティビティとアクセス アクティビティを記録する監査ログを生成します。Cloud Audit Logs の詳細については、以下をご覧ください。
サービス名
API Gateway の監査ログを表示する手順は次のとおりです。
Google Cloud コンソールで、[ログ エクスプローラ] ページに移動します。
次のクエリをコピーして、ログ エクスプローラの [クエリ] フィールドに貼り付け、[クエリを実行] をクリックします。
protoPayload.serviceName="apigateway.googleapis.com"
メソッド(権限タイプ別)
各 IAM 権限には type プロパティがあります。このプロパティの値は列挙型で、ADMIN_READ、ADMIN_WRITE、DATA_READ、DATA_WRITE のいずれかになります。メソッドを呼び出すと、API Gateway は監査ログを生成します。このログのカテゴリは、メソッドの実行に必要な権限の type プロパティによって異なります。type プロパティ値が DATA_READ、DATA_WRITE、または ADMIN_READ の IAM 権限を必要とするメソッドは、データアクセス監査ログを生成します。type プロパティ値が ADMIN_WRITE の IAM 権限を必要とするメソッドは、管理アクティビティ監査ログを生成します。
| 権限タイプ | メソッド |
|---|---|
ADMIN_READ |
google.cloud.apigateway.v1.ApiGatewayService.GetApigoogle.cloud.apigateway.v1.ApiGatewayService.GetApiConfiggoogle.cloud.apigateway.v1.ApiGatewayService.GetGatewaygoogle.cloud.apigateway.v1.ApiGatewayService.ListApiConfigsgoogle.cloud.apigateway.v1.ApiGatewayService.ListApisgoogle.cloud.apigateway.v1.ApiGatewayService.ListGatewaysgoogle.cloud.apigateway.v1beta.ApiGatewayService.GetApigoogle.cloud.apigateway.v1beta.ApiGatewayService.GetApiConfiggoogle.cloud.apigateway.v1beta.ApiGatewayService.GetGatewaygoogle.cloud.apigateway.v1beta.ApiGatewayService.ListApiConfigsgoogle.cloud.apigateway.v1beta.ApiGatewayService.ListApisgoogle.cloud.apigateway.v1beta.ApiGatewayService.ListGatewaysGetIamPolicygoogle.longrunning.Operations.GetOperationgoogle.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)SetIamPolicygoogle.longrunning.Operations.CancelOperationgoogle.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"