Apps - Get
获取应用程序信息。
GET {Endpoint}/luis/api/v2.0/apps/{appId}
URI 参数
| 名称 | 在 | 必需 | 类型 | 说明 |
|---|---|---|---|---|
|
app
|
path | True |
string (uuid) |
应用程序 ID。 |
|
Endpoint
|
path | True |
string |
支持的认知服务终结点(协议和主机名,例如:https://westus.api.cognitive.microsoft.com)。 |
请求头
| 名称 | 必需 | 类型 | 说明 |
|---|---|---|---|
| Ocp-Apim-Subscription-Key | True |
string |
响应
| 名称 | 类型 | 说明 |
|---|---|---|
| 200 OK |
应用程序信息。 |
|
| Other Status Codes |
错误响应。 |
安全性
Ocp-Apim-Subscription-Key
类型:
apiKey
在:
header
示例
Successful Get Application Info request
示例请求
GET {Endpoint}/luis/api/v2.0/apps/363187f1-c573-46b3-bc4c-ae01d686e68e
示例响应
{
"id": "363187f1-c573-46b3-bc4c-ae01d686e68e",
"name": "MyFirstDummyAp",
"description": "This is my first dummy application",
"culture": "en-us",
"usageScenario": "IoT",
"domain": "Comics",
"versionsCount": 3,
"createdDateTime": "2017-01-31T16:15:54Z",
"endpoints": {
"PRODUCTION": {
"versionId": "0.1",
"isStaging": false,
"endpointUrl": "DummyUrl",
"endpointRegion": "westus",
"assignedEndpointKey": "",
"publishedDateTime": "2017-02-19T17:09:14Z"
}
},
"endpointHitsCount": 0
}
定义
| 名称 | 说明 |
|---|---|
|
Application |
包含应用程序信息的响应。 |
|
Error |
调用 API 上的作时出现错误响应。 |
ApplicationInfoResponse
包含应用程序信息的响应。
| 名称 | 类型 | 说明 |
|---|---|---|
| activeVersion |
string |
当前标记为活动的版本 ID。 |
| createdDateTime |
string |
版本的创建时间戳。 |
| culture |
string |
应用程序的区域性。 例如,“en-us”。 |
| description |
string |
应用程序的说明。 |
| domain |
string |
新应用程序的域。 可选。 例如,漫画。 |
| endpointHitsCount |
integer |
对此终结点进行的调用数。 |
| endpoints |
object |
此模型版本的运行时终结点 URL。 |
| id |
string (uuid) |
应用程序的 ID(GUID)。 |
| name |
string |
应用程序的名称。 |
| usageScenario |
string |
定义新应用程序的方案。 可选。 例如,IoT。 |
| versionsCount |
integer |
应用程序中的模型版本量。 |
ErrorResponse
调用 API 上的作时出现错误响应。
| 名称 | 类型 | 说明 |
|---|---|---|
| errorType |
string |