Bearbeiten

Freigeben über


Job Scheduler - Get Item Job Instance

Get one item's job instance.

Required Delegated Scopes

For item APIs use these scope types:

  • Generic scope: Item.ReadWrite.All or Item.Read.All
  • Specific scope: itemType.ReadWrite.All or itemType.Read.All (for example: Notebook.ReadWrite.All)

for more information about scopes, see scopes article.

Microsoft Entra supported identities

This API supports the Microsoft identities listed in this section.

Identity Support
User Yes
Service principal No
Managed identities No

Interface

GET https://api.fabric.microsoft.com/v1/workspaces/{workspaceId}/items/{itemId}/jobs/instances/{jobInstanceId}

URI Parameters

Name In Required Type Description
itemId
path True

string

uuid

The item ID.

jobInstanceId
path True

string

uuid

The job instance ID.

workspaceId
path True

string

uuid

The workspace ID.

Responses

Name Type Description
200 OK

ItemJobInstance

Request completed successfully.

Other Status Codes

ErrorResponse

Common error codes:

  • InsufficientPrivileges - The caller does not have sufficient permissions to access the item.

  • ItemNotFound - Requested item id not found.

Examples

Get item job instance example

Sample request

GET https://api.fabric.microsoft.com/v1/workspaces/4b218778-e7a5-4d73-8187-f10824047715/items/431e8d7b-4a95-4c02-8ccd-6faef5ba1bd7/jobs/instances/f2d65699-dd22-4889-980c-15226deb0e1b

Sample response

{
  "id": "f2d65699-dd22-4889-980c-15226deb0e1b",
  "itemId": "431e8d7b-4a95-4c02-8ccd-6faef5ba1bd7",
  "jobType": "DefaultJob",
  "invokeType": "Manual",
  "status": "Completed",
  "rootActivityId": "8c2ee553-53a4-7edb-1042-0d8189a9e0ca",
  "startTimeUtc": "2023-04-22T06:35:00.7812154",
  "endTimeUtc": "2023-04-22T06:35:00.8033333",
  "failureReason": null
}

Definitions

Name Description
ErrorRelatedResource

The error related resource details object.

ErrorResponse

The error response.

ErrorResponseDetails

The error response details.

InvokeType

The item job invoke type. Additional invokeTypes may be added over time.

ItemJobInstance

An object representing item job instance

Status

The item job status. Additional statuses may be added over time.

ErrorRelatedResource

The error related resource details object.

Name Type Description
resourceId

string

The resource ID that's involved in the error.

resourceType

string

The type of the resource that's involved in the error.

ErrorResponse

The error response.

Name Type Description
errorCode

string

A specific identifier that provides information about an error condition, allowing for standardized communication between our service and its users.

message

string

A human readable representation of the error.

moreDetails

ErrorResponseDetails[]

List of additional error details.

relatedResource

ErrorRelatedResource

The error related resource details.

requestId

string

ID of the request associated with the error.

ErrorResponseDetails

The error response details.

Name Type Description
errorCode

string

A specific identifier that provides information about an error condition, allowing for standardized communication between our service and its users.

message

string

A human readable representation of the error.

relatedResource

ErrorRelatedResource

The error related resource details.

InvokeType

The item job invoke type. Additional invokeTypes may be added over time.

Name Type Description
Manual

string

Job is invoked manually

Scheduled

string

Job is scheduled

ItemJobInstance

An object representing item job instance

Name Type Description
endTimeUtc

string

Job end time in UTC

failureReason

ErrorResponse

Error response when job is failed

id

string

Job instance Id

invokeType

InvokeType

The item job invoke type. Additional invokeTypes may be added over time.

itemId

string

Item Id

jobType

string

Job type

rootActivityId

string

Root activity id to trace requests across services

startTimeUtc

string

Job start time in UTC

status

Status

The item job status. Additional statuses may be added over time.

Status

The item job status. Additional statuses may be added over time.

Name Type Description
Cancelled

string

Job cancelled

Completed

string

Job completed

Deduped

string

A job instance of the same job type is already running and this job instance is skipped

Failed

string

Job failed

InProgress

string

Job in progress

NotStarted

string

Job not started