@muhlba91/pulumi-proxmoxve
Version:
A Pulumi package for creating and managing Proxmox Virtual Environment cloud resources.
215 lines • 6.78 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Manages a Linux VLAN network interface in a Proxmox VE node.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as proxmoxve from "@muhlba91/pulumi-proxmoxve";
*
* // using VLAN tag
* const vlan99 = new proxmoxve.network.linux.Vlan("vlan99", {
* nodeName: "pve",
* name: "eno0.99",
* comment: "VLAN 99",
* });
* // using custom network interface name
* const vlan98 = new proxmoxve.network.linux.Vlan("vlan98", {
* nodeName: "pve",
* name: "vlan_lab",
* "interface": "eno0",
* vlan: 98,
* comment: "VLAN 98",
* });
* ```
*
* ## Import
*
* !/usr/bin/env sh
* Interfaces can be imported using the `node_name:iface` format, e.g.
*
* ```sh
* $ pulumi import proxmoxve:network/linux/vlan:Vlan vlan99 pve:vlan99
* ```
*/
export declare class Vlan extends pulumi.CustomResource {
/**
* Get an existing Vlan resource's state with the given name, ID, and optional extra
* properties used to qualify the lookup.
*
* @param name The _unique_ name of the resulting resource.
* @param id The _unique_ provider ID of the resource to lookup.
* @param state Any extra arguments used during the lookup.
* @param opts Optional settings to control the behavior of the CustomResource.
*/
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: VlanState, opts?: pulumi.CustomResourceOptions): Vlan;
/**
* Returns true if the given object is an instance of Vlan. This is designed to work even
* when multiple copies of the Pulumi SDK have been loaded into the same process.
*/
static isInstance(obj: any): obj is Vlan;
/**
* The interface IPv4/CIDR address.
*/
readonly address: pulumi.Output<string | undefined>;
/**
* The interface IPv6/CIDR address.
*/
readonly address6: pulumi.Output<string | undefined>;
/**
* Automatically start interface on boot (defaults to `true`).
*/
readonly autostart: pulumi.Output<boolean>;
/**
* Comment for the interface.
*/
readonly comment: pulumi.Output<string | undefined>;
/**
* Default gateway address.
*/
readonly gateway: pulumi.Output<string | undefined>;
/**
* Default IPv6 gateway address.
*/
readonly gateway6: pulumi.Output<string | undefined>;
/**
* The VLAN raw device. See also `name`.
*/
readonly interface: pulumi.Output<string>;
/**
* The interface MTU.
*/
readonly mtu: pulumi.Output<number | undefined>;
/**
* The interface name. Either add the VLAN tag number to an existing interface name, e.g. `ens18.21` (and do not set `interface` and `vlan`), or use custom name, e.g. `vlanLab` (`interface` and `vlan` are then required).
*/
readonly name: pulumi.Output<string>;
/**
* The name of the node.
*/
readonly nodeName: pulumi.Output<string>;
/**
* Timeout for network reload operations in seconds (defaults to `100`).
*/
readonly timeoutReload: pulumi.Output<number>;
/**
* The VLAN tag. See also `name`.
*/
readonly vlan: pulumi.Output<number>;
/**
* Create a Vlan resource with the given unique name, arguments, and options.
*
* @param name The _unique_ name of the resource.
* @param args The arguments to use to populate this resource's properties.
* @param opts A bag of options that control this resource's behavior.
*/
constructor(name: string, args: VlanArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering Vlan resources.
*/
export interface VlanState {
/**
* The interface IPv4/CIDR address.
*/
address?: pulumi.Input<string | undefined>;
/**
* The interface IPv6/CIDR address.
*/
address6?: pulumi.Input<string | undefined>;
/**
* Automatically start interface on boot (defaults to `true`).
*/
autostart?: pulumi.Input<boolean | undefined>;
/**
* Comment for the interface.
*/
comment?: pulumi.Input<string | undefined>;
/**
* Default gateway address.
*/
gateway?: pulumi.Input<string | undefined>;
/**
* Default IPv6 gateway address.
*/
gateway6?: pulumi.Input<string | undefined>;
/**
* The VLAN raw device. See also `name`.
*/
interface?: pulumi.Input<string | undefined>;
/**
* The interface MTU.
*/
mtu?: pulumi.Input<number | undefined>;
/**
* The interface name. Either add the VLAN tag number to an existing interface name, e.g. `ens18.21` (and do not set `interface` and `vlan`), or use custom name, e.g. `vlanLab` (`interface` and `vlan` are then required).
*/
name?: pulumi.Input<string | undefined>;
/**
* The name of the node.
*/
nodeName?: pulumi.Input<string | undefined>;
/**
* Timeout for network reload operations in seconds (defaults to `100`).
*/
timeoutReload?: pulumi.Input<number | undefined>;
/**
* The VLAN tag. See also `name`.
*/
vlan?: pulumi.Input<number | undefined>;
}
/**
* The set of arguments for constructing a Vlan resource.
*/
export interface VlanArgs {
/**
* The interface IPv4/CIDR address.
*/
address?: pulumi.Input<string | undefined>;
/**
* The interface IPv6/CIDR address.
*/
address6?: pulumi.Input<string | undefined>;
/**
* Automatically start interface on boot (defaults to `true`).
*/
autostart?: pulumi.Input<boolean | undefined>;
/**
* Comment for the interface.
*/
comment?: pulumi.Input<string | undefined>;
/**
* Default gateway address.
*/
gateway?: pulumi.Input<string | undefined>;
/**
* Default IPv6 gateway address.
*/
gateway6?: pulumi.Input<string | undefined>;
/**
* The VLAN raw device. See also `name`.
*/
interface?: pulumi.Input<string | undefined>;
/**
* The interface MTU.
*/
mtu?: pulumi.Input<number | undefined>;
/**
* The interface name. Either add the VLAN tag number to an existing interface name, e.g. `ens18.21` (and do not set `interface` and `vlan`), or use custom name, e.g. `vlanLab` (`interface` and `vlan` are then required).
*/
name?: pulumi.Input<string | undefined>;
/**
* The name of the node.
*/
nodeName: pulumi.Input<string>;
/**
* Timeout for network reload operations in seconds (defaults to `100`).
*/
timeoutReload?: pulumi.Input<number | undefined>;
/**
* The VLAN tag. See also `name`.
*/
vlan?: pulumi.Input<number | undefined>;
}
//# sourceMappingURL=vlan.d.ts.map