Model - List Entity Roles
Hämta alla roller för en entitet i en version av programmet
GET {Endpoint}/luis/authoring/v3.0-preview/apps/{appId}/versions/{versionId}/entities/{entityId}/roles
URI-parametrar
Name | I | Obligatorisk | Typ | Description |
---|---|---|---|---|
app
|
path | True |
string (uuid) |
Program-ID:t. |
Endpoint
|
path | True |
string |
Cognitive Services-slutpunkter som stöds (protokoll och värdnamn, till exempel: https://westus.api.cognitive.microsoft.com). |
entity
|
path | True |
string (uuid) |
entitets-ID |
version
|
path | True |
string |
Versions-ID:t. |
Begärandehuvud
Name | Obligatorisk | Typ | Description |
---|---|---|---|
Ocp-Apim-Subscription-Key | True |
string |
Svar
Name | Typ | Description |
---|---|---|
200 OK |
En lista över entitetsrollerna |
|
Other Status Codes |
Felsvar. |
Säkerhet
Ocp-Apim-Subscription-Key
Typ:
apiKey
I:
header
Exempel
Successful Get Entity Roles request
Exempelbegäran
GET {Endpoint}/luis/authoring/v3.0-preview/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/entities/2d3173b0-983c-43ae-92f8-6f5b5d09a11a/roles
Exempelsvar
[
{
"id": "3d73462d-98f0-4dcd-8d30-fab9e65f2e73",
"name": "role 1"
},
{
"id": "3d73462d-98f0-4dcd-8d30-fab9e65f2e73",
"name": "role 2"
}
]
Definitioner
Name | Description |
---|---|
Entity |
Entitetsextraktorroll |
Error |
Felsvar när en åtgärd anropas i API:et. |
EntityRole
Entitetsextraktorroll
Name | Typ | Description |
---|---|---|
id |
string (uuid) |
Entitetsrollens ID. |
name |
string |
Namnet på entitetens roll. |
ErrorResponse
Felsvar när en åtgärd anropas i API:et.
Name | Typ | Description |
---|---|---|
errorType |
string |