Get model group

Introduced 2.12

The Get Model Group API returns information about a model group based on that group’s ID.

If model access control is enabled on your cluster, only the owner or users with matching backend roles can get private model groups. Any user can get any public model group.

If model access control is disabled on your cluster, users with the get model group API permission can get any model group.

For more information, see Model access control.

Path and HTTP method

  1. GET /_plugins/_ml/model_groups/<model_group_id>

Example request

The following example request gets a model group based on that group’s ID:

  1. GET /_plugins/_ml/model_groups/<model_group_id>

copy

Example response

The following response returns the model group information, including the model group’s name, version, description, access level, and creation information:

  1. {
  2. "name": "test_model_group",
  3. "latest_version": 0,
  4. "description": "This is a public model group",
  5. "access": "public",
  6. "created_time": 1715112992748,
  7. "last_updated_time": 1715112992748
  8. }