---
title: "POST /{resourceUri}/providers/Microsoft.HybridConnectivity/endpoints/{endpointName}/listCredentials"
method: POST
path: "/{resourceUri}/providers/Microsoft.HybridConnectivity/endpoints/{endpointName}/listCredentials"
tags: ["EndpointResources"]
---

# POST /{resourceUri}/providers/Microsoft.HybridConnectivity/endpoints/{endpointName}/listCredentials

`POST /{resourceUri}/providers/Microsoft.HybridConnectivity/endpoints/{endpointName}/listCredentials`

## Request

- Base URL: `https://management.azure.com`
- URL: `https://management.azure.com/{resourceUri}/providers/Microsoft.HybridConnectivity/endpoints/{endpointName}/listCredentials`
- Auth: OAuth 2
  - Implicit: `https://login.microsoftonline.com/common/oauth2/authorize`
  - Scopes: `user_impersonation`

Gets the endpoint access credentials to the resource.

## Path parameters

- `resourceUri` string, required
- `endpointName` string, required

## Query parameters

- `api-version` string, required
- `expiresin` integer

## Request body

- ListCredentialsRequest: The details of the service for which credentials needs to be returned.
  - `serviceName` 'SSH' | 'WAC': Name of the service.

## Response `200`

Azure operation completed successfully.

- EndpointAccessResource: The endpoint access for the target resource.
  - `relay` RelayNamespaceAccessProperties: Azure relay hybrid connection access properties
    - `namespaceName` string, required: The namespace name.
    - `namespaceNameSuffix` string, required: The suffix domain name of relay namespace.
    - `hybridConnectionName` string, required: Azure Relay hybrid connection name for the resource.
    - `accessKey` string: Access key for hybrid connection.
    - `expiresOn` integer: The expiration of access key in unix time.
    - `serviceConfigurationToken` string: The token to access the enabled service.

## Other responses

- `default`: An unexpected error response.

## Changes

- **2026-07-13** (2021-10-06-preview) `3d268d0538f2`: 1 breaking, 2 info
  - added the new required `query` request parameter `api-version`
  - api tag `EndpointResources` added
  - api tag `Endpoints` removed

[Operation history](https://skmtc.dev/azure/apis/hybridconnectivity-microsoft-hybridconnectivity/changes/:resourceUri/providers/Microsoft.HybridConnectivity/endpoints/:endpointName/listCredentials/post.md)

---

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