Versions - Get
取得版本資訊,例如建立日期、上次修改日期、端點 URL、意圖和實體計數、定型和發佈狀態。
GET {Endpoint}/luis/authoring/v3.0-preview/apps/{appId}/versions/{versionId}/
URI 參數
名稱 | 位於 | 必要 | 類型 | Description |
---|---|---|---|---|
app
|
path | True |
string (uuid) |
應用程式識別碼。 |
Endpoint
|
path | True |
string |
支援的認知服務端點(通訊協定和主機名,例如:https://westus.api.cognitive.microsoft.com)。 |
version
|
path | True |
string |
版本標識碼。 |
要求標頭
名稱 | 必要 | 類型 | Description |
---|---|---|---|
Ocp-Apim-Subscription-Key | True |
string |
回應
名稱 | 類型 | Description |
---|---|---|
200 OK |
包含版本資訊的模型。 |
|
Other Status Codes |
錯誤回應。 |
安全性
Ocp-Apim-Subscription-Key
類型:
apiKey
位於:
header
範例
Successful Get Application Version info request
範例要求
GET {Endpoint}/luis/authoring/v3.0-preview/apps/363187f1-c573-46b3-bc4c-ae01d686e68e/versions/0.1/
範例回覆
{
"version": "0.1",
"createdDateTime": "2017-08-01T14:34:15Z",
"lastModifiedDateTime": "2017-11-28T20:12:09Z",
"lastTrainedDateTime": "2017-11-28T20:12:12Z",
"lastPublishedDateTime": "2017-11-28T20:12:35Z",
"endpointUrl": "https://westus.api.cognitive.microsoft.com/luis/v2.0/apps/363187f1-c573-46b3-bc4c-ae01d686e68e",
"assignedEndpointKey": {
"SubscriptionKey": "",
"SubscriptionRegion": "westus",
"SubscriptionName": ""
},
"externalApiKeys": {},
"intentsCount": 4,
"entitiesCount": 0,
"endpointHitsCount": 175,
"trainingStatus": "Trained"
}
定義
名稱 | Description |
---|---|
Error |
叫用 API 上的作業時發生錯誤回應。 |
Training |
訓練狀態。 |
Version |
應用程式版本的物件模型。 |
ErrorResponse
叫用 API 上的作業時發生錯誤回應。
名稱 | 類型 | Description |
---|---|---|
errorType |
string |
TrainingStatus
訓練狀態。
值 | Description |
---|---|
Fail | |
InProgress | |
Queued | |
Success | |
UpToDate |
VersionInfo
應用程式版本的物件模型。
名稱 | 類型 | Description |
---|---|---|
assignedEndpointKey |
object |
端點金鑰。 |
createdDateTime |
string (date-time) |
版本的建立時間戳。 |
endpointHitsCount |
integer |
對這個端點進行的呼叫數目。 |
endpointUrl |
string |
此模型版本的運行時間端點 URL。 |
entitiesCount |
integer |
此模型中的實體數目。 |
externalApiKeys |
object |
外部索引鍵。 |
intentsCount |
integer |
此模型中的意圖數目。 |
lastModifiedDateTime |
string (date-time) |
上次更新的時間戳。 |
lastPublishedDateTime |
string (date-time) |
上次發行時的時間戳。 |
lastTrainedDateTime |
string (date-time) |
上次定型模型的時間戳。 |
trainingStatus |
目前的定型狀態。 |
|
version |
string |
版本標識碼。 例如:“0.1” |