Method: projects.locations.collections.dataStores.sessions.create

יצירת סשן.

אם Session כבר קיים, מוחזרת השגיאה ALREADY_EXISTS.

בקשת HTTP


POST https://discoveryengine.googleapis.com/v1beta/{parent=projects/*/locations/*/collections/*/dataStores/*}/sessions

כתובות ה-URL כתובות בתחביר של gRPC Transcoding.

פרמטרים של נתיב

פרמטרים
parent

string

חובה. השם המלא של משאב מאגר נתוני האב. פורמט: projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStoreId}

פרמטרים של שאילתה

פרמטרים
sessionId

string

זה שינוי אופציונלי. המזהה לשימוש בסשן, שיהפוך לרכיב הסופי של שם המשאב של הסשן.

הערך צריך לכלול 1-63 תווים, והתווים התקפים הם ‎ /[a-z0-9][a-z0-9-]{0,61}[a-z0-9]/‎. אם לא מציינים מזהה, המערכת תיצור מזהה ייחודי.

גוף הבקשה

גוף הבקשה מכיל מופע של Session.

גוף התשובה

אם הפעולה בוצעה ללא שגיאות, גוף התגובה יכיל מופע חדש של Session.

היקפי הרשאות

נדרש אחד מהיקפי ההרשאות הבאים של OAuth:

  • https://www.googleapis.com/auth/cloud-platform
  • https://www.googleapis.com/auth/discoveryengine.assist.readwrite
  • https://www.googleapis.com/auth/discoveryengine.readwrite
  • https://www.googleapis.com/auth/discoveryengine.serving.readwrite

ניתן למצוא מידע נוסף כאן: Authentication Overview.

הרשאות IAM

נדרשת הרשאת IAM הבאה במשאב parent:

  • discoveryengine.sessions.create

מידע נוסף מופיע במאמרי העזרה בנושא IAM.