peering_policies
Creates, updates, deletes, gets or lists a peering_policies
resource.
Overview
Name | peering_policies |
Type | Resource |
Id | azure.managed_network.peering_policies |
Fields
- vw_peering_policies
- peering_policies
Name | Datatype | Description |
---|---|---|
etag | text | field from the properties object |
hub | text | field from the properties object |
managedNetworkName | text | field from the properties object |
managedNetworkPeeringPolicyName | text | field from the properties object |
mesh | text | field from the properties object |
provisioning_state | text | field from the properties object |
resourceGroupName | text | field from the properties object |
spokes | text | field from the properties object |
subscriptionId | text | field from the properties object |
type | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
properties | object | Properties of a Managed Network Peering Policy |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | managedNetworkName, managedNetworkPeeringPolicyName, resourceGroupName, subscriptionId | The 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_network | SELECT | managedNetworkName, resourceGroupName, subscriptionId | The ListByManagedNetwork PeeringPolicies operation retrieves all the Managed Network Peering Policies in a specified Managed Network, in a paginated format. |
create_or_update | INSERT | managedNetworkName, managedNetworkPeeringPolicyName, resourceGroupName, subscriptionId | The Put ManagedNetworkPeeringPolicies operation creates/updates a new Managed Network Peering Policy |
delete | DELETE | managedNetworkName, managedNetworkPeeringPolicyName, resourceGroupName, subscriptionId | The 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.
- vw_peering_policies
- peering_policies
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 }}';
SELECT
properties
FROM azure.managed_network.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.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.managed_network.peering_policies (
managedNetworkName,
managedNetworkPeeringPolicyName,
resourceGroupName,
subscriptionId,
properties
)
SELECT
'{{ managedNetworkName }}',
'{{ managedNetworkPeeringPolicyName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: type
value: string
- name: hub
value:
- name: id
value: string
- name: spokes
value:
- - name: id
value: string
- name: mesh
value:
- - name: id
value: string
- name: provisioningState
value: string
- name: etag
value: string
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 }}';