Text Analysis Authoring - List Training Jobs
Lists the non-expired training jobs created for a project.
GET {Endpoint}/language/authoring/analyze-text/projects/{projectName}/train/jobs?api-version=2022-05-01
GET {Endpoint}/language/authoring/analyze-text/projects/{projectName}/train/jobs?top={top}&skip={skip}&maxpagesize={maxpagesize}&api-version=2022-05-01
URI Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
|
Endpoint
|
path | True |
string |
Supported Cognitive Services endpoint (e.g., https://<resource-name>.api.cognitiveservices.azure.com). |
|
project
|
path | True |
string maxLength: 100 |
The name of the project to use. |
|
api-version
|
query | True |
string |
Client API version. |
|
maxpagesize
|
query |
integer (int32) |
The maximum number of resources to include in a single response. |
|
|
skip
|
query |
integer (int32) |
An offset into the collection of the first resource to be returned. |
|
|
top
|
query |
integer (int32) |
The maximum number of resources to return from the collection. |
Request Header
| Name | Required | Type | Description |
|---|---|---|---|
| Ocp-Apim-Subscription-Key | True |
string |
A subscription key for a Language service resource. |
Responses
| Name | Type | Description |
|---|---|---|
| 200 OK |
List of the training jobs. |
|
| Other Status Codes |
Error response. |
Security
Ocp-Apim-Subscription-Key
A subscription key for a Language service resource.
Type:
apiKey
In:
header
Examples
Successful List Training Jobs
Sample request
GET {Endpoint}/language/authoring/analyze-text/projects/LoanAgreements/train/jobs?api-version=2022-05-01
Sample response
{
"value": [
{
"result": {
"modelLabel": "model1",
"trainingConfigVersion": "2022-05-01",
"trainingStatus": {
"percentComplete": 100,
"startDateTime": "2022-04-18T15:45:06.8190649Z",
"endDateTime": "2022-04-18T15:47:19.2639682Z",
"status": "succeeded"
},
"evaluationStatus": {
"percentComplete": 100,
"startDateTime": "2022-04-18T15:47:19.2734976Z",
"endDateTime": "2022-04-18T15:47:23.8378892Z",
"status": "succeeded"
}
},
"jobId": "8ccf2ffe-e758-4d04-a44a-31512918c7e8_637858368000000000",
"createdDateTime": "2022-04-18T15:44:44Z",
"lastUpdatedDateTime": "2022-04-18T15:47:50Z",
"expirationDateTime": "2022-04-25T15:44:44Z",
"status": "succeeded"
},
{
"result": {
"modelLabel": "model2",
"trainingConfigVersion": "2022-05-01",
"trainingStatus": {
"percentComplete": 100,
"startDateTime": "2022-04-18T17:22:39.3663023Z",
"endDateTime": "2022-04-18T17:24:51.9440947Z",
"status": "succeeded"
},
"evaluationStatus": {
"percentComplete": 100,
"startDateTime": "2022-04-18T17:24:51.9571747Z",
"endDateTime": "2022-04-18T17:24:58.1427823Z",
"status": "succeeded"
}
},
"jobId": "9145f93f-6f37-418c-8527-d2ded84cece0_637858368000000000",
"createdDateTime": "2022-04-18T17:22:11Z",
"lastUpdatedDateTime": "2022-04-18T17:25:23Z",
"expirationDateTime": "2022-04-25T17:22:11Z",
"status": "succeeded"
},
{
"result": {
"modelLabel": "model2",
"trainingConfigVersion": "2022-05-01",
"trainingStatus": {
"percentComplete": 100,
"startDateTime": "2022-04-18T17:44:41.388358Z",
"endDateTime": "2022-04-18T17:50:29.5675101Z",
"status": "succeeded"
},
"evaluationStatus": {
"percentComplete": 100,
"startDateTime": "2022-04-18T17:50:29.5808461Z",
"endDateTime": "2022-04-18T17:50:35.3482185Z",
"status": "succeeded"
}
},
"jobId": "ee23c900-354d-4b6d-96e1-8197db2bd5f7_637858368000000000",
"createdDateTime": "2022-04-18T17:44:04Z",
"lastUpdatedDateTime": "2022-04-18T17:51:11Z",
"expirationDateTime": "2022-04-25T17:44:04Z",
"status": "succeeded"
}
],
"nextLink": null
}
Definitions
| Name | Description |
|---|---|
| Error |
The error object. |
|
Error |
Human-readable error code. |
|
Error |
Error response. |
|
Inner |
Human-readable error code. |
|
Inner |
An object containing more specific information about the error. As per Microsoft One API guidelines - https://github.com/Microsoft/api-guidelines/blob/vNext/Guidelines.md#7102-error-condition-responses. |
|
Job |
The job status. |
|
Text |
Represents the detailed state of a training sub-operation. |
|
Text |
Represents the output of a training job. |
|
Text |
Represents a list of retrieved training jobs. |
|
Text |
Represents the state of a training job. |
|
Text |
Represents a warning that was encountered while executing the request. |
Error
The error object.
| Name | Type | Description |
|---|---|---|
| code |
One of a server-defined set of error codes. |
|
| details |
Error[] |
An array of details about specific errors that led to this reported error. |
| innererror |
An object containing more specific information than the current object about the error. |
|
| message |
string |
A human-readable representation of the error. |
| target |
string |
The target of the error. |
ErrorCode
Human-readable error code.
| Value | Description |
|---|---|
| InvalidRequest | |
| InvalidArgument | |
| Unauthorized | |
| Forbidden | |
| NotFound | |
| ProjectNotFound | |
| OperationNotFound | |
| AzureCognitiveSearchNotFound | |
| AzureCognitiveSearchIndexNotFound | |
| TooManyRequests | |
| AzureCognitiveSearchThrottling | |
| AzureCognitiveSearchIndexLimitReached | |
| InternalServerError | |
| ServiceUnavailable | |
| Timeout | |
| QuotaExceeded | |
| Conflict | |
| Warning |
ErrorResponse
Error response.
| Name | Type | Description |
|---|---|---|
| error |
The error object. |
InnerErrorCode
Human-readable error code.
| Value | Description |
|---|---|
| InvalidRequest | |
| InvalidParameterValue | |
| KnowledgeBaseNotFound | |
| AzureCognitiveSearchNotFound | |
| AzureCognitiveSearchThrottling | |
| ExtractionFailure | |
| InvalidRequestBodyFormat | |
| EmptyRequest | |
| MissingInputDocuments | |
| InvalidDocument | |
| ModelVersionIncorrect | |
| InvalidDocumentBatch | |
| UnsupportedLanguageCode | |
| InvalidCountryHint |
InnerErrorModel
An object containing more specific information about the error. As per Microsoft One API guidelines - https://github.com/Microsoft/api-guidelines/blob/vNext/Guidelines.md#7102-error-condition-responses.
| Name | Type | Description |
|---|---|---|
| code |
One of a server-defined set of error codes. |
|
| details |
object |
Error details. |
| innererror |
An object containing more specific information than the current object about the error. |
|
| message |
string |
Error message. |
| target |
string |
Error target. |
JobStatus
The job status.
| Value | Description |
|---|---|
| notStarted | |
| running | |
| succeeded | |
| failed | |
| cancelled | |
| cancelling | |
| partiallyCompleted |
TextAnalysisAuthoringSubTrainingJobState
Represents the detailed state of a training sub-operation.
| Name | Type | Description |
|---|---|---|
| endDateTime |
string (date-time) |
Represents the end date time. |
| percentComplete |
integer (int32) |
Represents progress percentage. |
| startDateTime |
string (date-time) |
Represents the start date time. |
| status |
Represents the status of the sub-operation. |
TextAnalysisAuthoringTrainingJobResult
Represents the output of a training job.
| Name | Type | Description |
|---|---|---|
| estimatedEndDateTime |
string (date-time) |
Represents the estimate end date time for training and evaluation. |
| evaluationStatus |
Represents model evaluation status. |
|
| modelLabel |
string |
Represents trained model label. |
| trainingConfigVersion |
string |
Represents training config version. |
| trainingStatus |
Represents model train status. |
TextAnalysisAuthoringTrainingJobs
Represents a list of retrieved training jobs.
| Name | Type | Description |
|---|---|---|
| nextLink |
string |
The next page link. |
| value |
The list of jobs. |
TextAnalysisAuthoringTrainingJobState
Represents the state of a training job.
| Name | Type | Description |
|---|---|---|
| createdDateTime |
string (date-time) |
The creation date time of the job. |
| errors |
Error[] |
The errors encountered while executing the job. |
| expirationDateTime |
string (date-time) |
The expiration date time of the job. |
| jobId |
string |
The job ID. |
| lastUpdatedDateTime |
string (date-time) |
The last date time the job was updated. |
| result |
Represents training tasks detailed result. |
|
| status |
The job status. |
|
| warnings |
The warnings that were encountered while executing the job. |
TextAnalysisAuthoringWarning
Represents a warning that was encountered while executing the request.
| Name | Type | Description |
|---|---|---|
| code |
string |
The warning code. |
| message |
string |
The warning message. |