Read Metadata for a Thing
Retrieves metadata for a thing
Request
With this service, you can retrieve metadata for a specified thing.
URI: /Things('<ID'>)/Configuration
HTTP Method: GET
Request Headers
| Header | Required | Values |
|---|---|---|
| Accept-Language | No | Language of the thing type description. The default language is EN. |
| Accept-Encoding | No | Retrieve compressed response
Only if you specify the value gzip or gzip,deflate for this parameter, the system returns the compressed response with an additional response header CONTENT-ENCODING with value gzip. If you specify an invalid value or do not use this header parameter, the system returns the uncompressed response. |
Request Parameter
| Parameter | Required | Data Type | Description |
|---|---|---|---|
| ID | Yes | string |
You can specify one of the following values:
|
Request Example
/Things('<ID>')/Configuration
Response
Format: JSON
Response Properties
| Property | Type | Description |
|---|---|---|
| Value | Array of thing type objects | Array of thing type objects returned. |
| propertySets | Array of property set objects | Array of property set objects (that belong to the property set type) returned. |
Payload
Format: JSON
Only media type JSON is supported. The JSON for this method has the following structure:
{
"thingTypes": [{
"name": "core.automobiles:ABC2Series",
"description": {
"en": "ABC2Series electric car"
},
"propertyTypes": [{
"id": "engine",
"description": {
"en": "Engine Usage"
},
"propertySetType": "core.automobiles:Engine"
}, {
"id": "drive_fr",
"description": {
"en": "Drive Front Right"
},
"propertySetType": "core.automobiles:DriveUnit"
}, {
"id": "drive_fl",
"description": {
"en": "Drive Front Left"
},
"propertySetType": "core.automobiles:DriveUnit"
}, {
"id": "car",
"description": {
"en": "Car Usage"
},
"propertySetType": "core.automobiles:Car"
}, {
"id": "wheel_fr",
"description": {
"en": "Wheel Front Right"
},
"propertySetType": "core.automobiles:Wheel"
}, {
"id": "wheel_fl",
"description": {
"en": "Wheel Front Left"
},
"propertySetType": "core.automobiles:Wheel"
}, {
"id": "wheel_rr",
"description": {
"en": "Wheel Rear Right"
},
"propertySetType": "core.automobiles:Wheel"
}, {
"id": "wheel_rl",
"description": {
"en": "Wheel Rear Left"
},
"propertySetType": "core.automobiles:Wheel"
}]
}],
"propertySetTypes": [{
"name": "core.automobiles:Car",
"description": {
"en": "Master Data for car"
},
"dataCategory": "MasterData",
"propertyTypes": [{
"value": {
"id": "BodyStyle",
"description": {
"en": "Car Body Style"
},
"type": "String",
"length": "127"
}
}, {
"value": {
"id": "Class",
"description": {
"en": "Car Class"
},
"type": "String",
"length": "127"
}
}, {
"value": {
"id": "WheelBase",
"description": {
"en": "Car Wheel Base"
},
"type": "Numeric",
"length": ""
}
}, {
"value": {
"id": "RegistrationNumber",
"description": {
"en": "Car Registration Number"
},
"type": "String",
"length": "127"
}
}, {
"value": {
"id": "Colour",
"description": {
"en": "Car Colour"
},
"type": "String",
"length": "127"
}
}]
}, {
"name": "core.automobiles:Wheel",
"description": {
"en": "Sensory parameters for wheel"
},
"dataCategory": "TimeSeriesData",
"propertyTypes": [{
"value": {
"id": "Pressure",
"description": {
"en": "Wheel pressure"
},
"type": "Numeric",
"length": "",
"unitOfMeasure": "PA"
}
}, {
"value": {
"id": "Temperature",
"description": {
"en": "Wheel temperature"
},
"type": "Numeric",
"length": ""
}
}]
}, {
"name": "core.automobiles:DriveUnit",
"description": {
"en": "Sensory parameters for drive unit"
},
"dataCategory": "TimeSeriesData",
"propertyTypes": [{
"value": {
"id": "RotationSpeed",
"description": {
"en": "Drive unit rotation speed"
},
"type": "Numeric",
"length": ""
}
}, {
"value": {
"id": "PowerConsumption",
"description": {
"en": "Drive unit power consumption"
},
"type": "Numeric",
"length": ""
}
}]
}, {
"name": "core.automobiles:Engine",
"description": {
"en": "Sensory parameters for engine"
},
"dataCategory": "MasterData",
"propertyTypes": [{
"value": {
"id": "Type",
"description": {
"en": "Engine type"
},
"type": "String",
"length": "127"
}
}, {
"value": {
"id": "Capacity",
"description": {
"en": "Engine capacity"
},
"type": "Numeric",
"length": "",
"unitOfMeasure": "MM"
}
}, {
"value": {
"id": "Torque",
"description": {
"en": "Engine tourque"
},
"type": "Numeric",
"length": "",
"unitOfMeasure": "NM"
}
}, {
"value": {
"id": "Transmission",
"description": {
"en": "Engine transmission"
},
"type": "String",
"length": "254",
"unitOfMeasure": ""
}
}]
}]
}