Question Answering Projects - List Projects
Bir kullanıcının tüm projelerini alır.
GET {Endpoint}/language/authoring/query-knowledgebases/projects?api-version=2023-04-01
GET {Endpoint}/language/authoring/query-knowledgebases/projects?api-version=2023-04-01&top={top}&skip={skip}&maxpagesize={maxpagesize}
URI Parametreleri
| Name | İçinde | Gerekli | Tür | Description |
|---|---|---|---|---|
|
Endpoint
|
path | True |
string (uri) |
Desteklenen Bilişsel Hizmetler uç noktası (örneğin, https://< resource-name.api.cognitiveservices.azure.com>). |
|
api-version
|
query | True |
string minLength: 1 |
Bu işlem için kullanılacak API sürümü. |
|
maxpagesize
|
query |
integer (int32) |
Tek bir yanıta dahil edilecek en fazla kaynak sayısı. |
|
|
skip
|
query |
integer (int32) |
Döndürülecek ilk kaynağın koleksiyonuna uzaklık. |
|
|
top
|
query |
integer (int32) |
Koleksiyondan döndürülecek en fazla kaynak sayısı. |
Yanıtlar
| Name | Tür | Description |
|---|---|---|
| 200 OK |
İstek başarılı oldu. |
|
| Other Status Codes |
Beklenmeyen bir hata yanıtı. Üst Bilgiler x-ms-error-code: string |
Güvenlik
Ocp-Apim-Subscription-Key
Tür:
apiKey
İçinde:
header
OAuth2Auth
Tür:
oauth2
Akış:
implicit
Yetkilendirme URL’si:
https://login.microsoftonline.com/common/oauth2/authorize
Kapsamlar
| Name | Description |
|---|---|
| https://cognitiveservices.azure.com/.default |
Örnekler
Successful query
Örnek isteği
GET {Endpoint}/language/authoring/query-knowledgebases/projects?api-version=2023-04-01
Örnek yanıt
{
"value": [
{
"description": "proj1 is a test project.",
"createdDateTime": "2021-05-01T15:13:22Z",
"lastDeployedDateTime": "2021-05-01T15:13:22Z",
"lastModifiedDateTime": "2021-05-01T15:13:22Z",
"multilingualResource": true,
"projectName": "proj1",
"language": "en"
},
{
"description": "proj2 is a test project.",
"createdDateTime": "2021-05-01T15:13:22Z",
"lastDeployedDateTime": "2021-05-01T15:13:22Z",
"lastModifiedDateTime": "2021-05-01T15:13:22Z",
"multilingualResource": true,
"projectName": "proj2",
"language": "fr"
}
]
}
Tanımlar
| Name | Description |
|---|---|
| Error |
Hata nesnesi. |
|
Error |
İnsan tarafından okunabilen hata kodu. |
|
Error |
Hata yanıtı. |
|
Inner |
İnsan tarafından okunabilen hata kodu. |
|
Inner |
Hata hakkında daha ayrıntılı bilgi içeren bir nesne. Microsoft One API yönergelerine göre - https://github.com/Microsoft/api-guidelines/blob/vNext/Guidelines.md#7102-error-condition-responses. |
|
Paged |
QuestionAnsweringProjectMetadata öğelerinin sayfalı koleksiyonu |
|
Project |
Project'in yapılandırılabilir ayarları. |
|
Question |
Projeyi temsil eder. |
Error
Hata nesnesi.
| Name | Tür | Description |
|---|---|---|
| code |
Sunucu tanımlı hata kodları kümesinden biri. |
|
| details |
Error[] |
Bu bildirilen hataya yol açan belirli hatalar hakkında bir dizi ayrıntı. |
| innererror |
Hatayla ilgili geçerli nesneden daha belirli bilgiler içeren bir nesne. |
|
| message |
string |
Hatanın insan tarafından okunabilir bir gösterimi. |
| target |
string |
Hatanın hedefi. |
ErrorCode
İnsan tarafından okunabilen hata kodu.
| Değer | Description |
|---|---|
| InvalidRequest |
Geçersiz istek hatası |
| InvalidArgument |
Geçersiz bağımsız değişken hatası |
| Unauthorized |
Yetkisiz erişim hatası |
| Forbidden |
Yasak erişim hatası |
| NotFound |
Bulunamadı hatası |
| ProjectNotFound |
Proje bulunamadı hatası |
| OperationNotFound |
İşlem bulunamadı hatası |
| AzureCognitiveSearchNotFound |
Azure Bilişsel Arama bulunamadı hatası |
| AzureCognitiveSearchIndexNotFound |
Azure Bilişsel Arama dizini bulunamadı hatası |
| TooManyRequests |
Çok fazla istek hatası |
| AzureCognitiveSearchThrottling |
Azure Bilişsel Arama azaltma hatası |
| AzureCognitiveSearchIndexLimitReached |
Azure Bilişsel Arama dizin sınırına ulaşıldı hatası |
| InternalServerError |
İç sunucu hatası |
| ServiceUnavailable |
Hizmet kullanılamıyor hatası |
| Timeout |
Zaman aşımı hatası |
| QuotaExceeded |
Kota aşıldı hatası |
| Conflict |
Çakışma hatası |
| Warning |
Uyarı hatası |
ErrorResponse
Hata yanıtı.
| Name | Tür | Description |
|---|---|---|
| error |
Hata nesnesi. |
InnerErrorCode
İnsan tarafından okunabilen hata kodu.
| Değer | Description |
|---|---|
| InvalidRequest |
Geçersiz istek hatası |
| InvalidParameterValue |
Geçersiz parametre değeri hatası |
| KnowledgeBaseNotFound |
Bilgi bankası bulunamadı hatası |
| AzureCognitiveSearchNotFound |
Azure Bilişsel Arama bulunamadı hatası |
| AzureCognitiveSearchThrottling |
Azure Bilişsel Arama azaltma hatası |
| ExtractionFailure |
Ayıklama hatası |
| InvalidRequestBodyFormat |
Geçersiz istek gövdesi biçimi hatası |
| EmptyRequest |
Boş istek hatası |
| MissingInputDocuments |
Eksik giriş belgeleri hatası |
| InvalidDocument |
Geçersiz belge hatası |
| ModelVersionIncorrect |
Model sürümü yanlış hatası |
| InvalidDocumentBatch |
Geçersiz belge toplu iş hatası |
| UnsupportedLanguageCode |
Desteklenmeyen dil kodu hatası |
| InvalidCountryHint |
Geçersiz ülke ipucu hatası |
InnerErrorModel
Hata hakkında daha ayrıntılı bilgi içeren bir nesne. Microsoft One API yönergelerine göre - https://github.com/Microsoft/api-guidelines/blob/vNext/Guidelines.md#7102-error-condition-responses.
| Name | Tür | Description |
|---|---|---|
| code |
Sunucu tanımlı hata kodları kümesinden biri. |
|
| details |
object |
Hata ayrıntıları. |
| innererror |
Hatayla ilgili geçerli nesneden daha belirli bilgiler içeren bir nesne. |
|
| message |
string |
Hata mesajı. |
| target |
string |
Hata hedefi. |
PagedQuestionAnsweringProjectMetadata
QuestionAnsweringProjectMetadata öğelerinin sayfalı koleksiyonu
| Name | Tür | Description |
|---|---|---|
| nextLink |
string (uri) |
Öğelerin sonraki sayfasına bağlantı |
| value |
Bu sayfadaki QuestionAnsweringProjectMetadata öğeleri |
ProjectSettings
Project'in yapılandırılabilir ayarları.
| Name | Tür | Description |
|---|---|---|
| defaultAnswer |
string |
Bilgi bankasında iyi eşleşme olmadığında varsayılan Yanıt yanıtı. |
QuestionAnsweringProjectMetadata
Projeyi temsil eder.
| Name | Tür | Description |
|---|---|---|
| createdDateTime |
string (date-time) |
Proje oluşturma tarih-saati. |
| description |
string |
Projenin açıklaması. |
| language |
string |
Metin kayıtlarının dili. Bu, bir dilin BCP-47 gösterimidir. Örneğin, İngilizce için "en" kullanın; İspanyolca vb için "es" Ayarlanmadıysa, varsayılan olarak İngilizce için "en" kullanın. |
| lastDeployedDateTime |
string (date-time) |
Projenin son dağıtım tarih-saatini temsil eder. |
| lastModifiedDateTime |
string (date-time) |
Projenin son değiştirme tarihi-saatini temsil eder. |
| multilingualResource |
boolean |
Projeler arasında birden çok dil için etkinleştirilen veya etkinleştirilmeyen kaynak. |
| projectName |
string maxLength: 100pattern: ^(?=[a-zA-Z0-9])[a-zA-Z0-9-]{0,98}[a-zA-Z0-9]$ |
Projenin adı. |
| settings |
Project'in yapılandırılabilir ayarları. |