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.peering.getPeering
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 an existing peering with the specified name under the given subscription and resource group. Azure REST API version: 2022-10-01.
Using getPeering
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 getPeering(args: GetPeeringArgs, opts?: InvokeOptions): Promise<GetPeeringResult>
function getPeeringOutput(args: GetPeeringOutputArgs, opts?: InvokeOptions): Output<GetPeeringResult>def get_peering(peering_name: Optional[str] = None,
                resource_group_name: Optional[str] = None,
                opts: Optional[InvokeOptions] = None) -> GetPeeringResult
def get_peering_output(peering_name: Optional[pulumi.Input[str]] = None,
                resource_group_name: Optional[pulumi.Input[str]] = None,
                opts: Optional[InvokeOptions] = None) -> Output[GetPeeringResult]func LookupPeering(ctx *Context, args *LookupPeeringArgs, opts ...InvokeOption) (*LookupPeeringResult, error)
func LookupPeeringOutput(ctx *Context, args *LookupPeeringOutputArgs, opts ...InvokeOption) LookupPeeringResultOutput> Note: This function is named LookupPeering in the Go SDK.
public static class GetPeering 
{
    public static Task<GetPeeringResult> InvokeAsync(GetPeeringArgs args, InvokeOptions? opts = null)
    public static Output<GetPeeringResult> Invoke(GetPeeringInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetPeeringResult> getPeering(GetPeeringArgs args, InvokeOptions options)
public static Output<GetPeeringResult> getPeering(GetPeeringArgs args, InvokeOptions options)
fn::invoke:
  function: azure-native:peering:getPeering
  arguments:
    # arguments dictionaryThe following arguments are supported:
- PeeringName string
- The name of the peering.
- ResourceGroup stringName 
- The name of the resource group.
- PeeringName string
- The name of the peering.
- ResourceGroup stringName 
- The name of the resource group.
- peeringName String
- The name of the peering.
- resourceGroup StringName 
- The name of the resource group.
- peeringName string
- The name of the peering.
- resourceGroup stringName 
- The name of the resource group.
- peering_name str
- The name of the peering.
- resource_group_ strname 
- The name of the resource group.
- peeringName String
- The name of the peering.
- resourceGroup StringName 
- The name of the resource group.
getPeering Result
The following output properties are available:
- Id string
- The ID of the resource.
- Kind string
- The kind of the peering.
- Location string
- The location of the resource.
- Name string
- The name of the resource.
- ProvisioningState string
- The provisioning state of the resource.
- Sku
Pulumi.Azure Native. Peering. Outputs. Peering Sku Response 
- The SKU that defines the tier and kind of the peering.
- Type string
- The type of the resource.
- Direct
Pulumi.Azure Native. Peering. Outputs. Peering Properties Direct Response 
- The properties that define a direct peering.
- Exchange
Pulumi.Azure Native. Peering. Outputs. Peering Properties Exchange Response 
- The properties that define an exchange peering.
- PeeringLocation string
- The location of the peering.
- Dictionary<string, string>
- The resource tags.
- Id string
- The ID of the resource.
- Kind string
- The kind of the peering.
- Location string
- The location of the resource.
- Name string
- The name of the resource.
- ProvisioningState string
- The provisioning state of the resource.
- Sku
PeeringSku Response 
- The SKU that defines the tier and kind of the peering.
- Type string
- The type of the resource.
- Direct
PeeringProperties Direct Response 
- The properties that define a direct peering.
- Exchange
PeeringProperties Exchange Response 
- The properties that define an exchange peering.
- PeeringLocation string
- The location of the peering.
- map[string]string
- The resource tags.
- id String
- The ID of the resource.
- kind String
- The kind of the peering.
- location String
- The location of the resource.
- name String
- The name of the resource.
- provisioningState String
- The provisioning state of the resource.
- sku
PeeringSku Response 
- The SKU that defines the tier and kind of the peering.
- type String
- The type of the resource.
- direct
PeeringProperties Direct Response 
- The properties that define a direct peering.
- exchange
PeeringProperties Exchange Response 
- The properties that define an exchange peering.
- peeringLocation String
- The location of the peering.
- Map<String,String>
- The resource tags.
- id string
- The ID of the resource.
- kind string
- The kind of the peering.
- location string
- The location of the resource.
- name string
- The name of the resource.
- provisioningState string
- The provisioning state of the resource.
- sku
PeeringSku Response 
- The SKU that defines the tier and kind of the peering.
- type string
- The type of the resource.
- direct
PeeringProperties Direct Response 
- The properties that define a direct peering.
- exchange
PeeringProperties Exchange Response 
- The properties that define an exchange peering.
- peeringLocation string
- The location of the peering.
- {[key: string]: string}
- The resource tags.
- id str
- The ID of the resource.
- kind str
- The kind of the peering.
- location str
- The location of the resource.
- name str
- The name of the resource.
- provisioning_state str
- The provisioning state of the resource.
- sku
PeeringSku Response 
- The SKU that defines the tier and kind of the peering.
- type str
- The type of the resource.
- direct
PeeringProperties Direct Response 
- The properties that define a direct peering.
- exchange
PeeringProperties Exchange Response 
- The properties that define an exchange peering.
- peering_location str
- The location of the peering.
- Mapping[str, str]
- The resource tags.
- id String
- The ID of the resource.
- kind String
- The kind of the peering.
- location String
- The location of the resource.
- name String
- The name of the resource.
- provisioningState String
- The provisioning state of the resource.
- sku Property Map
- The SKU that defines the tier and kind of the peering.
- type String
- The type of the resource.
- direct Property Map
- The properties that define a direct peering.
- exchange Property Map
- The properties that define an exchange peering.
- peeringLocation String
- The location of the peering.
- Map<String>
- The resource tags.
Supporting Types
BgpSessionResponse  
- SessionState stringV4 
- The state of the IPv4 session.
- SessionState stringV6 
- The state of the IPv6 session.
- MaxPrefixes intAdvertised V4 
- The maximum number of prefixes advertised over the IPv4 session.
- MaxPrefixes intAdvertised V6 
- The maximum number of prefixes advertised over the IPv6 session.
- Md5AuthenticationKey string
- The MD5 authentication key of the session.
- MicrosoftSession stringIPv4Address 
- The IPv4 session address on Microsoft's end.
- MicrosoftSession stringIPv6Address 
- The IPv6 session address on Microsoft's end.
- PeerSession stringIPv4Address 
- The IPv4 session address on peer's end.
- PeerSession stringIPv6Address 
- The IPv6 session address on peer's end.
- SessionPrefix stringV4 
- The IPv4 prefix that contains both ends' IPv4 addresses.
- SessionPrefix stringV6 
- The IPv6 prefix that contains both ends' IPv6 addresses.
- SessionState stringV4 
- The state of the IPv4 session.
- SessionState stringV6 
- The state of the IPv6 session.
- MaxPrefixes intAdvertised V4 
- The maximum number of prefixes advertised over the IPv4 session.
- MaxPrefixes intAdvertised V6 
- The maximum number of prefixes advertised over the IPv6 session.
- Md5AuthenticationKey string
- The MD5 authentication key of the session.
- MicrosoftSession stringIPv4Address 
- The IPv4 session address on Microsoft's end.
- MicrosoftSession stringIPv6Address 
- The IPv6 session address on Microsoft's end.
- PeerSession stringIPv4Address 
- The IPv4 session address on peer's end.
- PeerSession stringIPv6Address 
- The IPv6 session address on peer's end.
- SessionPrefix stringV4 
- The IPv4 prefix that contains both ends' IPv4 addresses.
- SessionPrefix stringV6 
- The IPv6 prefix that contains both ends' IPv6 addresses.
- sessionState StringV4 
- The state of the IPv4 session.
- sessionState StringV6 
- The state of the IPv6 session.
- maxPrefixes IntegerAdvertised V4 
- The maximum number of prefixes advertised over the IPv4 session.
- maxPrefixes IntegerAdvertised V6 
- The maximum number of prefixes advertised over the IPv6 session.
- md5AuthenticationKey String
- The MD5 authentication key of the session.
- microsoftSession StringIPv4Address 
- The IPv4 session address on Microsoft's end.
- microsoftSession StringIPv6Address 
- The IPv6 session address on Microsoft's end.
- peerSession StringIPv4Address 
- The IPv4 session address on peer's end.
- peerSession StringIPv6Address 
- The IPv6 session address on peer's end.
- sessionPrefix StringV4 
- The IPv4 prefix that contains both ends' IPv4 addresses.
- sessionPrefix StringV6 
- The IPv6 prefix that contains both ends' IPv6 addresses.
- sessionState stringV4 
- The state of the IPv4 session.
- sessionState stringV6 
- The state of the IPv6 session.
- maxPrefixes numberAdvertised V4 
- The maximum number of prefixes advertised over the IPv4 session.
- maxPrefixes numberAdvertised V6 
- The maximum number of prefixes advertised over the IPv6 session.
- md5AuthenticationKey string
- The MD5 authentication key of the session.
- microsoftSession stringIPv4Address 
- The IPv4 session address on Microsoft's end.
- microsoftSession stringIPv6Address 
- The IPv6 session address on Microsoft's end.
- peerSession stringIPv4Address 
- The IPv4 session address on peer's end.
- peerSession stringIPv6Address 
- The IPv6 session address on peer's end.
- sessionPrefix stringV4 
- The IPv4 prefix that contains both ends' IPv4 addresses.
- sessionPrefix stringV6 
- The IPv6 prefix that contains both ends' IPv6 addresses.
- session_state_ strv4 
- The state of the IPv4 session.
- session_state_ strv6 
- The state of the IPv6 session.
- max_prefixes_ intadvertised_ v4 
- The maximum number of prefixes advertised over the IPv4 session.
- max_prefixes_ intadvertised_ v6 
- The maximum number of prefixes advertised over the IPv6 session.
- md5_authentication_ strkey 
- The MD5 authentication key of the session.
- microsoft_session_ stri_ pv4_ address 
- The IPv4 session address on Microsoft's end.
- microsoft_session_ stri_ pv6_ address 
- The IPv6 session address on Microsoft's end.
- peer_session_ stri_ pv4_ address 
- The IPv4 session address on peer's end.
- peer_session_ stri_ pv6_ address 
- The IPv6 session address on peer's end.
- session_prefix_ strv4 
- The IPv4 prefix that contains both ends' IPv4 addresses.
- session_prefix_ strv6 
- The IPv6 prefix that contains both ends' IPv6 addresses.
- sessionState StringV4 
- The state of the IPv4 session.
- sessionState StringV6 
- The state of the IPv6 session.
- maxPrefixes NumberAdvertised V4 
- The maximum number of prefixes advertised over the IPv4 session.
- maxPrefixes NumberAdvertised V6 
- The maximum number of prefixes advertised over the IPv6 session.
- md5AuthenticationKey String
- The MD5 authentication key of the session.
- microsoftSession StringIPv4Address 
- The IPv4 session address on Microsoft's end.
- microsoftSession StringIPv6Address 
- The IPv6 session address on Microsoft's end.
- peerSession StringIPv4Address 
- The IPv4 session address on peer's end.
- peerSession StringIPv6Address 
- The IPv6 session address on peer's end.
- sessionPrefix StringV4 
- The IPv4 prefix that contains both ends' IPv4 addresses.
- sessionPrefix StringV6 
- The IPv6 prefix that contains both ends' IPv6 addresses.
DirectConnectionResponse  
- ConnectionState string
- The state of the connection.
- ErrorMessage string
- The error message related to the connection state, if any.
- MicrosoftTracking stringId 
- The ID used within Microsoft's peering provisioning system to track the connection
- ProvisionedBandwidth intIn Mbps 
- The bandwidth that is actually provisioned.
- BandwidthIn intMbps 
- The bandwidth of the connection.
- BgpSession Pulumi.Azure Native. Peering. Inputs. Bgp Session Response 
- The BGP session associated with the connection.
- ConnectionIdentifier string
- The unique identifier (GUID) for the connection.
- PeeringDBFacility intId 
- The PeeringDB.com ID of the facility at which the connection has to be set up.
- SessionAddress stringProvider 
- The field indicating if Microsoft provides session ip addresses.
- UseFor boolPeering Service 
- The flag that indicates whether or not the connection is used for peering service.
- ConnectionState string
- The state of the connection.
- ErrorMessage string
- The error message related to the connection state, if any.
- MicrosoftTracking stringId 
- The ID used within Microsoft's peering provisioning system to track the connection
- ProvisionedBandwidth intIn Mbps 
- The bandwidth that is actually provisioned.
- BandwidthIn intMbps 
- The bandwidth of the connection.
- BgpSession BgpSession Response 
- The BGP session associated with the connection.
- ConnectionIdentifier string
- The unique identifier (GUID) for the connection.
- PeeringDBFacility intId 
- The PeeringDB.com ID of the facility at which the connection has to be set up.
- SessionAddress stringProvider 
- The field indicating if Microsoft provides session ip addresses.
- UseFor boolPeering Service 
- The flag that indicates whether or not the connection is used for peering service.
- connectionState String
- The state of the connection.
- errorMessage String
- The error message related to the connection state, if any.
- microsoftTracking StringId 
- The ID used within Microsoft's peering provisioning system to track the connection
- provisionedBandwidth IntegerIn Mbps 
- The bandwidth that is actually provisioned.
- bandwidthIn IntegerMbps 
- The bandwidth of the connection.
- bgpSession BgpSession Response 
- The BGP session associated with the connection.
- connectionIdentifier String
- The unique identifier (GUID) for the connection.
- peeringDBFacility IntegerId 
- The PeeringDB.com ID of the facility at which the connection has to be set up.
- sessionAddress StringProvider 
- The field indicating if Microsoft provides session ip addresses.
- useFor BooleanPeering Service 
- The flag that indicates whether or not the connection is used for peering service.
- connectionState string
- The state of the connection.
- errorMessage string
- The error message related to the connection state, if any.
- microsoftTracking stringId 
- The ID used within Microsoft's peering provisioning system to track the connection
- provisionedBandwidth numberIn Mbps 
- The bandwidth that is actually provisioned.
- bandwidthIn numberMbps 
- The bandwidth of the connection.
- bgpSession BgpSession Response 
- The BGP session associated with the connection.
- connectionIdentifier string
- The unique identifier (GUID) for the connection.
- peeringDBFacility numberId 
- The PeeringDB.com ID of the facility at which the connection has to be set up.
- sessionAddress stringProvider 
- The field indicating if Microsoft provides session ip addresses.
- useFor booleanPeering Service 
- The flag that indicates whether or not the connection is used for peering service.
- connection_state str
- The state of the connection.
- error_message str
- The error message related to the connection state, if any.
- microsoft_tracking_ strid 
- The ID used within Microsoft's peering provisioning system to track the connection
- provisioned_bandwidth_ intin_ mbps 
- The bandwidth that is actually provisioned.
- bandwidth_in_ intmbps 
- The bandwidth of the connection.
- bgp_session BgpSession Response 
- The BGP session associated with the connection.
- connection_identifier str
- The unique identifier (GUID) for the connection.
- peering_db_ intfacility_ id 
- The PeeringDB.com ID of the facility at which the connection has to be set up.
- session_address_ strprovider 
- The field indicating if Microsoft provides session ip addresses.
- use_for_ boolpeering_ service 
- The flag that indicates whether or not the connection is used for peering service.
- connectionState String
- The state of the connection.
- errorMessage String
- The error message related to the connection state, if any.
- microsoftTracking StringId 
- The ID used within Microsoft's peering provisioning system to track the connection
- provisionedBandwidth NumberIn Mbps 
- The bandwidth that is actually provisioned.
- bandwidthIn NumberMbps 
- The bandwidth of the connection.
- bgpSession Property Map
- The BGP session associated with the connection.
- connectionIdentifier String
- The unique identifier (GUID) for the connection.
- peeringDBFacility NumberId 
- The PeeringDB.com ID of the facility at which the connection has to be set up.
- sessionAddress StringProvider 
- The field indicating if Microsoft provides session ip addresses.
- useFor BooleanPeering Service 
- The flag that indicates whether or not the connection is used for peering service.
ExchangeConnectionResponse  
- ConnectionState string
- The state of the connection.
- ErrorMessage string
- The error message related to the connection state, if any.
- BgpSession Pulumi.Azure Native. Peering. Inputs. Bgp Session Response 
- The BGP session associated with the connection.
- ConnectionIdentifier string
- The unique identifier (GUID) for the connection.
- PeeringDBFacility intId 
- The PeeringDB.com ID of the facility at which the connection has to be set up.
- ConnectionState string
- The state of the connection.
- ErrorMessage string
- The error message related to the connection state, if any.
- BgpSession BgpSession Response 
- The BGP session associated with the connection.
- ConnectionIdentifier string
- The unique identifier (GUID) for the connection.
- PeeringDBFacility intId 
- The PeeringDB.com ID of the facility at which the connection has to be set up.
- connectionState String
- The state of the connection.
- errorMessage String
- The error message related to the connection state, if any.
- bgpSession BgpSession Response 
- The BGP session associated with the connection.
- connectionIdentifier String
- The unique identifier (GUID) for the connection.
- peeringDBFacility IntegerId 
- The PeeringDB.com ID of the facility at which the connection has to be set up.
- connectionState string
- The state of the connection.
- errorMessage string
- The error message related to the connection state, if any.
- bgpSession BgpSession Response 
- The BGP session associated with the connection.
- connectionIdentifier string
- The unique identifier (GUID) for the connection.
- peeringDBFacility numberId 
- The PeeringDB.com ID of the facility at which the connection has to be set up.
- connection_state str
- The state of the connection.
- error_message str
- The error message related to the connection state, if any.
- bgp_session BgpSession Response 
- The BGP session associated with the connection.
- connection_identifier str
- The unique identifier (GUID) for the connection.
- peering_db_ intfacility_ id 
- The PeeringDB.com ID of the facility at which the connection has to be set up.
- connectionState String
- The state of the connection.
- errorMessage String
- The error message related to the connection state, if any.
- bgpSession Property Map
- The BGP session associated with the connection.
- connectionIdentifier String
- The unique identifier (GUID) for the connection.
- peeringDBFacility NumberId 
- The PeeringDB.com ID of the facility at which the connection has to be set up.
PeeringPropertiesDirectResponse   
- UseFor boolPeering Service 
- The flag that indicates whether or not the peering is used for peering service.
- Connections
List<Pulumi.Azure Native. Peering. Inputs. Direct Connection Response> 
- The set of connections that constitute a direct peering.
- DirectPeering stringType 
- The type of direct peering.
- PeerAsn Pulumi.Azure Native. Peering. Inputs. Sub Resource Response 
- The reference of the peer ASN.
- UseFor boolPeering Service 
- The flag that indicates whether or not the peering is used for peering service.
- Connections
[]DirectConnection Response 
- The set of connections that constitute a direct peering.
- DirectPeering stringType 
- The type of direct peering.
- PeerAsn SubResource Response 
- The reference of the peer ASN.
- useFor BooleanPeering Service 
- The flag that indicates whether or not the peering is used for peering service.
- connections
List<DirectConnection Response> 
- The set of connections that constitute a direct peering.
- directPeering StringType 
- The type of direct peering.
- peerAsn SubResource Response 
- The reference of the peer ASN.
- useFor booleanPeering Service 
- The flag that indicates whether or not the peering is used for peering service.
- connections
DirectConnection Response[] 
- The set of connections that constitute a direct peering.
- directPeering stringType 
- The type of direct peering.
- peerAsn SubResource Response 
- The reference of the peer ASN.
- use_for_ boolpeering_ service 
- The flag that indicates whether or not the peering is used for peering service.
- connections
Sequence[DirectConnection Response] 
- The set of connections that constitute a direct peering.
- direct_peering_ strtype 
- The type of direct peering.
- peer_asn SubResource Response 
- The reference of the peer ASN.
- useFor BooleanPeering Service 
- The flag that indicates whether or not the peering is used for peering service.
- connections List<Property Map>
- The set of connections that constitute a direct peering.
- directPeering StringType 
- The type of direct peering.
- peerAsn Property Map
- The reference of the peer ASN.
PeeringPropertiesExchangeResponse   
- Connections
List<Pulumi.Azure Native. Peering. Inputs. Exchange Connection Response> 
- The set of connections that constitute an exchange peering.
- PeerAsn Pulumi.Azure Native. Peering. Inputs. Sub Resource Response 
- The reference of the peer ASN.
- Connections
[]ExchangeConnection Response 
- The set of connections that constitute an exchange peering.
- PeerAsn SubResource Response 
- The reference of the peer ASN.
- connections
List<ExchangeConnection Response> 
- The set of connections that constitute an exchange peering.
- peerAsn SubResource Response 
- The reference of the peer ASN.
- connections
ExchangeConnection Response[] 
- The set of connections that constitute an exchange peering.
- peerAsn SubResource Response 
- The reference of the peer ASN.
- connections
Sequence[ExchangeConnection Response] 
- The set of connections that constitute an exchange peering.
- peer_asn SubResource Response 
- The reference of the peer ASN.
- connections List<Property Map>
- The set of connections that constitute an exchange peering.
- peerAsn Property Map
- The reference of the peer ASN.
PeeringSkuResponse  
SubResourceResponse  
- Id string
- The identifier of the referenced resource.
- Id string
- The identifier of the referenced resource.
- id String
- The identifier of the referenced resource.
- id string
- The identifier of the referenced resource.
- id str
- The identifier of the referenced resource.
- id String
- The identifier of the referenced resource.
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