---
title: "Gets the Azure Active Directory metadata used for secured connection to cluster."
method: GET
path: "/$/GetAadMetadata"
tags: ["Cluster"]
---

# Gets the Azure Active Directory metadata used for secured connection to cluster.

`GET /$/GetAadMetadata`

Gets the Azure Active Directory metadata used for secured connection to cluster.
This API is not supposed to be called separately. It provides information needed to set up an Azure Active Directory secured connection with a Service Fabric cluster.

## Query parameters

- `api-version` '6.0', required
- `timeout` integer

## Response `200`

A successful operation will return 200 status code and the Azure Active Directory metadata.

- AadMetadataObject — Azure Active Directory metadata object used for secured connection to cluster.
  - `type` string — The client authentication method.
  - `metadata` AadMetadata — Azure Active Directory metadata used for secured connection to cluster.
    - `authority` string — The AAD authority url.
    - `client` string — The AAD client application Id.
    - `cluster` string — The AAD cluster application Id.
    - `login` string — The AAD login url.
    - `redirect` string — The client application redirect address.
    - `tenant` string — The AAD tenant Id.

## Other responses

- `default` — The detailed error response.

---

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