Freigeben über


Model - Get Prebuilt Entity Role

Abrufen einer Rolle für eine bestimmte vordefinierte Entität in einer Version der Anwendung

GET {Endpoint}/luis/api/v2.0/apps/{appId}/versions/{versionId}/prebuilts/{entityId}/roles/{roleId}

URI-Parameter

Name In Erforderlich Typ Beschreibung
appId
path True

string (uuid)

Die Anwendungs-ID.

Endpoint
path True

string

Unterstützte Cognitive Services-Endpunkte (Protokoll und Hostname, z. B. https://westus.api.cognitive.microsoft.com).

entityId
path True

string (uuid)

Entitäts-ID.

roleId
path True

string (uuid)

Entitätsrollen-ID.

versionId
path True

string

Die Versions-ID.

Anforderungsheader

Name Erforderlich Typ Beschreibung
Ocp-Apim-Subscription-Key True

string

Antworten

Name Typ Beschreibung
200 OK

EntityRole

Eine Entitätsrolle

Other Status Codes

ErrorResponse

Fehlerantwort.

Sicherheit

Ocp-Apim-Subscription-Key

Typ: apiKey
In: header

Beispiele

Successful Get Prebuilt Entity Role request

Beispielanforderung

GET {Endpoint}/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/prebuilts/3d73462d-98f0-4dcd-8d30-fab9e65f2e73/roles/a682a962-1f92-4ae7-b8b8-398414e30c12

Beispiel für eine Antwort

{
  "id": "a682a962-1f92-4ae7-b8b8-398414e30c12",
  "name": "role 1"
}

Definitionen

Name Beschreibung
EntityRole

Entitätsextraktionsrolle

ErrorResponse

Fehlerantwort beim Aufrufen eines Vorgangs in der API.

EntityRole

Entitätsextraktionsrolle

Name Typ Beschreibung
id

string (uuid)

Die Entitätsrollen-ID.

name

string

Der Entitätsrollenname.

ErrorResponse

Fehlerantwort beim Aufrufen eines Vorgangs in der API.

Name Typ Beschreibung
errorType

string