ddos_custom_policies
Creates, updates, deletes, gets or lists a ddos_custom_policies
resource.
Overview
Name | ddos_custom_policies |
Type | Resource |
Id | azure.network.ddos_custom_policies |
Fields
- vw_ddos_custom_policies
- ddos_custom_policies
Name | Datatype | Description |
---|---|---|
id | text | Resource ID. |
name | text | Resource name. |
ddosCustomPolicyName | 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 |
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. |
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 custom policy properties. |
tags | object | Resource tags. |
type | string | Resource type. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | ddosCustomPolicyName, resourceGroupName, subscriptionId | Gets information about the specified DDoS custom policy. |
create_or_update | INSERT | ddosCustomPolicyName, resourceGroupName, subscriptionId | Creates or updates a DDoS custom policy. |
delete | DELETE | ddosCustomPolicyName, resourceGroupName, subscriptionId | Deletes the specified DDoS custom policy. |
update_tags | EXEC | ddosCustomPolicyName, resourceGroupName, subscriptionId | Update a DDoS custom policy tags. |
SELECT
examples
Gets information about the specified DDoS custom policy.
- vw_ddos_custom_policies
- ddos_custom_policies
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 }}';
SELECT
id,
name,
etag,
location,
properties,
tags,
type
FROM azure.network.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.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.network.ddos_custom_policies (
ddosCustomPolicyName,
resourceGroupName,
subscriptionId,
properties,
id,
location,
tags
)
SELECT
'{{ ddosCustomPolicyName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}',
'{{ id }}',
'{{ location }}',
'{{ tags }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: resourceGuid
value: string
- name: provisioningState
value: []
- name: etag
value: string
- name: id
value: string
- name: name
value: string
- name: type
value: string
- name: location
value: string
- name: tags
value: object
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 }}';