---
title: "List all apps that are assigned to a hostname."
method: POST
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Web/listSitesAssignedToHostName"
---

# List all apps that are assigned to a hostname.

`POST /subscriptions/{subscriptionId}/providers/Microsoft.Web/listSitesAssignedToHostName`

List all apps that are assigned to a hostname.

## Path parameters

- `subscriptionId` string, required

## Query parameters

- `api-version` string, required

## Request body

- NameIdentifier — unresolved $ref

## Response `200`

OK

- IdentifierCollection — unresolved $ref

## Other responses

- `default` — App Service error response.

---

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