This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.89.1 published on Sunday, Mar 2, 2025 by Pulumi
azure-native.customerinsights.getRelationship
Explore with Pulumi AI
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.89.1 published on Sunday, Mar 2, 2025 by Pulumi
Gets information about the specified relationship. Azure REST API version: 2017-04-26.
Using getRelationship
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getRelationship(args: GetRelationshipArgs, opts?: InvokeOptions): Promise<GetRelationshipResult>
function getRelationshipOutput(args: GetRelationshipOutputArgs, opts?: InvokeOptions): Output<GetRelationshipResult>def get_relationship(hub_name: Optional[str] = None,
                     relationship_name: Optional[str] = None,
                     resource_group_name: Optional[str] = None,
                     opts: Optional[InvokeOptions] = None) -> GetRelationshipResult
def get_relationship_output(hub_name: Optional[pulumi.Input[str]] = None,
                     relationship_name: Optional[pulumi.Input[str]] = None,
                     resource_group_name: Optional[pulumi.Input[str]] = None,
                     opts: Optional[InvokeOptions] = None) -> Output[GetRelationshipResult]func LookupRelationship(ctx *Context, args *LookupRelationshipArgs, opts ...InvokeOption) (*LookupRelationshipResult, error)
func LookupRelationshipOutput(ctx *Context, args *LookupRelationshipOutputArgs, opts ...InvokeOption) LookupRelationshipResultOutput> Note: This function is named LookupRelationship in the Go SDK.
public static class GetRelationship 
{
    public static Task<GetRelationshipResult> InvokeAsync(GetRelationshipArgs args, InvokeOptions? opts = null)
    public static Output<GetRelationshipResult> Invoke(GetRelationshipInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetRelationshipResult> getRelationship(GetRelationshipArgs args, InvokeOptions options)
public static Output<GetRelationshipResult> getRelationship(GetRelationshipArgs args, InvokeOptions options)
fn::invoke:
  function: azure-native:customerinsights:getRelationship
  arguments:
    # arguments dictionaryThe following arguments are supported:
- HubName string
- The name of the hub.
- RelationshipName string
- The name of the relationship.
- ResourceGroup stringName 
- The name of the resource group.
- HubName string
- The name of the hub.
- RelationshipName string
- The name of the relationship.
- ResourceGroup stringName 
- The name of the resource group.
- hubName String
- The name of the hub.
- relationshipName String
- The name of the relationship.
- resourceGroup StringName 
- The name of the resource group.
- hubName string
- The name of the hub.
- relationshipName string
- The name of the relationship.
- resourceGroup stringName 
- The name of the resource group.
- hub_name str
- The name of the hub.
- relationship_name str
- The name of the relationship.
- resource_group_ strname 
- The name of the resource group.
- hubName String
- The name of the hub.
- relationshipName String
- The name of the relationship.
- resourceGroup StringName 
- The name of the resource group.
getRelationship Result
The following output properties are available:
- Id string
- Resource ID.
- Name string
- Resource name.
- ProfileType string
- Profile type.
- ProvisioningState string
- Provisioning state.
- string
- Related profile being referenced.
- RelationshipGuid stringId 
- The relationship guid id.
- RelationshipName string
- The Relationship name.
- TenantId string
- The hub name.
- Type string
- Resource type.
- Cardinality string
- The Relationship Cardinality.
- Description Dictionary<string, string>
- Localized descriptions for the Relationship.
- DisplayName Dictionary<string, string>
- Localized display name for the Relationship.
- ExpiryDate stringTime Utc 
- The expiry date time in UTC.
- Fields
List<Pulumi.Azure Native. Customer Insights. Outputs. Property Definition Response> 
- The properties of the Relationship.
- LookupMappings List<Pulumi.Azure Native. Customer Insights. Outputs. Relationship Type Mapping Response> 
- Optional property to be used to map fields in profile to their strong ids in related profile.
- Id string
- Resource ID.
- Name string
- Resource name.
- ProfileType string
- Profile type.
- ProvisioningState string
- Provisioning state.
- string
- Related profile being referenced.
- RelationshipGuid stringId 
- The relationship guid id.
- RelationshipName string
- The Relationship name.
- TenantId string
- The hub name.
- Type string
- Resource type.
- Cardinality string
- The Relationship Cardinality.
- Description map[string]string
- Localized descriptions for the Relationship.
- DisplayName map[string]string
- Localized display name for the Relationship.
- ExpiryDate stringTime Utc 
- The expiry date time in UTC.
- Fields
[]PropertyDefinition Response 
- The properties of the Relationship.
- LookupMappings []RelationshipType Mapping Response 
- Optional property to be used to map fields in profile to their strong ids in related profile.
- id String
- Resource ID.
- name String
- Resource name.
- profileType String
- Profile type.
- provisioningState String
- Provisioning state.
- String
- Related profile being referenced.
- relationshipGuid StringId 
- The relationship guid id.
- relationshipName String
- The Relationship name.
- tenantId String
- The hub name.
- type String
- Resource type.
- cardinality String
- The Relationship Cardinality.
- description Map<String,String>
- Localized descriptions for the Relationship.
- displayName Map<String,String>
- Localized display name for the Relationship.
- expiryDate StringTime Utc 
- The expiry date time in UTC.
- fields
List<PropertyDefinition Response> 
- The properties of the Relationship.
- lookupMappings List<RelationshipType Mapping Response> 
- Optional property to be used to map fields in profile to their strong ids in related profile.
- id string
- Resource ID.
- name string
- Resource name.
- profileType string
- Profile type.
- provisioningState string
- Provisioning state.
- string
- Related profile being referenced.
- relationshipGuid stringId 
- The relationship guid id.
- relationshipName string
- The Relationship name.
- tenantId string
- The hub name.
- type string
- Resource type.
- cardinality string
- The Relationship Cardinality.
- description {[key: string]: string}
- Localized descriptions for the Relationship.
- displayName {[key: string]: string}
- Localized display name for the Relationship.
- expiryDate stringTime Utc 
- The expiry date time in UTC.
- fields
PropertyDefinition Response[] 
- The properties of the Relationship.
- lookupMappings RelationshipType Mapping Response[] 
- Optional property to be used to map fields in profile to their strong ids in related profile.
- id str
- Resource ID.
- name str
- Resource name.
- profile_type str
- Profile type.
- provisioning_state str
- Provisioning state.
- str
- Related profile being referenced.
- relationship_guid_ strid 
- The relationship guid id.
- relationship_name str
- The Relationship name.
- tenant_id str
- The hub name.
- type str
- Resource type.
- cardinality str
- The Relationship Cardinality.
- description Mapping[str, str]
- Localized descriptions for the Relationship.
- display_name Mapping[str, str]
- Localized display name for the Relationship.
- expiry_date_ strtime_ utc 
- The expiry date time in UTC.
- fields
Sequence[PropertyDefinition Response] 
- The properties of the Relationship.
- lookup_mappings Sequence[RelationshipType Mapping Response] 
- Optional property to be used to map fields in profile to their strong ids in related profile.
- id String
- Resource ID.
- name String
- Resource name.
- profileType String
- Profile type.
- provisioningState String
- Provisioning state.
- String
- Related profile being referenced.
- relationshipGuid StringId 
- The relationship guid id.
- relationshipName String
- The Relationship name.
- tenantId String
- The hub name.
- type String
- Resource type.
- cardinality String
- The Relationship Cardinality.
- description Map<String>
- Localized descriptions for the Relationship.
- displayName Map<String>
- Localized display name for the Relationship.
- expiryDate StringTime Utc 
- The expiry date time in UTC.
- fields List<Property Map>
- The properties of the Relationship.
- lookupMappings List<Property Map>
- Optional property to be used to map fields in profile to their strong ids in related profile.
Supporting Types
DataSourcePrecedenceResponse   
- DataSource stringReference Id 
- The data source reference id.
- DataSource stringType 
- The data source type.
- Id int
- The data source ID.
- Name string
- The data source name
- Status string
- The data source status.
- Precedence int
- the precedence value.
- DataSource stringReference Id 
- The data source reference id.
- DataSource stringType 
- The data source type.
- Id int
- The data source ID.
- Name string
- The data source name
- Status string
- The data source status.
- Precedence int
- the precedence value.
- dataSource StringReference Id 
- The data source reference id.
- dataSource StringType 
- The data source type.
- id Integer
- The data source ID.
- name String
- The data source name
- status String
- The data source status.
- precedence Integer
- the precedence value.
- dataSource stringReference Id 
- The data source reference id.
- dataSource stringType 
- The data source type.
- id number
- The data source ID.
- name string
- The data source name
- status string
- The data source status.
- precedence number
- the precedence value.
- data_source_ strreference_ id 
- The data source reference id.
- data_source_ strtype 
- The data source type.
- id int
- The data source ID.
- name str
- The data source name
- status str
- The data source status.
- precedence int
- the precedence value.
- dataSource StringReference Id 
- The data source reference id.
- dataSource StringType 
- The data source type.
- id Number
- The data source ID.
- name String
- The data source name
- status String
- The data source status.
- precedence Number
- the precedence value.
ProfileEnumValidValuesFormatResponse     
- LocalizedValue Dictionary<string, string>Names 
- Localized names of the enum member.
- Value int
- The integer value of the enum member.
- LocalizedValue map[string]stringNames 
- Localized names of the enum member.
- Value int
- The integer value of the enum member.
- localizedValue Map<String,String>Names 
- Localized names of the enum member.
- value Integer
- The integer value of the enum member.
- localizedValue {[key: string]: string}Names 
- Localized names of the enum member.
- value number
- The integer value of the enum member.
- localized_value_ Mapping[str, str]names 
- Localized names of the enum member.
- value int
- The integer value of the enum member.
- localizedValue Map<String>Names 
- Localized names of the enum member.
- value Number
- The integer value of the enum member.
PropertyDefinitionResponse  
- DataSource List<Pulumi.Precedence Rules Azure Native. Customer Insights. Inputs. Data Source Precedence Response> 
- This is specific to interactions modeled as activities. Data sources are used to determine where data is stored and also in precedence rules.
- FieldName string
- Name of the property.
- FieldType string
- Type of the property.
- ArrayValue stringSeparator 
- Array value separator for properties with isArray set.
- EnumValid List<Pulumi.Values Azure Native. Customer Insights. Inputs. Profile Enum Valid Values Format Response> 
- Describes valid values for an enum property.
- IsArray bool
- Indicates if the property is actually an array of the fieldType above on the data api.
- IsAvailable boolIn Graph 
- Whether property is available in graph or not.
- IsEnum bool
- Indicates if the property is an enum.
- IsFlag boolEnum 
- Indicates if the property is an flag enum.
- IsImage bool
- Whether the property is an Image.
- IsLocalized boolString 
- Whether the property is a localized string.
- IsName bool
- Whether the property is a name or a part of name.
- IsRequired bool
- Whether property value is required on instances, IsRequired field only for Interaction. Profile Instance will not check for required field.
- MaxLength int
- Max length of string. Used only if type is string.
- PropertyId string
- The ID associated with the property.
- SchemaItem stringProp Link 
- URL encoded schema.org item prop link for the property.
- DataSource []DataPrecedence Rules Source Precedence Response 
- This is specific to interactions modeled as activities. Data sources are used to determine where data is stored and also in precedence rules.
- FieldName string
- Name of the property.
- FieldType string
- Type of the property.
- ArrayValue stringSeparator 
- Array value separator for properties with isArray set.
- EnumValid []ProfileValues Enum Valid Values Format Response 
- Describes valid values for an enum property.
- IsArray bool
- Indicates if the property is actually an array of the fieldType above on the data api.
- IsAvailable boolIn Graph 
- Whether property is available in graph or not.
- IsEnum bool
- Indicates if the property is an enum.
- IsFlag boolEnum 
- Indicates if the property is an flag enum.
- IsImage bool
- Whether the property is an Image.
- IsLocalized boolString 
- Whether the property is a localized string.
- IsName bool
- Whether the property is a name or a part of name.
- IsRequired bool
- Whether property value is required on instances, IsRequired field only for Interaction. Profile Instance will not check for required field.
- MaxLength int
- Max length of string. Used only if type is string.
- PropertyId string
- The ID associated with the property.
- SchemaItem stringProp Link 
- URL encoded schema.org item prop link for the property.
- dataSource List<DataPrecedence Rules Source Precedence Response> 
- This is specific to interactions modeled as activities. Data sources are used to determine where data is stored and also in precedence rules.
- fieldName String
- Name of the property.
- fieldType String
- Type of the property.
- arrayValue StringSeparator 
- Array value separator for properties with isArray set.
- enumValid List<ProfileValues Enum Valid Values Format Response> 
- Describes valid values for an enum property.
- isArray Boolean
- Indicates if the property is actually an array of the fieldType above on the data api.
- isAvailable BooleanIn Graph 
- Whether property is available in graph or not.
- isEnum Boolean
- Indicates if the property is an enum.
- isFlag BooleanEnum 
- Indicates if the property is an flag enum.
- isImage Boolean
- Whether the property is an Image.
- isLocalized BooleanString 
- Whether the property is a localized string.
- isName Boolean
- Whether the property is a name or a part of name.
- isRequired Boolean
- Whether property value is required on instances, IsRequired field only for Interaction. Profile Instance will not check for required field.
- maxLength Integer
- Max length of string. Used only if type is string.
- propertyId String
- The ID associated with the property.
- schemaItem StringProp Link 
- URL encoded schema.org item prop link for the property.
- dataSource DataPrecedence Rules Source Precedence Response[] 
- This is specific to interactions modeled as activities. Data sources are used to determine where data is stored and also in precedence rules.
- fieldName string
- Name of the property.
- fieldType string
- Type of the property.
- arrayValue stringSeparator 
- Array value separator for properties with isArray set.
- enumValid ProfileValues Enum Valid Values Format Response[] 
- Describes valid values for an enum property.
- isArray boolean
- Indicates if the property is actually an array of the fieldType above on the data api.
- isAvailable booleanIn Graph 
- Whether property is available in graph or not.
- isEnum boolean
- Indicates if the property is an enum.
- isFlag booleanEnum 
- Indicates if the property is an flag enum.
- isImage boolean
- Whether the property is an Image.
- isLocalized booleanString 
- Whether the property is a localized string.
- isName boolean
- Whether the property is a name or a part of name.
- isRequired boolean
- Whether property value is required on instances, IsRequired field only for Interaction. Profile Instance will not check for required field.
- maxLength number
- Max length of string. Used only if type is string.
- propertyId string
- The ID associated with the property.
- schemaItem stringProp Link 
- URL encoded schema.org item prop link for the property.
- data_source_ Sequence[Dataprecedence_ rules Source Precedence Response] 
- This is specific to interactions modeled as activities. Data sources are used to determine where data is stored and also in precedence rules.
- field_name str
- Name of the property.
- field_type str
- Type of the property.
- array_value_ strseparator 
- Array value separator for properties with isArray set.
- enum_valid_ Sequence[Profilevalues Enum Valid Values Format Response] 
- Describes valid values for an enum property.
- is_array bool
- Indicates if the property is actually an array of the fieldType above on the data api.
- is_available_ boolin_ graph 
- Whether property is available in graph or not.
- is_enum bool
- Indicates if the property is an enum.
- is_flag_ boolenum 
- Indicates if the property is an flag enum.
- is_image bool
- Whether the property is an Image.
- is_localized_ boolstring 
- Whether the property is a localized string.
- is_name bool
- Whether the property is a name or a part of name.
- is_required bool
- Whether property value is required on instances, IsRequired field only for Interaction. Profile Instance will not check for required field.
- max_length int
- Max length of string. Used only if type is string.
- property_id str
- The ID associated with the property.
- schema_item_ strprop_ link 
- URL encoded schema.org item prop link for the property.
- dataSource List<Property Map>Precedence Rules 
- This is specific to interactions modeled as activities. Data sources are used to determine where data is stored and also in precedence rules.
- fieldName String
- Name of the property.
- fieldType String
- Type of the property.
- arrayValue StringSeparator 
- Array value separator for properties with isArray set.
- enumValid List<Property Map>Values 
- Describes valid values for an enum property.
- isArray Boolean
- Indicates if the property is actually an array of the fieldType above on the data api.
- isAvailable BooleanIn Graph 
- Whether property is available in graph or not.
- isEnum Boolean
- Indicates if the property is an enum.
- isFlag BooleanEnum 
- Indicates if the property is an flag enum.
- isImage Boolean
- Whether the property is an Image.
- isLocalized BooleanString 
- Whether the property is a localized string.
- isName Boolean
- Whether the property is a name or a part of name.
- isRequired Boolean
- Whether property value is required on instances, IsRequired field only for Interaction. Profile Instance will not check for required field.
- maxLength Number
- Max length of string. Used only if type is string.
- propertyId String
- The ID associated with the property.
- schemaItem StringProp Link 
- URL encoded schema.org item prop link for the property.
RelationshipTypeFieldMappingResponse    
- ProfileField stringName 
- Specifies the fieldName in profile.
- string
- Specifies the KeyProperty (from StrongId) of the related profile.
- ProfileField stringName 
- Specifies the fieldName in profile.
- string
- Specifies the KeyProperty (from StrongId) of the related profile.
- profileField StringName 
- Specifies the fieldName in profile.
- String
- Specifies the KeyProperty (from StrongId) of the related profile.
- profileField stringName 
- Specifies the fieldName in profile.
- string
- Specifies the KeyProperty (from StrongId) of the related profile.
- profile_field_ strname 
- Specifies the fieldName in profile.
- str
- Specifies the KeyProperty (from StrongId) of the related profile.
- profileField StringName 
- Specifies the fieldName in profile.
- String
- Specifies the KeyProperty (from StrongId) of the related profile.
RelationshipTypeMappingResponse   
- FieldMappings List<Pulumi.Azure Native. Customer Insights. Inputs. Relationship Type Field Mapping Response> 
- Maps a profile property with the StrongId of related profile. This is an array to support StrongIds that are composite key as well.
- FieldMappings []RelationshipType Field Mapping Response 
- Maps a profile property with the StrongId of related profile. This is an array to support StrongIds that are composite key as well.
- fieldMappings List<RelationshipType Field Mapping Response> 
- Maps a profile property with the StrongId of related profile. This is an array to support StrongIds that are composite key as well.
- fieldMappings RelationshipType Field Mapping Response[] 
- Maps a profile property with the StrongId of related profile. This is an array to support StrongIds that are composite key as well.
- field_mappings Sequence[RelationshipType Field Mapping Response] 
- Maps a profile property with the StrongId of related profile. This is an array to support StrongIds that are composite key as well.
- fieldMappings List<Property Map>
- Maps a profile property with the StrongId of related profile. This is an array to support StrongIds that are composite key as well.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.89.1 published on Sunday, Mar 2, 2025 by Pulumi