每個 IAM 權限都有 type 屬性,其值為列舉,可以是下列四個值之一:ADMIN_READ、ADMIN_WRITE、DATA_READ 或 DATA_WRITE。呼叫方法時,Advisory Notifications 會產生稽核記錄,其類別取決於執行方法所需的權限的 type 屬性。如果方法需要 IAM 權限,且 type 屬性值為 DATA_READ、DATA_WRITE 或 ADMIN_READ,就會產生「資料存取」稽核記錄。需要 IAM 權限且 type 屬性值為 ADMIN_WRITE 的方法會產生管理員活動稽核記錄。
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["難以理解","hardToUnderstand","thumb-down"],["資訊或程式碼範例有誤","incorrectInformationOrSampleCode","thumb-down"],["缺少我需要的資訊/範例","missingTheInformationSamplesINeed","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-09-03 (世界標準時間)。"],[[["\u003cp\u003eAdvisory Notifications audit logs record administrative and access activities, using the service name \u003ccode\u003eadvisorynotifications.googleapis.com\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eAudit log categories are determined by the IAM permission \u003ccode\u003etype\u003c/code\u003e property, which can be \u003ccode\u003eADMIN_READ\u003c/code\u003e, \u003ccode\u003eADMIN_WRITE\u003c/code\u003e, \u003ccode\u003eDATA_READ\u003c/code\u003e, or \u003ccode\u003eDATA_WRITE\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eMethods requiring \u003ccode\u003eDATA_READ\u003c/code\u003e, \u003ccode\u003eDATA_WRITE\u003c/code\u003e, or \u003ccode\u003eADMIN_READ\u003c/code\u003e permissions generate Data Access audit logs, while methods requiring \u003ccode\u003eADMIN_WRITE\u003c/code\u003e permissions generate Admin Activity audit logs.\u003c/p\u003e\n"],["\u003cp\u003eSpecific methods like \u003ccode\u003eGetNotification\u003c/code\u003e, \u003ccode\u003eListNotifications\u003c/code\u003e, and \u003ccode\u003eGetSettings\u003c/code\u003e generate Data Access logs, while \u003ccode\u003eUpdateSettings\u003c/code\u003e generates Admin Activity logs.\u003c/p\u003e\n"],["\u003cp\u003eEach method includes details about its associated audit log type, required permissions, and a filter for identifying the method in the logs.\u003c/p\u003e\n"]]],[],null,["# Advisory Notifications audit logging\n\nThis document describes audit logging for Advisory Notifications. 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\nAdvisory Notifications audit logs use the service name `advisorynotifications.googleapis.com`.\nFilter for this service: \n\n```gdscript\n protoPayload.serviceName=\"advisorynotifications.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,\nAdvisory Notifications 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 Identity and Access Management documentation for Advisory Notifications.\n\n### `google.cloud.advisorynotifications.v1.AdvisoryNotificationsService`\n\nThe following audit logs are associated with methods belonging to\n`google.cloud.advisorynotifications.v1.AdvisoryNotificationsService`.\n\n#### `GetNotification`\n\n- **Method** : `google.cloud.advisorynotifications.v1.AdvisoryNotificationsService.GetNotification` \n- **Audit log type** : [Data access](/logging/docs/audit#data-access) \n- **Permissions** :\n - `advisorynotifications.notifications.get - ADMIN_READ`\n- **Method is a long-running or streaming operation** : No. \n- **Filter for this method** : `\n protoPayload.methodName=\"google.cloud.advisorynotifications.v1.AdvisoryNotificationsService.GetNotification\"\n ` \n\n#### `ListNotifications`\n\n- **Method** : `google.cloud.advisorynotifications.v1.AdvisoryNotificationsService.ListNotifications` \n- **Audit log type** : [Data access](/logging/docs/audit#data-access) \n- **Permissions** :\n - `advisorynotifications.notifications.list - ADMIN_READ`\n- **Method is a long-running or streaming operation** : No. \n- **Filter for this method** : `\n protoPayload.methodName=\"google.cloud.advisorynotifications.v1.AdvisoryNotificationsService.ListNotifications\"\n ` \n\n### `google.cloud.advisorynotifications.v1alpha.AdvisoryNotificationsService`\n\nThe following audit logs are associated with methods belonging to\n`google.cloud.advisorynotifications.v1alpha.AdvisoryNotificationsService`.\n\n#### `GetSettings`\n\n- **Method** : `google.cloud.advisorynotifications.v1alpha.AdvisoryNotificationsService.GetSettings` \n- **Audit log type** : [Data access](/logging/docs/audit#data-access) \n- **Permissions** :\n - `advisorynotifications.settings.get - ADMIN_READ`\n- **Method is a long-running or streaming operation** : No. \n- **Filter for this method** : `\n protoPayload.methodName=\"google.cloud.advisorynotifications.v1alpha.AdvisoryNotificationsService.GetSettings\"\n ` \n\n#### `UpdateSettings`\n\n- **Method** : `google.cloud.advisorynotifications.v1alpha.AdvisoryNotificationsService.UpdateSettings` \n- **Audit log type** : [Admin activity](/logging/docs/audit#admin-activity) \n- **Permissions** :\n - `advisorynotifications.settings.update - ADMIN_WRITE`\n- **Method is a long-running or streaming operation** : No. \n- **Filter for this method** : `\n protoPayload.methodName=\"google.cloud.advisorynotifications.v1alpha.AdvisoryNotificationsService.UpdateSettings\"\n ` \n\n### `google.cloud.advisorynotifications.v1beta.AdvisoryNotificationsService`\n\nThe following audit logs are associated with methods belonging to\n`google.cloud.advisorynotifications.v1beta.AdvisoryNotificationsService`.\n\n#### `GetNotification`\n\n- **Method** : `google.cloud.advisorynotifications.v1beta.AdvisoryNotificationsService.GetNotification` \n- **Audit log type** : [Data access](/logging/docs/audit#data-access) \n- **Permissions** :\n - `advisorynotifications.notifications.get - ADMIN_READ`\n- **Method is a long-running or streaming operation** : No. \n- **Filter for this method** : `\n protoPayload.methodName=\"google.cloud.advisorynotifications.v1beta.AdvisoryNotificationsService.GetNotification\"\n ` \n\n#### `ListNotifications`\n\n- **Method** : `google.cloud.advisorynotifications.v1beta.AdvisoryNotificationsService.ListNotifications` \n- **Audit log type** : [Data access](/logging/docs/audit#data-access) \n- **Permissions** :\n - `advisorynotifications.notifications.list - ADMIN_READ`\n- **Method is a long-running or streaming operation** : No. \n- **Filter for this method** : `\n protoPayload.methodName=\"google.cloud.advisorynotifications.v1beta.AdvisoryNotificationsService.ListNotifications\"\n `"]]