הפעלה והשבתה של השירות

בדף הזה מוסבר איך להפעיל ולהשבית את Artifact Registry.

אם אתם משתמשים ב-Container Registry, אתם יכולים להפעיל את Artifact Registry באותו פרויקט. כל שירות פועל באופן עצמאי.

מידע על החיובים ב-Artifact Registry מופיע במאמר תמחור.

מידע על הפעלת ממשקי ה-API של Artifact Analysis ועל התמחור של סריקת פגיעויות זמין במסמכי התיעוד של Artifact Analysis.

הפעלת שירות

  1. נכנסים לחשבון Google Cloud . אם אתם משתמשים חדשים ב- Google Cloud, צרו חשבון כדי שתוכלו להעריך את הביצועים של המוצרים שלנו בתרחישים מהעולם האמיתי. לקוחות חדשים מקבלים בחינם גם קרדיט בשווי 300$ להרצה, לבדיקה ולפריסה של עומסי העבודה.
  2. 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 the resourcemanager.projects.create permission. Learn how to grant roles.

    Go to project selector

  3. Verify that billing is enabled for your Google Cloud project.

  4. 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 the resourcemanager.projects.create permission. Learn how to grant roles.

    Go to project selector

  5. Verify that billing is enabled for your Google Cloud project.

  6. אם Google Cloud CLI עדיין לא מותקן, צריך להתקין ולהפעיל אותו. אם כבר התקנתם את Google Cloud CLI, תוכלו לעדכן את הרכיבים שלו באמצעות הפקודה: gcloud components update.

    כדי לבדוק את הגרסה של ה-CLI של gcloud, מריצים את הפקודה:

    gcloud version
  7. מפעילים את ה-API ממסוףGoogle Cloud או באמצעות הפקודה הבאה של gcloud:
    gcloud services enable artifactregistry.googleapis.com

השבתת שירות

לפני שמשביתים את Artifact Registry API, צריך לוודא שכל הארטיפקטים שרוצים לשמור זמינים במיקום אחר. מומלץ למחוק מאגרי מידע לפני השבתת ה-API.

כשמשביתים את Artifact Registry API, התנאים הבאים חלים:

  • לא תהיה גישה למאגרי קוד ולפריטי מידע שנוצרים בתהליך פיתוח (Artifact) במאגרי קוד.
  • יכול להיות שהנתונים יימחקו תוך 7 ימים אחרי השבתת ה-API.

כדי להשבית את ה-API ממסוף Google Cloud :

console

  1. עוברים לדף API Overview (סקירה כללית של ה-API) ב-Artifact Registry.
  2. בוחרים את הפרויקט שבו ה-API מופעל.
  3. לוחצים על ניהול.
  4. לוחצים על השבתת ה-API.

gcloud

מריצים את הפקודה הבאה כדי להשבית את ה-API בפרויקט הנוכחי:

gcloud services disable artifactregistry.googleapis.com

המאמרים הבאים