Retrieve all operation tasks

get

/productionMonitoring/clientapi/v2/workOrders/{workOrder-id}/operations/{operation-id}/tasks

This operation returns information about all the operation tasks that are filtered by a query.

Request

Path Parameters
Query Parameters
Header Parameters
  • To allow targeting requests to different organizations. The header value should contain the organization identifier
Back to Top

Response

Supported Media Types

200 Response

Successfully processed.
Body ()
Root Schema : WorkOrderTask_receive_list
Type: object
Show Source
Nested Schema : items
Type: array
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : machines
Type: array
The list of identifiers of machines assigned to the operation task
Show Source
Nested Schema : machineTypes
Type: array
The equipment resources assigned to the operation task
Show Source
Nested Schema : operators
Type: array
The list of identifiers of operators assigned to the operation task
Show Source
Nested Schema : operatorTypes
Type: array
The labor resources assigned to the operation task
Show Source
Nested Schema : resourceInstances
Type: object
Property description was not set
Show Source
Nested Schema : WorkOrderResourceType_receive
Type: object
Show Source

401 Response

Unauthorized. The request requires user authentication.

406 Response

Request Not Acceptable. The resource identified by the request is only capable of generating response entities which have content characteristics not acceptable according to the accept headers sent in the request.
Back to Top

Examples

curl -X GET 
   -u <username>:<password>
   -H 'Accept: application/json'
   https://iotserver/productionMonitoring/clientapi/v2/workOrders/{workOrder-id}/operations/{operation-id}/tasks

Example of Response Body

The following example shows the content of the response body in JSON format:


{
"count":2,
"hasMore":false,
"items":[
{
"createdBy":"Name of the user who registered this operation task",
"createdTime":1469184297746,
"createdTimeAsString":1469184297746,
"description":"The description of the operation task",
"externalId":"45ce9501a71-42ec",
"id":"62721f3c3f32-4bf8",
"idealCycleTime":1469184297746,
"lastModifiedBy":"Name of the user who last modified the definition of the operation task",
"lastModifiedTime":1469184297746,
"lastModifiedTimeAsString":1469184297746,
"machineTypes":[
{
"idealCycleTime":1469184297746,
"principal":false,
"type":"Value that uniquely identifies the machine or operator type"
}
],
"machines":[
"machines_1",
"machines_2",
"machines_3"
],
"name":"The name of the operation task",
"operation":"The operation identifier this task belongs to",
"operatorTypes":[
{
"idealCycleTime":1469184297746,
"principal":false,
"type":"Value that uniquely identifies the machine or operator type"
}
],
"operators":[
"operators_1",
"operators_2",
"operators_3"
],
"resourceInstances":{
"links":[
{
"href":"https://iotserver/productionMonitoring/clientapi/version/resource/path",
"rel":"self"
},
{
"href":"https://iotserver/productionMonitoring/clientapi/version/resource/path",
"rel":"canonical"
}
]
},
"routingTask":"The routing task identifier",
"sequenceNumber":12345,
"state":"The name of the operation task state. This represents the state of the operation task during its life cycle. One of [UNKNOWN, NOT_STARTED, STARTED, COMPLETED]",
"stateModifiedTime":1469184297746,
"stateModifiedTimeAsString":1469184297746
},
{
"createdBy":"Name of the user who registered this operation task",
"createdTime":1469184297746,
"createdTimeAsString":1469184297746,
"description":"The description of the operation task",
"externalId":"a9f3261233a-65",
"id":"16b33f556c41-303e",
"idealCycleTime":1469184297746,
"lastModifiedBy":"Name of the user who last modified the definition of the operation task",
"lastModifiedTime":1469184297746,
"lastModifiedTimeAsString":1469184297746,
"machineTypes":[
{
"idealCycleTime":1469184297746,
"principal":false,
"type":"Value that uniquely identifies the machine or operator type"
}
],
"machines":[
"machines_1",
"machines_2",
"machines_3"
],
"name":"The name of the operation task",
"operation":"The operation identifier this task belongs to",
"operatorTypes":[
{
"idealCycleTime":1469184297746,
"principal":false,
"type":"Value that uniquely identifies the machine or operator type"
}
],
"operators":[
"operators_1",
"operators_2",
"operators_3"
],
"resourceInstances":{
"links":[
{
"href":"https://iotserver/productionMonitoring/clientapi/version/resource/path",
"rel":"self"
},
{
"href":"https://iotserver/productionMonitoring/clientapi/version/resource/path",
"rel":"canonical"
}
]
},
"routingTask":"The routing task identifier",
"sequenceNumber":12345,
"state":"The name of the operation task state. This represents the state of the operation task during its life cycle. One of [UNKNOWN, NOT_STARTED, STARTED, COMPLETED]",
"stateModifiedTime":1469184297746,
"stateModifiedTimeAsString":1469184297746
}
],
"limit":10,
"links":[
{
"href":"https://iotserver/productionMonitoring/clientapi/version/resource/path",
"rel":"self"
},
{
"href":"https://iotserver/productionMonitoring/clientapi/version/resource/path",
"rel":"canonical"
}
],
"offset":0
}



Complete cURL Example

The following example shows a complete cURL command that you can use to perform the described operation:

curl -X GET 
   -u <username>:<password>
   -H 'Accept: application/json'
   https://iotserver/productionMonitoring/clientapi/v2/workOrders/{workOrder-id}/operations/149121664a0d-151f/tasks



Note that in the request, https://iotserver will be replaced by the name and port of your assigned IoT Cloud Service instance. The format of the Cloud Service instance is https://myinstance-myidentitydomain.iot.us.oraclecloud.com and the default port is 443.
Back to Top