Skip to main content

ddos_custom_policies

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

Overview

Nameddos_custom_policies
TypeResource
Idazure.network.ddos_custom_policies

Fields

NameDatatypeDescription
idtextResource ID.
nametextResource name.
ddosCustomPolicyNametextfield from the properties object
etagtextA unique read-only string that changes whenever the resource is updated.
locationtextResource location.
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
resource_guidtextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.
typetextResource type.

Methods

NameAccessible byRequired ParamsDescription
getSELECTddosCustomPolicyName, resourceGroupName, subscriptionIdGets information about the specified DDoS custom policy.
create_or_updateINSERTddosCustomPolicyName, resourceGroupName, subscriptionIdCreates or updates a DDoS custom policy.
deleteDELETEddosCustomPolicyName, resourceGroupName, subscriptionIdDeletes the specified DDoS custom policy.
update_tagsEXECddosCustomPolicyName, resourceGroupName, subscriptionIdUpdate a DDoS custom policy tags.

SELECT examples

Gets information about the specified DDoS custom policy.

SELECT
id,
name,
ddosCustomPolicyName,
etag,
location,
provisioning_state,
resourceGroupName,
resource_guid,
subscriptionId,
tags,
type
FROM azure.network.vw_ddos_custom_policies
WHERE ddosCustomPolicyName = '{{ ddosCustomPolicyName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure.network.ddos_custom_policies (
ddosCustomPolicyName,
resourceGroupName,
subscriptionId,
properties,
id,
location,
tags
)
SELECT
'{{ ddosCustomPolicyName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}',
'{{ id }}',
'{{ location }}',
'{{ tags }}'
;

DELETE example

Deletes the specified ddos_custom_policies resource.

/*+ delete */
DELETE FROM azure.network.ddos_custom_policies
WHERE ddosCustomPolicyName = '{{ ddosCustomPolicyName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';