Using the REST Client
You need the domain information to use the REST client to interact with the registry.
To obtain the domain information, perform the following:
- Select Apps in the left navigation pane on the Anywhere Cloud Console.
- Search for the Cloudera AI Registry instance.
- Click on the name of the Cloudera AI Registry instance.
A pane opens displaying the available information for the selected instance. The Domain name is displayed in the Details tab.
Get all Models
curl -s -H "Cookie: hadoop-jwt=${HADOOP_JWT}" ${DOMAIN}/api/v3/models | jq
{
"models": [
{
"created_at": "2026-11-19T06:32:47.000Z",
"creator": {
"user_name": "hrt_alphar2"
},
"id": "dpa3-e5z4-6r9o-verh",
"name": "foo",
"tags": null,
"updated_at": "2026-11-19T06:32:47.000Z",
"visibility": "private"
}
]
}
Get a Model
curl -s -H "Cookie: hadoop-jwt=${HADOOP_JWT}" ${DOMAIN}/api/v3/models/hotq-22ok-hvjd-855k | jq
{
"created_at": "2026-11-19T06:32:47.000Z",
"creator": {
"user_name": "hrt_alphar2"
},
"id": "hotq-22ok-hvjd-855k",
"model_versions": [
{
"artifact_uri": "s3://<bucket>/hotq-22ok-hvjd-855k/fyxw-joxj-jgvr-rzjo",
"created_at": "2026-11-19T06:32:47.000Z",
"metadata": {
"model_repo_type": "HF",
"tags": [
{
"key": "repoId",
"value": "Qwen/Qwen2.5-0.5B-Instruct"
}
]
},
"model_id": "hotq-22ok-hvjd-855k",
"model_name": "foo2",
"status": "READY",
"tags": null,
"updated_at": "2026-11-19T06:48:12.000Z",
"user": {
"user_name": "hrt_alphar2"
},
"version": 1,
"version_id": "fyxw-joxj-jgvr-rzjo"
}
],
"name": "foo2",
"tags": null,
"updated_at": "2026-11-19T06:32:47.000Z",
"visibility": "private"
}
Get a Model version
curl -s -H "Cookie: hadoop-jwt=${HADOOP_JWT}" \
${DOMAIN}/api/v3/models/hotq-22ok-hvjd-855k/versions/1 | jq
{
"artifact_uri": "s3://<bucket>/hotq-22ok-hvjd-855k/fyxw-joxj-jgvr-rzjo",
"created_at": "2026-11-19T06:32:47.000Z",
"metadata": {
"model_repo_type": "HF",
"tags": [
{
"key": "repoId",
"value": "Qwen/Qwen2.5-0.5B-Instruct"
}
]
},
"model_id": "hotq-22ok-hvjd-855k",
"model_name": "foo2",
"status": "READY",
"tags": null,
"updated_at": "2026-11-19T06:48:12.000Z",
"user": {
"user_name": "hrt_alphar2"
},
"version": 1,
"version_id": "fyxw-joxj-jgvr-rzjo"
}
Patch a Model
curl -XPATCH -s -H “Cookie: hadoop-jwt=${HADOOP_JWT}” -H “Content-Type: application/json” ${DOMAIN}/api/v3/models/hotq-22ok-hvjd-855k -d ‘{
“visibility”: “public”,
“description”: “my model”
}’ | jq
Patch a Model Version
curl -XPATCH -s -H "Cookie: hadoop-jwt=${HADOOP_JWT}" \
-H "Content-Type: application/json" \
${DOMAIN}/api/v3/models/hotq-22ok-hvjd-855k/versions/1 -d '{
"tags": [{"key": "k1", "value": "v1"}, {"key": "k2", "value": "v2"}]
}' | jq
Delete a Model
curl -XDELETE -s -H "Cookie: hadoop-jwt=${HADOOP_JWT}" \
${DOMAIN}/api/v3/models/hotq-22ok-hvjd-855k
Delete a Model version
curl -XDELETE -s -H "Cookie: hadoop-jwt=${HADOOP_JWT}" \
${DOMAIN}/api/v3/models/hotq-22ok-hvjd-855k/versions/1
