> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# GET (/serviceconfigs/{scid}/sessiontemplates/{sessionTemplateName})

> GET (/serviceconfigs/{scid}/sessiontemplates/{sessionTemplateName})

# GET (/serviceconfigs/{scid}/sessiontemplates/{sessionTemplateName})

擷取一組工作階段範本名稱。

> **重要：**\
> 此 URI 方法要求每個要求都需要 X-Xbl-Contract-Version: 104/105 或更新版本的標頭元素。

* [URI 參數](#ID4ET)
* [HTTP 狀態碼](#ID4E5)
* [要求本文](#ID4EFB)
* [回應本文](#ID4EQB)

<a id="ID4ET" />

## URI 參數

\| 參數| 類型| 描述|
\| --- | --- | --- | --- |
\| scid| GUID| 服務設定識別碼 (SCID)。工作階段識別碼的第 1 部分。|
\| sessionTemplateName| string| 工作階段範本目前執行個體的名稱。工作階段識別碼的第 2 部分。 |

<a id="ID4E5" />

## HTTP 狀態碼

服務會傳回適用於 MPSD 的 HTTP 狀態碼。

<a id="ID4EFB" />

## 要求本文

此要求的本文中不會傳送任何物件。

<a id="ID4EQB" />

## 回應本文

```cpp theme={null}
{
    "results": [ {
            "xuid": "9876",    // If the session was found from a xuid, that xuid.
            "startTime": "2009-06-15T13:45:30.0900000Z",
            "sessionRef": {
                "scid": "foo",
                "templateName": "bar",
                "name": "session-seven"
            },
            "accepted": 4,    // Approximate number of non-reserved members.
            "status": "active",    // or "reserved" or "inactive". This is the state of the user in the session, not the session itself. Only present if the session was found using a xuid.
            "visibility": "open",    // or "private", "visible", or "full"
            "joinRestriction": "local",    // or "followed". Only present if 'visibility' is "open" or "full" and the session has a join restriction.
            "myTurn": true,    // Not present is the same as 'false'. Only present if the session was found using a xuid.
            "keywords": [ "one", "two" ]
        }
    ]
}

```

<a id="ID4EZB" />

## 另請參閱

<a id="ID4E2B" />

##### 上層

[/serviceconfigs/{scid}/sessiontemplates/{sessionTemplateName}](/zh-TW/reference/live/rest/uri/sessiondirectory/uri-serviceconfigsscidsessiontemplatessessiontemplatename)


## Related topics

- [XblMultiplayerSessionReferenceUri](/pt-BR/reference/live/xsapi-c/multiplayer_c/structs/xblmultiplayersessionreferenceuri.md)
- [Multiplayer Session Directory overview](/services/xbox-services/multiplayer/mpsd/live-mpsd-overview.md)
