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}

גוף הבקשה

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

גוף התשובה

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

היקפי הרשאות

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

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

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

הרשאות IAM

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

  • discoveryengine.sessions.create

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