1. Packages
  2. Proxmox Virtual Environment (Proxmox VE)
  3. API Docs
  4. Sdn
  5. Applier
Proxmox Virtual Environment (Proxmox VE) v7.7.0 published on Sunday, Oct 12, 2025 by Daniel Muehlbachler-Pietrzykowski

proxmoxve.Sdn.Applier

Explore with Pulumi AI

proxmoxve logo
Proxmox Virtual Environment (Proxmox VE) v7.7.0 published on Sunday, Oct 12, 2025 by Daniel Muehlbachler-Pietrzykowski

    EXPERIMENTAL Triggers Proxmox’s SDN Apply (equivalent to PUT /cluster/sdn).Intended to be used with replace_triggered_by so it runs after SDN objects change.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as proxmoxve from "@muhlba91/pulumi-proxmoxve";
    
    const finalizer = new proxmoxve.sdn.Applier("finalizer", {});
    // SDN Zone (Simple) - First zone for applier demonstration
    const exampleZone1 = new proxmoxve.sdnzone.Simple("exampleZone1", {
        zoneId: "zone1",
        nodes: ["pve"],
        mtu: 1500,
        dns: "1.1.1.1",
        dnsZone: "example.com",
        ipam: "pve",
        reverseDns: "1.1.1.1",
    }, {
        dependsOn: [finalizer],
    });
    // SDN Zone (Simple) - Second zone for applier demonstration
    const exampleZone2 = new proxmoxve.sdnzone.Simple("exampleZone2", {
        zoneId: "zone2",
        nodes: ["pve"],
        mtu: 1500,
    }, {
        dependsOn: [finalizer],
    });
    // SDN Applier - Applies SDN configuration changes
    const exampleApplier = new proxmoxve.sdn.Applier("exampleApplier", {}, {
        dependsOn: [
            exampleZone1,
            exampleZone2,
        ],
    });
    
    import pulumi
    import pulumi_proxmoxve as proxmoxve
    
    finalizer = proxmoxve.sdn.Applier("finalizer")
    # SDN Zone (Simple) - First zone for applier demonstration
    example_zone1 = proxmoxve.sdnzone.Simple("exampleZone1",
        zone_id="zone1",
        nodes=["pve"],
        mtu=1500,
        dns="1.1.1.1",
        dns_zone="example.com",
        ipam="pve",
        reverse_dns="1.1.1.1",
        opts = pulumi.ResourceOptions(depends_on=[finalizer]))
    # SDN Zone (Simple) - Second zone for applier demonstration
    example_zone2 = proxmoxve.sdnzone.Simple("exampleZone2",
        zone_id="zone2",
        nodes=["pve"],
        mtu=1500,
        opts = pulumi.ResourceOptions(depends_on=[finalizer]))
    # SDN Applier - Applies SDN configuration changes
    example_applier = proxmoxve.sdn.Applier("exampleApplier", opts = pulumi.ResourceOptions(depends_on=[
            example_zone1,
            example_zone2,
        ]))
    
    package main
    
    import (
    	"github.com/muhlba91/pulumi-proxmoxve/sdk/v7/go/proxmoxve/sdn"
    	"github.com/muhlba91/pulumi-proxmoxve/sdk/v7/go/proxmoxve/sdnzone"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		finalizer, err := sdn.NewApplier(ctx, "finalizer", nil)
    		if err != nil {
    			return err
    		}
    		// SDN Zone (Simple) - First zone for applier demonstration
    		exampleZone1, err := sdnzone.NewSimple(ctx, "exampleZone1", &sdnzone.SimpleArgs{
    			ZoneId: pulumi.String("zone1"),
    			Nodes: pulumi.StringArray{
    				pulumi.String("pve"),
    			},
    			Mtu:        pulumi.Int(1500),
    			Dns:        pulumi.String("1.1.1.1"),
    			DnsZone:    pulumi.String("example.com"),
    			Ipam:       pulumi.String("pve"),
    			ReverseDns: pulumi.String("1.1.1.1"),
    		}, pulumi.DependsOn([]pulumi.Resource{
    			finalizer,
    		}))
    		if err != nil {
    			return err
    		}
    		// SDN Zone (Simple) - Second zone for applier demonstration
    		exampleZone2, err := sdnzone.NewSimple(ctx, "exampleZone2", &sdnzone.SimpleArgs{
    			ZoneId: pulumi.String("zone2"),
    			Nodes: pulumi.StringArray{
    				pulumi.String("pve"),
    			},
    			Mtu: pulumi.Int(1500),
    		}, pulumi.DependsOn([]pulumi.Resource{
    			finalizer,
    		}))
    		if err != nil {
    			return err
    		}
    		// SDN Applier - Applies SDN configuration changes
    		_, err = sdn.NewApplier(ctx, "exampleApplier", nil, pulumi.DependsOn([]pulumi.Resource{
    			exampleZone1,
    			exampleZone2,
    		}))
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using ProxmoxVE = Pulumi.ProxmoxVE;
    
    return await Deployment.RunAsync(() => 
    {
        var finalizer = new ProxmoxVE.Sdn.Applier("finalizer");
    
        // SDN Zone (Simple) - First zone for applier demonstration
        var exampleZone1 = new ProxmoxVE.SDNZone.Simple("exampleZone1", new()
        {
            ZoneId = "zone1",
            Nodes = new[]
            {
                "pve",
            },
            Mtu = 1500,
            Dns = "1.1.1.1",
            DnsZone = "example.com",
            Ipam = "pve",
            ReverseDns = "1.1.1.1",
        }, new CustomResourceOptions
        {
            DependsOn =
            {
                finalizer,
            },
        });
    
        // SDN Zone (Simple) - Second zone for applier demonstration
        var exampleZone2 = new ProxmoxVE.SDNZone.Simple("exampleZone2", new()
        {
            ZoneId = "zone2",
            Nodes = new[]
            {
                "pve",
            },
            Mtu = 1500,
        }, new CustomResourceOptions
        {
            DependsOn =
            {
                finalizer,
            },
        });
    
        // SDN Applier - Applies SDN configuration changes
        var exampleApplier = new ProxmoxVE.Sdn.Applier("exampleApplier", new()
        {
        }, new CustomResourceOptions
        {
            DependsOn =
            {
                exampleZone1,
                exampleZone2,
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import io.muehlbachler.pulumi.proxmoxve.Sdn.Applier;
    import io.muehlbachler.pulumi.proxmoxve.SDNZone.Simple;
    import io.muehlbachler.pulumi.proxmoxve.SDNZone.SimpleArgs;
    import io.muehlbachler.pulumi.proxmoxve.Sdn.ApplierArgs;
    import com.pulumi.resources.CustomResourceOptions;
    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 finalizer = new Applier("finalizer");
    
            // SDN Zone (Simple) - First zone for applier demonstration
            var exampleZone1 = new Simple("exampleZone1", SimpleArgs.builder()
                .zoneId("zone1")
                .nodes("pve")
                .mtu(1500)
                .dns("1.1.1.1")
                .dnsZone("example.com")
                .ipam("pve")
                .reverseDns("1.1.1.1")
                .build(), CustomResourceOptions.builder()
                    .dependsOn(finalizer)
                    .build());
    
            // SDN Zone (Simple) - Second zone for applier demonstration
            var exampleZone2 = new Simple("exampleZone2", SimpleArgs.builder()
                .zoneId("zone2")
                .nodes("pve")
                .mtu(1500)
                .build(), CustomResourceOptions.builder()
                    .dependsOn(finalizer)
                    .build());
    
            // SDN Applier - Applies SDN configuration changes
            var exampleApplier = new Applier("exampleApplier", ApplierArgs.Empty, CustomResourceOptions.builder()
                .dependsOn(            
                    exampleZone1,
                    exampleZone2)
                .build());
    
        }
    }
    
    resources:
      # SDN Zone (Simple) - First zone for applier demonstration
      exampleZone1:
        type: proxmoxve:SDNZone:Simple
        properties:
          zoneId: zone1
          nodes:
            - pve
          mtu: 1500
          # Optional attributes
          dns: 1.1.1.1
          dnsZone: example.com
          ipam: pve
          reverseDns: 1.1.1.1
        options:
          dependsOn:
            - ${finalizer}
      # SDN Zone (Simple) - Second zone for applier demonstration
      exampleZone2:
        type: proxmoxve:SDNZone:Simple
        properties:
          zoneId: zone2
          nodes:
            - pve
          mtu: 1500
        options:
          dependsOn:
            - ${finalizer}
      # SDN Applier - Applies SDN configuration changes
      exampleApplier:
        type: proxmoxve:Sdn:Applier
        options:
          dependsOn:
            - ${exampleZone1}
            - ${exampleZone2}
      finalizer:
        type: proxmoxve:Sdn:Applier
    

    Create Applier Resource

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

    Constructor syntax

    new Applier(name: string, args?: ApplierArgs, opts?: CustomResourceOptions);
    @overload
    def Applier(resource_name: str,
                args: Optional[ApplierArgs] = None,
                opts: Optional[ResourceOptions] = None)
    
    @overload
    def Applier(resource_name: str,
                opts: Optional[ResourceOptions] = None)
    func NewApplier(ctx *Context, name string, args *ApplierArgs, opts ...ResourceOption) (*Applier, error)
    public Applier(string name, ApplierArgs? args = null, CustomResourceOptions? opts = null)
    public Applier(String name, ApplierArgs args)
    public Applier(String name, ApplierArgs args, CustomResourceOptions options)
    
    type: proxmoxve:Sdn:Applier
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args ApplierArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args ApplierArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args ApplierArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ApplierArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ApplierArgs
    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 applierResource = new ProxmoxVE.Sdn.Applier("applierResource");
    
    example, err := sdn.NewApplier(ctx, "applierResource", nil)
    
    var applierResource = new Applier("applierResource");
    
    applier_resource = proxmoxve.sdn.Applier("applierResource")
    
    const applierResource = new proxmoxve.sdn.Applier("applierResource", {});
    
    type: proxmoxve:Sdn:Applier
    properties: {}
    

    Applier 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 Applier resource accepts the following input properties:

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing Applier Resource

    Get an existing Applier resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: ApplierState, opts?: CustomResourceOptions): Applier
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            ) -> Applier
    func GetApplier(ctx *Context, name string, id IDInput, state *ApplierState, opts ...ResourceOption) (*Applier, error)
    public static Applier Get(string name, Input<string> id, ApplierState? state, CustomResourceOptions? opts = null)
    public static Applier get(String name, Output<String> id, ApplierState state, CustomResourceOptions options)
    resources:  _:    type: proxmoxve:Sdn:Applier    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:

    Package Details

    Repository
    proxmoxve muhlba91/pulumi-proxmoxve
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the proxmox Terraform Provider.
    proxmoxve logo
    Proxmox Virtual Environment (Proxmox VE) v7.7.0 published on Sunday, Oct 12, 2025 by Daniel Muehlbachler-Pietrzykowski
      AI Agentic Workflows: Register now