Permissions - List
获取有权访问你的应用程序的用户电子邮件的列表。
GET {Endpoint}/luis/api/v2.0/apps/{appId}/permissions
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 User Access List
示例请求
GET {Endpoint}/luis/api/v2.0/apps/363187f1-c573-46b3-bc4c-ae01d686e68e/permissions
示例响应
{
"owner": "owner@email.com",
"emails": [
"yourname@outlook.com"
]
}
定义
| 名称 | 说明 |
|---|---|
|
Error |
调用 API 上的作时出现错误响应。 |
|
User |
用户权限列表。 |
ErrorResponse
调用 API 上的作时出现错误响应。
| 名称 | 类型 | 说明 |
|---|---|---|
| errorType |
string |
UserAccessList
用户权限列表。
| 名称 | 类型 | 说明 |
|---|---|---|
| emails |
string[] |
|
| owner |
string |
应用程序的所有者的电子邮件地址。 |