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

The following fields are returned by SELECT queries:

Request successful. The operation returns the specified DDoS protection plan resource.

NameDatatypeDescription
idstringResource ID.
namestringResource name.
etagstringA unique read-only string that changes whenever the resource is updated.
locationstringResource location.
propertiesobjectProperties of the DDoS protection plan.
tagsobjectResource tags.
typestringResource type.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresourceGroupName, ddosProtectionPlanName, subscriptionIdGets information about the specified DDoS protection plan.
list_by_resource_groupselectresourceGroupName, subscriptionIdGets all the DDoS protection plans in a resource group.
listselectsubscriptionIdGets all DDoS protection plans in a subscription.
create_or_updateinsertresourceGroupName, ddosProtectionPlanName, subscriptionIdCreates or updates a DDoS protection plan.
deletedeleteresourceGroupName, ddosProtectionPlanName, subscriptionIdDeletes the specified DDoS protection plan.
update_tagsexecresourceGroupName, ddosProtectionPlanName, subscriptionIdUpdate a DDoS protection plan tags.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
ddosProtectionPlanNamestringThe name of the DDoS protection plan.
resourceGroupNamestringThe name of the resource group.
subscriptionIdstring (uuid)The ID of the target subscription. The value must be an UUID.

SELECT examples

Gets information about the specified DDoS protection plan.

SELECT
id,
name,
etag,
location,
properties,
tags,
type
FROM azure.network.ddos_protection_plans
WHERE resourceGroupName = '{{ resourceGroupName }}' -- required
AND ddosProtectionPlanName = '{{ ddosProtectionPlanName }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
;

INSERT examples

Creates or updates a DDoS protection plan.

INSERT INTO azure.network.ddos_protection_plans (
data__location,
data__tags,
data__properties,
resourceGroupName,
ddosProtectionPlanName,
subscriptionId
)
SELECT
'{{ location }}',
'{{ tags }}',
'{{ properties }}',
'{{ resourceGroupName }}',
'{{ ddosProtectionPlanName }}',
'{{ subscriptionId }}'
RETURNING
id,
name,
etag,
location,
properties,
tags,
type
;

DELETE examples

Deletes the specified DDoS protection plan.

DELETE FROM azure.network.ddos_protection_plans
WHERE resourceGroupName = '{{ resourceGroupName }}' --required
AND ddosProtectionPlanName = '{{ ddosProtectionPlanName }}' --required
AND subscriptionId = '{{ subscriptionId }}' --required
;

Lifecycle Methods

Update a DDoS protection plan tags.

EXEC azure.network.ddos_protection_plans.update_tags 
@resourceGroupName='{{ resourceGroupName }}' --required,
@ddosProtectionPlanName='{{ ddosProtectionPlanName }}' --required,
@subscriptionId='{{ subscriptionId }}' --required
@@json=
'{
"tags": "{{ tags }}"
}'
;