gdcloud iam service-accounts keys create

שם

‫gdcloud iam service-accounts keys create – יצירת קובץ JSON של פרטי כניסה שמוגדרים כברירת מחדל לאפליקציה, שמכיל מפתח פרטי לחשבון שירות.

SYNOPSIS

gdcloud iam service-accounts keys create FILE_NAME [flags]

תיאור

יוצרים זוג מפתחות ציבורי/פרטי לחשבון השירות של פרויקט ומכניסים את המפתח הפרטי לקובץ JSON. אפשר להשתמש בקובץ כדי להחליף אותו באסימון STS מ-AIS.

דוגמאות


  To create an application default credentials JSON file "/tmp/my-key.json" for service account "psa-test" in project "iam-test" using cacert file "/tmp/ca.crt", run:

    gdcloud iam service-accounts keys create /tmp/my-key.json --iam-account=psa-test --project=iam-test --ca-cert-path=/tmp/ca.crt

דגלים נדרשים

      --iam-account string   Project's service account to create the key for. The flag is required to run the command.

דגלים אופציונליים

      --ca-cert-path string   CA cert path to verify the authentication endpoint. If omitted, then the system cert chain will be used.

GDCLOUD WIDE FLAGS

הדגלים האלה זמינים לכל הפקודות: --configuration, ‏ --format, ‏ --help, ‏ --project, ‏ --quiet.

מידע נוסף זמין בדף סקירה כללית של מדריך העזר ל-CLI של gcloud.