רישום ביומן הביקורת של התראות אזהרה

יומני הביקורת של Cloud ל-Advisory Notifications מאפשרים לעקוב אחרי פעולות ניהול וגישה לנתונים במשאבים, כדי לעזור לכם לעקוב אחרי שינויים בגישה ובהגדרות. אתם יכולים לשלוח שאילתות ליומנים האלה ב-Logs Explorer ולבדוק אילו שיטות של Advisory Notifications API יוצרות יומני ביקורת ב-Cloud.

במאמרים הבאים אפשר לקרוא מידע נוסף על יומני הביקורת של Cloud:

שם השירות

כדי לראות את יומני הביקורת של התראות אזהרה:

  1. במסוף Google Cloud , נכנסים לדף Logs Explorer:

    כניסה לדף Logs Explorer

  2. מעתיקים את השאילתה הבאה ומדביקים אותה בשדה Query של Logs Explorer, ואז לוחצים על Run query.

        protoPayload.serviceName="advisorynotifications.googleapis.com"
      

קודי Method לפי סוג ההרשאה

לכל הרשאה ב-IAM יש מאפיין type עם enum שיכול להיות אחד מארבעת הערכים הבאים: ADMIN_READ,‏ ADMIN_WRITE,‏ DATA_READ או DATA_WRITE. כשקוראים ל-method, התראות אזהרה יוצר יומן ביקורת שהקטגוריה שלו תלויה במאפיין type של ההרשאה שנדרשת לביצוע ה-method. ה-methods שבשבילן צריך הרשאה ב-IAM עם הערכים DATA_READ‏, DATA_WRITE או ADMIN_READ במאפיין type יוצרות יומני ביקורת של Data Access. ה-methods שבשבילן צריך הרשאה ב-IAM עם הערכים ADMIN_WRITE במאפיין type יוצרות יומני ביקורת של Admin Activity.

ה-methods של ה-API ברשימה הבאה שמסומנות ב-(LRO) הן פעולות ממושכות. בדרך כלל, ה-methods האלה יוצרות שתי רשומות ביומן הביקורת: אחת כשהפעולה מתחילה ואחת כשהיא מסתיימת. אתם יכולים לקרוא מידע נוסף במאמר בנושא יומני ביקורת של פעולות ממושכות.
סוג ההרשאה Methods
ADMIN_READ google.cloud.advisorynotifications.v1.AdvisoryNotificationsService.GetNotification
google.cloud.advisorynotifications.v1.AdvisoryNotificationsService.GetSettings
google.cloud.advisorynotifications.v1.AdvisoryNotificationsService.ListNotifications
google.cloud.advisorynotifications.v1alpha.AdvisoryNotificationsService.GetSettings
google.cloud.advisorynotifications.v1beta.AdvisoryNotificationsService.GetNotification
google.cloud.advisorynotifications.v1beta.AdvisoryNotificationsService.ListNotifications
ADMIN_WRITE google.cloud.advisorynotifications.v1alpha.AdvisoryNotificationsService.UpdateSettings

יומני ביקורת של ממשק ה-API

במאמר בנושא ניהול הזהויות והרשאות הגישה (IAM) ל-Advisory Notifications מוסבר איך מתבצעת הבדיקה של ההרשאות לכל method, ואילו הרשאות נבדקות.

google.cloud.advisorynotifications.v1.AdvisoryNotificationsService

יומני הביקורת הבאים משויכים ל-methods ששייכות ל-google.cloud.advisorynotifications.v1.AdvisoryNotificationsService.

GetNotification

  • Method:‏ google.cloud.advisorynotifications.v1.AdvisoryNotificationsService.GetNotification
  • סוג יומן הביקורת: גישה לנתונים
  • הרשאות:
    • advisorynotifications.notifications.get - ADMIN_READ
  • ה-method היא פעולה ממושכת או פעולת סטרימינג: לא.
  • סינון לפי ה-method: ‏ protoPayload.methodName="google.cloud.advisorynotifications.v1.AdvisoryNotificationsService.GetNotification"

GetSettings

  • Method:‏ google.cloud.advisorynotifications.v1.AdvisoryNotificationsService.GetSettings
  • סוג יומן הביקורת: גישה לנתונים
  • הרשאות:
    • advisorynotifications.settings.get - ADMIN_READ
  • ה-method היא פעולה ממושכת או פעולת סטרימינג: לא.
  • סינון לפי ה-method: ‏ protoPayload.methodName="google.cloud.advisorynotifications.v1.AdvisoryNotificationsService.GetSettings"

ListNotifications

  • Method:‏ google.cloud.advisorynotifications.v1.AdvisoryNotificationsService.ListNotifications
  • סוג יומן הביקורת: גישה לנתונים
  • הרשאות:
    • advisorynotifications.notifications.list - ADMIN_READ
  • ה-method היא פעולה ממושכת או פעולת סטרימינג: לא.
  • סינון לפי ה-method: ‏ protoPayload.methodName="google.cloud.advisorynotifications.v1.AdvisoryNotificationsService.ListNotifications"

google.cloud.advisorynotifications.v1alpha.AdvisoryNotificationsService

יומני הביקורת הבאים משויכים ל-methods ששייכות ל-google.cloud.advisorynotifications.v1alpha.AdvisoryNotificationsService.

GetSettings

  • Method:‏ google.cloud.advisorynotifications.v1alpha.AdvisoryNotificationsService.GetSettings
  • סוג יומן הביקורת: גישה לנתונים
  • הרשאות:
    • advisorynotifications.settings.get - ADMIN_READ
  • ה-method היא פעולה ממושכת או פעולת סטרימינג: לא.
  • סינון לפי ה-method: ‏ protoPayload.methodName="google.cloud.advisorynotifications.v1alpha.AdvisoryNotificationsService.GetSettings"

UpdateSettings

  • Method:‏ google.cloud.advisorynotifications.v1alpha.AdvisoryNotificationsService.UpdateSettings
  • סוג יומן הביקורת: פעילות אדמין
  • הרשאות:
    • advisorynotifications.settings.update - ADMIN_WRITE
  • ה-method היא פעולה ממושכת או פעולת סטרימינג: לא.
  • סינון לפי ה-method: ‏ protoPayload.methodName="google.cloud.advisorynotifications.v1alpha.AdvisoryNotificationsService.UpdateSettings"

google.cloud.advisorynotifications.v1beta.AdvisoryNotificationsService

יומני הביקורת הבאים משויכים ל-methods ששייכות ל-google.cloud.advisorynotifications.v1beta.AdvisoryNotificationsService.

GetNotification

  • Method:‏ google.cloud.advisorynotifications.v1beta.AdvisoryNotificationsService.GetNotification
  • סוג יומן הביקורת: גישה לנתונים
  • הרשאות:
    • advisorynotifications.notifications.get - ADMIN_READ
  • ה-method היא פעולה ממושכת או פעולת סטרימינג: לא.
  • סינון לפי ה-method: ‏ protoPayload.methodName="google.cloud.advisorynotifications.v1beta.AdvisoryNotificationsService.GetNotification"

ListNotifications

  • Method:‏ google.cloud.advisorynotifications.v1beta.AdvisoryNotificationsService.ListNotifications
  • סוג יומן הביקורת: גישה לנתונים
  • הרשאות:
    • advisorynotifications.notifications.list - ADMIN_READ
  • ה-method היא פעולה ממושכת או פעולת סטרימינג: לא.
  • סינון לפי ה-method: ‏ protoPayload.methodName="google.cloud.advisorynotifications.v1beta.AdvisoryNotificationsService.ListNotifications"