Method: projects.locations.dataStores.sessions.get

קבלת סשן.

בקשת HTTP


GET https://discoveryengine.googleapis.com/v1beta/{name=projects/*/locations/*/dataStores/*/sessions/*}

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

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

פרמטרים
name

string

חובה. שם המשאב של הסשן שרוצים לאחזר. פורמט: projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStoreId}/sessions/{sessionId}

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

פרמטרים
includeAnswerDetails

boolean

זה שינוי אופציונלי. אם המדיניות מוגדרת כ-True, הסשן המלא כולל כל פרטי התשובות יוחזר.

גוף הבקשה

גוף הבקשה צריך להיות ריק.

גוף התשובה

אם הפעולה בוצעה ללא שגיאות, גוף התגובה יכיל מופע של 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 הבאה במשאב name:

  • discoveryengine.sessions.get

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