בדף הזה מוסבר איך לקבל מידע על הסטטוס ומטא-נתונים אחרים על פעולות ב-Filestore.
לפני שמתחילים
אפשר לקבל מידע על פעולות רק באמצעות ה-CLI של gcloud. כדי להשתמש ב-CLI של gcloud, צריך להתקין את CLI של gcloud או להשתמש ב-Cloud Shell שמוטמע במסוף Google Cloud :
קבלת מידע על כל הפעולות
כדי לקבל רשימה של פעולות Filestore, מריצים את הפקודה operations list:
gcloud filestore operations list
--[project=project-id] \
--[zone=zone]
where:
project-id הוא מזהה הפרויקט של הפרויקט Google Cloud שמכיל את מופע Filestore. אפשר לדלג על ההגדרה הזו אם מופעלת ברירת המחדל של
gcloudהפרויקט במופע Filestore. כדי להגדיר את פרויקט ברירת המחדל, מריצים את הפקודה:gcloud config set project project-idzone הוא האזור שבו נמצא מופע Filestore. כדי לקבל רשימה של אזורים נתמכים, מריצים את הפקודה
gcloud filestore zones list. אפשר לדלג על הדגל הזה אם מופע Filestore נמצא באזור ברירת המחדלgcloud. כדי להגדיר את אזור ברירת המחדל, מריצים את הפקודה:gcloud config set filestore/zone zone
הפקודה מחזירה תגובה שדומה לזו:
OPERATION_NAME LOCATION TYPE TARGET STATUS CREATE_TIME DURATION operation-1505929956434-559a2a41c217c-231e6a94-a4b6a803 us-central1-c create nfs1 DONE 2017-09-20T17:52:36 <1S operation-1505931180862-559a2ed176d0d-a0d70ae0-35ef2e71 europe-west1-b create nfs2 DONE 2017-09-20T18:13:00 <1S
קבלת מידע על פעולה ספציפית
כדי לקבל פרטים על פעולה ספציפית ב-Filestore, מריצים את הפקודה operations describe:
gcloud filestore operations describe operation-name \
--[project=project-id] \
--[zone=zone]
where:
- operation-name הוא שם הפעולה ב-Filestore.
כדי לקבל רשימה של שמות פעולות, משתמשים בפקודה
operations list. project-id הוא מזהה הפרויקט של הפרויקט Google Cloud שמכיל את מופע Filestore. אפשר לדלג על ההגדרה הזו אם מופעלת ברירת המחדל של
gcloudהפרויקט במופע Filestore. כדי להגדיר את פרויקט ברירת המחדל, מריצים את הפקודה:gcloud config set project project-idzone הוא האזור שבו נמצא מופע Filestore. מריצים את הפקודה
gcloud filestore zones listכדי לקבל רשימה של אזורים נתמכים. אפשר לדלג על הדגל הזה אם מופע Filestore נמצא באזור ברירת המחדלgcloud. כדי להגדיר את אזור ברירת המחדל, מריצים את הפקודהconfig set filestore/zone:gcloud config set filestore/zone zone
הפקודה מחזירה תגובה שדומה לזו:
done: true metadata: '@type': type.googleapis.com/google.cloud.common.OperationMetadata apiVersion: v1beta1 createTime: '2017-10-09T22:18:09.347400Z' endTime: '2017-10-09T22:20:04.392199183Z' target: projects/filestore-test/locations/us-central1-c/instances/filer3 verb: delete name: projects/filestore-test/locations/us-central1-c/operations/operation-1507587489330-55b2490c4f394-faece090-1c0e16db