UNPKG

@muhlba91/pulumi-proxmoxve

Version:

A Pulumi package for creating and managing Proxmox Virtual Environment cloud resources.

177 lines 5.61 kB
import * as pulumi from "@pulumi/pulumi"; /** * > **Deprecated:** Use `proxmoxve.sdn.Vnet` instead. This resource will be removed in v1.0. * * Manages Proxmox VE SDN VNet. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as proxmoxve from "@muhlba91/pulumi-proxmoxve"; * * const finalizer = new proxmoxve.sdn.ApplierLegacy("finalizer", {}); * // SDN Zone (Simple) - Basic zone for simple vnets * const exampleZone1 = new proxmoxve.sdn.zone.SimpleLegacy("example_zone_1", { * resourceId: "zone1", * 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 demonstration * const exampleZone2 = new proxmoxve.sdn.zone.SimpleLegacy("example_zone_2", { * resourceId: "zone2", * mtu: 1500, * }, { * dependsOn: [finalizer], * }); * // Basic VNet (Simple) * const basicVnet = new proxmoxve.sdn.VnetLegacy("basic_vnet", { * resourceId: "vnet1", * zone: exampleZone1.resourceId, * }, { * dependsOn: [finalizer], * }); * // VNet with Alias and Port Isolation * const isolatedVnet = new proxmoxve.sdn.VnetLegacy("isolated_vnet", { * resourceId: "vnet2", * zone: exampleZone2.resourceId, * alias: "Isolated VNet", * isolatePorts: true, * vlanAware: false, * }, { * dependsOn: [finalizer], * }); * // SDN Applier for all resources * const vnetApplier = new proxmoxve.sdn.ApplierLegacy("vnet_applier", {}, { * dependsOn: [ * exampleZone1, * exampleZone2, * basicVnet, * isolatedVnet, * ], * }); * ``` * * ## Import * * !/usr/bin/env sh * SDN vnet can be imported using its unique identifier (vnet ID) * * ```sh * $ pulumi import proxmoxve:sdn/vnetLegacy:VnetLegacy basic_vnet vnet1 * $ pulumi import proxmoxve:sdn/vnetLegacy:VnetLegacy isolated_vnet vnet2 * ``` */ export declare class VnetLegacy extends pulumi.CustomResource { /** * Get an existing VnetLegacy 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?: VnetLegacyState, opts?: pulumi.CustomResourceOptions): VnetLegacy; /** * Returns true if the given object is an instance of VnetLegacy. 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 VnetLegacy; /** * An optional alias for this VNet. */ readonly alias: pulumi.Output<string | undefined>; /** * Isolate ports within this VNet. */ readonly isolatePorts: pulumi.Output<boolean | undefined>; /** * The unique identifier of the SDN VNet. */ readonly resourceId: pulumi.Output<string>; /** * Tag value for VLAN/VXLAN (can't be used with other zone types). */ readonly tag: pulumi.Output<number | undefined>; /** * Allow VM VLANs to pass through this VNet. */ readonly vlanAware: pulumi.Output<boolean | undefined>; /** * The zone to which this VNet belongs. */ readonly zone: pulumi.Output<string>; /** * Create a VnetLegacy 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: VnetLegacyArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering VnetLegacy resources. */ export interface VnetLegacyState { /** * An optional alias for this VNet. */ alias?: pulumi.Input<string | undefined>; /** * Isolate ports within this VNet. */ isolatePorts?: pulumi.Input<boolean | undefined>; /** * The unique identifier of the SDN VNet. */ resourceId?: pulumi.Input<string | undefined>; /** * Tag value for VLAN/VXLAN (can't be used with other zone types). */ tag?: pulumi.Input<number | undefined>; /** * Allow VM VLANs to pass through this VNet. */ vlanAware?: pulumi.Input<boolean | undefined>; /** * The zone to which this VNet belongs. */ zone?: pulumi.Input<string | undefined>; } /** * The set of arguments for constructing a VnetLegacy resource. */ export interface VnetLegacyArgs { /** * An optional alias for this VNet. */ alias?: pulumi.Input<string | undefined>; /** * Isolate ports within this VNet. */ isolatePorts?: pulumi.Input<boolean | undefined>; /** * The unique identifier of the SDN VNet. */ resourceId: pulumi.Input<string>; /** * Tag value for VLAN/VXLAN (can't be used with other zone types). */ tag?: pulumi.Input<number | undefined>; /** * Allow VM VLANs to pass through this VNet. */ vlanAware?: pulumi.Input<boolean | undefined>; /** * The zone to which this VNet belongs. */ zone: pulumi.Input<string>; } //# sourceMappingURL=vnetLegacy.d.ts.map