---
title: "Gets all the secret resources in a given resource group."
method: GET
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabricMesh/secrets"
tags: ["Secrets"]
---

# Gets all the secret resources in a given resource group.

`GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabricMesh/secrets`

Gets the information about all secret resources in a given resource group. The information include the description and other properties of the Secret.

## Path parameters

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

## Query parameters

- `api-version` '2018-09-01-preview', required

## Response `200`

OK

- SecretResourceDescriptionList — A pageable list of secret resources.
  - `value` SecretResourceDescription[] — One page of the list.
    - `id` string — Fully qualified identifier for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
    - `name` string — The name of the resource
    - `type` string — The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
  - `nextLink` string — URI to fetch the next page of the list.

## Other responses

- `default` — Error

---

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