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
Key | Datatype | Required | Description |
---|---|---|---|
compartmentId | string | The ID of the compartment in which to list resources. | |
projectId | string | The ID of the project for which to list the objects. | |
lifecycleState | string | Filter to match models with the given lifecycleState. | |
displayName | string | A filter to return only resources that match the entire display name given. | |
id | string | Filter to find the model with the given identifier. | |
limit | number | The maximum number of items to return. | |
page | string | The position at which to start retrieving results. This must come from the opc-next-page header field of a previous response. | |
sortOrder | string | The sort order to use, either 'ASC' or 'DESC'. | |
sortBy | string | The field to sort by. Only one sort order may be provided. Default order for timeCreated is descending. Default order for displayName is ascending. | |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
opc-request-id | string | The client request ID for tracing. | |
Accept | string |
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"}}]}