---
title: "GET /subscriptions/{subscriptionId}/providers/Microsoft.Relay/namespaces"
method: GET
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Relay/namespaces"
tags: ["Namespaces"]
---

# GET /subscriptions/{subscriptionId}/providers/Microsoft.Relay/namespaces

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

Lists all the available namespaces within the subscription regardless of the resourceGroups.

## Path parameters

- `subscriptionId` string, required

## Query parameters

- `api-version` string, required

## Response `200`

Namespaces returned successfully

- RelayNamespaceListResult — The response from the list namespace operation.
  - `value` RelayNamespace[] — Result of the list namespace operation.
    - `id` string — Resource ID.
    - `name` string — Resource name.
    - `type` string — Resource type.
  - `nextLink` string — Link to the next set of results. Not empty if value contains incomplete list of namespaces.

## Other responses

- `default` — Relay error response describing why the operation failed.

---

[API](https://skmtc.dev/azure/apis/relay-api.md) · [All operations](https://skmtc.dev/azure/apis/relay-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/azure/relay-api/revisions/f028122bfcd6/schema)
