---
title: "List of available shares under an account."
method: GET
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shares"
tags: ["Share"]
---

# List of available shares under an account.

`GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shares`

## Request

- Base URL: `https://management.azure.com`
- URL: `https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataShare/accounts/{accountName}/shares`
- Auth: OAuth 2
  - Implicit: `https://login.microsoftonline.com/common/oauth2/authorize`
  - Scopes: `user_impersonation`

List shares in an account

## Path parameters

- `subscriptionId` string, required
- `resourceGroupName` string, required
- `accountName` string, required

## Query parameters

- `api-version` string, required
- `$skipToken` string
- `$filter` string
- `$orderby` string

## Response `200`

Success

- ShareList: List response for get Shares.
  - `nextLink` string: The Url of next result page.
  - `value` Share[], required: Collection of items of type DataTransferObjects.
    - `id` string: The resource id of the azure resource
    - `name` string: Name of the azure resource
    - `type` string: Type of the azure resource
    - `properties` ShareProperties: Share property bag.
      - `createdAt` string, date-time: Time at which the share was created.
      - `description` string: Share description.
      - `provisioningState` 'Succeeded' | 'Creating' | 'Deleting' | 'Moving' | 'Failed': Gets or sets the provisioning state
      - `shareKind` 'CopyBased' | 'InPlace': Share kind.
      - `terms` string: Share terms.
      - `userEmail` string: Email of the user who created the resource
      - `userName` string: Name of the user who created the resource

## Other responses

- `default`: An error response received from the Microsoft.DataShare resource provider.

---

[API](https://skmtc.dev/azure/apis/datashare-microsoft-datashare-datashare.md) - [All operations](https://skmtc.dev/azure/apis/datashare-microsoft-datashare-datashare/llms.txt) - [OpenAPI document](https://skmtc.dev/azure/apis/datashare-microsoft-datashare-datashare/revisions/121238d8f58e?raw)
