Gets a list of all models in a compartment

GET {{baseUrl}}/models?compartmentId={{compartment_ocid}}&limit=10&sortOrder=ASC&sortBy=timeCreated

Returns a list of models in a compartment.

Request Params

KeyDatatypeRequiredDescription
compartmentIdstringThe ID of the compartment in which to list resources.
projectIdstringThe ID of the project for which to list the objects.
lifecycleStatestringFilter to match models with the given lifecycleState.
displayNamestringA filter to return only resources that match the entire display name given.
idstringFilter to find the model with the given identifier.
limitnumberThe maximum number of items to return.
pagestringThe position at which to start retrieving results. This must come from the opc-next-page header field of a previous response.
sortOrderstringThe sort order to use, either 'ASC' or 'DESC'.
sortBystringThe field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending.

HEADERS

KeyDatatypeRequiredDescription
opc-request-idstringThe client request ID for tracing.
Acceptstring

RESPONSES

status: OK

{"items":[{"compartmentId":"voluptate dolor incididunt","id":"irure do Lorem dolor","lifecycleState":"dolor ipsum","modelType":"magna commodo quis nisi in","modelVersion":"sit sint","projectId":"deserunt et quis non minim","timeCreated":"2000-12-03T10:10:24.182Z","definedTags":{"laborum_92":{"sint_c":{},"non_4":{},"voluptate_cb":{},"adipisicing_c":{}},"ea_01":{"ipsum_57":{},"aute749":{}}},"description":"commodo sit ir","displayName":"Duis fugiat cillum dolore","freeformTags":{"est_6":"deserunt labore","labore_2c1":"mollit reprehenderit magna"},"lifecycleDetails":"nulla esse ipsum enim","precision":97361098.77746925,"systemTags":{"nulla91":{"laborum_a":{}}},"testingDataset":{"datasetType":"DATA_SCIENCE_LABELING"},"timeUpdated":"1980-01-02T06:09:42.336Z","trainingDataset":{"datasetType":"DATA_SCIENCE_LABELING"},"validationDataset":{"datasetType":"DATA_SCIENCE_LABELING"}},{"compartmentId":"amet officia laborum","id":"nostrud commodo incididunt dolore","lifecycleState":"veniam officia ipsu","modelType":"eiusmod nulla","modelVersion":"cillum et in","projectId":"quis","timeCreated":"1986-12-13T09:28:07.223Z","definedTags":{"laborum600":{"id_e36":{},"tempor_":{}},"amet_742":{"inc4":{}},"ex_f":{"ut_4_":{}}},"description":"veniam consectetur Lorem","displayName":"Excepteur eiusmod","freeformTags":{"incididunt4a_":"dolor est"},"lifecycleDetails":"fugiat in consequat","precision":75127769.54403523,"systemTags":{"voluptate_31":{"Ut_f99":{},"culpaa1":{},"eu_c26":{}}},"testingDataset":{"datasetType":"DATA_SCIENCE_LABELING"},"timeUpdated":"1980-04-22T00:46:40.058Z","trainingDataset":{"datasetType":"OBJECT_STORAGE"},"validationDataset":{"datasetType":"DATA_SCIENCE_LABELING"}}]}