published on Sunday, Apr 26, 2026 by Daniel Muehlbachler-Pietrzykowski
published on Sunday, Apr 26, 2026 by Daniel Muehlbachler-Pietrzykowski
Aliases are used to see what devices or group of devices are affected by a rule. We can create aliases to identify an IP address or a network. Aliases can be created on the cluster level, on VM / Container level.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as proxmoxve from "@muhlba91/pulumi-proxmoxve";
const localNetwork = new proxmoxve.firewall.AliasLegacy("local_network", {
nodeName: example.nodeName,
vmId: example.vmId,
name: "local_network",
cidr: "192.168.0.0/23",
comment: "Managed by Pulumi",
}, {
dependsOn: [example],
});
const ubuntuVm = new proxmoxve.firewall.AliasLegacy("ubuntu_vm", {
name: "ubuntu",
cidr: "192.168.0.1",
comment: "Managed by Pulumi",
});
import pulumi
import pulumi_proxmoxve as proxmoxve
local_network = proxmoxve.firewall.AliasLegacy("local_network",
node_name=example["nodeName"],
vm_id=example["vmId"],
name="local_network",
cidr="192.168.0.0/23",
comment="Managed by Pulumi",
opts = pulumi.ResourceOptions(depends_on=[example]))
ubuntu_vm = proxmoxve.firewall.AliasLegacy("ubuntu_vm",
name="ubuntu",
cidr="192.168.0.1",
comment="Managed by Pulumi")
package main
import (
"github.com/muhlba91/pulumi-proxmoxve/sdk/v8/go/proxmoxve/firewall"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := firewall.NewAliasLegacy(ctx, "local_network", &firewall.AliasLegacyArgs{
NodeName: pulumi.Any(example.NodeName),
VmId: pulumi.Any(example.VmId),
Name: pulumi.String("local_network"),
Cidr: pulumi.String("192.168.0.0/23"),
Comment: pulumi.String("Managed by Pulumi"),
}, pulumi.DependsOn([]pulumi.Resource{
example,
}))
if err != nil {
return err
}
_, err = firewall.NewAliasLegacy(ctx, "ubuntu_vm", &firewall.AliasLegacyArgs{
Name: pulumi.String("ubuntu"),
Cidr: pulumi.String("192.168.0.1"),
Comment: pulumi.String("Managed by Pulumi"),
})
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 localNetwork = new ProxmoxVE.Firewall.AliasLegacy("local_network", new()
{
NodeName = example.NodeName,
VmId = example.VmId,
Name = "local_network",
Cidr = "192.168.0.0/23",
Comment = "Managed by Pulumi",
}, new CustomResourceOptions
{
DependsOn =
{
example,
},
});
var ubuntuVm = new ProxmoxVE.Firewall.AliasLegacy("ubuntu_vm", new()
{
Name = "ubuntu",
Cidr = "192.168.0.1",
Comment = "Managed by Pulumi",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import io.muehlbachler.pulumi.proxmoxve.firewall.AliasLegacy;
import io.muehlbachler.pulumi.proxmoxve.firewall.AliasLegacyArgs;
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 localNetwork = new AliasLegacy("localNetwork", AliasLegacyArgs.builder()
.nodeName(example.nodeName())
.vmId(example.vmId())
.name("local_network")
.cidr("192.168.0.0/23")
.comment("Managed by Pulumi")
.build(), CustomResourceOptions.builder()
.dependsOn(example)
.build());
var ubuntuVm = new AliasLegacy("ubuntuVm", AliasLegacyArgs.builder()
.name("ubuntu")
.cidr("192.168.0.1")
.comment("Managed by Pulumi")
.build());
}
}
resources:
localNetwork:
type: proxmoxve:firewall:AliasLegacy
name: local_network
properties:
nodeName: ${example.nodeName}
vmId: ${example.vmId}
name: local_network
cidr: 192.168.0.0/23
comment: Managed by Pulumi
options:
dependsOn:
- ${example}
ubuntuVm:
type: proxmoxve:firewall:AliasLegacy
name: ubuntu_vm
properties:
name: ubuntu
cidr: 192.168.0.1
comment: Managed by Pulumi
Create AliasLegacy Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AliasLegacy(name: string, args: AliasLegacyArgs, opts?: CustomResourceOptions);@overload
def AliasLegacy(resource_name: str,
args: AliasLegacyArgs,
opts: Optional[ResourceOptions] = None)
@overload
def AliasLegacy(resource_name: str,
opts: Optional[ResourceOptions] = None,
cidr: Optional[str] = None,
comment: Optional[str] = None,
container_id: Optional[int] = None,
name: Optional[str] = None,
node_name: Optional[str] = None,
vm_id: Optional[int] = None)func NewAliasLegacy(ctx *Context, name string, args AliasLegacyArgs, opts ...ResourceOption) (*AliasLegacy, error)public AliasLegacy(string name, AliasLegacyArgs args, CustomResourceOptions? opts = null)
public AliasLegacy(String name, AliasLegacyArgs args)
public AliasLegacy(String name, AliasLegacyArgs args, CustomResourceOptions options)
type: proxmoxve:firewall:AliasLegacy
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 AliasLegacyArgs
- 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 AliasLegacyArgs
- 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 AliasLegacyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AliasLegacyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AliasLegacyArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
AliasLegacy 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 AliasLegacy resource accepts the following input properties:
Outputs
All input properties are implicitly available as output properties. Additionally, the AliasLegacy 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 AliasLegacy Resource
Get an existing AliasLegacy 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?: AliasLegacyState, opts?: CustomResourceOptions): AliasLegacy@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
cidr: Optional[str] = None,
comment: Optional[str] = None,
container_id: Optional[int] = None,
name: Optional[str] = None,
node_name: Optional[str] = None,
vm_id: Optional[int] = None) -> AliasLegacyfunc GetAliasLegacy(ctx *Context, name string, id IDInput, state *AliasLegacyState, opts ...ResourceOption) (*AliasLegacy, error)public static AliasLegacy Get(string name, Input<string> id, AliasLegacyState? state, CustomResourceOptions? opts = null)public static AliasLegacy get(String name, Output<String> id, AliasLegacyState state, CustomResourceOptions options)resources: _: type: proxmoxve:firewall:AliasLegacy 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.
Package Details
- Repository
- proxmoxve muhlba91/pulumi-proxmoxve
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
proxmoxTerraform Provider.
published on Sunday, Apr 26, 2026 by Daniel Muehlbachler-Pietrzykowski
