本页面上的部分或全部信息可能不适用于 Trusted Cloud by S3NS。
存储批量操作审核日志
本文档介绍了存储空间批量操作的审核日志记录。Google Cloud 服务会生成审核日志,以记录 Google Cloud 资源中的管理和访问活动。
如需详细了解 Cloud Audit Logs,请参阅以下内容:
服务名称
存储空间批量操作审核日志使用服务名称 storagebatchoperations.googleapis.com
。针对此服务的过滤条件:
protoPayload.serviceName="storagebatchoperations.googleapis.com"
方法(按权限类型)
每个 IAM 权限都有一个 type
属性,该属性的值是一个枚举,可以是以下四个值之一:ADMIN_READ
、ADMIN_WRITE
、DATA_READ
或 DATA_WRITE
。当您调用某个方法时,Storage Batch Operations 会生成一个审核日志,其类别取决于执行该方法所需权限的 type
属性。需要 IAM 权限且 type
属性值为 DATA_READ
、DATA_WRITE
或 ADMIN_READ
的方法会生成数据访问审核日志。需要 IAM 权限且 type
属性值为 ADMIN_WRITE
的方法会生成管理员活动审核日志。
权限类型 |
方法 |
ADMIN_READ |
google.cloud.storagebatchoperations.v1.StorageBatchOperations.GetJob
google.cloud.storagebatchoperations.v1.StorageBatchOperations.ListJobs
google.longrunning.Operations.GetOperation
google.longrunning.Operations.ListOperations |
ADMIN_WRITE |
google.cloud.storagebatchoperations.v1.StorageBatchOperations.CancelJob
google.cloud.storagebatchoperations.v1.StorageBatchOperations.CreateJob
google.cloud.storagebatchoperations.v1.StorageBatchOperations.DeleteJob
google.longrunning.Operations.CancelOperation
google.longrunning.Operations.DeleteOperation |
API 接口审核日志
如需了解如何评估每种方法的权限以及评估哪些权限,请参阅 Storage Batch Operations 的 Cloud Identity and Access Management 文档。
google.cloud.storagebatchoperations.v1.StorageBatchOperations
以下审核日志与属于 google.cloud.storagebatchoperations.v1.StorageBatchOperations
的方法相关联。
CancelJob
- 方法:
google.cloud.storagebatchoperations.v1.StorageBatchOperations.CancelJob
- 审核日志类型:管理员活动
- 权限:
storagebatchoperations.jobs.cancel - ADMIN_WRITE
- 方法是长时间运行的操作或流式传输操作:否。
- 此方法的过滤条件:
protoPayload.methodName="google.cloud.storagebatchoperations.v1.StorageBatchOperations.CancelJob"
CreateJob
- 方法:
google.cloud.storagebatchoperations.v1.StorageBatchOperations.CreateJob
- 审核日志类型:管理员活动
- 权限:
storagebatchoperations.jobs.create - ADMIN_WRITE
- 方法是长时间运行的操作或流式传输操作:长时间运行的操作
- 此方法的过滤条件:
protoPayload.methodName="google.cloud.storagebatchoperations.v1.StorageBatchOperations.CreateJob"
DeleteJob
- 方法:
google.cloud.storagebatchoperations.v1.StorageBatchOperations.DeleteJob
- 审核日志类型:管理员活动
- 权限:
storagebatchoperations.jobs.delete - ADMIN_WRITE
- 方法是长时间运行的操作或流式传输操作:否。
- 此方法的过滤条件:
protoPayload.methodName="google.cloud.storagebatchoperations.v1.StorageBatchOperations.DeleteJob"
GetJob
- 方法:
google.cloud.storagebatchoperations.v1.StorageBatchOperations.GetJob
- 审核日志类型:数据访问
- 权限:
storagebatchoperations.jobs.get - ADMIN_READ
- 方法是长时间运行的操作或流式传输操作:否。
- 此方法的过滤条件:
protoPayload.methodName="google.cloud.storagebatchoperations.v1.StorageBatchOperations.GetJob"
ListJobs
- 方法:
google.cloud.storagebatchoperations.v1.StorageBatchOperations.ListJobs
- 审核日志类型:数据访问
- 权限:
storagebatchoperations.jobs.list - ADMIN_READ
- 方法是长时间运行的操作或流式传输操作:否。
- 此方法的过滤条件:
protoPayload.methodName="google.cloud.storagebatchoperations.v1.StorageBatchOperations.ListJobs"
google.longrunning.Operations
以下审核日志与属于 google.longrunning.Operations
的方法相关联。
CancelOperation
- 方法:
google.longrunning.Operations.CancelOperation
- 审核日志类型:管理员活动
- 权限:
storagebatchoperations.operations.cancel - ADMIN_WRITE
- 方法是长时间运行的操作或流式传输操作:否。
- 此方法的过滤条件:
protoPayload.methodName="google.longrunning.Operations.CancelOperation"
DeleteOperation
- 方法:
google.longrunning.Operations.DeleteOperation
- 审核日志类型:管理员活动
- 权限:
storagebatchoperations.operations.delete - ADMIN_WRITE
- 方法是长时间运行的操作或流式传输操作:否。
- 此方法的过滤条件:
protoPayload.methodName="google.longrunning.Operations.DeleteOperation"
GetOperation
- 方法:
google.longrunning.Operations.GetOperation
- 审核日志类型:数据访问
- 权限:
storagebatchoperations.operations.get - ADMIN_READ
- 方法是长时间运行的操作或流式传输操作:否。
- 此方法的过滤条件:
protoPayload.methodName="google.longrunning.Operations.GetOperation"
ListOperations
- 方法:
google.longrunning.Operations.ListOperations
- 审核日志类型:数据访问
- 权限:
storagebatchoperations.operations.list - ADMIN_READ
- 方法是长时间运行的操作或流式传输操作:否。
- 此方法的过滤条件:
protoPayload.methodName="google.longrunning.Operations.ListOperations"
不会生成审核日志的方法
由于以下一个或多个原因,方法可能不会生成审核日志:
- 这是一种高容量方法,涉及较高的日志生成和存储费用。
- 它的审核价值较低。
- 其他审核或平台日志已提供方法。
以下方法不会生成审核日志:
google.cloud.location.Locations.GetLocation
google.cloud.location.Locations.ListLocations
google.longrunning.Operations.WaitOperation
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-29。
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["没有我需要的信息","missingTheInformationINeed","thumb-down"],["太复杂/步骤太多","tooComplicatedTooManySteps","thumb-down"],["内容需要更新","outOfDate","thumb-down"],["翻译问题","translationIssue","thumb-down"],["示例/代码问题","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-07-29。"],[],[],null,["# Storage batch operations audit logging\n\nThis document describes audit logging for Storage Batch Operations. Google Cloud services\ngenerate audit logs that record administrative and access activities within your Google Cloud resources.\nFor more information about Cloud Audit Logs, see the following:\n\n- [Types of audit logs](/logging/docs/audit#types)\n- [Audit log entry structure](/logging/docs/audit#audit_log_entry_structure)\n- [Storing and routing audit logs](/logging/docs/audit#storing_and_routing_audit_logs)\n- [Cloud Logging pricing summary](/stackdriver/pricing#logs-pricing-summary)\n- [Enable Data Access audit logs](/logging/docs/audit/configure-data-access)\n\n\u003cbr /\u003e\n\nService name\n------------\n\nStorage Batch Operations audit logs use the service name `storagebatchoperations.googleapis.com`.\nFilter for this service: \n\n```gdscript\n protoPayload.serviceName=\"storagebatchoperations.googleapis.com\"\n \n```\n\n\u003cbr /\u003e\n\nMethods by permission type\n--------------------------\n\nEach IAM permission has a `type` property, whose value is an enum\nthat can be one of four values: `ADMIN_READ`, `ADMIN_WRITE`,\n`DATA_READ`, or `DATA_WRITE`. When you call a method,\nStorage Batch Operations generates an audit log whose category is dependent on the\n`type` property of the permission required to perform the method.\n\nMethods that require an IAM permission with the `type` property value\nof `DATA_READ`, `DATA_WRITE`, or `ADMIN_READ` generate\n[Data Access](/logging/docs/audit#data-access) audit logs.\n\nMethods that require an IAM permission with the `type` property value\nof `ADMIN_WRITE` generate\n[Admin Activity](/logging/docs/audit#admin-activity) audit logs.\n\nAPI interface audit logs\n------------------------\n\nFor information about how and which permissions are evaluated for each method,\nsee the Cloud Identity and Access Management documentation for Storage Batch Operations.\n\n### `google.cloud.storagebatchoperations.v1.StorageBatchOperations`\n\nThe following audit logs are associated with methods belonging to\n`google.cloud.storagebatchoperations.v1.StorageBatchOperations`.\n\n#### `CancelJob`\n\n- **Method** : `google.cloud.storagebatchoperations.v1.StorageBatchOperations.CancelJob` \n- **Audit log type** : [Admin activity](/logging/docs/audit#admin-activity) \n- **Permissions** :\n - `storagebatchoperations.jobs.cancel - ADMIN_WRITE`\n- **Method is a long-running or streaming operation** : No. \n- **Filter for this method** : `\n protoPayload.methodName=\"google.cloud.storagebatchoperations.v1.StorageBatchOperations.CancelJob\"\n ` \n\n#### `CreateJob`\n\n- **Method** : `google.cloud.storagebatchoperations.v1.StorageBatchOperations.CreateJob` \n- **Audit log type** : [Admin activity](/logging/docs/audit#admin-activity) \n- **Permissions** :\n - `storagebatchoperations.jobs.create - ADMIN_WRITE`\n- **Method is a long-running or streaming operation** : [**Long-running operation**](/logging/docs/audit/understanding-audit-logs#lro) \n- **Filter for this method** : `\n protoPayload.methodName=\"google.cloud.storagebatchoperations.v1.StorageBatchOperations.CreateJob\"\n ` \n\n#### `DeleteJob`\n\n- **Method** : `google.cloud.storagebatchoperations.v1.StorageBatchOperations.DeleteJob` \n- **Audit log type** : [Admin activity](/logging/docs/audit#admin-activity) \n- **Permissions** :\n - `storagebatchoperations.jobs.delete - ADMIN_WRITE`\n- **Method is a long-running or streaming operation** : No. \n- **Filter for this method** : `\n protoPayload.methodName=\"google.cloud.storagebatchoperations.v1.StorageBatchOperations.DeleteJob\"\n ` \n\n#### `GetJob`\n\n- **Method** : `google.cloud.storagebatchoperations.v1.StorageBatchOperations.GetJob` \n- **Audit log type** : [Data access](/logging/docs/audit#data-access) \n- **Permissions** :\n - `storagebatchoperations.jobs.get - ADMIN_READ`\n- **Method is a long-running or streaming operation** : No. \n- **Filter for this method** : `\n protoPayload.methodName=\"google.cloud.storagebatchoperations.v1.StorageBatchOperations.GetJob\"\n ` \n\n#### `ListJobs`\n\n- **Method** : `google.cloud.storagebatchoperations.v1.StorageBatchOperations.ListJobs` \n- **Audit log type** : [Data access](/logging/docs/audit#data-access) \n- **Permissions** :\n - `storagebatchoperations.jobs.list - ADMIN_READ`\n- **Method is a long-running or streaming operation** : No. \n- **Filter for this method** : `\n protoPayload.methodName=\"google.cloud.storagebatchoperations.v1.StorageBatchOperations.ListJobs\"\n ` \n\n### `google.longrunning.Operations`\n\nThe following audit logs are associated with methods belonging to\n`google.longrunning.Operations`.\n\n#### `CancelOperation`\n\n- **Method** : `google.longrunning.Operations.CancelOperation` \n- **Audit log type** : [Admin activity](/logging/docs/audit#admin-activity) \n- **Permissions** :\n - `storagebatchoperations.operations.cancel - ADMIN_WRITE`\n- **Method is a long-running or streaming operation** : No. \n- **Filter for this method** : `\n protoPayload.methodName=\"google.longrunning.Operations.CancelOperation\"\n ` \n\n#### `DeleteOperation`\n\n- **Method** : `google.longrunning.Operations.DeleteOperation` \n- **Audit log type** : [Admin activity](/logging/docs/audit#admin-activity) \n- **Permissions** :\n - `storagebatchoperations.operations.delete - ADMIN_WRITE`\n- **Method is a long-running or streaming operation** : No. \n- **Filter for this method** : `\n protoPayload.methodName=\"google.longrunning.Operations.DeleteOperation\"\n ` \n\n#### `GetOperation`\n\n- **Method** : `google.longrunning.Operations.GetOperation` \n- **Audit log type** : [Data access](/logging/docs/audit#data-access) \n- **Permissions** :\n - `storagebatchoperations.operations.get - ADMIN_READ`\n- **Method is a long-running or streaming operation** : No. \n- **Filter for this method** : `\n protoPayload.methodName=\"google.longrunning.Operations.GetOperation\"\n ` \n\n#### `ListOperations`\n\n- **Method** : `google.longrunning.Operations.ListOperations` \n- **Audit log type** : [Data access](/logging/docs/audit#data-access) \n- **Permissions** :\n - `storagebatchoperations.operations.list - ADMIN_READ`\n- **Method is a long-running or streaming operation** : No. \n- **Filter for this method** : `\n protoPayload.methodName=\"google.longrunning.Operations.ListOperations\"\n ` \n\nMethods that don't produce audit logs\n-------------------------------------\n\nA method might not produce audit logs for one or more of the following\nreasons:\n\n- It is a high volume method involving significant log generation and storage costs.\n- It has low auditing value.\n- Another audit or platform log already provides method coverage.\n\n\u003cbr /\u003e\n\nThe following methods don't produce audit logs:\n\n- `google.cloud.location.Locations.GetLocation`\n- `google.cloud.location.Locations.ListLocations`\n- `google.longrunning.Operations.WaitOperation`"]]