You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/media-services/latest/entities-overview.md
+25-25Lines changed: 25 additions & 25 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
2
# Mandatory fields. See more on aka.ms/skyeye/meta.
3
-
title: Filtering, ordering, paging of Media Services entities - Azure | Microsoft Docs
3
+
title: Filtering, ordering, and paging of Media Services entities - Azure | Microsoft Docs
4
4
description: This article discusses filtering, ordering, paging of Azure Media Services entities.
5
5
services: media-services
6
6
documentationcenter: ''
@@ -17,36 +17,36 @@ ms.custom: seodec18
17
17
18
18
---
19
19
20
-
# Filtering, ordering, paging of Media Services entities
20
+
# Filtering, ordering, and paging of Media Services entities
21
21
22
-
This topic discusses the OData query options and pagination support available when listing of Azure Media Services v3 entities.
22
+
This topic discusses the OData query options and pagination support available when you're listing Azure Media Services v3 entities.
23
23
24
24
## Considerations
25
25
26
-
* Properties of entities that are of the Datetime type are always in UTC format.
27
-
* White space in the query string should be URL-encoded before sending a request.
26
+
* Properties of entities that are of the `Datetime` type are always in UTC format.
27
+
* White space in the query string should be URL-encoded before you send a request.
28
28
29
29
## Comparison operators
30
30
31
31
You can use the following operators to compare a field to a constant value:
32
32
33
33
Equality operators:
34
34
35
-
-`eq`: Test whether a field is **equal to** a constant value
36
-
-`ne`: Test whether a field is **not equal to** a constant value
35
+
-`eq`: Test whether a field is *equal to* a constant value.
36
+
-`ne`: Test whether a field is *not equal to* a constant value.
37
37
38
38
Range operators:
39
39
40
-
-`gt`: Test whether a field is **greater than** a constant value
41
-
-`lt`: Test whether a field is **less than** a constant value
42
-
-`ge`: Test whether a field is **greater than or equal to** a constant value
43
-
-`le`: Test whether a field is **less than or equal to** a constant value
40
+
-`gt`: Test whether a field is *greater than* a constant value.
41
+
-`lt`: Test whether a field is *less than* a constant value.
42
+
-`ge`: Test whether a field is *greater than or equal to* a constant. value
43
+
-`le`: Test whether a field is *less than or equal to* a constant value.
44
44
45
45
## Filter
46
46
47
-
**$filter** - Use filter to supply an OData filter parameter to find only the objects you’re interested in.
47
+
Use `$filter` to supply an OData filter parameter to find only the objects you’re interested in.
48
48
49
-
The following REST example filters on the alternateId of an asset:
49
+
The following REST example filters on the `alternateId` value of an asset:
50
50
51
51
```
52
52
GET https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mediaresources/providers/Microsoft.Media/mediaServices/amstestaccount/assets?api-version=2018-07-01&$filter=properties/alternateId%20eq%20'unique identifier'
@@ -61,38 +61,38 @@ var firstPage = await MediaServicesArmClient.Assets.ListAsync(CustomerResourceGr
61
61
62
62
## Order by
63
63
64
-
**$orderby** - Use it to sort the returned objects by the specified parameter. For example:
64
+
Use `$orderby` to sort the returned objects by the specified parameter. For example:
65
65
66
66
```
67
67
GET https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mediaresources/providers/Microsoft.Media/mediaServices/amstestaccount/assets?api-version=2018-07-01$orderby=properties/created%20gt%202018-05-11T17:39:08.387Z
68
68
```
69
69
70
-
To sort the results in ascending or descending order, append either `asc` or `desc` to the field name, separated by a space. For example,`$orderby properties/created desc`.
70
+
To sort the results in ascending or descending order, append either `asc` or `desc` to the field name, separated by a space. For example:`$orderby properties/created desc`.
71
71
72
72
## Skip token
73
73
74
-
**$skiptoken** - If a query response contains many items, the service returns a skip token (`@odata.nextLink`) value that you use to get the next page of results. This can be used to page through the entire result set.
74
+
If a query response contains many items, the service returns a `$skiptoken`(`@odata.nextLink`) value that you use to get the next page of results. Use it to page through the entire result set.
75
75
76
-
In Media Services v3, you cannot configure the page size. The page size varies by the type of entity, please read the individual sections that follow for details.
76
+
In Media Services v3, you can't configure the page size. The page size varies by the type of entity. Read the individual sections that follow for details.
77
77
78
-
If entities are created or deleted while paging through the collection, the changes are reflected in the returned results (if those changes are in the part of the collection that has not been downloaded).
78
+
If entities are created or deleted while you're paging through the collection, the changes are reflected in the returned results (if those changes are in the part of the collection that has not been downloaded).
79
79
80
80
> [!TIP]
81
-
> You should always use the `nextLink` to enumerate the collection and not depend on a particular page size.
81
+
> You should always use `nextLink` to enumerate the collection and not depend on a particular page size.
82
82
>
83
-
> The `nextLink` will only be present if there are more than one page of entities.
83
+
> The `nextLink`value will be present only if there's more than one page of entities.
84
84
85
-
Consider the following example of where $skiptoken is used. Make sure you replace *amstestaccount* with your account name and set the *api-version* value to the latest version.
85
+
Consider the following example of where `$skiptoken` is used. Make sure you replace *amstestaccount* with your account name and set the *api-version* value to the latest version.
86
86
87
-
If you request a list of Assets like this:
87
+
If you request a list of assets like this:
88
88
89
89
```
90
90
GET https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mediaresources/providers/Microsoft.Media/mediaServices/amstestaccount/assets?api-version=2018-07-01 HTTP/1.1
0 commit comments