---
title: "List namespaces under an Azure subscription."
method: GET
path: "/subscriptions/{subscriptionId}/providers/Microsoft.EventGrid/namespaces"
tags: ["Namespaces"]
---

# List namespaces under an Azure subscription.

`GET /subscriptions/{subscriptionId}/providers/Microsoft.EventGrid/namespaces`

List all the namespaces under an Azure subscription.

## Query parameters

- `$filter` string
- `$top` integer

## Parameters

- `../../../../../../common-types/resource-management/v3/types.json#/components/parameters/SubscriptionIdParameter` — unresolved $ref
- `../../../../../../common-types/resource-management/v6/types.json#/components/parameters/ApiVersionParameter` — unresolved $ref

## Response `200`

OK

- NamespacesListResult — Result of the List Namespaces operation.
  - `value` Namespace[] — A collection of namespaces.
    - `id` string — Fully qualified identifier of the resource.
    - `name` string — Name of the resource.
    - `type` string — Type of the resource.
  - `nextLink` string — A link for the next page of namespaces.

## Other responses

- `default` — Error response returned if request was unsuccessful.

---

[API](https://skmtc.net/azure/apis/eventgrid-microsoft-eventgrid-eventgrid.md) · [All operations](https://skmtc.net/azure/apis/eventgrid-microsoft-eventgrid-eventgrid/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/azure/eventgrid-microsoft-eventgrid-eventgrid/revisions/285f714f3339/schema)
