---
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`

Gets the endpoint access credentials to the resource.

## Path parameters

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

## Query parameters

- `expiresin` integer

## Parameters

- `../../../../../common-types/resource-management/v5/types.json#/components/parameters/ApiVersionParameter` — unresolved $ref

## 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.

---

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