Model - List Hierarchical Entity Roles

Hämta alla roller för en hierarkisk entitet i en version av programmet

GET {Endpoint}/luis/api/v2.0/apps/{appId}/versions/{versionId}/hierarchicalentities/{hEntityId}/roles

URI-parametrar

Name I Obligatorisk Typ Description
appId
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).

hEntityId
path True

string

uuid

Hierarkisk entitetsextraktor-ID.

versionId
path True

string

Versions-ID.

Begärandehuvud

Name Obligatorisk Typ Description
Ocp-Apim-Subscription-Key True

string

Svar

Name Typ Description
200 OK

EntityRole[]

En lista över entitetsrollerna

Other Status Codes

ErrorResponse

Felsvar.

Säkerhet

Ocp-Apim-Subscription-Key

Type: apiKey
In: header

Exempel

Successful Get Hierarchical Entity Roles request

Sample Request

GET {Endpoint}/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/hierarchicalentities/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"
  }
]

Definitioner

Name Description
EntityRole

Entitetsextraktorroll

ErrorResponse

Felsvar vid anrop av en åtgärd i API:et.

EntityRole

Entitetsextraktorroll

Name Typ Description
id

string

Entitetsrollens ID.

name

string

Namnet på entitetens roll.

ErrorResponse

Felsvar vid anrop av en åtgärd i API:et.

Name Typ Description
errorType

string