1. Packages
  2. Vultr
  3. API Docs
  4. FirewallGroup
Vultr v2.21.1 published on Monday, Jul 22, 2024 by dirien

vultr.FirewallGroup

Explore with Pulumi AI

vultr logo
Vultr v2.21.1 published on Monday, Jul 22, 2024 by dirien

    Provides a Vultr Firewall Group resource. This can be used to create, read, modify, and delete Firewall Group.

    Example Usage

    Create a new Firewall group

    import * as pulumi from "@pulumi/pulumi";
    import * as vultr from "@ediri/vultr";
    
    const myFirewallgroup = new vultr.FirewallGroup("myFirewallgroup", {description: "base firewall"});
    
    import pulumi
    import ediri_vultr as vultr
    
    my_firewallgroup = vultr.FirewallGroup("myFirewallgroup", description="base firewall")
    
    package main
    
    import (
    	"github.com/dirien/pulumi-vultr/sdk/v2/go/vultr"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := vultr.NewFirewallGroup(ctx, "myFirewallgroup", &vultr.FirewallGroupArgs{
    			Description: pulumi.String("base firewall"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Vultr = ediri.Vultr;
    
    return await Deployment.RunAsync(() => 
    {
        var myFirewallgroup = new Vultr.FirewallGroup("myFirewallgroup", new()
        {
            Description = "base firewall",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.vultr.FirewallGroup;
    import com.pulumi.vultr.FirewallGroupArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var myFirewallgroup = new FirewallGroup("myFirewallgroup", FirewallGroupArgs.builder()
                .description("base firewall")
                .build());
    
        }
    }
    
    resources:
      myFirewallgroup:
        type: vultr:FirewallGroup
        properties:
          description: base firewall
    

    Create FirewallGroup Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new FirewallGroup(name: string, args?: FirewallGroupArgs, opts?: CustomResourceOptions);
    @overload
    def FirewallGroup(resource_name: str,
                      args: Optional[FirewallGroupArgs] = None,
                      opts: Optional[ResourceOptions] = None)
    
    @overload
    def FirewallGroup(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      description: Optional[str] = None)
    func NewFirewallGroup(ctx *Context, name string, args *FirewallGroupArgs, opts ...ResourceOption) (*FirewallGroup, error)
    public FirewallGroup(string name, FirewallGroupArgs? args = null, CustomResourceOptions? opts = null)
    public FirewallGroup(String name, FirewallGroupArgs args)
    public FirewallGroup(String name, FirewallGroupArgs args, CustomResourceOptions options)
    
    type: vultr:FirewallGroup
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args FirewallGroupArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args FirewallGroupArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args FirewallGroupArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args FirewallGroupArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args FirewallGroupArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var firewallGroupResource = new Vultr.FirewallGroup("firewallGroupResource", new()
    {
        Description = "string",
    });
    
    example, err := vultr.NewFirewallGroup(ctx, "firewallGroupResource", &vultr.FirewallGroupArgs{
    	Description: pulumi.String("string"),
    })
    
    var firewallGroupResource = new FirewallGroup("firewallGroupResource", FirewallGroupArgs.builder()
        .description("string")
        .build());
    
    firewall_group_resource = vultr.FirewallGroup("firewallGroupResource", description="string")
    
    const firewallGroupResource = new vultr.FirewallGroup("firewallGroupResource", {description: "string"});
    
    type: vultr:FirewallGroup
    properties:
        description: string
    

    FirewallGroup Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The FirewallGroup resource accepts the following input properties:

    Description string
    Description of the firewall group.
    Description string
    Description of the firewall group.
    description String
    Description of the firewall group.
    description string
    Description of the firewall group.
    description str
    Description of the firewall group.
    description String
    Description of the firewall group.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the FirewallGroup resource produces the following output properties:

    DateCreated string
    The date the firewall group was created.
    DateModified string
    The date the firewall group was modified.
    Id string
    The provider-assigned unique ID for this managed resource.
    InstanceCount int
    The number of instances that are currently using this firewall group.
    MaxRuleCount int
    The number of max firewall rules this group can have.
    RuleCount int
    The number of firewall rules this group currently has.
    DateCreated string
    The date the firewall group was created.
    DateModified string
    The date the firewall group was modified.
    Id string
    The provider-assigned unique ID for this managed resource.
    InstanceCount int
    The number of instances that are currently using this firewall group.
    MaxRuleCount int
    The number of max firewall rules this group can have.
    RuleCount int
    The number of firewall rules this group currently has.
    dateCreated String
    The date the firewall group was created.
    dateModified String
    The date the firewall group was modified.
    id String
    The provider-assigned unique ID for this managed resource.
    instanceCount Integer
    The number of instances that are currently using this firewall group.
    maxRuleCount Integer
    The number of max firewall rules this group can have.
    ruleCount Integer
    The number of firewall rules this group currently has.
    dateCreated string
    The date the firewall group was created.
    dateModified string
    The date the firewall group was modified.
    id string
    The provider-assigned unique ID for this managed resource.
    instanceCount number
    The number of instances that are currently using this firewall group.
    maxRuleCount number
    The number of max firewall rules this group can have.
    ruleCount number
    The number of firewall rules this group currently has.
    date_created str
    The date the firewall group was created.
    date_modified str
    The date the firewall group was modified.
    id str
    The provider-assigned unique ID for this managed resource.
    instance_count int
    The number of instances that are currently using this firewall group.
    max_rule_count int
    The number of max firewall rules this group can have.
    rule_count int
    The number of firewall rules this group currently has.
    dateCreated String
    The date the firewall group was created.
    dateModified String
    The date the firewall group was modified.
    id String
    The provider-assigned unique ID for this managed resource.
    instanceCount Number
    The number of instances that are currently using this firewall group.
    maxRuleCount Number
    The number of max firewall rules this group can have.
    ruleCount Number
    The number of firewall rules this group currently has.

    Look up Existing FirewallGroup Resource

    Get an existing FirewallGroup resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: FirewallGroupState, opts?: CustomResourceOptions): FirewallGroup
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            date_created: Optional[str] = None,
            date_modified: Optional[str] = None,
            description: Optional[str] = None,
            instance_count: Optional[int] = None,
            max_rule_count: Optional[int] = None,
            rule_count: Optional[int] = None) -> FirewallGroup
    func GetFirewallGroup(ctx *Context, name string, id IDInput, state *FirewallGroupState, opts ...ResourceOption) (*FirewallGroup, error)
    public static FirewallGroup Get(string name, Input<string> id, FirewallGroupState? state, CustomResourceOptions? opts = null)
    public static FirewallGroup get(String name, Output<String> id, FirewallGroupState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    DateCreated string
    The date the firewall group was created.
    DateModified string
    The date the firewall group was modified.
    Description string
    Description of the firewall group.
    InstanceCount int
    The number of instances that are currently using this firewall group.
    MaxRuleCount int
    The number of max firewall rules this group can have.
    RuleCount int
    The number of firewall rules this group currently has.
    DateCreated string
    The date the firewall group was created.
    DateModified string
    The date the firewall group was modified.
    Description string
    Description of the firewall group.
    InstanceCount int
    The number of instances that are currently using this firewall group.
    MaxRuleCount int
    The number of max firewall rules this group can have.
    RuleCount int
    The number of firewall rules this group currently has.
    dateCreated String
    The date the firewall group was created.
    dateModified String
    The date the firewall group was modified.
    description String
    Description of the firewall group.
    instanceCount Integer
    The number of instances that are currently using this firewall group.
    maxRuleCount Integer
    The number of max firewall rules this group can have.
    ruleCount Integer
    The number of firewall rules this group currently has.
    dateCreated string
    The date the firewall group was created.
    dateModified string
    The date the firewall group was modified.
    description string
    Description of the firewall group.
    instanceCount number
    The number of instances that are currently using this firewall group.
    maxRuleCount number
    The number of max firewall rules this group can have.
    ruleCount number
    The number of firewall rules this group currently has.
    date_created str
    The date the firewall group was created.
    date_modified str
    The date the firewall group was modified.
    description str
    Description of the firewall group.
    instance_count int
    The number of instances that are currently using this firewall group.
    max_rule_count int
    The number of max firewall rules this group can have.
    rule_count int
    The number of firewall rules this group currently has.
    dateCreated String
    The date the firewall group was created.
    dateModified String
    The date the firewall group was modified.
    description String
    Description of the firewall group.
    instanceCount Number
    The number of instances that are currently using this firewall group.
    maxRuleCount Number
    The number of max firewall rules this group can have.
    ruleCount Number
    The number of firewall rules this group currently has.

    Import

    Firewall Groups can be imported using the Firewall Group FIREWALLGROUPID, e.g.

    $ pulumi import vultr:index/firewallGroup:FirewallGroup my_firewallgroup c342f929
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    vultr dirien/pulumi-vultr
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the vultr Terraform Provider.
    vultr logo
    Vultr v2.21.1 published on Monday, Jul 22, 2024 by dirien