Skip to main content

peering_policies

Creates, updates, deletes, gets or lists a peering_policies resource.

Overview

Namepeering_policies
TypeResource
Idazure.managed_network.peering_policies

Fields

NameDatatypeDescription
etagtextfield from the properties object
hubtextfield from the properties object
managedNetworkNametextfield from the properties object
managedNetworkPeeringPolicyNametextfield from the properties object
meshtextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
spokestextfield from the properties object
subscriptionIdtextfield from the properties object
typetextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTmanagedNetworkName, managedNetworkPeeringPolicyName, resourceGroupName, subscriptionIdThe Get ManagedNetworkPeeringPolicies operation gets a Managed Network Peering Policy resource, specified by the resource group, Managed Network name, and peering policy name
list_by_managed_networkSELECTmanagedNetworkName, resourceGroupName, subscriptionIdThe ListByManagedNetwork PeeringPolicies operation retrieves all the Managed Network Peering Policies in a specified Managed Network, in a paginated format.
create_or_updateINSERTmanagedNetworkName, managedNetworkPeeringPolicyName, resourceGroupName, subscriptionIdThe Put ManagedNetworkPeeringPolicies operation creates/updates a new Managed Network Peering Policy
deleteDELETEmanagedNetworkName, managedNetworkPeeringPolicyName, resourceGroupName, subscriptionIdThe Delete ManagedNetworkPeeringPolicies operation deletes a Managed Network Peering Policy, specified by the resource group, Managed Network name, and peering policy name

SELECT examples

The ListByManagedNetwork PeeringPolicies operation retrieves all the Managed Network Peering Policies in a specified Managed Network, in a paginated format.

SELECT
etag,
hub,
managedNetworkName,
managedNetworkPeeringPolicyName,
mesh,
provisioning_state,
resourceGroupName,
spokes,
subscriptionId,
type
FROM azure.managed_network.vw_peering_policies
WHERE managedNetworkName = '{{ managedNetworkName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new peering_policies resource.

/*+ create */
INSERT INTO azure.managed_network.peering_policies (
managedNetworkName,
managedNetworkPeeringPolicyName,
resourceGroupName,
subscriptionId,
properties
)
SELECT
'{{ managedNetworkName }}',
'{{ managedNetworkPeeringPolicyName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;

DELETE example

Deletes the specified peering_policies resource.

/*+ delete */
DELETE FROM azure.managed_network.peering_policies
WHERE managedNetworkName = '{{ managedNetworkName }}'
AND managedNetworkPeeringPolicyName = '{{ managedNetworkPeeringPolicyName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';