---
title: "GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/relationshipLinks"
method: GET
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/relationshipLinks"
tags: ["RelationshipLinks"]
---

# GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/relationshipLinks

`GET /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/relationshipLinks`

## Request

- Base URL: `https://management.azure.com`
- URL: `https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CustomerInsights/hubs/{hubName}/relationshipLinks`
- Auth: OAuth 2
  - Implicit: `https://login.microsoftonline.com/common/oauth2/authorize`
  - Scopes: `user_impersonation`

Gets all relationship links in the hub.

## Path parameters

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

## Query parameters

- `api-version` string, required

## Response `200`

OK. Successfully get all the relationship links in the hub.

- RelationshipLinkListResult: The response of list relationship link operation.
  - `value` RelationshipLinkResourceFormat[]: Results of the list operation.
    - `id` string: Resource ID.
    - `name` string: Resource name.
    - `type` string: Resource type.
    - `properties` RelationshipLinkDefinition: The definition of relationship link.
      - `displayName` object: Localized display name for the Relationship Link.
      - `description` object: Localized descriptions for the Relationship Link.
      - `interactionType` string, required: The InteractionType associated with the Relationship Link.
      - `linkName` string: The name of the Relationship Link.
      - `mappings` RelationshipLinkFieldMapping[]: The mappings between Interaction and Relationship fields.
        - `interactionFieldName` string, required: The field name on the Interaction Type.
        - `linkType` 'UpdateAlways' | 'CopyIfNull': Link type.
        - `relationshipFieldName` string, required: The field name on the Relationship metadata.
      - `profilePropertyReferences` ParticipantPropertyReference[], required: The property references for the Profile of the Relationship.
        - `interactionPropertyName` string, required: The interaction property that maps to the profile property.
        - `profilePropertyName` string, required: The profile property that maps to the interaction property.
      - `provisioningState` 'Provisioning' | 'Succeeded' | 'Expiring' | 'Deleting' | 'HumanIntervention' | 'Failed': Provisioning state.
      - `relatedProfilePropertyReferences` ParticipantPropertyReference[], required: The property references for the Related Profile of the Relationship.
        - `interactionPropertyName` string, required: The interaction property that maps to the profile property.
        - `profilePropertyName` string, required: The profile property that maps to the interaction property.
      - `relationshipName` string, required: The Relationship associated with the Link.
      - `relationshipGuidId` string: The relationship guid id.
      - `tenantId` string: The hub name.
  - `nextLink` string: Link to the next set of results.

---

[API](https://skmtc.dev/azure/apis/customer-insights-microsoft-customerinsights-customerinsight.md) - [All operations](https://skmtc.dev/azure/apis/customer-insights-microsoft-customerinsights-customerinsight/llms.txt) - [OpenAPI document](https://skmtc.dev/azure/apis/customer-insights-microsoft-customerinsights-customerinsight/revisions/1a3e19f598e0?raw)
