Retrieve Backend Collections
get
/mobile/tools/1.0/mobilebackends/{id}/collections
Returns an array of metadata about the storage collections that are associated with the backend. You can filter the results, page through the results, and specify a sort order.
Request
Supported Media Types
- application/json
Path Parameters
- id
-
Type:
string
Required:true
The identifier of the backend.
Query Parameters
- exclude
-
Type:
array
Collection Format:multi
Expression to exclude from the result the elements that have IDs in the list. Example:exclude=57165555-aa10-4838-938a-354c2b3a287sa&exclude=57165555-aa10-4838-938a-354c2b3a287s
-
Type:
string
-
- filterType
-
Type:
string
Allowed Values: [NOT_PUBLISHED, PUBLISHED, NOT_TRASH, TRASH, MAX_EXCLUDE, MAX_INCLUDE, MAX_ONLY].Filter collections by the following filter types. You can provide multiple values as a comma-separated string. For example,
filterType=NOT_PUBLISHED,NOT_TRASH,MAX_ONLY
.PUBLISHED
returns all collections that are in the published state.NOT_PUBLISHED
returns all collections that aren't in the published state.TRASH
returns all collections that have theinTrash
attribute set totrue
.NOT_TRASH
returns all collections that have theinTrash
attribute set tofalse
.MAX_INCLUDE
returns all collections including those that have themax
attribute set totrue
.MAX_EXCLUDE
(the default) returns all collections except those that have themax
attribute set totrue
.MAX_ONLY
returns only the collections that have themax
attribute set totrue
.
- fromTime
-
Type:
string
Include only the assets that have been modified or deleted on or after the specified time. Example:
2016-03-03T15:13:39.419Z
.Filters by
modifiedOn
for assets that haven't been trashed and bydeletedOn
for trashed assests.Supported values:
- Number of milliseconds since January 1, 1970, 00:00:00 GMT
- Date in ISO 8601 format
- Relative value, such as -1s, -1m, and -1h
- id
-
Type:
array
Collection Format:multi
Expression to return only the elements that have IDs in the list. Example:id=93079180-bb00-4838-938a-753c2b3a957a&id=57165555-aa10-4838-938a-354c2b3a287s
-
Type:
string
-
- limit
-
Type:
integer
(int64
)The maximum number of items to return. If the total number of items to return is greater than the limit, then the response returns a link to get the next set of items. - offset
-
Type:
integer
(int64
)The index where you want to start browsing the list of items. If you don't specify an offset, then the offset defaults to 0, which is the first item in the list. The response contains the offset used and a link to get the previous set of items. - orderBy
-
Type:
string
The sort order for the results. The default sort order is ascending by name. When you specify a sort order with pagination, the next and previous links respect the ordering. Multiple values can be provided as a comma-separated string. Format: `orderBy=attr[:("asc"|"desc")] [,attr[:("asc"|"desc")]]`, where the `attr` parameter can be one of [ name | version | modifiedOn | createdOn | deletedOn | deletedBy ]. Example: `orderBy=name:asc,modifiedOn:desc`name:asc
- q
-
Type:
string
Performs a case-insensitive search for collections that have a name, display name, or description that contains the string that's provided in this parameter. For example,q=myCollection
. This parameter doesn't support query languages. - toTime
-
Type:
string
Include only the assets that have been modified or deleted on or before the specified time. Example:
2016-03-03T15:13:39.419Z
.Filters by
modifiedOn
for assets that haven't been trashed and bydeletedOn
for trashed assests.Supported values:
- Number of milliseconds since January 1, 1970, 00:00:00 GMT
- Date in ISO 8601 format
- Relative value, such as -1s, -1m, and -1h
- totalResults
-
Type:
boolean
Reserved for enabling the total number of available elements in the response. This parameter is ignored because the total elements count always is available and is provided in the response.
Header Parameters
- Accept-Language
-
Type:
string
Indicates the preferred set of natural languages to use for the response. The results are sorted based on the language. Example:da, en-gb;q=0.8, en;q=0.7
.
Response
Supported Media Types
- application/json
200 Response
An array the storage collections' metadata with pagination information.
Body
An array of storage collection elements with paging information.
Root Schema : mosCollectionPaging
Type:
object
An array of storage collection elements with paging information.
-
Type:
object
pagingAdditional Properties Allowed:The pagination information. -
Type:
object
mosCollectionPaging-allOf[1]Additional Properties Allowed:
Nested Schema : paging
Type:
object
The pagination information.
- count
-
Type:
integer
(int64
)Required:true
The number of elements in this response. - hasMore
-
Type:
boolean
Required:true
Indicates whether the collection has more elements to be retrieved. - limit
-
Type:
integer
(int64
)The maximum number of items returned. If the total number of items to return is greater than the limit, then the response returns a link to get the next set of items. - links
-
Type:
array
paginationLinksArrayAdditional Properties Allowed:Minimum Number of Items:0
An array of links for paginated metadata. - totalResults
-
Type:
integer
(int64
)The total number of elements on the server side that satisfy the request. This attribute is returned only when the request includes the `totalResults` query parameter with a value of `true`.
Nested Schema : mosCollectionPaging-allOf[1]
- items
-
Type:
array
mosCollectionArrayAdditional Properties Allowed:Minimum Number of Items:0
An array of the storage collections' metadata.
Nested Schema : paginationLinksArray
Type:
array
Minimum Number of Items:
0
An array of links for paginated metadata.
-
Type:
object
Link to the paginated metadata.Title:Link to the paginated metadata.
Additional Properties Allowed:
Nested Schema : Link to the paginated metadata.
Type:
object
Title:
Link to the paginated metadata.
- href
-
Type:
string
Required:true
Link value. - rel
-
Required:
true
Allowed Values:[ "self", "canonical", "next", "prev", "first", "last" ]
Link type.
Nested Schema : mosCollectionArray
Type:
array
Minimum Number of Items:
0
An array of the storage collections' metadata.
-
Type:
object
mosCollectionGetAdditional Properties Allowed:The storage collection representation for GET requests.
Nested Schema : mosCollectionGet
Type:
object
The storage collection representation for GET requests.
-
Type:
object
assetGetAdditional Properties Allowed:The asset representation for GET requests. -
Type:
object
mosCollectionGet-allOf[1]Additional Properties Allowed:
Nested Schema : assetGet
Type:
object
The asset representation for GET requests.
-
Type:
object
assetUpdateAdditional Properties Allowed:The asset representation for PUT requests. -
Type:
object
assetIdEtagAdditional Properties Allowed:The asset ID and entity tag (ETag) values. -
Type:
object
trashAdditional Properties Allowed:Indicator of whether the asset is in the trash. -
Type:
object
assetGet-allOf[3]Additional Properties Allowed:
Nested Schema : mosCollectionGet-allOf[1]
- guid
-
Type:
string
- syncControl
-
Type:
boolean
- userIsolated
-
Type:
boolean
Nested Schema : assetUpdate
Type:
object
The asset representation for PUT requests.
- actionComment
-
Type:
string
- desc
-
Type:
string
Maximum Length:100
- max
-
Type:
boolean
Default Value:false
- name
-
Type:
string
Required:true
Maximum Length:100
Pattern:^[a-zA-Z][a-zA-Z0-9_]*$
- namespace
-
Type:
string
Applicable to APIs and implementations only. This value is null for all other asset types. - title
-
Type:
string
Maximum Length:255
- version
-
Type:
string
Maximum Length:100
Pattern:^[a-zA-Z0-9][\w.]*$
Asset version.
Nested Schema : assetIdEtag
Type:
object
The asset ID and entity tag (ETag) values.
- etag
-
Type:
string
The asset entity tag (ETag) value, which you can use to detect concurrent modification. - id
-
Type:
string
Required:true
Nested Schema : trash
Nested Schema : assetGet-allOf[3]
- createdOn
-
Type:
string
- deletedBy
-
Type:
string
- deletedOn
-
Type:
string
- links
-
Type:
array
entityLinksArrayAdditional Properties Allowed:Minimum Number of Items:0
An array of links for an entity's metadata. - modifiedBy
-
Type:
string
- modifiedOn
-
Type:
string
- published
-
Type:
boolean
An asset draft or published status representation.
Nested Schema : entityLinksArray
Nested Schema : items
Type:
object
Link to the entity's metadata.
- href
-
Type:
string
Required:true
Link value. - rel
-
Required:
true
Allowed Values:[ "self", "canonical" ]
Link type.