UNPKG

@muhlba91/pulumi-proxmoxve

Version:

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

157 lines (156 loc) 4.96 kB
import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * A security group is a collection of rules, defined at cluster level, which can * be used in all VMs' rules. For example, you can define a group named “webserver” * with rules to open the http and https ports. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as proxmoxve from "@muhlba91/pulumi-proxmoxve"; * * const webserver = new proxmoxve.network.FirewallSecurityGroup("webserver", { * comment: "Managed by Pulumi", * rules: [ * { * action: "ACCEPT", * comment: "Allow HTTP", * dest: "192.168.1.5", * dport: "80", * log: "info", * proto: "tcp", * type: "in", * }, * { * action: "ACCEPT", * comment: "Allow HTTPS", * dest: "192.168.1.5", * dport: "443", * log: "info", * proto: "tcp", * type: "in", * }, * ], * }); * ``` * * ## Import * * Instances can be imported using the `name`, e.g., * * bash * * ```sh * $ pulumi import proxmoxve:Network/firewallSecurityGroup:FirewallSecurityGroup webserver webserver * ``` */ export declare class FirewallSecurityGroup extends pulumi.CustomResource { /** * Get an existing FirewallSecurityGroup 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?: FirewallSecurityGroupState, opts?: pulumi.CustomResourceOptions): FirewallSecurityGroup; /** * Returns true if the given object is an instance of FirewallSecurityGroup. 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 FirewallSecurityGroup; /** * Security group comment. */ readonly comment: pulumi.Output<string | undefined>; /** * The ID of the container to manage the firewall for. */ readonly containerId: pulumi.Output<number | undefined>; /** * Security group name. */ readonly name: pulumi.Output<string>; /** * The name of the node. */ readonly nodeName: pulumi.Output<string | undefined>; /** * Firewall rule block (multiple blocks supported). */ readonly rules: pulumi.Output<outputs.Network.FirewallSecurityGroupRule[]>; /** * The ID of the VM to manage the firewall for. */ readonly vmId: pulumi.Output<number | undefined>; /** * Create a FirewallSecurityGroup 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: FirewallSecurityGroupArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering FirewallSecurityGroup resources. */ export interface FirewallSecurityGroupState { /** * Security group comment. */ comment?: pulumi.Input<string>; /** * The ID of the container to manage the firewall for. */ containerId?: pulumi.Input<number>; /** * Security group name. */ name?: pulumi.Input<string>; /** * The name of the node. */ nodeName?: pulumi.Input<string>; /** * Firewall rule block (multiple blocks supported). */ rules?: pulumi.Input<pulumi.Input<inputs.Network.FirewallSecurityGroupRule>[]>; /** * The ID of the VM to manage the firewall for. */ vmId?: pulumi.Input<number>; } /** * The set of arguments for constructing a FirewallSecurityGroup resource. */ export interface FirewallSecurityGroupArgs { /** * Security group comment. */ comment?: pulumi.Input<string>; /** * The ID of the container to manage the firewall for. */ containerId?: pulumi.Input<number>; /** * Security group name. */ name?: pulumi.Input<string>; /** * The name of the node. */ nodeName?: pulumi.Input<string>; /** * Firewall rule block (multiple blocks supported). */ rules: pulumi.Input<pulumi.Input<inputs.Network.FirewallSecurityGroupRule>[]>; /** * The ID of the VM to manage the firewall for. */ vmId?: pulumi.Input<number>; }