Skip to main content

ddos_protection_plans

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

Overview

Nameddos_protection_plans
TypeResource
Idazure.network.ddos_protection_plans

Fields

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

Methods

NameAccessible byRequired ParamsDescription
getSELECTddosProtectionPlanName, resourceGroupName, subscriptionIdGets information about the specified DDoS protection plan.
listSELECTsubscriptionIdGets all DDoS protection plans in a subscription.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdGets all the DDoS protection plans in a resource group.
create_or_updateINSERTddosProtectionPlanName, resourceGroupName, subscriptionIdCreates or updates a DDoS protection plan.
deleteDELETEddosProtectionPlanName, resourceGroupName, subscriptionIdDeletes the specified DDoS protection plan.
update_tagsEXECddosProtectionPlanName, resourceGroupName, subscriptionIdUpdate a DDoS protection plan tags.

SELECT examples

Gets all DDoS protection plans in a subscription.

SELECT
id,
name,
ddosProtectionPlanName,
etag,
location,
provisioning_state,
public_ip_addresses,
resourceGroupName,
resource_guid,
subscriptionId,
tags,
type,
virtual_networks
FROM azure.network.vw_ddos_protection_plans
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

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

DELETE example

Deletes the specified ddos_protection_plans resource.

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