Ingestion Jobs - Get
Gets the details of the specified job id.
GET {endpoint}/openai/ingestion/jobs/{job-id}?api-version=2024-07-01-preview
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
endpoint
|
path | True |
string url |
Supported Cognitive Services endpoints (protocol and hostname, for example: https://aoairesource.openai.azure.com. Replace "aoairesource" with your Azure OpenAI account name). |
job-id
|
path | True |
string |
The id of the job. |
api-version
|
query | True |
string |
The requested API version. |
Responses
Name | Type | Description |
---|---|---|
200 OK | IngestionJob: |
Success |
Other Status Codes |
An error occurred. |
Security
api-key
API key authentication
Type:
apiKey
In:
header
OAuth2Auth
OAuth2 authentication
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/v2.0/authorize
Scopes
Name | Description |
---|---|
https://cognitiveservices.azure.com/.default |
Examples
Get ingestion job
Sample request
GET {endpoint}/openai/ingestion/jobs/ingestion-job?api-version=2024-07-01-preview
Sample response
{
"kind": "UserCompute",
"jobId": "ingestion-job",
"workspaceId": "/subscriptions/f375b912-331c-4fc5-8e9f-2d7205e3e036/resourceGroups/adrama-copilot-demo/providers/Microsoft.MachineLearningServices/workspaces/adrama-rag-dev",
"compute": {
"kind": "ServerlessCompute"
},
"target": {
"kind": "AzureAISearch",
"connectionId": "/subscriptions/f375b912-331c-4fc5-8e9f-2d7205e3e036/resourceGroups/adrama-copilot-demo/providers/Microsoft.MachineLearningServices/workspaces/adrama-rag-dev/connections/search-connection"
},
"datasource": {
"kind": "Dataset",
"datasetId": "azureml://locations/centraluseuap/workspaces/83317fe6-efa6-4e4a-b020-d0edd11ec382/data/PlainText/versions/1",
"datasetType": "uri_folder"
}
}
Definitions
Name | Description |
---|---|
Azure |
Azure AI Search Index. |
Chunking |
ChunkingSettings |
Compute |
The compute type. |
Connection |
Connection string connection. |
Connection |
The connection type. |
Cosmos |
CosmosDB Index. |
Crawling |
CrawlingSettings |
Custom |
Custom compute. |
Deployment |
Relative deployment connection. |
Endpoint |
Endpoint key connection. |
Endpoint |
Endpoint Managed Identity connection. |
Error |
Error |
Error |
ErrorCode |
Error |
ErrorResponse |
Generic |
ConnectionEmbeddingSettings |
Ingestion |
The completion action. |
Ingestion |
|
Ingestion |
IngestionJobType |
Ingestion |
|
Inner |
InnerError |
Inner |
InnerErrorCode |
Pinecone |
Pinecone Index. |
Serverless |
Serverless compute. |
System |
The datasource type. |
System |
SystemComputeStorage |
System |
SystemComputeUrl |
Target |
The target type. |
User |
UserComputeStorage |
User |
The datasource type. |
User |
UserComputeUrl |
Workspace |
AML Workspace connection. |
Workspace |
WorkspaceConnectionEmbeddingSettings |
AzureAISearchIndex
Azure AI Search Index.
Name | Type | Description |
---|---|---|
connectionId |
string |
The id of the connection pointing to the Azure AI Search Index. |
kind |
string:
Azure |
The target type. |
ChunkingSettings
ChunkingSettings
Name | Type | Description |
---|---|---|
maxChunkSizeInTokens |
integer |
ComputeType
The compute type.
Name | Type | Description |
---|---|---|
CustomCompute |
string |
Custom user compute. |
ServerlessCompute |
string |
Serverless user compute. |
ConnectionStringConnection
Connection string connection.
Name | Type | Description |
---|---|---|
connectionString |
string |
Connection string |
kind |
string:
Connection |
The connection type. |
ConnectionType
The connection type.
Name | Type | Description |
---|---|---|
ConnectionString |
string |
Connection string. |
EndpointWithKey |
string |
Endpoint and key connection. |
EndpointWithManagedIdentity |
string |
Endpoint and managed identity. |
RelativeConnection |
string |
Relative deployment |
WorkspaceConnection |
string |
AML Workspace connection. |
CosmosDBIndex
CosmosDB Index.
Name | Type | Description |
---|---|---|
collectionName |
string |
The name of the cosmos DB collection. |
connectionId |
string |
The id of the connection pointing to the cosmos DB. |
databaseName |
string |
The name of the cosmos DB database. |
kind |
string:
CosmosDB |
The target type. |
CrawlingSettings
CrawlingSettings
Name | Type | Description |
---|---|---|
maxCrawlDepth |
integer |
|
maxCrawlTimeInMins |
integer |
|
maxDownloadTimeInMins |
integer |
|
maxFileSize |
integer |
|
maxFiles |
integer |
|
maxRedirects |
integer |
CustomCompute
Custom compute.
Name | Type | Description |
---|---|---|
computeId |
string |
Id of the custom compute |
kind | string: |
The compute type. |
DeploymentConnection
Relative deployment connection.
Name | Type | Description |
---|---|---|
kind |
string:
Relative |
The connection type. |
EndpointKeyConnection
Endpoint key connection.
Name | Type | Description |
---|---|---|
endpoint |
string |
Endpoint |
key |
string |
Key |
kind |
string:
Endpoint |
The connection type. |
EndpointMIConnection
Endpoint Managed Identity connection.
Name | Type | Description |
---|---|---|
endpoint |
string |
Endpoint |
kind |
string:
Endpoint |
The connection type. |
resourceId |
string |
Resource Id |
Error
Error
Name | Type | Description |
---|---|---|
code |
ErrorCode |
|
details |
Error[] |
The error details if available. |
innererror |
InnerError |
|
message |
string |
The message of this error. |
target |
string |
The location where the error happened if available. |
ErrorCode
ErrorCode
Name | Type | Description |
---|---|---|
conflict |
string |
The requested operation conflicts with the current resource state. |
contentFilter |
string |
Image generation failed as a result of our safety system. |
fileImportFailed |
string |
Import of file failed. |
forbidden |
string |
The operation is forbidden for the current user/api key. |
internalFailure |
string |
Internal error. Please retry. |
invalidPayload |
string |
The request data is invalid for this operation. |
itemDoesAlreadyExist |
string |
The item does already exist. |
jsonlValidationFailed |
string |
Validation of jsonl data failed. |
notFound |
string |
The resource is not found. |
quotaExceeded |
string |
Quota exceeded. |
serviceUnavailable |
string |
The service is currently not available. |
tooManyRequests |
string |
Too many requests. Please retry later. |
unauthorized |
string |
The current user/api key is not authorized for the operation. |
unexpectedEntityState |
string |
The operation cannot be executed in the current resource's state. |
ErrorResponse
ErrorResponse
Name | Type | Description |
---|---|---|
error |
Error |
GenericEmbeddingSettings
ConnectionEmbeddingSettings
Name | Type | Description |
---|---|---|
connection | BaseConnection: |
BaseConnection |
deploymentName |
string |
|
modelName |
string |
IngestionJobCompletionAction
The completion action.
Name | Type | Description |
---|---|---|
cleanUpTempAssets |
string |
Will clean up intermediate assets created during the ingestion process. |
keepAllAssets |
string |
Will not clean up any of the intermediate assets created during the ingestion process. |
IngestionJobSystemCompute
Name | Type | Description |
---|---|---|
completionAction |
The completion action. |
|
dataRefreshIntervalInHours |
integer |
|
datasource | SystemComputeDatasource: |
SystemComputeDatasource |
jobId |
string |
|
kind |
string:
System |
IngestionJobType |
searchServiceConnection | BaseConnection: |
BaseConnection |
IngestionJobType
IngestionJobType
Name | Type | Description |
---|---|---|
SystemCompute |
string |
Jobs that run on service owned resources. |
UserCompute |
string |
Jobs that run on user owned workspace. |
IngestionJobUserCompute
Name | Type | Description |
---|---|---|
compute | JobCompute: |
JobCompute |
dataRefreshIntervalInHours |
integer |
|
datasource | UserComputeDatasource: |
UserComputeDatasource |
jobId |
string |
|
kind |
string:
User |
IngestionJobType |
target | TargetIndex: |
TargetIndex |
workspaceId |
string |
InnerError
InnerError
Name | Type | Description |
---|---|---|
code |
InnerErrorCode |
|
innererror |
InnerError |
InnerErrorCode
InnerErrorCode
Name | Type | Description |
---|---|---|
invalidPayload |
string |
The request data is invalid for this operation. |
PineconeIndex
Pinecone Index.
Name | Type | Description |
---|---|---|
connectionId |
string |
The id of the connection pointing to the pinecone. |
kind |
string:
Pinecone |
The target type. |
ServerlessCompute
Serverless compute.
Name | Type | Description |
---|---|---|
instanceCount |
integer |
The count of instances to run the job on. |
kind | string: |
The compute type. |
sku |
string |
SKU Level |
SystemComputeDatasourceType
The datasource type.
Name | Type | Description |
---|---|---|
Storage |
string |
Azure Storage Account. |
Urls |
string |
URLs. |
SystemComputeStorage
SystemComputeStorage
Name | Type | Description |
---|---|---|
chunking |
ChunkingSettings |
|
connection | BaseConnection: |
BaseConnection |
containerName |
string |
container name |
embeddings |
ConnectionEmbeddingSettings |
|
kind |
string:
Storage |
The datasource type. |
SystemComputeUrl
SystemComputeUrl
Name | Type | Description |
---|---|---|
chunking |
ChunkingSettings |
|
connection | BaseConnection: |
BaseConnection |
containerName |
string |
container name |
crawling |
CrawlingSettings |
|
embeddings |
ConnectionEmbeddingSettings |
|
kind |
string:
Urls |
The datasource type. |
urls |
string[] |
TargetType
The target type.
Name | Type | Description |
---|---|---|
AzureAISearch |
string |
Azure AI Search Index. |
CosmosDB |
string |
CosmosDB Index. |
Pinecone |
string |
Pinecone Index. |
UserComputeDataset
UserComputeStorage
Name | Type | Description |
---|---|---|
chunking |
ChunkingSettings |
|
datasetId |
string |
|
datasetType |
string |
|
embeddings |
WorkspaceConnectionEmbeddingSettings |
|
kind |
string:
Dataset |
The datasource type. |
UserComputeDatasourceType
The datasource type.
Name | Type | Description |
---|---|---|
Dataset |
string |
Workspace Dataset. |
Urls |
string |
URLs. |
UserComputeUrl
UserComputeUrl
Name | Type | Description |
---|---|---|
chunking |
ChunkingSettings |
|
crawling |
CrawlingSettings |
|
embeddings |
WorkspaceConnectionEmbeddingSettings |
|
kind |
string:
Urls |
The datasource type. |
urls |
string[] |
WorkspaceConnection
AML Workspace connection.
Name | Type | Description |
---|---|---|
connectionId |
string |
ConnectionId |
kind | string: |
The connection type. |
WorkspaceConnectionEmbeddingSettings
WorkspaceConnectionEmbeddingSettings
Name | Type | Description |
---|---|---|
connectionId |
string |
|
deploymentName |
string |
|
modelName |
string |