בדף הזה מוסבר על אפשרויות בקרת הגישה שזמינות לכם ב-Eventarc.
סקירה כללית
Eventarc משתמש בניהול זהויות והרשאות גישה (IAM) לצורך בקרת גישה.
במאמר ניהול הגישה לפרויקטים, לתיקיות ולארגונים מוסבר איך מעניקים ומבטלים גישה באמצעות כללי מדיניות הרשאה.
- במאמר שליטה בגישת פרסום מוסבר איך לשלוט בגישת הפרסום ב-Eventarc Advanced באמצעות מדיניות גישה.
בסעיפים הבאים מפורטות רשימות של ההרשאות והתפקידים ש-Eventarc תומך בהם.
סוכן שירות Eventarc
לחלק מה Google Cloud שירותים יש סוכני שירות שמאפשרים לשירות לגשת למשאבים שלכם אם ניתנות להם ההרשאות המתאימות. אם API מסוים דורש סוכן שירות, אז Google Cloud יוצר את סוכן השירות בשלב מסוים אחרי שמפעילים את ה-API ומשתמשים בו.
Eventarc משתמש במודל הקצאת משאבים שיוצר את סוכן השירות שלו רק כשצריך אותו בפעם הראשונה – למשל, כשיוצרים משאב Eventarc בפעם הראשונה – ולא כשמפעילים את ה-API בפעם הראשונה. יכולות לחלוף כמה דקות עד שהסוכן יוקצה ועד שהשינויים יתעדכנו במערכת. מידע נוסף על העיכוב הזה זמין במאמר ההרשאה נדחתה במהלך השימוש בסוכן השירות של Eventarc.
הפעלת ממשקי ה-API של Eventarc
כדי להציג ולהקצות תפקידי IAM ל-Eventarc, צריך להפעיל את ממשקי ה-API של Eventarc בפרויקט. לא תוכלו לראות את התפקידים של Eventarc במסוף עד שתפעילו את ממשקי ה-API. Google Cloud
המסוף
- נכנסים לחשבון Google Cloud . אם אתם משתמשים חדשים ב- Google Cloud, צרו חשבון כדי שתוכלו להעריך את הביצועים של המוצרים שלנו בתרחישים מהעולם האמיתי. לקוחות חדשים מקבלים בחינם גם קרדיט בשווי 300$ להרצה, לבדיקה ולפריסה של עומסי העבודה.
-
In the Google Cloud console, on the project selector page, select or create a Google Cloud project.
Roles required to select or create a project
- Select a project: Selecting a project doesn't require a specific IAM role—you can select any project that you've been granted a role on.
-
Create a project: To create a project, you need the Project Creator role
(
roles/resourcemanager.projectCreator), which contains theresourcemanager.projects.createpermission. Learn how to grant roles.
-
Verify that billing is enabled for your Google Cloud project.
Enable the Eventarc and Eventarc Publishing APIs.
Roles required to enable APIs
To enable APIs, you need the
serviceusage.services.enablepermission. If you created the project, then you likely already have this permission through the Owner role (roles/owner). Otherwise, you can get this permission through the Service Usage Admin role (roles/serviceusage.serviceUsageAdmin). Learn how to grant roles.-
In the Google Cloud console, on the project selector page, select or create a Google Cloud project.
Roles required to select or create a project
- Select a project: Selecting a project doesn't require a specific IAM role—you can select any project that you've been granted a role on.
-
Create a project: To create a project, you need the Project Creator role
(
roles/resourcemanager.projectCreator), which contains theresourcemanager.projects.createpermission. Learn how to grant roles.
-
Verify that billing is enabled for your Google Cloud project.
Enable the Eventarc and Eventarc Publishing APIs.
Roles required to enable APIs
To enable APIs, you need the
serviceusage.services.enablepermission. If you created the project, then you likely already have this permission through the Owner role (roles/owner). Otherwise, you can get this permission through the Service Usage Admin role (roles/serviceusage.serviceUsageAdmin). Learn how to grant roles.
gcloud
- נכנסים לחשבון Google Cloud . אם אתם משתמשים חדשים ב- Google Cloud, צרו חשבון כדי שתוכלו להעריך את הביצועים של המוצרים שלנו בתרחישים מהעולם האמיתי. לקוחות חדשים מקבלים בחינם גם קרדיט בשווי 300$ להרצה, לבדיקה ולפריסה של עומסי העבודה.
-
התקינו את ה-CLI של Google Cloud.
-
אם אתם משתמשים בספק זהויות חיצוני (IdP), קודם אתם צריכים להיכנס ל-CLI של gcloud באמצעות המאגר המאוחד לניהול זהויות.
-
כדי לאתחל את ה-CLI של gcloud, הריצו את הפקודה הבאה:
gcloud init -
יוצרים או בוחרים Google Cloud פרויקט.
תפקידים שנדרשים כדי לבחור או ליצור פרויקט
- Select a project: כדי לבחור פרויקט לא צריך תפקיד IAM ספציפי – אפשר לבחור כל פרויקט שקיבלתם בו תפקיד.
-
יצירת פרויקט: כדי ליצור פרויקט, צריך את התפקיד Project Creator (יצירת פרויקטים) (
roles/resourcemanager.projectCreator), שכולל את ההרשאהresourcemanager.projects.create. איך מקצים תפקידים
-
יוצרים Google Cloud פרויקט:
gcloud projects create PROJECT_ID
מחליפים את
PROJECT_IDבשם של פרויקט Google Cloud שיוצרים.