Skip to main content

security_policies

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

Overview

Namesecurity_policies
TypeResource
Idazure.cdn.security_policies

Fields

NameDatatypeDescription
deployment_statustextfield from the properties object
parameterstextfield from the properties object
profileNametextfield from the properties object
profile_nametextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
securityPolicyNametextfield from the properties object
subscriptionIdtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTprofileName, resourceGroupName, securityPolicyName, subscriptionIdGets an existing security policy within a profile.
list_by_profileSELECTprofileName, resourceGroupName, subscriptionIdLists security policies associated with the profile
createINSERTprofileName, resourceGroupName, securityPolicyName, subscriptionIdCreates a new security policy within the specified profile.
deleteDELETEprofileName, resourceGroupName, securityPolicyName, subscriptionIdDeletes an existing security policy within profile.
patchUPDATEprofileName, resourceGroupName, securityPolicyName, subscriptionIdUpdates an existing security policy within a profile.

SELECT examples

Lists security policies associated with the profile

SELECT
deployment_status,
parameters,
profileName,
profile_name,
provisioning_state,
resourceGroupName,
securityPolicyName,
subscriptionId
FROM azure.cdn.vw_security_policies
WHERE profileName = '{{ profileName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.cdn.security_policies (
profileName,
resourceGroupName,
securityPolicyName,
subscriptionId,
properties
)
SELECT
'{{ profileName }}',
'{{ resourceGroupName }}',
'{{ securityPolicyName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;

UPDATE example

Updates a security_policies resource.

/*+ update */
UPDATE azure.cdn.security_policies
SET
properties = '{{ properties }}'
WHERE
profileName = '{{ profileName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND securityPolicyName = '{{ securityPolicyName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified security_policies resource.

/*+ delete */
DELETE FROM azure.cdn.security_policies
WHERE profileName = '{{ profileName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND securityPolicyName = '{{ securityPolicyName }}'
AND subscriptionId = '{{ subscriptionId }}';