Compartir a través de


Azure Accounts - List User LUIS Accounts

user - Get LUIS Azure accounts
Gets the LUIS Azure accounts for the user using his ARM token.

GET {Endpoint}/luis/api/v2.0/azureaccounts

URI Parameters

Name In Required Type Description
Endpoint
path True

string

Supported Cognitive Services endpoints (protocol and hostname, for example: https://westus.api.cognitive.microsoft.com).

Request Header

Name Required Type Description
Ocp-Apim-Subscription-Key True

string

Authorization True

string

The bearer authorization header to use; containing the user's ARM token used to validate Azure accounts information.

Responses

Name Type Description
200 OK

AzureAccountInfoObject[]

A list of Azure account information objects.

Other Status Codes

ErrorResponse

Error Response.

Security

Ocp-Apim-Subscription-Key

Type: apiKey
In: header

Examples

Successful Get azure accounts request

Sample request

GET {Endpoint}/luis/api/v2.0/azureaccounts


Sample response

[
  {
    "azureSubscriptionId": "{azure_subscription_id}",
    "resourceGroup": "{resource_group_name}",
    "accountName": "{account_name}"
  }
]

Definitions

Name Description
AzureAccountInfoObject

Defines the Azure account information object.

ErrorResponse

Error response when invoking an operation on the API.

AzureAccountInfoObject

Defines the Azure account information object.

Name Type Description
accountName

string

The Azure account name.

azureSubscriptionId

string

The id for the Azure subscription.

resourceGroup

string

The Azure resource group name.

ErrorResponse

Error response when invoking an operation on the API.

Name Type Description
errorType

string