List and get model masters
List the model masters in your deployment and read the values a model master stores.
Every model master has an id. List the model masters to find the id you need, and then get that model master to read the values it stores.
Prerequisites
You need the following before you start:
- A running CosmicAC deployment. See Installation.
- Your CosmicAC base URL, the address where your CosmicAC UI is reachable. CosmicAC serves the API under /api, so each request uses <base-url>/api.
- A terminal with curl.
List model masters
To list the active model masters, send a GET request:
curl "<base-url>/api/v1/model-masters?status=active&limit=20&offset=0"To list archived model masters instead, set status=archived.
Each entry includes an id. Use that id to get, update, or archive the model master.
Get a model master
To get a model master, send a GET request with its id:
curl <base-url>/api/v1/model-masters/<id>