Read Metadata of Thing Detail
Retrieves metadata of thing detail OData service
The metadata contains an annotation for the dynamic property set type entity. The annotation sap:semantics="timeseries" indicates that the property set type belongs to the data category TimeSeriesData or DerivedData. Any property set type without an annotation indicates that it belongs to the data category MasterData or Parameters.
Request
URI: /CompositeThings/ThingType/v1/<thing type name>/$metadata
Operation Type: CRUD
HTTP Method: GET
Permissions: <thngdtl.r>
Request Header Parameters
| Header | Required | Description |
|---|---|---|
| sap-iot-issync | No |
Indicates whether the service retrieves the latest data creation time for the specified thing ID. Permissible values are true or false |
Request Parameters
| Parameter | Required | Data Type | Description |
|---|---|---|---|
| thing type name | Yes | String | Name of the thing type |
Request Example
/CompositeThings/ThingType/v1/test.sandbox.devxperf.package:BMW6Series/$metadataResponse
Response Status and Error Codes
| Code | Description |
|---|---|
| 200 | Metadata retrieved successfully |
Payload
The following response payload contains the property SyncedTimestamp only when the request header parameter sap-iot-issync is set true.
URI:<EntityType Name="DYN_ENT_core_automobiles__Engine" sap:semantics="timeseries">
<Key>
<PropertyRef Name="ThingId"></PropertyRef>
</Key>
<Property Name="ThingId" Type="Edm.String" Nullable="false"></Property>
<Property Name="engine.RPM" Type="Edm.Int32"></Property>
<Property Name="engine.RPM.Timestamp" Type="Edm.DateTimeOffset"></Property>
<Property Name="engine.Temperature" Type="Edm.Int32"></Property>
<Property Name="engine.Temperature.Timestamp" Type="Edm.DateTimeOffset"></Property>
</EntityType>
<EntityType Name="DYN_ENT_core_automobiles__Model">
<Key>
<PropertyRef Name="ThingId"></PropertyRef>
</Key>
<Property Name="ThingId" Type="Edm.String" Nullable="false"></Property>
<Property Name="modelData.Color" Type="Edm.String"></Property>
<Property Name="modelData.Color.Timestamp" Type="Edm.DateTimeOffset"></Property>
<Property Name="modelData.Make" Type="Edm.String"></Property>
<Property Name="modelData.Make.Timestamp" Type="Edm.DateTimeOffset"></Property>
<Property Name="modelData.Registration" Type="Edm.String"></Property>
<Property Name="modelData.Registration.Timestamp" Type="Edm.DateTimeOffset"></Property>
</EntityType>
<EntityType Name="DYN_ENT_core_automobiles__LocationMaster">
<Key>
<PropertyRef Name="ThingId"></PropertyRef>
</Key>
<Property Name="ThingId" Type="Edm.String" Nullable="false"></Property>
<Property Name="locationData.Country" Type="Edm.String"></Property>
<Property Name="locationData.Country.Timestamp" Type="Edm.DateTimeOffset"></Property>
<Property Name="locationData.OriginPlace" Type="Edm.String"></Property>
<Property Name="locationData.OriginPlace.Timestamp" Type="Edm.DateTimeOffset"></Property>
</EntityType>
<EntityType Name="Thing">
<Key>
<PropertyRef Name="ThingId"></PropertyRef>
</Key>
<Property Name="ThingId" Type="Edm.String" Nullable="false">
<Documentation>
<LongDescription>Thing unique ID</LongDescription>
</Documentation>
</Property>
<Property Name="ThingISOCode" Type="Edm.String">
<Documentation>
<LongDescription>Thing Language code</LongDescription>
</Documentation>
</Property>
<Property Name="ThingDescription" Type="Edm.String">
<Documentation>
<LongDescription>Thing description</LongDescription>
</Documentation>
</Property>
<Property Name="ThingName" Type="Edm.String" Nullable="false">
<Documentation>
<LongDescription>Thing name</LongDescription>
</Documentation>
</Property>
<Property Name="ThingExternalId" Type="Edm.String">
<Documentation>
<LongDescription>Thing external id</LongDescription>
</Documentation>
</Property>
<Property Name="ThingType" Type="Edm.String">
<Documentation>
<LongDescription>Thing Type ID associated with the Thing</LongDescription>
</Documentation>
</Property>
<Property Name="ObjectGroup" Type="Edm.String">
<Documentation>
<LongDescription>Object group used to create the Thing</LongDescription>
</Documentation>
</Property>
<Property Name="BPName" Type="Edm.String">
<Documentation>
<LongDescription>Business partner name associated for the Thing</LongDescription>
</Documentation>
</Property>
<Property Name="BPLandlinePhoneNumber" Type="Edm.String">
<Documentation>
<LongDescription>Landline phone number of Business partner</LongDescription>
</Documentation>
</Property>
<Property Name="BPMobilePhoneNumber" Type="Edm.String">
<Documentation>
<LongDescription>Mobile phone number of Business partner</LongDescription>
</Documentation>
</Property>
<Property Name="ThingCustomerId" Type="Edm.String">
<Documentation>
<LongDescription>Business partner ID associated for the Thing</LongDescription>
</Documentation>
</Property>
<Property Name="ThingRegionDescription" Type="Edm.String">
<Documentation>
<LongDescription>Region where Thing is located</LongDescription>
</Documentation>
</Property>
<Property Name="ThingCountryDescription" Type="Edm.String">
<Documentation>
<LongDescription>Country where the Thing is located</LongDescription>
</Documentation>
</Property>
<Property Name="ThingCountryId" Type="Edm.String">
<Documentation>
<LongDescription>Country code where the Thing is located</LongDescription>
</Documentation>
</Property>
<Property Name="ThingCommunicationData" Type="Edm.String">
<Documentation>
<LongDescription>Thing address details</LongDescription>
</Documentation>
</Property>
<Property Name="ThingLocationId" Type="Edm.String">
<Documentation>
<LongDescription>Thing location ID</LongDescription>
</Documentation>
</Property>
<Property Name="AlternateId" Type="Edm.String">
<Documentation>
<LongDescription>Thing alternate ID</LongDescription>
</Documentation>
</Property>
<Property Name="SyncedTimestamp" Type="Edm.String">
<Documentation>
<LongDescription>Synced TimeStamp</LongDescription>
</Documentation>
</Property>
<NavigationProperty Name="DYN_ENT_core_automobiles__Model" Relationship="com.sap.appiot.DYN_ENT_core_automobiles__Model" FromRole="ThingEntities" ToRole="DYN_ENT_core_automobiles__ModelEntities"></NavigationProperty>
<NavigationProperty Name="DYN_ENT_core_automobiles__Wheel" Relationship="com.sap.appiot.DYN_ENT_core_automobiles__Wheel" FromRole="ThingEntities" ToRole="DYN_ENT_core_automobiles__WheelEntities"></NavigationProperty>
<NavigationProperty Name="DYN_ENT_core_automobiles__Engine" Relationship="com.sap.appiot.DYN_ENT_core_automobiles__Engine" FromRole="ThingEntities" ToRole="DYN_ENT_core_automobiles__EngineEntities"></NavigationProperty>
<NavigationProperty Name="DYN_ENT_core_automobiles__DriveUnit" Relationship="com.sap.appiot.DYN_ENT_core_automobiles__DriveUnit" FromRole="ThingEntities" ToRole="DYN_ENT_core_automobiles__DriveUnitEntities"></NavigationProperty>
<NavigationProperty Name="DYN_ENT_core_automobiles__LocationMaster" Relationship="com.sap.appiot.DYN_ENT_core_automobiles__LocationMaster" FromRole="ThingEntities" ToRole="DYN_ENT_core_automobiles__LocationMasterEntities"></NavigationProperty>
</EntityType>
<EntityType Name="DYN_ENT_core_automobiles__DriveUnit" sap:semantics="timeseries">
<Key>
<PropertyRef Name="ThingId"></PropertyRef>
</Key>
<Property Name="ThingId" Type="Edm.String" Nullable="false"></Property>
<Property Name="leftDriveUnit.Acceleration" Type="Edm.Int32"></Property>
<Property Name="leftDriveUnit.Acceleration.Timestamp" Type="Edm.DateTimeOffset"></Property>
<Property Name="leftDriveUnit.Rotation" Type="Edm.Int32"></Property>
<Property Name="leftDriveUnit.Rotation.Timestamp" Type="Edm.DateTimeOffset"></Property>
</EntityType>
<EntityType Name="DYN_ENT_core_automobiles__Wheel" sap:semantics="timeseries">
<Key>
<PropertyRef Name="ThingId"></PropertyRef>
</Key>
<Property Name="ThingId" Type="Edm.String" Nullable="false"></Property>
<Property Name="flWheel.PSI" Type="Edm.Int32"></Property>
<Property Name="flWheel.PSI.PressureUnitOfMeasure" Type="Edm.String" AttributeType="com.sap.iot.core.UoM"></Property>
<Property Name="flWheel.PSI.PressureLowerThreshold" Type="Edm.Int32" AttributeType="com.sap.iot.core.LowerThreshold"></Property>
<Property Name="flWheel.PSI.Timestamp" Type="Edm.DateTimeOffset"></Property>
<Property Name="flWheel.PSI.PressureLowerThreshold.Timestamp" Type="Edm.DateTimeOffset"></Property>
<Property Name="flWheel.PSI.PressureUnitOfMeasure.Timestamp" Type="Edm.DateTimeOffset"></Property>
<Property Name="flWheel.Rotation" Type="Edm.Int32"></Property>
<Property Name="flWheel.Rotation.RotationUnitOfMeasure" Type="Edm.String" AttributeType="com.sap.iot.core.UoM"></Property>
<Property Name="flWheel.Rotation.RotationLowerThreshold" Type="Edm.Int32" AttributeType="com.sap.iot.core.LowerThreshold"></Property>
<Property Name="flWheel.Rotation.Timestamp" Type="Edm.DateTimeOffset"></Property>
<Property Name="flWheel.Rotation.RotationLowerThreshold.Timestamp" Type="Edm.DateTimeOffset"></Property>
<Property Name="flWheel.Rotation.RotationUnitOfMeasure.Timestamp" Type="Edm.DateTimeOffset"></Property>
<Property Name="frWheel.PSI" Type="Edm.Int32"></Property>
<Property Name="frWheel.PSI.PressureUnitOfMeasure" Type="Edm.String" AttributeType="com.sap.iot.core.UoM"></Property>
<Property Name="frWheel.PSI.PressureLowerThreshold" Type="Edm.Int32" AttributeType="com.sap.iot.core.LowerThreshold"></Property>
<Property Name="frWheel.PSI.Timestamp" Type="Edm.DateTimeOffset"></Property>
<Property Name="frWheel.PSI.PressureUnitOfMeasure.Timestamp" Type="Edm.DateTimeOffset"></Property>
<Property Name="frWheel.PSI.PressureLowerThreshold.Timestamp" Type="Edm.DateTimeOffset"></Property>
<Property Name="frWheel.Rotation" Type="Edm.Int32"></Property>
<Property Name="frWheel.Rotation.RotationUnitOfMeasure" Type="Edm.String" AttributeType="com.sap.iot.core.UoM"></Property>
<Property Name="frWheel.Rotation.RotationLowerThreshold" Type="Edm.Int32" AttributeType="com.sap.iot.core.LowerThreshold"></Property>
<Property Name="frWheel.Rotation.Timestamp" Type="Edm.DateTimeOffset"></Property>
<Property Name="frWheel.Rotation.RotationUnitOfMeasure.Timestamp" Type="Edm.DateTimeOffset"></Property>
<Property Name="frWheel.Rotation.RotationLowerThreshold.Timestamp" Type="Edm.DateTimeOffset"></Property>
<Property Name="rlWheel.PSI" Type="Edm.Int32"></Property>
<Property Name="rlWheel.PSI.PressureUnitOfMeasure" Type="Edm.String" AttributeType="com.sap.iot.core.UoM"></Property>
<Property Name="rlWheel.PSI.PressureLowerThreshold" Type="Edm.Int32" AttributeType="com.sap.iot.core.LowerThreshold"></Property>
<Property Name="rlWheel.PSI.Timestamp" Type="Edm.DateTimeOffset"></Property>
<Property Name="rlWheel.PSI.PressureUnitOfMeasure.Timestamp" Type="Edm.DateTimeOffset"></Property>
<Property Name="rlWheel.PSI.PressureLowerThreshold.Timestamp" Type="Edm.DateTimeOffset"></Property>
<Property Name="rlWheel.Rotation" Type="Edm.Int32"></Property>
<Property Name="rlWheel.Rotation.RotationLowerThreshold" Type="Edm.Int32" AttributeType="com.sap.iot.core.LowerThreshold"></Property>
<Property Name="rlWheel.Rotation.RotationUnitOfMeasure" Type="Edm.String" AttributeType="com.sap.iot.core.UoM"></Property>
<Property Name="rlWheel.Rotation.Timestamp" Type="Edm.DateTimeOffset"></Property>
<Property Name="rlWheel.Rotation.RotationUnitOfMeasure.Timestamp" Type="Edm.DateTimeOffset"></Property>
<Property Name="rlWheel.Rotation.RotationLowerThreshold.Timestamp" Type="Edm.DateTimeOffset"></Property>
<Property Name="rrWheel.PSI" Type="Edm.Int32"></Property>
<Property Name="rrWheel.PSI.PressureUnitOfMeasure" Type="Edm.String" AttributeType="com.sap.iot.core.UoM"></Property>
<Property Name="rrWheel.PSI.PressureLowerThreshold" Type="Edm.Int32" AttributeType="com.sap.iot.core.LowerThreshold"></Property>
<Property Name="rrWheel.PSI.Timestamp" Type="Edm.DateTimeOffset"></Property>
<Property Name="rrWheel.PSI.PressureLowerThreshold.Timestamp" Type="Edm.DateTimeOffset"></Property>
<Property Name="rrWheel.PSI.PressureUnitOfMeasure.Timestamp" Type="Edm.DateTimeOffset"></Property>
<Property Name="rrWheel.Rotation" Type="Edm.Int32"></Property>
<Property Name="rrWheel.Rotation.RotationUnitOfMeasure" Type="Edm.String" AttributeType="com.sap.iot.core.UoM"></Property>
<Property Name="rrWheel.Rotation.RotationLowerThreshold" Type="Edm.Int32" AttributeType="com.sap.iot.core.LowerThreshold"></Property>
<Property Name="rrWheel.Rotation.Timestamp" Type="Edm.DateTimeOffset"></Property>
<Property Name="rrWheel.Rotation.RotationLowerThreshold.Timestamp" Type="Edm.DateTimeOffset"></Property>
<Property Name="rrWheel.Rotation.RotationUnitOfMeasure.Timestamp" Type="Edm.DateTimeOffset"></Property>
</EntityType>
<Association Name="DYN_ENT_core_automobiles__Model">
<End Type="com.sap.appiot.Thing" Multiplicity="1" Role="ThingEntities"></End>
<End Type="com.sap.appiot.DYN_ENT_core_automobiles__Model" Multiplicity="1" Role="DYN_ENT_core_automobiles__ModelEntities"></End>
</Association>
<Association Name="DYN_ENT_core_automobiles__Wheel">
<End Type="com.sap.appiot.Thing" Multiplicity="1" Role="ThingEntities"></End>
<End Type="com.sap.appiot.DYN_ENT_core_automobiles__Wheel" Multiplicity="1" Role="DYN_ENT_core_automobiles__WheelEntities"></End>
</Association>
<Association Name="DYN_ENT_core_automobiles__Engine">
<End Type="com.sap.appiot.Thing" Multiplicity="1" Role="ThingEntities"></End>
<End Type="com.sap.appiot.DYN_ENT_core_automobiles__Engine" Multiplicity="1" Role="DYN_ENT_core_automobiles__EngineEntities"></End>
</Association>
<Association Name="DYN_ENT_core_automobiles__DriveUnit">
<End Type="com.sap.appiot.Thing" Multiplicity="1" Role="ThingEntities"></End>
<End Type="com.sap.appiot.DYN_ENT_core_automobiles__DriveUnit" Multiplicity="1" Role="DYN_ENT_core_automobiles__DriveUnitEntities"></End>
</Association>
<Association Name="DYN_ENT_core_automobiles__LocationMaster">
<End Type="com.sap.appiot.Thing" Multiplicity="1" Role="ThingEntities"></End>
<End Type="com.sap.appiot.DYN_ENT_core_automobiles__LocationMaster" Multiplicity="1" Role="DYN_ENT_core_automobiles__LocationMasterEntities"></End>
</Association>
<EntityContainer Name="CompositeThingsThingType" m:IsDefaultEntityContainer="true">
<EntitySet Name="DYN_ENT_core_automobiles__Engines" EntityType="com.sap.appiot.DYN_ENT_core_automobiles__Engine"></EntitySet>
<EntitySet Name="DYN_ENT_core_automobiles__Models" EntityType="com.sap.appiot.DYN_ENT_core_automobiles__Model"></EntitySet>
<EntitySet Name="DYN_ENT_core_automobiles__LocationMasters" EntityType="com.sap.appiot.DYN_ENT_core_automobiles__LocationMaster"></EntitySet>
<EntitySet Name="Things" EntityType="com.sap.appiot.Thing"></EntitySet>
<EntitySet Name="DYN_ENT_core_automobiles__DriveUnits" EntityType="com.sap.appiot.DYN_ENT_core_automobiles__DriveUnit"></EntitySet>
<EntitySet Name="DYN_ENT_core_automobiles__Wheels" EntityType="com.sap.appiot.DYN_ENT_core_automobiles__Wheel"></EntitySet>
<AssociationSet Name="DYN_ENT_core_automobiles__Model" Association="com.sap.appiot.DYN_ENT_core_automobiles__Model">
<End EntitySet="Things" Role="ThingEntities"></End>
<End EntitySet="DYN_ENT_core_automobiles__Models" Role="DYN_ENT_core_automobiles__ModelEntities"></End>
</AssociationSet>
<AssociationSet Name="DYN_ENT_core_automobiles__Wheel" Association="com.sap.appiot.DYN_ENT_core_automobiles__Wheel">
<End EntitySet="Things" Role="ThingEntities"></End>
<End EntitySet="DYN_ENT_core_automobiles__Wheels" Role="DYN_ENT_core_automobiles__WheelEntities"></End>
</AssociationSet>
<AssociationSet Name="DYN_ENT_core_automobiles__Engine" Association="com.sap.appiot.DYN_ENT_core_automobiles__Engine">
<End EntitySet="Things" Role="ThingEntities"></End>
<End EntitySet="DYN_ENT_core_automobiles__Engines" Role="DYN_ENT_core_automobiles__EngineEntities"></End>
</AssociationSet>
<AssociationSet Name="DYN_ENT_core_automobiles__DriveUnit" Association="com.sap.appiot.DYN_ENT_core_automobiles__DriveUnit">
<End EntitySet="Things" Role="ThingEntities"></End>
<End EntitySet="DYN_ENT_core_automobiles__DriveUnits" Role="DYN_ENT_core_automobiles__DriveUnitEntities"></End>
</AssociationSet>
<AssociationSet Name="DYN_ENT_core_automobiles__LocationMaster" Association="com.sap.appiot.DYN_ENT_core_automobiles__LocationMaster">
<End EntitySet="Things" Role="ThingEntities"></End>
<End EntitySet="DYN_ENT_core_automobiles__LocationMasters" Role="DYN_ENT_core_automobiles__LocationMasterEntities"></End>
</AssociationSet>
</EntityContainer>