configuration_policy_groups
Creates, updates, deletes, gets or lists a configuration_policy_groups
resource.
Overview
Name | configuration_policy_groups |
Type | Resource |
Id | azure.network.configuration_policy_groups |
Fields
- vw_configuration_policy_groups
- configuration_policy_groups
Name | Datatype | Description |
---|---|---|
id | text | Resource ID. |
name | text | The name of the resource that is unique within a resource group. This name can be used to access the resource. |
configurationPolicyGroupName | text | field from the properties object |
etag | text | A unique read-only string that changes whenever the resource is updated. |
is_default | text | field from the properties object |
p2_s_connection_configurations | text | field from the properties object |
policy_members | text | field from the properties object |
priority | text | field from the properties object |
provisioning_state | text | field from the properties object |
resourceGroupName | text | field from the properties object |
subscriptionId | text | field from the properties object |
type | text | Resource type. |
vpnServerConfigurationName | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
id | string | Resource ID. |
name | string | The name of the resource that is unique within a resource group. This name can be used to access the resource. |
etag | string | A unique read-only string that changes whenever the resource is updated. |
properties | object | Parameters for VpnServerConfigurationPolicyGroup. |
type | string | Resource type. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | configurationPolicyGroupName, resourceGroupName, subscriptionId, vpnServerConfigurationName | Retrieves the details of a ConfigurationPolicyGroup. |
list_by_vpn_server_configuration | SELECT | resourceGroupName, subscriptionId, vpnServerConfigurationName | Lists all the configurationPolicyGroups in a resource group for a vpnServerConfiguration. |
create_or_update | INSERT | configurationPolicyGroupName, resourceGroupName, subscriptionId, vpnServerConfigurationName | Creates a ConfigurationPolicyGroup if it doesn't exist else updates the existing one. |
delete | DELETE | configurationPolicyGroupName, resourceGroupName, subscriptionId, vpnServerConfigurationName | Deletes a ConfigurationPolicyGroup. |
SELECT
examples
Lists all the configurationPolicyGroups in a resource group for a vpnServerConfiguration.
- vw_configuration_policy_groups
- configuration_policy_groups
SELECT
id,
name,
configurationPolicyGroupName,
etag,
is_default,
p2_s_connection_configurations,
policy_members,
priority,
provisioning_state,
resourceGroupName,
subscriptionId,
type,
vpnServerConfigurationName
FROM azure.network.vw_configuration_policy_groups
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND vpnServerConfigurationName = '{{ vpnServerConfigurationName }}';
SELECT
id,
name,
etag,
properties,
type
FROM azure.network.configuration_policy_groups
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND vpnServerConfigurationName = '{{ vpnServerConfigurationName }}';
INSERT
example
Use the following StackQL query and manifest file to create a new configuration_policy_groups
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.network.configuration_policy_groups (
configurationPolicyGroupName,
resourceGroupName,
subscriptionId,
vpnServerConfigurationName,
properties,
name,
id
)
SELECT
'{{ configurationPolicyGroupName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ vpnServerConfigurationName }}',
'{{ properties }}',
'{{ name }}',
'{{ id }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: isDefault
value: boolean
- name: priority
value: integer
- name: policyMembers
value:
- - name: name
value: string
- name: attributeType
value: string
- name: attributeValue
value: string
- name: p2SConnectionConfigurations
value:
- - name: id
value: string
- name: provisioningState
value: []
- name: etag
value: string
- name: name
value: string
- name: type
value: string
- name: id
value: string
DELETE
example
Deletes the specified configuration_policy_groups
resource.
/*+ delete */
DELETE FROM azure.network.configuration_policy_groups
WHERE configurationPolicyGroupName = '{{ configurationPolicyGroupName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND vpnServerConfigurationName = '{{ vpnServerConfigurationName }}';