This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Viewing docs for Azure Native v3.25.0
published on Wednesday, Aug 5, 2026 by Pulumi
published on Wednesday, Aug 5, 2026 by Pulumi
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Viewing docs for Azure Native v3.25.0
published on Wednesday, Aug 5, 2026 by Pulumi
published on Wednesday, Aug 5, 2026 by Pulumi
Retrieves the details of a ConnectionPolicy.
Uses Azure REST API version 2025-07-01.
Using getConnectionPolicy
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 getConnectionPolicy(args: GetConnectionPolicyArgs, opts?: InvokeOptions): Promise<GetConnectionPolicyResult>
function getConnectionPolicyOutput(args: GetConnectionPolicyOutputArgs, opts?: InvokeOptions): Output<GetConnectionPolicyResult>def get_connection_policy(connection_policy_name: Optional[str] = None,
resource_group_name: Optional[str] = None,
virtual_hub_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetConnectionPolicyResult
def get_connection_policy_output(connection_policy_name: pulumi.Input[Optional[str]] = None,
resource_group_name: pulumi.Input[Optional[str]] = None,
virtual_hub_name: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetConnectionPolicyResult]func LookupConnectionPolicy(ctx *Context, args *LookupConnectionPolicyArgs, opts ...InvokeOption) (*LookupConnectionPolicyResult, error)
func LookupConnectionPolicyOutput(ctx *Context, args *LookupConnectionPolicyOutputArgs, opts ...InvokeOption) LookupConnectionPolicyResultOutput> Note: This function is named LookupConnectionPolicy in the Go SDK.
public static class GetConnectionPolicy
{
public static Task<GetConnectionPolicyResult> InvokeAsync(GetConnectionPolicyArgs args, InvokeOptions? opts = null)
public static Output<GetConnectionPolicyResult> Invoke(GetConnectionPolicyInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetConnectionPolicyResult> getConnectionPolicy(GetConnectionPolicyArgs args, InvokeOptions options)
public static Output<GetConnectionPolicyResult> getConnectionPolicy(GetConnectionPolicyArgs args, InvokeOptions options)
fn::invoke:
function: azure-native:network:getConnectionPolicy
arguments:
# arguments dictionarydata "azure-native_network_get_connection_policy" "name" {
# arguments
}The following arguments are supported:
- Connection
Policy stringName - The name of the ConnectionPolicy that is unique within a VirtualHub. This name can be used to access the resource.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Virtual
Hub stringName - The name of the VirtualHub.
- Connection
Policy stringName - The name of the ConnectionPolicy that is unique within a VirtualHub. This name can be used to access the resource.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Virtual
Hub stringName - The name of the VirtualHub.
- connection_
policy_ stringname - The name of the ConnectionPolicy that is unique within a VirtualHub. This name can be used to access the resource.
- resource_
group_ stringname - The name of the resource group. The name is case insensitive.
- virtual_
hub_ stringname - The name of the VirtualHub.
- connection
Policy StringName - The name of the ConnectionPolicy that is unique within a VirtualHub. This name can be used to access the resource.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- virtual
Hub StringName - The name of the VirtualHub.
- connection
Policy stringName - The name of the ConnectionPolicy that is unique within a VirtualHub. This name can be used to access the resource.
- resource
Group stringName - The name of the resource group. The name is case insensitive.
- virtual
Hub stringName - The name of the VirtualHub.
- connection_
policy_ strname - The name of the ConnectionPolicy that is unique within a VirtualHub. This name can be used to access the resource.
- resource_
group_ strname - The name of the resource group. The name is case insensitive.
- virtual_
hub_ strname - The name of the VirtualHub.
- connection
Policy StringName - The name of the ConnectionPolicy that is unique within a VirtualHub. This name can be used to access the resource.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- virtual
Hub StringName - The name of the VirtualHub.
getConnectionPolicy Result
The following output properties are available:
- Azure
Api stringVersion - The Azure API version of the resource.
- Etag string
- A unique read-only string that changes whenever the resource is updated.
- Name string
- Resource name.
- Properties
Pulumi.
Azure Native. Network. Outputs. Connection Policy Properties Response - Properties of the ConnectionPolicy resource.
- Type string
- Resource type.
- Id string
- Resource ID.
- Azure
Api stringVersion - The Azure API version of the resource.
- Etag string
- A unique read-only string that changes whenever the resource is updated.
- Name string
- Resource name.
- Properties
Connection
Policy Properties Response - Properties of the ConnectionPolicy resource.
- Type string
- Resource type.
- Id string
- Resource ID.
- azure_
api_ stringversion - The Azure API version of the resource.
- etag string
- A unique read-only string that changes whenever the resource is updated.
- name string
- Resource name.
- properties object
- Properties of the ConnectionPolicy resource.
- type string
- Resource type.
- id string
- Resource ID.
- azure
Api StringVersion - The Azure API version of the resource.
- etag String
- A unique read-only string that changes whenever the resource is updated.
- name String
- Resource name.
- properties
Connection
Policy Properties Response - Properties of the ConnectionPolicy resource.
- type String
- Resource type.
- id String
- Resource ID.
- azure
Api stringVersion - The Azure API version of the resource.
- etag string
- A unique read-only string that changes whenever the resource is updated.
- name string
- Resource name.
- properties
Connection
Policy Properties Response - Properties of the ConnectionPolicy resource.
- type string
- Resource type.
- id string
- Resource ID.
- azure_
api_ strversion - The Azure API version of the resource.
- etag str
- A unique read-only string that changes whenever the resource is updated.
- name str
- Resource name.
- properties
Connection
Policy Properties Response - Properties of the ConnectionPolicy resource.
- type str
- Resource type.
- id str
- Resource ID.
- azure
Api StringVersion - The Azure API version of the resource.
- etag String
- A unique read-only string that changes whenever the resource is updated.
- name String
- Resource name.
- properties Property Map
- Properties of the ConnectionPolicy resource.
- type String
- Resource type.
- id String
- Resource ID.
Supporting Types
ConnectionPolicyPropertiesResponse
- Associated
Connections List<string> - List of connection names (e.g. VpnConnection, HubVirtualNetworkConnection) associated with this ConnectionPolicy. These are resource names, not Azure resource IDs, consistent with the established VirtualWAN pattern used by HubRouteTable.associatedConnections.
- Provisioning
State string - The provisioning state of the ConnectionPolicy resource.
- Enable
Internet boolSecurity - Enable internet security.
- Routing
Configuration Pulumi.Azure Native. Network. Inputs. Routing Configuration Response - The Routing Configuration indicating the associated and propagated route tables on this connection.
- Associated
Connections []string - List of connection names (e.g. VpnConnection, HubVirtualNetworkConnection) associated with this ConnectionPolicy. These are resource names, not Azure resource IDs, consistent with the established VirtualWAN pattern used by HubRouteTable.associatedConnections.
- Provisioning
State string - The provisioning state of the ConnectionPolicy resource.
- Enable
Internet boolSecurity - Enable internet security.
- Routing
Configuration RoutingConfiguration Response - The Routing Configuration indicating the associated and propagated route tables on this connection.
- associated_
connections list(string) - List of connection names (e.g. VpnConnection, HubVirtualNetworkConnection) associated with this ConnectionPolicy. These are resource names, not Azure resource IDs, consistent with the established VirtualWAN pattern used by HubRouteTable.associatedConnections.
- provisioning_
state string - The provisioning state of the ConnectionPolicy resource.
- enable_
internet_ boolsecurity - Enable internet security.
- routing_
configuration object - The Routing Configuration indicating the associated and propagated route tables on this connection.
- associated
Connections List<String> - List of connection names (e.g. VpnConnection, HubVirtualNetworkConnection) associated with this ConnectionPolicy. These are resource names, not Azure resource IDs, consistent with the established VirtualWAN pattern used by HubRouteTable.associatedConnections.
- provisioning
State String - The provisioning state of the ConnectionPolicy resource.
- enable
Internet BooleanSecurity - Enable internet security.
- routing
Configuration RoutingConfiguration Response - The Routing Configuration indicating the associated and propagated route tables on this connection.
- associated
Connections string[] - List of connection names (e.g. VpnConnection, HubVirtualNetworkConnection) associated with this ConnectionPolicy. These are resource names, not Azure resource IDs, consistent with the established VirtualWAN pattern used by HubRouteTable.associatedConnections.
- provisioning
State string - The provisioning state of the ConnectionPolicy resource.
- enable
Internet booleanSecurity - Enable internet security.
- routing
Configuration RoutingConfiguration Response - The Routing Configuration indicating the associated and propagated route tables on this connection.
- associated_
connections Sequence[str] - List of connection names (e.g. VpnConnection, HubVirtualNetworkConnection) associated with this ConnectionPolicy. These are resource names, not Azure resource IDs, consistent with the established VirtualWAN pattern used by HubRouteTable.associatedConnections.
- provisioning_
state str - The provisioning state of the ConnectionPolicy resource.
- enable_
internet_ boolsecurity - Enable internet security.
- routing_
configuration RoutingConfiguration Response - The Routing Configuration indicating the associated and propagated route tables on this connection.
- associated
Connections List<String> - List of connection names (e.g. VpnConnection, HubVirtualNetworkConnection) associated with this ConnectionPolicy. These are resource names, not Azure resource IDs, consistent with the established VirtualWAN pattern used by HubRouteTable.associatedConnections.
- provisioning
State String - The provisioning state of the ConnectionPolicy resource.
- enable
Internet BooleanSecurity - Enable internet security.
- routing
Configuration Property Map - The Routing Configuration indicating the associated and propagated route tables on this connection.
PropagatedRouteTableResponse
- Ids
List<Pulumi.
Azure Native. Network. Inputs. Sub Resource Response> - The list of resource ids of all the RouteTables.
- Labels List<string>
- The list of labels.
- Ids
[]Sub
Resource Response - The list of resource ids of all the RouteTables.
- Labels []string
- The list of labels.
- ids list(object)
- The list of resource ids of all the RouteTables.
- labels list(string)
- The list of labels.
- ids
List<Sub
Resource Response> - The list of resource ids of all the RouteTables.
- labels List<String>
- The list of labels.
- ids
Sub
Resource Response[] - The list of resource ids of all the RouteTables.
- labels string[]
- The list of labels.
- ids
Sequence[Sub
Resource Response] - The list of resource ids of all the RouteTables.
- labels Sequence[str]
- The list of labels.
- ids List<Property Map>
- The list of resource ids of all the RouteTables.
- labels List<String>
- The list of labels.
RoutingConfigurationResponse
- Associated
Route Pulumi.Table Azure Native. Network. Inputs. Sub Resource Response - The resource id RouteTable associated with this RoutingConfiguration.
- Inbound
Route Pulumi.Map Azure Native. Network. Inputs. Sub Resource Response - The resource id of the RouteMap associated with this RoutingConfiguration for inbound learned routes.
- Outbound
Route Pulumi.Map Azure Native. Network. Inputs. Sub Resource Response - The resource id of theRouteMap associated with this RoutingConfiguration for outbound advertised routes.
- Propagated
Route Pulumi.Tables Azure Native. Network. Inputs. Propagated Route Table Response - The list of RouteTables to advertise the routes to.
- Vnet
Routes Pulumi.Azure Native. Network. Inputs. Vnet Route Response - List of routes that control routing from VirtualHub into a virtual network connection.
- Associated
Route SubTable Resource Response - The resource id RouteTable associated with this RoutingConfiguration.
- Inbound
Route SubMap Resource Response - The resource id of the RouteMap associated with this RoutingConfiguration for inbound learned routes.
- Outbound
Route SubMap Resource Response - The resource id of theRouteMap associated with this RoutingConfiguration for outbound advertised routes.
- Propagated
Route PropagatedTables Route Table Response - The list of RouteTables to advertise the routes to.
- Vnet
Routes VnetRoute Response - List of routes that control routing from VirtualHub into a virtual network connection.
- associated_
route_ objecttable - The resource id RouteTable associated with this RoutingConfiguration.
- inbound_
route_ objectmap - The resource id of the RouteMap associated with this RoutingConfiguration for inbound learned routes.
- outbound_
route_ objectmap - The resource id of theRouteMap associated with this RoutingConfiguration for outbound advertised routes.
- propagated_
route_ objecttables - The list of RouteTables to advertise the routes to.
- vnet_
routes object - List of routes that control routing from VirtualHub into a virtual network connection.
- associated
Route SubTable Resource Response - The resource id RouteTable associated with this RoutingConfiguration.
- inbound
Route SubMap Resource Response - The resource id of the RouteMap associated with this RoutingConfiguration for inbound learned routes.
- outbound
Route SubMap Resource Response - The resource id of theRouteMap associated with this RoutingConfiguration for outbound advertised routes.
- propagated
Route PropagatedTables Route Table Response - The list of RouteTables to advertise the routes to.
- vnet
Routes VnetRoute Response - List of routes that control routing from VirtualHub into a virtual network connection.
- associated
Route SubTable Resource Response - The resource id RouteTable associated with this RoutingConfiguration.
- inbound
Route SubMap Resource Response - The resource id of the RouteMap associated with this RoutingConfiguration for inbound learned routes.
- outbound
Route SubMap Resource Response - The resource id of theRouteMap associated with this RoutingConfiguration for outbound advertised routes.
- propagated
Route PropagatedTables Route Table Response - The list of RouteTables to advertise the routes to.
- vnet
Routes VnetRoute Response - List of routes that control routing from VirtualHub into a virtual network connection.
- associated_
route_ Subtable Resource Response - The resource id RouteTable associated with this RoutingConfiguration.
- inbound_
route_ Submap Resource Response - The resource id of the RouteMap associated with this RoutingConfiguration for inbound learned routes.
- outbound_
route_ Submap Resource Response - The resource id of theRouteMap associated with this RoutingConfiguration for outbound advertised routes.
- propagated_
route_ Propagatedtables Route Table Response - The list of RouteTables to advertise the routes to.
- vnet_
routes VnetRoute Response - List of routes that control routing from VirtualHub into a virtual network connection.
- associated
Route Property MapTable - The resource id RouteTable associated with this RoutingConfiguration.
- inbound
Route Property MapMap - The resource id of the RouteMap associated with this RoutingConfiguration for inbound learned routes.
- outbound
Route Property MapMap - The resource id of theRouteMap associated with this RoutingConfiguration for outbound advertised routes.
- propagated
Route Property MapTables - The list of RouteTables to advertise the routes to.
- vnet
Routes Property Map - List of routes that control routing from VirtualHub into a virtual network connection.
StaticRouteResponse
- Address
Prefixes List<string> - List of all address prefixes.
- Name string
- The name of the StaticRoute that is unique within a VnetRoute.
- Next
Hop stringIp Address - The ip address of the next hop.
- Address
Prefixes []string - List of all address prefixes.
- Name string
- The name of the StaticRoute that is unique within a VnetRoute.
- Next
Hop stringIp Address - The ip address of the next hop.
- address_
prefixes list(string) - List of all address prefixes.
- name string
- The name of the StaticRoute that is unique within a VnetRoute.
- next_
hop_ stringip_ address - The ip address of the next hop.
- address
Prefixes List<String> - List of all address prefixes.
- name String
- The name of the StaticRoute that is unique within a VnetRoute.
- next
Hop StringIp Address - The ip address of the next hop.
- address
Prefixes string[] - List of all address prefixes.
- name string
- The name of the StaticRoute that is unique within a VnetRoute.
- next
Hop stringIp Address - The ip address of the next hop.
- address_
prefixes Sequence[str] - List of all address prefixes.
- name str
- The name of the StaticRoute that is unique within a VnetRoute.
- next_
hop_ strip_ address - The ip address of the next hop.
- address
Prefixes List<String> - List of all address prefixes.
- name String
- The name of the StaticRoute that is unique within a VnetRoute.
- next
Hop StringIp Address - The ip address of the next hop.
StaticRoutesConfigResponse
- Propagate
Static boolRoutes - Boolean indicating whether static routes on this connection are automatically propagate to route tables which this connection propagates to.
- Vnet
Local stringRoute Override Criteria - Parameter determining whether NVA in spoke vnet is bypassed for traffic with destination in spoke.
- Propagate
Static boolRoutes - Boolean indicating whether static routes on this connection are automatically propagate to route tables which this connection propagates to.
- Vnet
Local stringRoute Override Criteria - Parameter determining whether NVA in spoke vnet is bypassed for traffic with destination in spoke.
- propagate_
static_ boolroutes - Boolean indicating whether static routes on this connection are automatically propagate to route tables which this connection propagates to.
- vnet_
local_ stringroute_ override_ criteria - Parameter determining whether NVA in spoke vnet is bypassed for traffic with destination in spoke.
- propagate
Static BooleanRoutes - Boolean indicating whether static routes on this connection are automatically propagate to route tables which this connection propagates to.
- vnet
Local StringRoute Override Criteria - Parameter determining whether NVA in spoke vnet is bypassed for traffic with destination in spoke.
- propagate
Static booleanRoutes - Boolean indicating whether static routes on this connection are automatically propagate to route tables which this connection propagates to.
- vnet
Local stringRoute Override Criteria - Parameter determining whether NVA in spoke vnet is bypassed for traffic with destination in spoke.
- propagate_
static_ boolroutes - Boolean indicating whether static routes on this connection are automatically propagate to route tables which this connection propagates to.
- vnet_
local_ strroute_ override_ criteria - Parameter determining whether NVA in spoke vnet is bypassed for traffic with destination in spoke.
- propagate
Static BooleanRoutes - Boolean indicating whether static routes on this connection are automatically propagate to route tables which this connection propagates to.
- vnet
Local StringRoute Override Criteria - Parameter determining whether NVA in spoke vnet is bypassed for traffic with destination in spoke.
SubResourceResponse
- Id string
- Resource ID.
- Id string
- Resource ID.
- id string
- Resource ID.
- id String
- Resource ID.
- id string
- Resource ID.
- id str
- Resource ID.
- id String
- Resource ID.
VnetRouteResponse
- Bgp
Connections List<Pulumi.Azure Native. Network. Inputs. Sub Resource Response> - The list of references to HubBgpConnection objects.
- Static
Routes List<Pulumi.Azure Native. Network. Inputs. Static Route Response> - List of all Static Routes.
- Static
Routes Pulumi.Config Azure Native. Network. Inputs. Static Routes Config Response - Configuration for static routes on this HubVnetConnection.
- Bgp
Connections []SubResource Response - The list of references to HubBgpConnection objects.
- Static
Routes []StaticRoute Response - List of all Static Routes.
- Static
Routes StaticConfig Routes Config Response - Configuration for static routes on this HubVnetConnection.
- bgp_
connections list(object) - The list of references to HubBgpConnection objects.
- static_
routes list(object) - List of all Static Routes.
- static_
routes_ objectconfig - Configuration for static routes on this HubVnetConnection.
- bgp
Connections List<SubResource Response> - The list of references to HubBgpConnection objects.
- static
Routes List<StaticRoute Response> - List of all Static Routes.
- static
Routes StaticConfig Routes Config Response - Configuration for static routes on this HubVnetConnection.
- bgp
Connections SubResource Response[] - The list of references to HubBgpConnection objects.
- static
Routes StaticRoute Response[] - List of all Static Routes.
- static
Routes StaticConfig Routes Config Response - Configuration for static routes on this HubVnetConnection.
- bgp_
connections Sequence[SubResource Response] - The list of references to HubBgpConnection objects.
- static_
routes Sequence[StaticRoute Response] - List of all Static Routes.
- static_
routes_ Staticconfig Routes Config Response - Configuration for static routes on this HubVnetConnection.
- bgp
Connections List<Property Map> - The list of references to HubBgpConnection objects.
- static
Routes List<Property Map> - List of all Static Routes.
- static
Routes Property MapConfig - Configuration for static routes on this HubVnetConnection.
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 v2 docs if using the v2 version of this package.
Viewing docs for Azure Native v3.25.0
published on Wednesday, Aug 5, 2026 by Pulumi
published on Wednesday, Aug 5, 2026 by Pulumi