你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Azure Accounts - Get Assigned
应用 - 获取分配给应用程序的 LUIS Azure 帐户
获取使用其 ARM 令牌分配给应用程序的 LUIS Azure 帐户。
GET {Endpoint}/luis/authoring/v3.0-preview/apps/{appId}/azureaccounts
URI 参数
名称 | 在 | 必需 | 类型 | 说明 |
---|---|---|---|---|
app
|
path | True |
string uuid |
应用程序 ID。 |
Endpoint
|
path | True |
string |
支持的认知服务终结点 (协议和主机名,例如: https://westus.api.cognitive.microsoft.com) 。 |
请求头
名称 | 必需 | 类型 | 说明 |
---|---|---|---|
Ocp-Apim-Subscription-Key | True |
string |
|
Authorization | True |
string |
要使用的持有者授权标头;包含用于验证 Azure 帐户信息的用户的 ARM 令牌。 |
ArmToken |
string |
要使用的自定义 arm 令牌标头;包含用于验证 Azure 帐户信息的用户的 ARM 令牌。 |
响应
名称 | 类型 | 说明 |
---|---|---|
200 OK |
Azure 帐户信息对象的列表。 |
|
Other Status Codes |
错误响应。 |
安全性
Ocp-Apim-Subscription-Key
Type:
apiKey
In:
header
示例
Successful Get assigned azure accounts request
Sample Request
GET {Endpoint}/luis/authoring/v3.0-preview/apps/363187f1-c573-46b3-bc4c-ae01d686e68e/azureaccounts
Sample Response
[
{
"azureSubscriptionId": "{azure_subscription_id}",
"resourceGroup": "{resource_group_name}",
"accountName": "{account_name}"
}
]
定义
名称 | 说明 |
---|---|
Azure |
定义 Azure 帐户信息对象。 |
Error |
在 API 上调用操作时出现错误响应。 |
AzureAccountInfoObject
定义 Azure 帐户信息对象。
名称 | 类型 | 说明 |
---|---|---|
accountName |
string |
Azure 帐户名称。 |
azureSubscriptionId |
string |
Azure 订阅的 ID。 |
resourceGroup |
string |
Azure 资源组名称。 |
ErrorResponse
在 API 上调用操作时出现错误响应。
名称 | 类型 | 说明 |
---|---|---|
errorType |
string |