Get Namespace#

Get namespace details from the NeMo Entity Store.

Prerequisites#

  • Access to the NeMo Entity Store service

  • The base URL of the NeMo Entity Store service stored in the environment variable ENTITY_STORE_BASE_URL

To Get a Namespace#

Choose one of the following options of getting a namespace.

Set up a NeMoMicroservices client instance using the base URL of the NeMo Entity Store microservice and perform the task as follows.

from nemo_microservices import NeMoMicroservices

client = NeMoMicroservices(
    base_url=os.environ["ENTITY_STORE_BASE_URL"]
)

response = client.namespaces.retrieve(
    namespace_id="your-namespace", # Namespace that you create using NeMo Entity Store
)
print(response)

Make a GET request to the /v1/namespaces/{namespace_id} endpoint.

ENTITY_STORE_BASE_URL="<URL for NeMo Entity Store>"
NAMESPACE_ID="your-namespace" # Namespace that you create using NeMo Entity Store

curl -X GET "${ENTITY_STORE_BASE_URL}/v1/namespaces/${NAMESPACE_ID}" \
    -H 'Accept: application/json'
Example Response
{
  "id": "string",
  "created_at": "2025-06-17T02:41:11.788Z",
  "updated_at": "2025-06-17T02:41:11.788Z",
  "description": "string",
  "project": "string",
  "custom_fields": {
    "additionalProp1": "string",
    "additionalProp2": "string",
    "additionalProp3": "string"
  },
  "ownership": {
    "created_by": "",
    "access_policies": {}
  }
}