@@ -202,7 +202,7 @@ The response to this request looks like the following example:
202
202
You can use ODATA filters to filter the results returned by the list devices API.
203
203
204
204
> [ !NOTE]
205
- > Currently, ODATA support is only available for ` api-version=1.2 -preview `
205
+ > Currently, ODATA support is only available for ` api-version=2022-06-30 -preview `
206
206
207
207
### $top
208
208
@@ -211,7 +211,7 @@ Use the **$top** to set the result size, the maximum returned result size is 100
211
211
Use the following request to retrieve a top 10 device from your application:
212
212
213
213
``` http
214
- GET https://{subdomain}.{baseDomain}/api/devices?api-version=1.2 -preview&$top=10
214
+ GET https://{subdomain}.{baseDomain}/api/devices?api-version=2022-06-30 -preview&$top=10
215
215
```
216
216
217
217
The response to this request looks like the following example:
@@ -239,7 +239,7 @@ The response to this request looks like the following example:
239
239
},
240
240
...
241
241
],
242
- "nextLink" : " https://custom-12qmyn6sm0x.azureiotcentral.com/api/devices?api-version=1.2 -preview&%24top=1&%24skiptoken=%257B%2522token%2522%253A%2522%252BRID%253A%7EJWYqAOis7THQbBQAAAAAAg%253D%253D%2523RT%253A1%2523TRC%253A1%2523ISV%253A2%2523IEO%253A65551%2523QCF%253A4%2522%252C%2522range%2522%253A%257B%2522min%2522%253A%2522%2522%252C%2522max%2522%253A%252205C1D7F7591D44%2522%257D%257D"
242
+ "nextLink" : " https://custom-12qmyn6sm0x.azureiotcentral.com/api/devices?api-version=2022-06-30 -preview&%24top=1&%24skiptoken=%257B%2522token%2522%253A%2522%252BRID%253A%7EJWYqAOis7THQbBQAAAAAAg%253D%253D%2523RT%253A1%2523TRC%253A1%2523ISV%253A2%2523IEO%253A65551%2523QCF%253A4%2522%252C%2522range%2522%253A%257B%2522min%2522%253A%2522%2522%252C%2522max%2522%253A%252205C1D7F7591D44%2522%257D%257D"
243
243
}
244
244
```
245
245
@@ -289,7 +289,7 @@ $filter=indexof(displayName, 'device1') ge 0
289
289
The following example shows how to retrieve all the devices where the display name has index the string ` thermostat ` :
290
290
291
291
``` http
292
- GET https://{subdomain}.{baseDomain}/api/deviceTemplates?api-version=1.2 -preview&$filter=index(displayName, 'thermostat')
292
+ GET https://{subdomain}.{baseDomain}/api/deviceTemplates?api-version=2022-06-30 -preview&$filter=index(displayName, 'thermostat')
293
293
```
294
294
295
295
The response to this request looks like the following example:
@@ -331,7 +331,7 @@ $orderby=displayName desc
331
331
The following example shows how to retrieve all the device templates where the result is sorted by ` displayName ` :
332
332
333
333
``` http
334
- GET https://{subdomain}.{baseDomain}/api/devices?api-version=1.2 -preview&$orderby=displayName
334
+ GET https://{subdomain}.{baseDomain}/api/devices?api-version=2022-06-30 -preview&$orderby=displayName
335
335
```
336
336
337
337
The response to this request looks like the following example:
@@ -366,7 +366,7 @@ You can also combine two or more filters.
366
366
The following example shows how to retrieve the top 2 device where the display name contains the string ` thermostat ` .
367
367
368
368
``` http
369
- GET https://{subdomain}.{baseDomain}/api/deviceTemplates?api-version=1.2 -preview&$filter=contains(displayName, 'thermostat')&$top=2
369
+ GET https://{subdomain}.{baseDomain}/api/deviceTemplates?api-version=2022-06-30 -preview&$filter=contains(displayName, 'thermostat')&$top=2
370
370
```
371
371
372
372
The response to this request looks like the following example:
0 commit comments