@muhlba91/pulumi-proxmoxve
Version:
A Pulumi package for creating and managing Proxmox Virtual Environment cloud resources.
230 lines • 8.42 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* > **Deprecated:** Use `proxmoxve.network/linux.Bridge` instead. This resource will be removed in v1.0.
*
* Manages a Linux Bridge network interface in a Proxmox VE node.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as proxmoxve from "@muhlba91/pulumi-proxmoxve";
*
* const vlan99 = new proxmoxve.network.linux.VlanLegacy("vlan99", {
* nodeName: "pve",
* name: "ens18.99",
* });
* const vmbr99 = new proxmoxve.network.linux.BridgeLegacy("vmbr99", {
* nodeName: "pve",
* name: "vmbr99",
* address: "99.99.99.99/16",
* comment: "vmbr99 comment",
* ports: ["ens18.99"],
* vlanAware: true,
* vids: "2-4094",
* }, {
* dependsOn: [vlan99],
* });
* ```
*
* ## Import
*
* !/usr/bin/env sh
* Interfaces can be imported using the `node_name:iface` format, e.g.
*
* ```sh
* $ pulumi import proxmoxve:network/linux/bridgeLegacy:BridgeLegacy vmbr99 pve:vmbr99
* ```
*/
export declare class BridgeLegacy extends pulumi.CustomResource {
/**
* Get an existing BridgeLegacy 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?: BridgeLegacyState, opts?: pulumi.CustomResourceOptions): BridgeLegacy;
/**
* Returns true if the given object is an instance of BridgeLegacy. 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 BridgeLegacy;
/**
* 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 interface MTU.
*/
readonly mtu: pulumi.Output<number | undefined>;
/**
* The interface name. Commonly vmbr[N], where 0 ≤ N ≤ 4094 (vmbr0 - vmbr4094), but can be any string containing only letters, numbers, and underscores (_), starting with a letter and at most 10 characters long.
*/
readonly name: pulumi.Output<string>;
/**
* The name of the node.
*/
readonly nodeName: pulumi.Output<string>;
/**
* The interface bridge ports.
*/
readonly ports: pulumi.Output<string[] | undefined>;
/**
* Timeout for network reload operations in seconds (defaults to `100`).
*/
readonly timeoutReload: pulumi.Output<number>;
/**
* VLAN IDs allowed on the bridge (Linux Bridge `bridge-vids`). Space-separated list of VLAN IDs and/or hyphenated ranges (e.g. `"2-4094"`, `"1 20 130"`, or `"1 10-20 30"`). Requires `vlanAware = true`. PVE/ifupdown2 fills in `2-4094` as the implicit default for VLAN-aware bridges when this attribute is omitted; the provider surfaces that default in state.
*/
readonly vids: pulumi.Output<string>;
/**
* Whether the interface bridge is VLAN aware (defaults to `false`).
*/
readonly vlanAware: pulumi.Output<boolean>;
/**
* Create a BridgeLegacy 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: BridgeLegacyArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering BridgeLegacy resources.
*/
export interface BridgeLegacyState {
/**
* 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 interface MTU.
*/
mtu?: pulumi.Input<number | undefined>;
/**
* The interface name. Commonly vmbr[N], where 0 ≤ N ≤ 4094 (vmbr0 - vmbr4094), but can be any string containing only letters, numbers, and underscores (_), starting with a letter and at most 10 characters long.
*/
name?: pulumi.Input<string | undefined>;
/**
* The name of the node.
*/
nodeName?: pulumi.Input<string | undefined>;
/**
* The interface bridge ports.
*/
ports?: pulumi.Input<pulumi.Input<string>[] | undefined>;
/**
* Timeout for network reload operations in seconds (defaults to `100`).
*/
timeoutReload?: pulumi.Input<number | undefined>;
/**
* VLAN IDs allowed on the bridge (Linux Bridge `bridge-vids`). Space-separated list of VLAN IDs and/or hyphenated ranges (e.g. `"2-4094"`, `"1 20 130"`, or `"1 10-20 30"`). Requires `vlanAware = true`. PVE/ifupdown2 fills in `2-4094` as the implicit default for VLAN-aware bridges when this attribute is omitted; the provider surfaces that default in state.
*/
vids?: pulumi.Input<string | undefined>;
/**
* Whether the interface bridge is VLAN aware (defaults to `false`).
*/
vlanAware?: pulumi.Input<boolean | undefined>;
}
/**
* The set of arguments for constructing a BridgeLegacy resource.
*/
export interface BridgeLegacyArgs {
/**
* 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 interface MTU.
*/
mtu?: pulumi.Input<number | undefined>;
/**
* The interface name. Commonly vmbr[N], where 0 ≤ N ≤ 4094 (vmbr0 - vmbr4094), but can be any string containing only letters, numbers, and underscores (_), starting with a letter and at most 10 characters long.
*/
name?: pulumi.Input<string | undefined>;
/**
* The name of the node.
*/
nodeName: pulumi.Input<string>;
/**
* The interface bridge ports.
*/
ports?: pulumi.Input<pulumi.Input<string>[] | undefined>;
/**
* Timeout for network reload operations in seconds (defaults to `100`).
*/
timeoutReload?: pulumi.Input<number | undefined>;
/**
* VLAN IDs allowed on the bridge (Linux Bridge `bridge-vids`). Space-separated list of VLAN IDs and/or hyphenated ranges (e.g. `"2-4094"`, `"1 20 130"`, or `"1 10-20 30"`). Requires `vlanAware = true`. PVE/ifupdown2 fills in `2-4094` as the implicit default for VLAN-aware bridges when this attribute is omitted; the provider surfaces that default in state.
*/
vids?: pulumi.Input<string | undefined>;
/**
* Whether the interface bridge is VLAN aware (defaults to `false`).
*/
vlanAware?: pulumi.Input<boolean | undefined>;
}
//# sourceMappingURL=bridgeLegacy.d.ts.map