Model - Get Entity Role
Mendapatkan satu peran untuk entitas tertentu dalam versi aplikasi
GET {Endpoint}/luis/authoring/v3.0-preview/apps/{appId}/versions/{versionId}/entities/{entityId}/roles/{roleId}
Parameter URI
Nama | Dalam | Diperlukan | Jenis | Deskripsi |
---|---|---|---|---|
app
|
path | True |
string uuid |
ID aplikasi. |
Endpoint
|
path | True |
string |
Titik akhir Cognitive Services yang didukung (protokol dan nama host, misalnya: https://westus.api.cognitive.microsoft.com). |
entity
|
path | True |
string uuid |
ID entitas. |
role
|
path | True |
string uuid |
ID peran entitas. |
version
|
path | True |
string |
ID versi. |
Header Permintaan
Nama | Diperlukan | Jenis | Deskripsi |
---|---|---|---|
Ocp-Apim-Subscription-Key | True |
string |
Respons
Nama | Jenis | Deskripsi |
---|---|---|
200 OK |
Peran entitas |
|
Other Status Codes |
Respons Kesalahan. |
Keamanan
Ocp-Apim-Subscription-Key
Type:
apiKey
In:
header
Contoh
Successful Get Entity Extractor Role request
Sample Request
GET {Endpoint}/luis/authoring/v3.0-preview/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/entities/3d73462d-98f0-4dcd-8d30-fab9e65f2e73/roles/a682a962-1f92-4ae7-b8b8-398414e30c12
Sample Response
{
"id": "a682a962-1f92-4ae7-b8b8-398414e30c12",
"name": "role 1"
}
Definisi
Nama | Deskripsi |
---|---|
Entity |
Peran ekstraktor entitas |
Error |
Respons kesalahan saat memanggil operasi pada API. |
EntityRole
Peran ekstraktor entitas
Nama | Jenis | Deskripsi |
---|---|---|
id |
string |
ID peran entitas. |
name |
string |
Nama peran entitas. |
ErrorResponse
Respons kesalahan saat memanggil operasi pada API.
Nama | Jenis | Deskripsi |
---|---|---|
errorType |
string |