יכול להיות שחלק מהמידע בדף הזה או כולו לא רלוונטי ל-Trusted Cloud by S3NS.
הצגת פעולות באזורים מנוהלים
מערכת Cloud DNS מתעדת פעולות של עדכונים של תחומים מנוהלים שאתם מבצעים (שינוי תיאורים או הגדרת מצב DNSSEC). המערכת לא מתעדת את היצירה והמחיקה של תחום מנוהל. מחיקת תחום מנוהל מוחקת גם את הפעולות שתועדו באותו תחום.
הפעולות האלה הן בלתי תלויות בשינויים שאתם מבצעים במשאבים בתחום המנוהל. אפשר להשתמש ב-CLI של Google Cloud או ב-API ל-REST כדי לראות את ההיסטוריה של העדכונים האלה.
ההרשאות שנדרשות לביצוע המשימה הזו
כדי לבצע את המשימה הזו, צריכות להיות לכם ההרשאות הבאות או תפקידי ה-IAM הבאים.
הרשאות
dns.managedZoneOperations.list
dns.managedZoneOperations.get
תפקידים
הצגת יומן הביקורת של הפעולות
gcloud
מריצים את הפקודה הבאה:
gcloud dns operations list --zones="ZONE_NAME"
מחליפים את ZONE_NAME
בשם של תחום DNS בפרויקט.
הפקודה הזו מדפיסה את קבוצות רשומות המשאבים בפורמט JSON של 100 הרשומות הראשונות. אפשר לציין פרמטר נוסף:
--limit
: מספר הפעולות המקסימלי שרוצים להציג ברשימה
Python
from apiclient import errors
from apiclient.discovery import build
PROJECT_NAME='PROJECT_NAME'
ZONE_NAME='ZONE_NAME'
try:
service = build('dns', 'v1')
response = service.operations().list(project=PROJECT_NAME,
managedZone=ZONE_NAME).execute()
print(response)
except errors.HttpError, error:
print('An error occurred: %s' % error)
מחליפים את מה שכתוב בשדות הבאים:
PROJECT_NAME
: שם הפרויקט
ZONE_NAME
: שם של תחום DNS בפרויקט
המאמרים הבאים
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-06-27 (שעון UTC).
[[["התוכן קל להבנה","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"]],["עדכון אחרון: 2025-06-27 (שעון UTC)."],[[["Cloud DNS records managed zone updates, such as modifying descriptions or configuring DNSSEC state, are recorded as operations."],["You can use the Google Cloud CLI or the REST API to view the history of managed zone update operations, which are separate from changes to resources within the zone."],["To view these operations, you must have either the `dns.managedZoneOperations.list` and `dns.managedZoneOperations.get` permissions or the `roles/dns.admin` role."],["The `gcloud dns operations list --zones=\"ZONE_NAME\"` command can be used to display a JSON-formatted list of managed zone operations, with an optional `--limit` parameter to specify the number of operations."],["The Python code provided can also be used to programmatically display the managed zone operations."]]],[]]