Retrieve Assets
/mobile/tools/1.0/assets
Request
- application/json
- apiTypes
-
Type:
stringA comma-delimited list of the type of APIs to return. Note that the only types of APIs that this operation returns are custom and connector APIs. If you don't provide this parameter, then all assets are returned.
Allowed values:
internal: APIs that you can call from custom API implementations onlyexternal: APIs that you can call from custom API implementations, mobile apps, and third-party toolscustom: Custom APIsconnector: Connector assets
all - assetTypes
-
Type:
stringA comma-delimited list of the types of assets to return. If this parameter isn't provided, then the operation returns all assets. Multiple values can be provided as comma-separated string. Allowed asset types: [ API | MobileBackend | Connector | APIImplementation | Client | StorageCollection | Package]. - exclude
-
Type:
arrayCollection Format:multiExpression 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:
stringAllowed Values: [NOT_PUBLISHED, PUBLISHED, NOT_TRASH, TRASH, MAX_EXCLUDE, MAX_INCLUDE, MAX_ONLY].Filter assets by the following filter types. You can provide multiple values as a comma-separated string. For example,
filterType=NOT_PUBLISHED,NOT_TRASH,MAX_ONLY.PUBLISHEDreturns all assets that are in the published state.NOT_PUBLISHEDreturns all assets that aren't in the published state.TRASHreturns all assets that have theinTrashattribute set totrue.NOT_TRASHreturns all assets that have theinTrashattribute set tofalse.MAX_INCLUDEreturns all assets including those that have themaxattribute set totrue.MAX_EXCLUDE(the default) returns all assets except those that have themaxattribute set totrue.MAX_ONLYreturns only the assets that have themaxattribute set totrue.
- fromTime
-
Type:
stringInclude only the assets that have been modified or deleted on or after the specified time. Example:
2016-03-03T15:13:39.419Z.Filters by
modifiedOnfor assets that haven't been trashed and bydeletedOnfor 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:
arrayCollection Format:multiExpression 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:
stringThe 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:
stringPerforms a case-insensitive search for assets that have a name, display name, or description that contains the string that's provided in this parameter. For example,q=myApi. This parameter doesn't support query languages. - toTime
-
Type:
stringInclude only the assets that have been modified or deleted on or before the specified time. Example:
2016-03-03T15:13:39.419Z.Filters by
modifiedOnfor assets that haven't been trashed and bydeletedOnfor 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:
booleanReserved 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.
- Accept-Language
-
Type:
stringIndicates 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
- application/json
object-
Type:
objectpagingAdditional Properties Allowed:The pagination information. -
Type:
objectsearchAssetPaging-allOf[1]Additional Properties Allowed:
object- count
-
Type:
integer(int64)Required:trueThe number of elements in this response. - hasMore
-
Type:
booleanRequired:trueIndicates 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:
arraypaginationLinksArrayAdditional Properties Allowed:Minimum Number of Items:0An 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`.
- items
-
Type: itemsAdditional Properties Allowed:
array0-
Type:
objectLink to the paginated metadata.Title:Link to the paginated metadata.Additional Properties Allowed:
objectLink to the paginated metadata.- href
-
Type:
stringRequired:trueLink value. - rel
-
Required:
trueAllowed Values:[ "self", "canonical", "next", "prev", "first", "last" ]Link type.
-
Type:
arraysearchAssetArrayAdditional Properties Allowed:Minimum Number of Items:0An array of asset elements as response data from the search.
array0-
Type:
objectsearchAssetAdditional Properties Allowed:The asset representation for search assets responses.
object-
Type:
objectassetGetAdditional Properties Allowed:The asset representation for GET requests. -
Type:
objectsearchAsset-allOf[1]Additional Properties Allowed:
object-
Type:
objectassetUpdateAdditional Properties Allowed:The asset representation for PUT requests. -
Type:
objectassetIdEtagAdditional Properties Allowed:The asset ID and entity tag (ETag) values. -
Type:
objecttrashAdditional Properties Allowed:Indicator of whether the asset is in the trash. -
Type:
objectassetGet-allOf[3]Additional Properties Allowed:
- deployedBy
-
Type:
stringNot currently used. - deployedOn
-
Type:
stringNot currently used. - status
-
Allowed Values:
[ "ACTIVE", "INACTIVE" ]
object- actionComment
-
Type:
string - desc
-
Type:
stringMaximum Length:100 - max
-
Type:
booleanDefault Value:false - name
-
Type:
stringRequired:trueMaximum Length:100Pattern:^[a-zA-Z][a-zA-Z0-9_]*$ - namespace
-
Type:
stringApplicable to APIs and implementations only. This value is null for all other asset types. - title
-
Type:
stringMaximum Length:255 - version
-
Type:
stringMaximum Length:100Pattern:^[a-zA-Z0-9][\w.]*$Asset version.
object- etag
-
Type:
stringThe asset entity tag (ETag) value, which you can use to detect concurrent modification. - id
-
Type:
stringRequired:true
- createdOn
-
Type:
string - deletedBy
-
Type:
string - deletedOn
-
Type:
string - links
-
Type:
arrayentityLinksArrayAdditional Properties Allowed:Minimum Number of Items:0An array of links for an entity's metadata. - modifiedBy
-
Type:
string - modifiedOn
-
Type:
string - published
-
Type:
booleanAn asset draft or published status representation.
object- href
-
Type:
stringRequired:trueLink value. - rel
-
Required:
trueAllowed Values:[ "self", "canonical" ]Link type.