1. Packages
  2. Azure Native
  3. API Docs
  4. network
  5. DdosProtectionPlan
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.0.1 published on Monday, Apr 7, 2025 by Pulumi

azure-native.network.DdosProtectionPlan

Explore with Pulumi AI

This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.0.1 published on Monday, Apr 7, 2025 by Pulumi

A DDoS protection plan in a resource group.

Uses Azure REST API version 2024-05-01. In version 2.x of the Azure Native provider, it used API version 2023-02-01.

Other available API versions: 2018-06-01, 2018-07-01, 2018-08-01, 2018-10-01, 2018-11-01, 2018-12-01, 2019-02-01, 2019-04-01, 2019-06-01, 2019-07-01, 2019-08-01, 2019-09-01, 2019-11-01, 2019-12-01, 2020-03-01, 2020-04-01, 2020-05-01, 2020-06-01, 2020-07-01, 2020-08-01, 2020-11-01, 2021-02-01, 2021-03-01, 2021-05-01, 2021-08-01, 2022-01-01, 2022-05-01, 2022-07-01, 2022-09-01, 2022-11-01, 2023-02-01, 2023-04-01, 2023-05-01, 2023-06-01, 2023-09-01, 2023-11-01, 2024-01-01, 2024-03-01. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native network [ApiVersion]. See the version guide for details.

Example Usage

Create DDoS protection plan

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;

return await Deployment.RunAsync(() => 
{
    var ddosProtectionPlan = new AzureNative.Network.DdosProtectionPlan("ddosProtectionPlan", new()
    {
        DdosProtectionPlanName = "test-plan",
        Location = "westus",
        ResourceGroupName = "rg1",
    });

});
Copy
package main

import (
	network "github.com/pulumi/pulumi-azure-native-sdk/network/v2"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := network.NewDdosProtectionPlan(ctx, "ddosProtectionPlan", &network.DdosProtectionPlanArgs{
			DdosProtectionPlanName: pulumi.String("test-plan"),
			Location:               pulumi.String("westus"),
			ResourceGroupName:      pulumi.String("rg1"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.network.DdosProtectionPlan;
import com.pulumi.azurenative.network.DdosProtectionPlanArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var ddosProtectionPlan = new DdosProtectionPlan("ddosProtectionPlan", DdosProtectionPlanArgs.builder()
            .ddosProtectionPlanName("test-plan")
            .location("westus")
            .resourceGroupName("rg1")
            .build());

    }
}
Copy
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const ddosProtectionPlan = new azure_native.network.DdosProtectionPlan("ddosProtectionPlan", {
    ddosProtectionPlanName: "test-plan",
    location: "westus",
    resourceGroupName: "rg1",
});
Copy
import pulumi
import pulumi_azure_native as azure_native

ddos_protection_plan = azure_native.network.DdosProtectionPlan("ddosProtectionPlan",
    ddos_protection_plan_name="test-plan",
    location="westus",
    resource_group_name="rg1")
Copy
resources:
  ddosProtectionPlan:
    type: azure-native:network:DdosProtectionPlan
    properties:
      ddosProtectionPlanName: test-plan
      location: westus
      resourceGroupName: rg1
Copy

Create DdosProtectionPlan Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new DdosProtectionPlan(name: string, args: DdosProtectionPlanArgs, opts?: CustomResourceOptions);
@overload
def DdosProtectionPlan(resource_name: str,
                       args: DdosProtectionPlanArgs,
                       opts: Optional[ResourceOptions] = None)

@overload
def DdosProtectionPlan(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       resource_group_name: Optional[str] = None,
                       ddos_protection_plan_name: Optional[str] = None,
                       location: Optional[str] = None,
                       tags: Optional[Mapping[str, str]] = None)
func NewDdosProtectionPlan(ctx *Context, name string, args DdosProtectionPlanArgs, opts ...ResourceOption) (*DdosProtectionPlan, error)
public DdosProtectionPlan(string name, DdosProtectionPlanArgs args, CustomResourceOptions? opts = null)
public DdosProtectionPlan(String name, DdosProtectionPlanArgs args)
public DdosProtectionPlan(String name, DdosProtectionPlanArgs args, CustomResourceOptions options)
type: azure-native:network:DdosProtectionPlan
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. DdosProtectionPlanArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. DdosProtectionPlanArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. DdosProtectionPlanArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. DdosProtectionPlanArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. DdosProtectionPlanArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var ddosProtectionPlanResource = new AzureNative.Network.DdosProtectionPlan("ddosProtectionPlanResource", new()
{
    ResourceGroupName = "string",
    DdosProtectionPlanName = "string",
    Location = "string",
    Tags = 
    {
        { "string", "string" },
    },
});
Copy
example, err := network.NewDdosProtectionPlan(ctx, "ddosProtectionPlanResource", &network.DdosProtectionPlanArgs{
	ResourceGroupName:      pulumi.String("string"),
	DdosProtectionPlanName: pulumi.String("string"),
	Location:               pulumi.String("string"),
	Tags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
})
Copy
var ddosProtectionPlanResource = new DdosProtectionPlan("ddosProtectionPlanResource", DdosProtectionPlanArgs.builder()
    .resourceGroupName("string")
    .ddosProtectionPlanName("string")
    .location("string")
    .tags(Map.of("string", "string"))
    .build());
Copy
ddos_protection_plan_resource = azure_native.network.DdosProtectionPlan("ddosProtectionPlanResource",
    resource_group_name="string",
    ddos_protection_plan_name="string",
    location="string",
    tags={
        "string": "string",
    })
Copy
const ddosProtectionPlanResource = new azure_native.network.DdosProtectionPlan("ddosProtectionPlanResource", {
    resourceGroupName: "string",
    ddosProtectionPlanName: "string",
    location: "string",
    tags: {
        string: "string",
    },
});
Copy
type: azure-native:network:DdosProtectionPlan
properties:
    ddosProtectionPlanName: string
    location: string
    resourceGroupName: string
    tags:
        string: string
Copy

DdosProtectionPlan Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The DdosProtectionPlan resource accepts the following input properties:

ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group.
DdosProtectionPlanName Changes to this property will trigger replacement. string
The name of the DDoS protection plan.
Location string
Resource location.
Tags Dictionary<string, string>
Resource tags.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group.
DdosProtectionPlanName Changes to this property will trigger replacement. string
The name of the DDoS protection plan.
Location string
Resource location.
Tags map[string]string
Resource tags.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group.
ddosProtectionPlanName Changes to this property will trigger replacement. String
The name of the DDoS protection plan.
location String
Resource location.
tags Map<String,String>
Resource tags.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group.
ddosProtectionPlanName Changes to this property will trigger replacement. string
The name of the DDoS protection plan.
location string
Resource location.
tags {[key: string]: string}
Resource tags.
resource_group_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the resource group.
ddos_protection_plan_name Changes to this property will trigger replacement. str
The name of the DDoS protection plan.
location str
Resource location.
tags Mapping[str, str]
Resource tags.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group.
ddosProtectionPlanName Changes to this property will trigger replacement. String
The name of the DDoS protection plan.
location String
Resource location.
tags Map<String>
Resource tags.

Outputs

All input properties are implicitly available as output properties. Additionally, the DdosProtectionPlan resource produces the following output properties:

AzureApiVersion string
The Azure API version of the resource.
Etag string
A unique read-only string that changes whenever the resource is updated.
Id string
The provider-assigned unique ID for this managed resource.
Name string
Resource name.
ProvisioningState string
The provisioning state of the DDoS protection plan resource.
PublicIPAddresses List<Pulumi.AzureNative.Network.Outputs.SubResourceResponse>
The list of public IPs associated with the DDoS protection plan resource. This list is read-only.
ResourceGuid string
The 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.
Type string
Resource type.
VirtualNetworks List<Pulumi.AzureNative.Network.Outputs.SubResourceResponse>
The list of virtual networks associated with the DDoS protection plan resource. This list is read-only.
AzureApiVersion string
The Azure API version of the resource.
Etag string
A unique read-only string that changes whenever the resource is updated.
Id string
The provider-assigned unique ID for this managed resource.
Name string
Resource name.
ProvisioningState string
The provisioning state of the DDoS protection plan resource.
PublicIPAddresses []SubResourceResponse
The list of public IPs associated with the DDoS protection plan resource. This list is read-only.
ResourceGuid string
The 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.
Type string
Resource type.
VirtualNetworks []SubResourceResponse
The list of virtual networks associated with the DDoS protection plan resource. This list is read-only.
azureApiVersion String
The Azure API version of the resource.
etag String
A unique read-only string that changes whenever the resource is updated.
id String
The provider-assigned unique ID for this managed resource.
name String
Resource name.
provisioningState String
The provisioning state of the DDoS protection plan resource.
publicIPAddresses List<SubResourceResponse>
The list of public IPs associated with the DDoS protection plan resource. This list is read-only.
resourceGuid String
The 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.
type String
Resource type.
virtualNetworks List<SubResourceResponse>
The list of virtual networks associated with the DDoS protection plan resource. This list is read-only.
azureApiVersion string
The Azure API version of the resource.
etag string
A unique read-only string that changes whenever the resource is updated.
id string
The provider-assigned unique ID for this managed resource.
name string
Resource name.
provisioningState string
The provisioning state of the DDoS protection plan resource.
publicIPAddresses SubResourceResponse[]
The list of public IPs associated with the DDoS protection plan resource. This list is read-only.
resourceGuid string
The 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.
type string
Resource type.
virtualNetworks SubResourceResponse[]
The list of virtual networks associated with the DDoS protection plan resource. This list is read-only.
azure_api_version str
The Azure API version of the resource.
etag str
A unique read-only string that changes whenever the resource is updated.
id str
The provider-assigned unique ID for this managed resource.
name str
Resource name.
provisioning_state str
The provisioning state of the DDoS protection plan resource.
public_ip_addresses Sequence[SubResourceResponse]
The list of public IPs associated with the DDoS protection plan resource. This list is read-only.
resource_guid str
The 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.
type str
Resource type.
virtual_networks Sequence[SubResourceResponse]
The list of virtual networks associated with the DDoS protection plan resource. This list is read-only.
azureApiVersion String
The Azure API version of the resource.
etag String
A unique read-only string that changes whenever the resource is updated.
id String
The provider-assigned unique ID for this managed resource.
name String
Resource name.
provisioningState String
The provisioning state of the DDoS protection plan resource.
publicIPAddresses List<Property Map>
The list of public IPs associated with the DDoS protection plan resource. This list is read-only.
resourceGuid String
The 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.
type String
Resource type.
virtualNetworks List<Property Map>
The list of virtual networks associated with the DDoS protection plan resource. This list is read-only.

Supporting Types

SubResourceResponse
, SubResourceResponseArgs

Id string
Resource ID.
Id string
Resource ID.
id String
Resource ID.
id string
Resource ID.
id str
Resource ID.
id String
Resource ID.

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:network:DdosProtectionPlan test-plan /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ddosProtectionPlans/{ddosProtectionPlanName} 
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
Azure Native pulumi/pulumi-azure-native
License
Apache-2.0
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.0.1 published on Monday, Apr 7, 2025 by Pulumi