1. Packages
  2. Hpegl Provider
  3. API Docs
  4. VmaasRouterFirewallRuleGroup
hpegl 0.4.18 published on Friday, Apr 18, 2025 by hpe

hpegl.VmaasRouterFirewallRuleGroup

Explore with Pulumi AI

hpegl logo
hpegl 0.4.18 published on Friday, Apr 18, 2025 by hpe

    Compatible version >= 5.2.12

    Currently update of the hpegl.VmaasRouterFirewallRuleGroup is not supported.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as hpegl from "@pulumi/hpegl";
    
    // (C) Copyright 2021 Hewlett Packard Enterprise Development LP
    const tfRouterFirewallRuleGroup = new hpegl.VmaasRouterFirewallRuleGroup("tfRouterFirewallRuleGroup", {
        routerId: data.hpegl_vmaas_router.tf_router.id,
        description: "Router Firewall rule group created via terraform",
        priority: 120,
        groupLayer: "LocalGatewayRules",
    });
    
    import pulumi
    import pulumi_hpegl as hpegl
    
    # (C) Copyright 2021 Hewlett Packard Enterprise Development LP
    tf_router_firewall_rule_group = hpegl.VmaasRouterFirewallRuleGroup("tfRouterFirewallRuleGroup",
        router_id=data["hpegl_vmaas_router"]["tf_router"]["id"],
        description="Router Firewall rule group created via terraform",
        priority=120,
        group_layer="LocalGatewayRules")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/hpegl/hpegl"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		// (C) Copyright 2021 Hewlett Packard Enterprise Development LP
    		_, err := hpegl.NewVmaasRouterFirewallRuleGroup(ctx, "tfRouterFirewallRuleGroup", &hpegl.VmaasRouterFirewallRuleGroupArgs{
    			RouterId:    pulumi.Any(data.Hpegl_vmaas_router.Tf_router.Id),
    			Description: pulumi.String("Router Firewall rule group created via terraform"),
    			Priority:    pulumi.Float64(120),
    			GroupLayer:  pulumi.String("LocalGatewayRules"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Hpegl = Pulumi.Hpegl;
    
    return await Deployment.RunAsync(() => 
    {
        // (C) Copyright 2021 Hewlett Packard Enterprise Development LP
        var tfRouterFirewallRuleGroup = new Hpegl.VmaasRouterFirewallRuleGroup("tfRouterFirewallRuleGroup", new()
        {
            RouterId = data.Hpegl_vmaas_router.Tf_router.Id,
            Description = "Router Firewall rule group created via terraform",
            Priority = 120,
            GroupLayer = "LocalGatewayRules",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.hpegl.VmaasRouterFirewallRuleGroup;
    import com.pulumi.hpegl.VmaasRouterFirewallRuleGroupArgs;
    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) {
            // (C) Copyright 2021 Hewlett Packard Enterprise Development LP
            var tfRouterFirewallRuleGroup = new VmaasRouterFirewallRuleGroup("tfRouterFirewallRuleGroup", VmaasRouterFirewallRuleGroupArgs.builder()
                .routerId(data.hpegl_vmaas_router().tf_router().id())
                .description("Router Firewall rule group created via terraform")
                .priority(120)
                .groupLayer("LocalGatewayRules")
                .build());
    
        }
    }
    
    resources:
      # (C) Copyright 2021 Hewlett Packard Enterprise Development LP
      tfRouterFirewallRuleGroup:
        type: hpegl:VmaasRouterFirewallRuleGroup
        properties:
          routerId: ${data.hpegl_vmaas_router.tf_router.id}
          description: Router Firewall rule group created via terraform
          priority: 120
          groupLayer: LocalGatewayRules
    

    Create VmaasRouterFirewallRuleGroup Resource

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

    Constructor syntax

    new VmaasRouterFirewallRuleGroup(name: string, args: VmaasRouterFirewallRuleGroupArgs, opts?: CustomResourceOptions);
    @overload
    def VmaasRouterFirewallRuleGroup(resource_name: str,
                                     args: VmaasRouterFirewallRuleGroupArgs,
                                     opts: Optional[ResourceOptions] = None)
    
    @overload
    def VmaasRouterFirewallRuleGroup(resource_name: str,
                                     opts: Optional[ResourceOptions] = None,
                                     group_layer: Optional[str] = None,
                                     router_id: Optional[float] = None,
                                     description: Optional[str] = None,
                                     name: Optional[str] = None,
                                     priority: Optional[float] = None,
                                     vmaas_router_firewall_rule_group_id: Optional[str] = None)
    func NewVmaasRouterFirewallRuleGroup(ctx *Context, name string, args VmaasRouterFirewallRuleGroupArgs, opts ...ResourceOption) (*VmaasRouterFirewallRuleGroup, error)
    public VmaasRouterFirewallRuleGroup(string name, VmaasRouterFirewallRuleGroupArgs args, CustomResourceOptions? opts = null)
    public VmaasRouterFirewallRuleGroup(String name, VmaasRouterFirewallRuleGroupArgs args)
    public VmaasRouterFirewallRuleGroup(String name, VmaasRouterFirewallRuleGroupArgs args, CustomResourceOptions options)
    
    type: hpegl:VmaasRouterFirewallRuleGroup
    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 VmaasRouterFirewallRuleGroupArgs
    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 VmaasRouterFirewallRuleGroupArgs
    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 VmaasRouterFirewallRuleGroupArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args VmaasRouterFirewallRuleGroupArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args VmaasRouterFirewallRuleGroupArgs
    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 vmaasRouterFirewallRuleGroupResource = new Hpegl.VmaasRouterFirewallRuleGroup("vmaasRouterFirewallRuleGroupResource", new()
    {
        GroupLayer = "string",
        RouterId = 0,
        Description = "string",
        Name = "string",
        Priority = 0,
        VmaasRouterFirewallRuleGroupId = "string",
    });
    
    example, err := hpegl.NewVmaasRouterFirewallRuleGroup(ctx, "vmaasRouterFirewallRuleGroupResource", &hpegl.VmaasRouterFirewallRuleGroupArgs{
    	GroupLayer:                     pulumi.String("string"),
    	RouterId:                       pulumi.Float64(0),
    	Description:                    pulumi.String("string"),
    	Name:                           pulumi.String("string"),
    	Priority:                       pulumi.Float64(0),
    	VmaasRouterFirewallRuleGroupId: pulumi.String("string"),
    })
    
    var vmaasRouterFirewallRuleGroupResource = new VmaasRouterFirewallRuleGroup("vmaasRouterFirewallRuleGroupResource", VmaasRouterFirewallRuleGroupArgs.builder()
        .groupLayer("string")
        .routerId(0)
        .description("string")
        .name("string")
        .priority(0)
        .vmaasRouterFirewallRuleGroupId("string")
        .build());
    
    vmaas_router_firewall_rule_group_resource = hpegl.VmaasRouterFirewallRuleGroup("vmaasRouterFirewallRuleGroupResource",
        group_layer="string",
        router_id=0,
        description="string",
        name="string",
        priority=0,
        vmaas_router_firewall_rule_group_id="string")
    
    const vmaasRouterFirewallRuleGroupResource = new hpegl.VmaasRouterFirewallRuleGroup("vmaasRouterFirewallRuleGroupResource", {
        groupLayer: "string",
        routerId: 0,
        description: "string",
        name: "string",
        priority: 0,
        vmaasRouterFirewallRuleGroupId: "string",
    });
    
    type: hpegl:VmaasRouterFirewallRuleGroup
    properties:
        description: string
        groupLayer: string
        name: string
        priority: 0
        routerId: 0
        vmaasRouterFirewallRuleGroupId: string
    

    VmaasRouterFirewallRuleGroup 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 VmaasRouterFirewallRuleGroup resource accepts the following input properties:

    GroupLayer string
    Platform/vendor specific category
    RouterId double
    Parent router ID, router_id can be obtained by using router datasource/resource.
    Description string
    Description for the Firewall rule Group.
    Name string
    Name of the Firewall rule Group.
    Priority double
    Firewall rule group priority
    VmaasRouterFirewallRuleGroupId string
    The ID of this resource.
    GroupLayer string
    Platform/vendor specific category
    RouterId float64
    Parent router ID, router_id can be obtained by using router datasource/resource.
    Description string
    Description for the Firewall rule Group.
    Name string
    Name of the Firewall rule Group.
    Priority float64
    Firewall rule group priority
    VmaasRouterFirewallRuleGroupId string
    The ID of this resource.
    groupLayer String
    Platform/vendor specific category
    routerId Double
    Parent router ID, router_id can be obtained by using router datasource/resource.
    description String
    Description for the Firewall rule Group.
    name String
    Name of the Firewall rule Group.
    priority Double
    Firewall rule group priority
    vmaasRouterFirewallRuleGroupId String
    The ID of this resource.
    groupLayer string
    Platform/vendor specific category
    routerId number
    Parent router ID, router_id can be obtained by using router datasource/resource.
    description string
    Description for the Firewall rule Group.
    name string
    Name of the Firewall rule Group.
    priority number
    Firewall rule group priority
    vmaasRouterFirewallRuleGroupId string
    The ID of this resource.
    group_layer str
    Platform/vendor specific category
    router_id float
    Parent router ID, router_id can be obtained by using router datasource/resource.
    description str
    Description for the Firewall rule Group.
    name str
    Name of the Firewall rule Group.
    priority float
    Firewall rule group priority
    vmaas_router_firewall_rule_group_id str
    The ID of this resource.
    groupLayer String
    Platform/vendor specific category
    routerId Number
    Parent router ID, router_id can be obtained by using router datasource/resource.
    description String
    Description for the Firewall rule Group.
    name String
    Name of the Firewall rule Group.
    priority Number
    Firewall rule group priority
    vmaasRouterFirewallRuleGroupId String
    The ID of this resource.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing VmaasRouterFirewallRuleGroup Resource

    Get an existing VmaasRouterFirewallRuleGroup 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?: VmaasRouterFirewallRuleGroupState, opts?: CustomResourceOptions): VmaasRouterFirewallRuleGroup
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            description: Optional[str] = None,
            group_layer: Optional[str] = None,
            name: Optional[str] = None,
            priority: Optional[float] = None,
            router_id: Optional[float] = None,
            vmaas_router_firewall_rule_group_id: Optional[str] = None) -> VmaasRouterFirewallRuleGroup
    func GetVmaasRouterFirewallRuleGroup(ctx *Context, name string, id IDInput, state *VmaasRouterFirewallRuleGroupState, opts ...ResourceOption) (*VmaasRouterFirewallRuleGroup, error)
    public static VmaasRouterFirewallRuleGroup Get(string name, Input<string> id, VmaasRouterFirewallRuleGroupState? state, CustomResourceOptions? opts = null)
    public static VmaasRouterFirewallRuleGroup get(String name, Output<String> id, VmaasRouterFirewallRuleGroupState state, CustomResourceOptions options)
    resources:  _:    type: hpegl:VmaasRouterFirewallRuleGroup    get:      id: ${id}
    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:
    Description string
    Description for the Firewall rule Group.
    GroupLayer string
    Platform/vendor specific category
    Name string
    Name of the Firewall rule Group.
    Priority double
    Firewall rule group priority
    RouterId double
    Parent router ID, router_id can be obtained by using router datasource/resource.
    VmaasRouterFirewallRuleGroupId string
    The ID of this resource.
    Description string
    Description for the Firewall rule Group.
    GroupLayer string
    Platform/vendor specific category
    Name string
    Name of the Firewall rule Group.
    Priority float64
    Firewall rule group priority
    RouterId float64
    Parent router ID, router_id can be obtained by using router datasource/resource.
    VmaasRouterFirewallRuleGroupId string
    The ID of this resource.
    description String
    Description for the Firewall rule Group.
    groupLayer String
    Platform/vendor specific category
    name String
    Name of the Firewall rule Group.
    priority Double
    Firewall rule group priority
    routerId Double
    Parent router ID, router_id can be obtained by using router datasource/resource.
    vmaasRouterFirewallRuleGroupId String
    The ID of this resource.
    description string
    Description for the Firewall rule Group.
    groupLayer string
    Platform/vendor specific category
    name string
    Name of the Firewall rule Group.
    priority number
    Firewall rule group priority
    routerId number
    Parent router ID, router_id can be obtained by using router datasource/resource.
    vmaasRouterFirewallRuleGroupId string
    The ID of this resource.
    description str
    Description for the Firewall rule Group.
    group_layer str
    Platform/vendor specific category
    name str
    Name of the Firewall rule Group.
    priority float
    Firewall rule group priority
    router_id float
    Parent router ID, router_id can be obtained by using router datasource/resource.
    vmaas_router_firewall_rule_group_id str
    The ID of this resource.
    description String
    Description for the Firewall rule Group.
    groupLayer String
    Platform/vendor specific category
    name String
    Name of the Firewall rule Group.
    priority Number
    Firewall rule group priority
    routerId Number
    Parent router ID, router_id can be obtained by using router datasource/resource.
    vmaasRouterFirewallRuleGroupId String
    The ID of this resource.

    Package Details

    Repository
    hpegl hpe/terraform-provider-hpegl
    License
    Notes
    This Pulumi package is based on the hpegl Terraform Provider.
    hpegl logo
    hpegl 0.4.18 published on Friday, Apr 18, 2025 by hpe