---
title: "Get all sites on the managed hosting environment."
method: GET
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/managedHostingEnvironments/{name}/sites"
tags: ["ManagedHostingEnvironments"]
---

# Get all sites on the managed hosting environment.

`GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/managedHostingEnvironments/{name}/sites`

## Request

- Base URL: `https://management.azure.com`
- URL: `https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/managedHostingEnvironments/{name}/sites`
- Auth: OAuth 2
  - Implicit: `https://login.microsoftonline.com/common/oauth2/authorize`
  - Scopes: `user_impersonation`

## Path parameters

- `resourceGroupName` string, required
- `name` string, required
- `subscriptionId` string, required

## Query parameters

- `propertiesToInclude` string
- `api-version` string, required

## Response `200`

OK

- SiteCollection: Collection of sites
  - `value` Site[]: Collection of resources
    - `id` string: Resource Id
    - `name` string: Resource Name
    - `kind` string: Kind of resource
    - `location` string, required: Resource Location
    - `type` string: Resource type
    - `tags` object: Resource tags
  - `nextLink` string: Link to next page of resources

---

[API](https://skmtc.dev/azure/apis/website-management-client.md) - [All operations](https://skmtc.dev/azure/apis/website-management-client/llms.txt) - [OpenAPI document](https://skmtc.dev/azure/apis/website-management-client/revisions/e6d8fbd68044?raw)
