security_policies_interfaces
Creates, updates, deletes, gets or lists a security_policies_interfaces
resource.
Overview
Name | security_policies_interfaces |
Type | Resource |
Id | azure.service_networking.security_policies_interfaces |
Fields
- vw_security_policies_interfaces
- security_policies_interfaces
Name | Datatype | Description |
---|---|---|
location | text | The geo-location where the resource lives |
policy_type | text | field from the properties object |
provisioning_state | text | field from the properties object |
resourceGroupName | text | field from the properties object |
securityPolicyName | text | field from the properties object |
subscriptionId | text | field from the properties object |
tags | text | Resource tags. |
trafficControllerName | text | field from the properties object |
waf_policy | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
location | string | The geo-location where the resource lives |
properties | object | SecurityPolicy Properties. |
tags | object | Resource tags. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | resourceGroupName, securityPolicyName, subscriptionId, trafficControllerName | Get a SecurityPolicy |
list_by_traffic_controller | SELECT | resourceGroupName, subscriptionId, trafficControllerName | List SecurityPolicy resources by TrafficController |
create_or_update | INSERT | resourceGroupName, securityPolicyName, subscriptionId, trafficControllerName | Create a SecurityPolicy |
delete | DELETE | resourceGroupName, securityPolicyName, subscriptionId, trafficControllerName | Delete a SecurityPolicy |
update | UPDATE | resourceGroupName, securityPolicyName, subscriptionId, trafficControllerName | Update a SecurityPolicy |
SELECT
examples
List SecurityPolicy resources by TrafficController
- vw_security_policies_interfaces
- security_policies_interfaces
SELECT
location,
policy_type,
provisioning_state,
resourceGroupName,
securityPolicyName,
subscriptionId,
tags,
trafficControllerName,
waf_policy
FROM azure.service_networking.vw_security_policies_interfaces
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND trafficControllerName = '{{ trafficControllerName }}';
SELECT
location,
properties,
tags
FROM azure.service_networking.security_policies_interfaces
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND trafficControllerName = '{{ trafficControllerName }}';
INSERT
example
Use the following StackQL query and manifest file to create a new security_policies_interfaces
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.service_networking.security_policies_interfaces (
resourceGroupName,
securityPolicyName,
subscriptionId,
trafficControllerName,
properties,
tags,
location
)
SELECT
'{{ resourceGroupName }}',
'{{ securityPolicyName }}',
'{{ subscriptionId }}',
'{{ trafficControllerName }}',
'{{ properties }}',
'{{ tags }}',
'{{ location }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: policyType
value: []
- name: wafPolicy
value:
- name: id
value: string
- name: provisioningState
value: []
- name: tags
value: object
- name: location
value: string
UPDATE
example
Updates a security_policies_interfaces
resource.
/*+ update */
UPDATE azure.service_networking.security_policies_interfaces
SET
tags = '{{ tags }}',
properties = '{{ properties }}'
WHERE
resourceGroupName = '{{ resourceGroupName }}'
AND securityPolicyName = '{{ securityPolicyName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND trafficControllerName = '{{ trafficControllerName }}';
DELETE
example
Deletes the specified security_policies_interfaces
resource.
/*+ delete */
DELETE FROM azure.service_networking.security_policies_interfaces
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND securityPolicyName = '{{ securityPolicyName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND trafficControllerName = '{{ trafficControllerName }}';