@muhlba91/pulumi-proxmoxve
Version:
A Pulumi package for creating and managing Proxmox Virtual Environment cloud resources.
156 lines • 5.09 kB
TypeScript
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.cluster.firewall.security.GroupLegacy("webserver", {
* name: "webserver",
* comment: "Managed by Pulumi",
* 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",
* },
* ],
* });
* ```
*
* ## Import
*
* Instances can be imported using the `name`, e.g.,
*
* ```sh
* $ pulumi import proxmoxve:cluster/firewall/security/groupLegacy:GroupLegacy webserver webserver
* ```
*/
export declare class GroupLegacy extends pulumi.CustomResource {
/**
* Get an existing GroupLegacy 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?: GroupLegacyState, opts?: pulumi.CustomResourceOptions): GroupLegacy;
/**
* Returns true if the given object is an instance of GroupLegacy. 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 GroupLegacy;
/**
* 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.cluster.firewall.security.GroupLegacyRule[] | undefined>;
/**
* The ID of the VM to manage the firewall for.
*/
readonly vmId: pulumi.Output<number | undefined>;
/**
* Create a GroupLegacy 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?: GroupLegacyArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering GroupLegacy resources.
*/
export interface GroupLegacyState {
/**
* Security group comment.
*/
comment?: pulumi.Input<string | undefined>;
/**
* The ID of the container to manage the firewall for.
*/
containerId?: pulumi.Input<number | undefined>;
/**
* Security group name.
*/
name?: pulumi.Input<string | undefined>;
/**
* The name of the node.
*/
nodeName?: pulumi.Input<string | undefined>;
/**
* Firewall rule block (multiple blocks supported).
*/
rules?: pulumi.Input<pulumi.Input<inputs.cluster.firewall.security.GroupLegacyRule>[] | undefined>;
/**
* The ID of the VM to manage the firewall for.
*/
vmId?: pulumi.Input<number | undefined>;
}
/**
* The set of arguments for constructing a GroupLegacy resource.
*/
export interface GroupLegacyArgs {
/**
* Security group comment.
*/
comment?: pulumi.Input<string | undefined>;
/**
* The ID of the container to manage the firewall for.
*/
containerId?: pulumi.Input<number | undefined>;
/**
* Security group name.
*/
name?: pulumi.Input<string | undefined>;
/**
* The name of the node.
*/
nodeName?: pulumi.Input<string | undefined>;
/**
* Firewall rule block (multiple blocks supported).
*/
rules?: pulumi.Input<pulumi.Input<inputs.cluster.firewall.security.GroupLegacyRule>[] | undefined>;
/**
* The ID of the VM to manage the firewall for.
*/
vmId?: pulumi.Input<number | undefined>;
}
//# sourceMappingURL=groupLegacy.d.ts.map