List Models

Returns a paged collection of model summaries.

A model from this collection can be addressed at /applications/{application}/models/{model}; the sub-resource locator checks that the model exists and returns 404 when it does not.

Required Roles

Service Administrator

REST Resource

GET /HyperionPlanning/rest/sm/v1/applications/{application}/models

Request

Table 3-708 Parameters

Name Description Type Required Default
application The name of the application Path Yes None
offset The index from which the records are returned. It is a 0 based non-negative integer. Query No 0
limit

The number of items to return. A limit of 0 or -1 will return all records starting from the index defined by the offset.

Query No 25

Example URL:

https://<BASE-URL>/HyperionPlanning/rest/sm/v1/applications/Sample/models

Response

Supported Media Types: application/json

Table 3-709 Parameters

Name Description
count Count reported for the returned collection.
links The links related to the resource or result.
offset The zero-based index from which the records are returned.
limit The page size for the returned records.
hasMore True or False, if there are more pages of records

Sample Response

{
  "items": [
    {
      "name": "M2",
      "links": [
        {
          "href": "https://<BASE-URL>/HyperionPlanning/rest/sm/v1/applications/Sample/models/M2",
          "action": "GET",
          "rel": "canonical",
          "data": null
        }
      ]
    }
  ],
  "count": 1,
  "offset": 1,
  "limit": 1,
  "hasMore": true,
  "links": [
    {
      "href": "https://<BASE-URL>/HyperionPlanning/rest/sm/v1/applications/Sample/models/",
      "action": "GET",
      "rel": "canonical",
      "data": null
    },
    {
      "href": "https://<BASE-URL>/HyperionPlanning/rest/sm/v1/applications/Sample/models/?offset=1&limit=1",
      "action": "GET",
      "rel": "self",
      "data": null
    },
    {
      "href": "https://<BASE-URL>/HyperionPlanning/rest/sm/v1/applications/Sample/models/?offset=0&limit=1",
      "action": "GET",
      "rel": "prev",
      "data": null
    },
    {
      "href": "https://<BASE-URL>/HyperionPlanning/rest/sm/v1/applications/Sample/models/?offset=2&limit=1",
      "action": "GET",
      "rel": "next",
      "data": null
    }
  ]
}

Table 3-710 Status Codes

Code Description
400 Invalid paging parameter or request.
401 Authentication is required.
403 The authenticated caller is not authorized.
404 Application or requested sub-resource was not found.
500 Unexpected server error.

Sample cURL Command

curl -X GET -u '<USERNAME>:<PASSWORD>' 'https://<BASE-URL>/HyperionPlanning/rest/sm/v1/applications/Sample/models'