Retrieve all work order operations

get

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

This operation returns information about all the work order operations 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 : WorkOrderOperation_receive_list
Type: object
Show Source
Nested Schema : items
Type: array
Show Source
Nested Schema : items
Type: object
Show Source
Nested Schema : outputs
Type: object
The list of output products
Show Source
Nested Schema : tasks
Type: object
The list of operation tasks are used to process the operation
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

Example of Response Body

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


{
"count":2,
"hasMore":false,
"items":[
{
"actualEndTime":1469184297746,
"actualEndTimeAsString":1469184297746,
"actualStartTime":1469184297746,
"actualStartTimeAsString":1469184297746,
"createdBy":"Name of the user who registered this work order operation",
"createdTime":1469184297746,
"createdTimeAsString":1469184297746,
"description":"Description of the work order operation",
"externalId":"79b7700623ca-1ef2",
"id":"36aa272a75cb-66b0",
"kind":"The operation kind",
"lastModifiedBy":"Name of the user who last modified the definition of the work order operation",
"lastModifiedTime":1469184297746,
"lastModifiedTimeAsString":1469184297746,
"name":"The name of the operation",
"outputs":{
"links":[
{
"href":"https://iotserver/productionMonitoring/clientapi/version/resource/path",
"rel":"self"
},
{
"href":"https://iotserver/productionMonitoring/clientapi/version/resource/path",
"rel":"canonical"
}
]
},
"plannedEndTime":1469184297746,
"plannedEndTimeAsString":1469184297746,
"plannedStartTime":1469184297746,
"plannedStartTimeAsString":1469184297746,
"sequenceNumber":12345,
"state":"The state of the operation. This field represents the state of the operation during its life cycle. One of [UNKNOWN, NOT_STARTED, STARTED, COMPLETED]",
"tasks":{
"links":[
{
"href":"https://iotserver/productionMonitoring/clientapi/version/resource/path",
"rel":"self"
},
{
"href":"https://iotserver/productionMonitoring/clientapi/version/resource/path",
"rel":"canonical"
}
]
},
"workOrder":"The work order this operation belongs to"
},
{
"actualEndTime":1469184297746,
"actualEndTimeAsString":1469184297746,
"actualStartTime":1469184297746,
"actualStartTimeAsString":1469184297746,
"createdBy":"Name of the user who registered this work order operation",
"createdTime":1469184297746,
"createdTimeAsString":1469184297746,
"description":"Description of the work order operation",
"externalId":"40be2e7a1b8c-18c2",
"id":"3e52a441855-50e8",
"kind":"The operation kind",
"lastModifiedBy":"Name of the user who last modified the definition of the work order operation",
"lastModifiedTime":1469184297746,
"lastModifiedTimeAsString":1469184297746,
"name":"The name of the operation",
"outputs":{
"links":[
{
"href":"https://iotserver/productionMonitoring/clientapi/version/resource/path",
"rel":"self"
},
{
"href":"https://iotserver/productionMonitoring/clientapi/version/resource/path",
"rel":"canonical"
}
]
},
"plannedEndTime":1469184297746,
"plannedEndTimeAsString":1469184297746,
"plannedStartTime":1469184297746,
"plannedStartTimeAsString":1469184297746,
"sequenceNumber":12345,
"state":"The state of the operation. This field represents the state of the operation during its life cycle. One of [UNKNOWN, NOT_STARTED, STARTED, COMPLETED]",
"tasks":{
"links":[
{
"href":"https://iotserver/productionMonitoring/clientapi/version/resource/path",
"rel":"self"
},
{
"href":"https://iotserver/productionMonitoring/clientapi/version/resource/path",
"rel":"canonical"
}
]
},
"workOrder":"The work order this operation belongs to"
}
],
"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



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