Model - List Prebuilt Entity Roles
Egy előre összeállított entitás szerepköreinek lekérése az alkalmazás egy verziójában.
GET {Endpoint}/luis/api/v2.0/apps/{appId}/versions/{versionId}/prebuilts/{entityId}/roles
URI-paraméterek
Name | In | Kötelező | Típus | Description |
---|---|---|---|---|
app
|
path | True |
string uuid |
Az alkalmazás azonosítója. |
Endpoint
|
path | True |
string |
Támogatott Cognitive Services-végpontok (protokoll és állomásnév, például: https://westus.api.cognitive.microsoft.com). |
entity
|
path | True |
string uuid |
entitásazonosító |
version
|
path | True |
string |
A verzióazonosító. |
Kérelem fejléce
Name | Kötelező | Típus | Description |
---|---|---|---|
Ocp-Apim-Subscription-Key | True |
string |
Válaszok
Name | Típus | Description |
---|---|---|
200 OK |
Az entitásszerepkörök listája |
|
Other Status Codes |
Hibaválasz. |
Biztonság
Ocp-Apim-Subscription-Key
Type:
apiKey
In:
header
Példák
Successful Get Prebuilt Entity Roles request
Sample Request
GET {Endpoint}/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/prebuilts/2d3173b0-983c-43ae-92f8-6f5b5d09a11a/roles
Sample Response
[
{
"id": "3d73462d-98f0-4dcd-8d30-fab9e65f2e73",
"name": "role 1"
},
{
"id": "3d73462d-98f0-4dcd-8d30-fab9e65f2e73",
"name": "role 2"
}
]
Definíciók
Name | Description |
---|---|
Entity |
Entitáselszívó szerepkör |
Error |
Hibaválasz az API-ra irányuló művelet meghívásakor. |
EntityRole
Entitáselszívó szerepkör
Name | Típus | Description |
---|---|---|
id |
string |
Az entitásszerepkör azonosítója. |
name |
string |
Az entitásszerepkör neve. |
ErrorResponse
Hibaválasz az API-ra irányuló művelet meghívásakor.
Name | Típus | Description |
---|---|---|
errorType |
string |