Knowledge Sources - Get Status
Returns the current status and synchronization history of a knowledge source.
GET {endpoint}/knowledgesources('{sourceName}')/status?api-version=2025-11-01-preview
URI Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
|
endpoint
|
path | True |
string |
The endpoint URL of the search service. |
|
source
|
path | True |
string |
The name of the knowledge source for which to retrieve status. |
|
api-version
|
query | True |
string |
Client Api Version. |
Request Header
| Name | Required | Type | Description |
|---|---|---|---|
| x-ms-client-request-id |
string (uuid) |
The tracking ID sent with the request to help with debugging. |
Responses
| Name | Type | Description |
|---|---|---|
| 200 OK |
Knowledge source status retrieved successfully. |
|
| Other Status Codes |
Error response. |
Examples
SearchServiceGetKnowledgeSourceStatus
Sample request
GET https://previewexampleservice.search.windows.net/knowledgesources('ks-preview-test')/status?api-version=2025-11-01-preview
Sample response
{
"synchronizationStatus": "active",
"synchronizationInterval": "1d",
"currentSynchronizationState": {
"startTime": "2024-11-26T03:37:18.853Z",
"itemsUpdatesProcessed": 10,
"itemsUpdatesFailed": 2,
"itemsSkipped": 1
},
"lastSynchronizationState": {
"startTime": "2024-11-25T03:37:18.853Z",
"endTime": "2024-11-25T03:38:19.012Z",
"itemsUpdatesProcessed": 8,
"itemsUpdatesFailed": 1,
"itemsSkipped": 0
},
"statistics": {
"totalSynchronization": 5,
"averageSynchronizationDuration": "PT30M",
"averageItemsProcessedPerSynchronization": 100
}
}
Definitions
| Name | Description |
|---|---|
|
Completed |
Represents the completed state of the last synchronization. |
|
Error |
The resource management error additional info. |
|
Error |
The error detail. |
|
Error |
Error response |
|
Knowledge |
Statistical information about knowledge source synchronization history. |
|
Knowledge |
Represents the status and synchronization history of a knowledge source. |
|
Knowledge |
The current synchronization status of the knowledge source. |
|
Synchronization |
Represents the current state of an ongoing synchronization that spans multiple indexer runs. |
CompletedSynchronizationState
Represents the completed state of the last synchronization.
| Name | Type | Description |
|---|---|---|
| endTime |
string (date-time) |
The end time of the last completed synchronization. |
| itemsSkipped |
integer (int32) |
The number of items skipped in the last synchronization. |
| itemsUpdatesFailed |
integer (int32) |
The number of item updates that failed in the last synchronization. |
| itemsUpdatesProcessed |
integer (int32) |
The number of item updates successfully processed in the last synchronization. |
| startTime |
string (date-time) |
The start time of the last completed synchronization. |
ErrorAdditionalInfo
The resource management error additional info.
| Name | Type | Description |
|---|---|---|
| info |
object |
The additional info. |
| type |
string |
The additional info type. |
ErrorDetail
The error detail.
| Name | Type | Description |
|---|---|---|
| additionalInfo |
The error additional info. |
|
| code |
string |
The error code. |
| details |
The error details. |
|
| message |
string |
The error message. |
| target |
string |
The error target. |
ErrorResponse
Error response
| Name | Type | Description |
|---|---|---|
| error |
The error object. |
KnowledgeSourceStatistics
Statistical information about knowledge source synchronization history.
| Name | Type | Description |
|---|---|---|
| averageItemsProcessedPerSynchronization |
integer (int32) |
The average number of items processed per synchronization. |
| averageSynchronizationDuration |
string |
The average duration of synchronizations in HH:MM:SS format. |
| totalSynchronization |
integer (int32) |
The total number of synchronizations completed. |
KnowledgeSourceStatus
Represents the status and synchronization history of a knowledge source.
| Name | Type | Description |
|---|---|---|
| currentSynchronizationState |
Current synchronization state that spans multiple indexer runs. |
|
| lastSynchronizationState |
Details of the last completed synchronization. Null on first sync. |
|
| statistics |
Statistical information about the knowledge source synchronization history. Null on first sync. |
|
| synchronizationInterval |
string |
The synchronization interval (e.g., '1d' for daily). Null if no schedule is configured. |
| synchronizationStatus |
The current synchronization status of the knowledge source. |
KnowledgeSourceSynchronizationStatus
The current synchronization status of the knowledge source.
| Value | Description |
|---|---|
| creating |
The knowledge source is being provisioned. |
| active |
The knowledge source is active and synchronization runs are occurring. |
| deleting |
The knowledge source is being deleted and synchronization is paused. |
SynchronizationState
Represents the current state of an ongoing synchronization that spans multiple indexer runs.
| Name | Type | Description |
|---|---|---|
| itemsSkipped |
integer (int32) |
The number of items skipped in the current synchronization. |
| itemsUpdatesFailed |
integer (int32) |
The number of item updates that failed in the current synchronization. |
| itemsUpdatesProcessed |
integer (int32) |
The number of item updates successfully processed in the current synchronization. |
| startTime |
string (date-time) |
The start time of the current synchronization. |