Retrieve visible things or things with specified IDs
Returns all visible things or things passed in by the required parameter ids, which you (the authorized subject) are allowed to read.
Optionally, if you want to retrieve only some of the thing's fields, you can use the specific field selectors (see parameter fields) .
Tip: In order to formulate a filter which things to search for, take a look at the /search resource.
Parameters
idsstringqueryContains a comma-separated list of thingIds to retrieve in one single request.
fieldsstringqueryContains a comma-separated list of fields to be included in the returned JSON. attributes can be selected in the same manner.
Selectable fields
thingIdpolicyIddefinitionattributesSupports selecting arbitrary sub-fields by using a comma-separated list:
several attribute paths can be passed as a comma-separated list of JSON pointers (RFC-6901)
For example:
?fields=attributes/modelwould select onlymodelattribute value (if present)?fields=attributes/model,attributes/locationwould select onlymodelandlocationattribute values (if present)
Supports selecting arbitrary sub-fields of objects by wrapping sub-fields inside parentheses
( ):a comma-separated list of sub-fields (a sub-field is a JSON pointer (RFC-6901) separated with
/) to selectsub-selectors can be used to request only specific sub-fields by placing expressions in parentheses
( )after a selected subfieldFor example:
?fields=attributes(model,location)would select onlymodelandlocationattribute values (if present)?fields=attributes(coffeemaker/serialno)would select theserialnovalue inside thecoffeemakerobject?fields=attributes/address/postal(city,street)would select thecityandstreetvalues inside thepostalobject inside theaddressobject
featuresSupports selecting arbitrary fields in features similar to
attributes(see also features documentation for more details)_namespaceSpecifically selects the namespace also contained in the
thingId_revisionSpecifically selects the revision of the thing. The revision is a counter, which is incremented on each modification of a thing.
_createdSpecifically selects the created timestamp of the thing in ISO-8601 UTC format. The timestamp is set on creation of a thing.
_modifiedSpecifically selects the modified timestamp of the thing in ISO-8601 UTC format. The timestamp is set on each modification of a thing.
_metadataSpecifically selects the Metadata of the thing. The content is a JSON object having the Thing's JSON structure with the difference that the JSON leaves of the Thing are JSON objects containing the metadata.
_policySpecifically selects the content of the policy associated to the thing. (By default, only the policyId is returned.)
Examples
?fields=thingId,attributes,features?fields=attributes(model,manufacturer),features
timeoutstringqueryDefines how long the backend should wait for completion of the request, e.g. applied when waiting for requested
acknowledgements via the requested-acks param. Can be specified without unit (then seconds are assumed) or
together with s, ms or m unit. Example: 42s, 1m.
The default (if omitted) and maximum timeout is 60s. A value of 0 applies fire and forget semantics for
the command resulting in setting response-required=false.
Response
The successfully completed request contains a list of the for the user available Things, or the Things asked for via the ids paramter.
The Things are sorted either by their ID, or in the same order as the Thing IDs were provided in the ids parameter.
The request could not be completed. At least one of the defined query parameters was invalid.
The request could not be completed due to missing authentication.
The request could not be completed due to an URI length exceeding 8k characters.
Authorization
OpenIDConnectopenIdConnectOpenID Connect Discovery URL. The placeholder is replaced by Swagger UI when configured.
NginxBasichttp (basic)Eclipse Ditto sandbox demo user (demo1 ... demo9) + password (demo)
Bearerhttp (bearer)A JSON Web Token issued by a supported OAuth 2.0 Identity Provider.