ddos_protection_plans
Creates, updates, deletes, gets or lists a ddos_protection_plans
resource.
Overview
Name | ddos_protection_plans |
Type | Resource |
Id | azure.network.ddos_protection_plans |
Fields
- vw_ddos_protection_plans
- ddos_protection_plans
Name | Datatype | Description |
---|---|---|
id | text | Resource ID. |
name | text | Resource name. |
ddosProtectionPlanName | text | field from the properties object |
etag | text | A unique read-only string that changes whenever the resource is updated. |
location | text | Resource location. |
provisioning_state | text | field from the properties object |
public_ip_addresses | text | field from the properties object |
resourceGroupName | text | field from the properties object |
resource_guid | text | field from the properties object |
subscriptionId | text | field from the properties object |
tags | text | Resource tags. |
type | text | Resource type. |
virtual_networks | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
id | string | Resource ID. |
name | string | Resource name. |
etag | string | A unique read-only string that changes whenever the resource is updated. |
location | string | Resource location. |
properties | object | DDoS protection plan properties. |
tags | object | Resource tags. |
type | string | Resource type. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | ddosProtectionPlanName, resourceGroupName, subscriptionId | Gets information about the specified DDoS protection plan. |
list | SELECT | subscriptionId | Gets all DDoS protection plans in a subscription. |
list_by_resource_group | SELECT | resourceGroupName, subscriptionId | Gets all the DDoS protection plans in a resource group. |
create_or_update | INSERT | ddosProtectionPlanName, resourceGroupName, subscriptionId | Creates or updates a DDoS protection plan. |
delete | DELETE | ddosProtectionPlanName, resourceGroupName, subscriptionId | Deletes the specified DDoS protection plan. |
update_tags | EXEC | ddosProtectionPlanName, resourceGroupName, subscriptionId | Update a DDoS protection plan tags. |
SELECT
examples
Gets all DDoS protection plans in a subscription.
- vw_ddos_protection_plans
- ddos_protection_plans
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 }}';
SELECT
id,
name,
etag,
location,
properties,
tags,
type
FROM azure.network.ddos_protection_plans
WHERE subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new ddos_protection_plans
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.network.ddos_protection_plans (
ddosProtectionPlanName,
resourceGroupName,
subscriptionId,
location,
tags,
properties
)
SELECT
'{{ ddosProtectionPlanName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ location }}',
'{{ tags }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: id
value: string
- name: name
value: string
- name: type
value: string
- name: location
value: string
- name: tags
value: object
- name: properties
value:
- name: resourceGuid
value: string
- name: provisioningState
value: []
- name: publicIPAddresses
value:
- - name: id
value: string
- name: virtualNetworks
value:
- - name: id
value: string
- name: etag
value: string
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 }}';