Retrieve digital birth certificate
get
/productionMonitoring/clientapi/v2/products/digitalBirthCertificate
This operation returns information about a digital birth certificate that a product can track. This method supports the request header with name 'X-ORACLE-IOT-ORG', which allows targeting requests to different organizations. The value of this request header should contain the organization identifier.
Request
Query Parameters
-
factoryName: string
The unique name of the factory.
-
productName: string
The unique name of the product.
-
productionLineName(optional): string
The unique name of the production line.
-
since(optional): integer
Entity description is undefined
-
until(optional): integer
Entity description is undefined
Header Parameters
-
X-ORACLE-IOT-ORG: string
This method supports the request header with name 'X-ORACLE-IOT-ORG', which allows targeting requests to different organizations. The value of this request header should contain the organization identifier.
Response
Supported Media Types
- application/json
- application/vnd.oracle.resource+json;type=singular
200 Response
Successfully processed.
Root Schema : CertificateContainer_receive
Type:
Show Source
object
-
endTime:
integer
end time
-
endTimeAsString:
string
End time for the metric as ISO-8601 formatted string
-
factoryId:
string
factory id
-
factoryName:
string
factory name
-
productId:
string
product id
-
productionLineId:
string
production line id
-
productionLineName:
string
line name
-
productName:
string
product name
-
startTime:
integer
start time
-
startTimeAsString:
string
Start time for the metric as ISO-8601 formatted string
-
timeWindows:
array timeWindows
plan summary
Nested Schema : CertificateContainer$TimeWindow_receive
Type:
Show Source
object
-
endTime:
integer
end time of a plan
-
endTimeAsString:
string
Start time for the metric as ISO-8601 formatted string
-
quantity:
integer
factory or production line level quantity
-
startTime:
integer
start time of a plan
-
startTimeAsString:
string
Start time for the metric as ISO-8601 formatted string
-
tasks:
array tasks
task details of a plan
Nested Schema : CertificateContainer$TimeWindow$TaskDetail_receive
Type:
Show Source
object
-
machines:
array machines
machine summary of a plan
-
operators:
array operators
operator summary of a plan
-
taskId:
string
Task id of the production plan
-
taskName:
string
Task name of the production plan
Nested Schema : MachineSummary_receive
Type:
Show Source
object
-
id:
string
Machine id of summary data
-
machineName:
string
Machine name
-
sensorData:
array sensorData
list of attribute statistics
-
workOrderIds:
array workOrderIds
plan work order information
-
workOrderNumbers:
array workOrderNumbers
plan work order number information
Nested Schema : MachineSummary$SensorData_receive
Type:
Show Source
object
-
average:
number
Average of attribute values
-
boxPlot:
array boxPlot
box plot of data
-
data:
array data
raw data list for a sensor attribute
-
device:
string
Device Id
-
format:
string
Message format
-
histogram:
array histogram
histogram plot of data
-
max:
number
Maximum of attribute values
-
median:
number
Median of attribute values
-
min:
number
Minimum of attribute values
-
sensorAttribute:
string
Attribute name
Nested Schema : MachineSummary$SensorData$Box_receive
Type:
Show Source
object
-
endTime:
integer
end time of one box plot
-
firstQuartile:
number
value at 25% position of all data from lowest to highest
-
max:
number
maximum value of all data
-
median:
number
median value of all data
-
min:
number
minimum value of all data
-
startTime:
integer
start time of one box plot
-
thirdQuartile:
number
value at 75% position of all data from lowest to highest
Nested Schema : MachineSummary$SensorData$AggregatedDataPoint_receive
Type:
Show Source
object
-
timestamp:
integer
timestamp
-
value:
number
sensor attribute value
Nested Schema : MachineSummary$SensorData$Histogram_receive
Type:
Show Source
object
-
count:
integer
count of a bar
-
lowerBound:
number
lower bound of a bucket
-
upperBound:
number
upper bound of a bucket"
Nested Schema : OperatorSummary_receive
Type:
Show Source
object
-
username:
string
Operator id of summary data
-
workOrderIds:
array workOrderIds
Plan work order information
-
workOrderNumbers:
array workOrderNumbers
Plan work order number information
401 Response
Unauthorized. The request requires user authentication.
403 Response
Forbidden. The server understood the request, but is refusing to fulfill it. Authorization will not help and the request SHOULD NOT be repeated.
404 Response
Not Found. The server has not found anything matching the Request-URI. No indication is given of whether the condition is temporary or permanent.
Examples
curl -X GET
-u <username>:<password>
-H 'Accept: application/json'
https://iotserver/productionMonitoring/clientapi/v2/products/digitalBirthCertificate
Example of Response Body
The following example shows the content of the response body in JSON format:
{
"endTime":1469184297746,
"endTimeAsString":"2016-07-22T10:44:57.746Z",
"factoryId":"3a5e21b7e87-4fa3",
"factoryName":"factory name",
"productId":"6d174ba432a2-70b6",
"productName":"product name",
"productionLineId":"904205d1f55-5301",
"productionLineName":"line name",
"startTime":1469184297746,
"startTimeAsString":"2016-07-22T10:44:57.746Z",
"timeWindows":[
{
"endTime":1469184297746,
"endTimeAsString":"2016-07-22T10:44:57.746Z",
"quantity":12345,
"startTime":1469184297746,
"startTimeAsString":"2016-07-22T10:44:57.746Z",
"tasks":[
{
"machines":[
{
"id":"138936732940-4f89",
"machineName":"Machine name",
"sensorData":[
{
"average":0.0,
"boxPlot":[
{
"endTime":1469184297746,
"firstQuartile":0.0,
"max":0.0,
"median":0.0,
"min":0.0,
"startTime":1469184297746,
"thirdQuartile":0.0
}
],
"data":[
{
"timestamp":12345,
"value":0.0
}
],
"device":"Device Id",
"format":"Message format",
"histogram":[
{
"count":2,
"lowerBound":0.0,
"upperBound":0.0
}
],
"max":0.0,
"median":0.0,
"min":0.0,
"sensorAttribute":"Attribute name"
}
],
"workOrderIds":[
"workOrderIds_1",
"workOrderIds_2",
"workOrderIds_3"
],
"workOrderNumbers":[
"workOrderNumbers_1",
"workOrderNumbers_2",
"workOrderNumbers_3"
]
}
],
"operators":[
{
"username":"Operator id of summary data",
"workOrderIds":[
"workOrderIds_1",
"workOrderIds_2",
"workOrderIds_3"
],
"workOrderNumbers":[
"workOrderNumbers_1",
"workOrderNumbers_2",
"workOrderNumbers_3"
]
}
],
"taskId":"31f525942f2c-5067",
"taskName":"Task name of the production plan"
}
]
}
]
}
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/products/digitalBirthCertificate
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.