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:

NameDatatypeDescription
idstringResource ID.
namestringResource name.
etagstringA unique read-only string that changes whenever the resource is updated.
locationstringResource location.
provisioningStatestringThe provisioning state of the DDoS protection plan resource. Known values are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting". (Failed, Succeeded, Canceled, Creating, Updating, Deleting)
publicIPAddressesarrayThe list of public IPs associated with the DDoS protection plan resource. This list is read-only.
resourceGuidstringThe resource GUID property of the DDoS protection plan resource. It uniquely identifies the resource, even if the user changes its name or migrate the resource across subscriptions or resource groups.
tagsobjectResource tags.
typestringResource type.
virtualNetworksarrayThe list of virtual networks associated with the DDoS protection plan resource. This list is read-only.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, ddos_protection_plan_name, subscription_idGets information about the specified DDoS protection plan.
list_by_resource_groupselectresource_group_name, subscription_idGets all the DDoS protection plans in a resource group.
listselectsubscription_idGets all DDoS protection plans in a subscription.
create_or_updateinsertresource_group_name, ddos_protection_plan_name, subscription_idCreates or updates a DDoS protection plan.
update_tagsupdateresource_group_name, ddos_protection_plan_name, subscription_idUpdate a DDoS protection plan tags.
create_or_updatereplaceresource_group_name, ddos_protection_plan_name, subscription_idCreates or updates a DDoS protection plan.
deletedeleteresource_group_name, ddos_protection_plan_name, subscription_idDeletes the specified DDoS protection plan.

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
ddos_protection_plan_namestringThe name of the DDoS protection plan. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring

SELECT examples

Gets information about the specified DDoS protection plan.

SELECT
id,
name,
etag,
location,
provisioningState,
publicIPAddresses,
resourceGuid,
tags,
type,
virtualNetworks
FROM azure.network.ddos_protection_plans
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND ddos_protection_plan_name = '{{ ddos_protection_plan_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Creates or updates a DDoS protection plan.

INSERT INTO azure.network.ddos_protection_plans (
location,
tags,
properties,
resource_group_name,
ddos_protection_plan_name,
subscription_id
)
SELECT
'{{ location }}',
'{{ tags }}',
'{{ properties }}',
'{{ resource_group_name }}',
'{{ ddos_protection_plan_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
etag,
location,
properties,
tags,
type
;

UPDATE examples

Update a DDoS protection plan tags.

UPDATE azure.network.ddos_protection_plans
SET
tags = '{{ tags }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND ddos_protection_plan_name = '{{ ddos_protection_plan_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
etag,
location,
properties,
tags,
type;

REPLACE examples

Creates or updates a DDoS protection plan.

REPLACE azure.network.ddos_protection_plans
SET
location = '{{ location }}',
tags = '{{ tags }}',
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND ddos_protection_plan_name = '{{ ddos_protection_plan_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
etag,
location,
properties,
tags,
type;

DELETE examples

Deletes the specified DDoS protection plan.

DELETE FROM azure.network.ddos_protection_plans
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND ddos_protection_plan_name = '{{ ddos_protection_plan_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;