import * as pulumi from "@pulumi/pulumi";
import * as inputs from "../types/input";
import * as outputs from "../types/output";
/**
 * Manages cluster-level, node-level or VM/container-level firewall rules.
 *
 * > Before creating a new `proxmoxve.firewall.RulesLegacy` resource, verify that no rules already exist for the target (cluster, node, VM, or container). If rules are already configured, import them first using the appropriate import command.
 *
 * ## Example Usage
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as proxmoxve from "@muhlba91/pulumi-proxmoxve";
 *
 * const inbound = new proxmoxve.firewall.RulesLegacy("inbound", {
 *     nodeName: example.nodeName,
 *     vmId: Number(example.vmId),
 *     rules: [
 *         {
 *             type: "in",
 *             action: "ACCEPT",
 *             comment: "Allow HTTP",
 *             dest: "192.168.1.5",
 *             dport: "80",
 *             proto: "tcp",
 *             log: "info",
 *         },
 *         {
 *             type: "in",
 *             action: "ACCEPT",
 *             comment: "Allow HTTPS",
 *             dest: "192.168.1.5",
 *             dport: "443",
 *             proto: "tcp",
 *             log: "info",
 *         },
 *         {
 *             securityGroup: exampleProxmoxVirtualEnvironmentClusterFirewallSecurityGroup.name,
 *             comment: "From security group",
 *             iface: "net0",
 *         },
 *     ],
 * }, {
 *     dependsOn: [
 *         example,
 *         exampleProxmoxVirtualEnvironmentClusterFirewallSecurityGroup,
 *     ],
 * });
 * ```
 *
 * ## Import
 *
 * ### Cluster Rules
 * Use the import ID: `cluster`
 *
 * **Example:**
 * ```sh
 * $ pulumi import proxmoxve:firewall/rulesLegacy:RulesLegacy cluster_rules cluster
 * ```
 *
 * ### Node Rules
 * Use the import ID format: `node/<node_name>`
 * Example uses node name `pve`.
 *
 * **Example:**
 * ```sh
 * $ pulumi import proxmoxve:firewall/rulesLegacy:RulesLegacy node_rules node/pve
 * ```
 *
 * ### VM Rules
 * Use the import ID format: `vm/<node_name>/<vm_id>`
 * Example uses node name `pve` and VM ID `100`.
 *
 * **Example:**
 * ```sh
 * $ pulumi import proxmoxve:firewall/rulesLegacy:RulesLegacy vm_rules vm/pve/100
 * ```
 *
 * ### Container Rules
 * Use the import ID format: `container/<node_name>/<container_id>`
 * Example uses node name `pve` and container ID `100`.
 *
 * **Example:**
 * ```sh
 * $ pulumi import proxmoxve:firewall/rulesLegacy:RulesLegacy container_rules container/pve/100
 * ```
 */
export declare class RulesLegacy extends pulumi.CustomResource {
    /**
     * Get an existing RulesLegacy 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?: RulesLegacyState, opts?: pulumi.CustomResourceOptions): RulesLegacy;
    /**
     * Returns true if the given object is an instance of RulesLegacy.  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 RulesLegacy;
    /**
     * Container ID. Leave empty for node/cluster level rules.
     */
    readonly containerId: pulumi.Output<number | undefined>;
    /**
     * Node name. Leave empty for cluster level rules.
     */
    readonly nodeName: pulumi.Output<string | undefined>;
    /**
     * Firewall rule block (multiple blocks supported).
     * The provider supports two types of the `rule` blocks:
     * - A rule definition block, which includes the following arguments:
     */
    readonly rules: pulumi.Output<outputs.firewall.RulesLegacyRule[] | undefined>;
    /**
     * VM ID. Leave empty for node/cluster level rules.
     */
    readonly vmId: pulumi.Output<number | undefined>;
    /**
     * Create a RulesLegacy 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?: RulesLegacyArgs, opts?: pulumi.CustomResourceOptions);
}
/**
 * Input properties used for looking up and filtering RulesLegacy resources.
 */
export interface RulesLegacyState {
    /**
     * Container ID. Leave empty for node/cluster level rules.
     */
    containerId?: pulumi.Input<number | undefined>;
    /**
     * Node name. Leave empty for cluster level rules.
     */
    nodeName?: pulumi.Input<string | undefined>;
    /**
     * Firewall rule block (multiple blocks supported).
     * The provider supports two types of the `rule` blocks:
     * - A rule definition block, which includes the following arguments:
     */
    rules?: pulumi.Input<pulumi.Input<inputs.firewall.RulesLegacyRule>[] | undefined>;
    /**
     * VM ID. Leave empty for node/cluster level rules.
     */
    vmId?: pulumi.Input<number | undefined>;
}
/**
 * The set of arguments for constructing a RulesLegacy resource.
 */
export interface RulesLegacyArgs {
    /**
     * Container ID. Leave empty for node/cluster level rules.
     */
    containerId?: pulumi.Input<number | undefined>;
    /**
     * Node name. Leave empty for cluster level rules.
     */
    nodeName?: pulumi.Input<string | undefined>;
    /**
     * Firewall rule block (multiple blocks supported).
     * The provider supports two types of the `rule` blocks:
     * - A rule definition block, which includes the following arguments:
     */
    rules?: pulumi.Input<pulumi.Input<inputs.firewall.RulesLegacyRule>[] | undefined>;
    /**
     * VM ID. Leave empty for node/cluster level rules.
     */
    vmId?: pulumi.Input<number | undefined>;
}
//# sourceMappingURL=rulesLegacy.d.ts.map