1. Packages
  2. Cisco Meraki
  3. API Docs
  4. networks
  5. ApplianceFirewallL7FirewallRules
Meraki v0.1.2 published on Tuesday, May 21, 2024 by Pulumi

meraki.networks.ApplianceFirewallL7FirewallRules

Explore with Pulumi AI

meraki logo
Meraki v0.1.2 published on Tuesday, May 21, 2024 by Pulumi

    Example Usage

    1

    import * as pulumi from "@pulumi/pulumi";
    import * as meraki from "@pulumi/meraki";
    
    const example = new meraki.networks.ApplianceFirewallL7FirewallRules("example", {
        networkId: "string",
        rules: [{
            policy: "deny",
            type: "host",
            value: "google.com",
        }],
    });
    export const merakiNetworksApplianceFirewallL7FirewallRulesExample = example;
    
    import pulumi
    import pulumi_meraki as meraki
    
    example = meraki.networks.ApplianceFirewallL7FirewallRules("example",
        network_id="string",
        rules=[meraki.networks.ApplianceFirewallL7FirewallRulesRuleArgs(
            policy="deny",
            type="host",
            value="google.com",
        )])
    pulumi.export("merakiNetworksApplianceFirewallL7FirewallRulesExample", example)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-meraki/sdk/go/meraki/networks"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		example, err := networks.NewApplianceFirewallL7FirewallRules(ctx, "example", &networks.ApplianceFirewallL7FirewallRulesArgs{
    			NetworkId: pulumi.String("string"),
    			Rules: networks.ApplianceFirewallL7FirewallRulesRuleArray{
    				&networks.ApplianceFirewallL7FirewallRulesRuleArgs{
    					Policy: pulumi.String("deny"),
    					Type:   pulumi.String("host"),
    					Value:  pulumi.String("google.com"),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		ctx.Export("merakiNetworksApplianceFirewallL7FirewallRulesExample", example)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Meraki = Pulumi.Meraki;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Meraki.Networks.ApplianceFirewallL7FirewallRules("example", new()
        {
            NetworkId = "string",
            Rules = new[]
            {
                new Meraki.Networks.Inputs.ApplianceFirewallL7FirewallRulesRuleArgs
                {
                    Policy = "deny",
                    Type = "host",
                    Value = "google.com",
                },
            },
        });
    
        return new Dictionary<string, object?>
        {
            ["merakiNetworksApplianceFirewallL7FirewallRulesExample"] = example,
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.meraki.networks.ApplianceFirewallL7FirewallRules;
    import com.pulumi.meraki.networks.ApplianceFirewallL7FirewallRulesArgs;
    import com.pulumi.meraki.networks.inputs.ApplianceFirewallL7FirewallRulesRuleArgs;
    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 example = new ApplianceFirewallL7FirewallRules("example", ApplianceFirewallL7FirewallRulesArgs.builder()        
                .networkId("string")
                .rules(ApplianceFirewallL7FirewallRulesRuleArgs.builder()
                    .policy("deny")
                    .type("host")
                    .value("google.com")
                    .build())
                .build());
    
            ctx.export("merakiNetworksApplianceFirewallL7FirewallRulesExample", example);
        }
    }
    
    resources:
      example:
        type: meraki:networks:ApplianceFirewallL7FirewallRules
        properties:
          networkId: string
          rules:
            - policy: deny
              type: host
              value: google.com
    outputs:
      merakiNetworksApplianceFirewallL7FirewallRulesExample: ${example}
    

    2

    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.meraki.networks.ApplianceFirewallL7FirewallRules;
    import com.pulumi.meraki.networks.ApplianceFirewallL7FirewallRulesArgs;
    import com.pulumi.meraki.networks.inputs.ApplianceFirewallL7FirewallRulesRuleArgs;
    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 example = new ApplianceFirewallL7FirewallRules("example", ApplianceFirewallL7FirewallRulesArgs.builder()        
                .networkId("string")
                .rules(ApplianceFirewallL7FirewallRulesRuleArgs.builder()
                    .policy("deny")
                    .type("applicationCategory")
                    .value_obj(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
                    .build())
                .build());
    
            ctx.export("merakiNetworksApplianceFirewallL7FirewallRulesExample", example);
        }
    }
    
    resources:
      example:
        type: meraki:networks:ApplianceFirewallL7FirewallRules
        properties:
          networkId: string
          rules:
            - policy: deny
              type: applicationCategory
              value_obj:
                name: Sports
                id: meraki:layer7/category/5
    outputs:
      merakiNetworksApplianceFirewallL7FirewallRulesExample: ${example}
    

    3

    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    Coming soon!
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.meraki.networks.ApplianceFirewallL7FirewallRules;
    import com.pulumi.meraki.networks.ApplianceFirewallL7FirewallRulesArgs;
    import com.pulumi.meraki.networks.inputs.ApplianceFirewallL7FirewallRulesRuleArgs;
    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 example = new ApplianceFirewallL7FirewallRules("example", ApplianceFirewallL7FirewallRulesArgs.builder()        
                .networkId("string")
                .rules(ApplianceFirewallL7FirewallRulesRuleArgs.builder()
                    .policy("deny")
                    .type("blockedCountries")
                    .value_list(                
                        "IT",
                        "IL",
                        "US")
                    .build())
                .build());
    
            ctx.export("merakiNetworksApplianceFirewallL7FirewallRulesExample", example);
        }
    }
    
    resources:
      example:
        type: meraki:networks:ApplianceFirewallL7FirewallRules
        properties:
          networkId: string
          rules:
            - policy: deny
              type: blockedCountries
              value_list:
                - IT
                - IL
                - US
    outputs:
      merakiNetworksApplianceFirewallL7FirewallRulesExample: ${example}
    

    Create ApplianceFirewallL7FirewallRules Resource

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

    Constructor syntax

    new ApplianceFirewallL7FirewallRules(name: string, args: ApplianceFirewallL7FirewallRulesArgs, opts?: CustomResourceOptions);
    @overload
    def ApplianceFirewallL7FirewallRules(resource_name: str,
                                         args: ApplianceFirewallL7FirewallRulesArgs,
                                         opts: Optional[ResourceOptions] = None)
    
    @overload
    def ApplianceFirewallL7FirewallRules(resource_name: str,
                                         opts: Optional[ResourceOptions] = None,
                                         network_id: Optional[str] = None,
                                         rules: Optional[Sequence[ApplianceFirewallL7FirewallRulesRuleArgs]] = None)
    func NewApplianceFirewallL7FirewallRules(ctx *Context, name string, args ApplianceFirewallL7FirewallRulesArgs, opts ...ResourceOption) (*ApplianceFirewallL7FirewallRules, error)
    public ApplianceFirewallL7FirewallRules(string name, ApplianceFirewallL7FirewallRulesArgs args, CustomResourceOptions? opts = null)
    public ApplianceFirewallL7FirewallRules(String name, ApplianceFirewallL7FirewallRulesArgs args)
    public ApplianceFirewallL7FirewallRules(String name, ApplianceFirewallL7FirewallRulesArgs args, CustomResourceOptions options)
    
    type: meraki:networks:ApplianceFirewallL7FirewallRules
    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 ApplianceFirewallL7FirewallRulesArgs
    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 ApplianceFirewallL7FirewallRulesArgs
    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 ApplianceFirewallL7FirewallRulesArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ApplianceFirewallL7FirewallRulesArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ApplianceFirewallL7FirewallRulesArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Example

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

    var applianceFirewallL7FirewallRulesResource = new Meraki.Networks.ApplianceFirewallL7FirewallRules("applianceFirewallL7FirewallRulesResource", new()
    {
        NetworkId = "string",
        Rules = new[]
        {
            new Meraki.Networks.Inputs.ApplianceFirewallL7FirewallRulesRuleArgs
            {
                Policy = "string",
                Type = "string",
                Value = "string",
                ValueLists = new[]
                {
                    "string",
                },
                ValueObj = new Meraki.Networks.Inputs.ApplianceFirewallL7FirewallRulesRuleValueObjArgs
                {
                    Id = "string",
                    Name = "string",
                },
            },
        },
    });
    
    example, err := networks.NewApplianceFirewallL7FirewallRules(ctx, "applianceFirewallL7FirewallRulesResource", &networks.ApplianceFirewallL7FirewallRulesArgs{
    	NetworkId: pulumi.String("string"),
    	Rules: networks.ApplianceFirewallL7FirewallRulesRuleArray{
    		&networks.ApplianceFirewallL7FirewallRulesRuleArgs{
    			Policy: pulumi.String("string"),
    			Type:   pulumi.String("string"),
    			Value:  pulumi.String("string"),
    			ValueLists: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    			ValueObj: &networks.ApplianceFirewallL7FirewallRulesRuleValueObjArgs{
    				Id:   pulumi.String("string"),
    				Name: pulumi.String("string"),
    			},
    		},
    	},
    })
    
    var applianceFirewallL7FirewallRulesResource = new ApplianceFirewallL7FirewallRules("applianceFirewallL7FirewallRulesResource", ApplianceFirewallL7FirewallRulesArgs.builder()        
        .networkId("string")
        .rules(ApplianceFirewallL7FirewallRulesRuleArgs.builder()
            .policy("string")
            .type("string")
            .value("string")
            .valueLists("string")
            .valueObj(ApplianceFirewallL7FirewallRulesRuleValueObjArgs.builder()
                .id("string")
                .name("string")
                .build())
            .build())
        .build());
    
    appliance_firewall_l7_firewall_rules_resource = meraki.networks.ApplianceFirewallL7FirewallRules("applianceFirewallL7FirewallRulesResource",
        network_id="string",
        rules=[meraki.networks.ApplianceFirewallL7FirewallRulesRuleArgs(
            policy="string",
            type="string",
            value="string",
            value_lists=["string"],
            value_obj=meraki.networks.ApplianceFirewallL7FirewallRulesRuleValueObjArgs(
                id="string",
                name="string",
            ),
        )])
    
    const applianceFirewallL7FirewallRulesResource = new meraki.networks.ApplianceFirewallL7FirewallRules("applianceFirewallL7FirewallRulesResource", {
        networkId: "string",
        rules: [{
            policy: "string",
            type: "string",
            value: "string",
            valueLists: ["string"],
            valueObj: {
                id: "string",
                name: "string",
            },
        }],
    });
    
    type: meraki:networks:ApplianceFirewallL7FirewallRules
    properties:
        networkId: string
        rules:
            - policy: string
              type: string
              value: string
              valueLists:
                - string
              valueObj:
                id: string
                name: string
    

    ApplianceFirewallL7FirewallRules Resource Properties

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

    Inputs

    The ApplianceFirewallL7FirewallRules resource accepts the following input properties:

    NetworkId string
    networkId path parameter. Network ID
    Rules List<ApplianceFirewallL7FirewallRulesRule>
    An ordered array of the MX L7 firewall rules
    NetworkId string
    networkId path parameter. Network ID
    Rules []ApplianceFirewallL7FirewallRulesRuleArgs
    An ordered array of the MX L7 firewall rules
    networkId String
    networkId path parameter. Network ID
    rules List<ApplianceFirewallL7FirewallRulesRule>
    An ordered array of the MX L7 firewall rules
    networkId string
    networkId path parameter. Network ID
    rules ApplianceFirewallL7FirewallRulesRule[]
    An ordered array of the MX L7 firewall rules
    network_id str
    networkId path parameter. Network ID
    rules Sequence[ApplianceFirewallL7FirewallRulesRuleArgs]
    An ordered array of the MX L7 firewall rules
    networkId String
    networkId path parameter. Network ID
    rules List<Property Map>
    An ordered array of the MX L7 firewall rules

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ApplianceFirewallL7FirewallRules 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 ApplianceFirewallL7FirewallRules Resource

    Get an existing ApplianceFirewallL7FirewallRules 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?: ApplianceFirewallL7FirewallRulesState, opts?: CustomResourceOptions): ApplianceFirewallL7FirewallRules
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            network_id: Optional[str] = None,
            rules: Optional[Sequence[ApplianceFirewallL7FirewallRulesRuleArgs]] = None) -> ApplianceFirewallL7FirewallRules
    func GetApplianceFirewallL7FirewallRules(ctx *Context, name string, id IDInput, state *ApplianceFirewallL7FirewallRulesState, opts ...ResourceOption) (*ApplianceFirewallL7FirewallRules, error)
    public static ApplianceFirewallL7FirewallRules Get(string name, Input<string> id, ApplianceFirewallL7FirewallRulesState? state, CustomResourceOptions? opts = null)
    public static ApplianceFirewallL7FirewallRules get(String name, Output<String> id, ApplianceFirewallL7FirewallRulesState 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:
    NetworkId string
    networkId path parameter. Network ID
    Rules List<ApplianceFirewallL7FirewallRulesRule>
    An ordered array of the MX L7 firewall rules
    NetworkId string
    networkId path parameter. Network ID
    Rules []ApplianceFirewallL7FirewallRulesRuleArgs
    An ordered array of the MX L7 firewall rules
    networkId String
    networkId path parameter. Network ID
    rules List<ApplianceFirewallL7FirewallRulesRule>
    An ordered array of the MX L7 firewall rules
    networkId string
    networkId path parameter. Network ID
    rules ApplianceFirewallL7FirewallRulesRule[]
    An ordered array of the MX L7 firewall rules
    network_id str
    networkId path parameter. Network ID
    rules Sequence[ApplianceFirewallL7FirewallRulesRuleArgs]
    An ordered array of the MX L7 firewall rules
    networkId String
    networkId path parameter. Network ID
    rules List<Property Map>
    An ordered array of the MX L7 firewall rules

    Supporting Types

    ApplianceFirewallL7FirewallRulesRule, ApplianceFirewallL7FirewallRulesRuleArgs

    Policy string
    'Deny' traffic specified by this rule
    Type string
    Type of the L7 rule. One of: 'application', 'applicationCategory', 'host', 'port', 'ipRange'
    Value string
    The 'value' of what you want to block. Format of 'value' varies depending on type of the rule. Send a string to request.
    ValueLists List<string>
    The 'value_list' of what you want to block. Send a lis of string in request.
    ValueObj ApplianceFirewallL7FirewallRulesRuleValueObj
    The 'value_obj' of what you want to block. Send a dict in request.
    Policy string
    'Deny' traffic specified by this rule
    Type string
    Type of the L7 rule. One of: 'application', 'applicationCategory', 'host', 'port', 'ipRange'
    Value string
    The 'value' of what you want to block. Format of 'value' varies depending on type of the rule. Send a string to request.
    ValueLists []string
    The 'value_list' of what you want to block. Send a lis of string in request.
    ValueObj ApplianceFirewallL7FirewallRulesRuleValueObj
    The 'value_obj' of what you want to block. Send a dict in request.
    policy String
    'Deny' traffic specified by this rule
    type String
    Type of the L7 rule. One of: 'application', 'applicationCategory', 'host', 'port', 'ipRange'
    value String
    The 'value' of what you want to block. Format of 'value' varies depending on type of the rule. Send a string to request.
    valueLists List<String>
    The 'value_list' of what you want to block. Send a lis of string in request.
    valueObj ApplianceFirewallL7FirewallRulesRuleValueObj
    The 'value_obj' of what you want to block. Send a dict in request.
    policy string
    'Deny' traffic specified by this rule
    type string
    Type of the L7 rule. One of: 'application', 'applicationCategory', 'host', 'port', 'ipRange'
    value string
    The 'value' of what you want to block. Format of 'value' varies depending on type of the rule. Send a string to request.
    valueLists string[]
    The 'value_list' of what you want to block. Send a lis of string in request.
    valueObj ApplianceFirewallL7FirewallRulesRuleValueObj
    The 'value_obj' of what you want to block. Send a dict in request.
    policy str
    'Deny' traffic specified by this rule
    type str
    Type of the L7 rule. One of: 'application', 'applicationCategory', 'host', 'port', 'ipRange'
    value str
    The 'value' of what you want to block. Format of 'value' varies depending on type of the rule. Send a string to request.
    value_lists Sequence[str]
    The 'value_list' of what you want to block. Send a lis of string in request.
    value_obj ApplianceFirewallL7FirewallRulesRuleValueObj
    The 'value_obj' of what you want to block. Send a dict in request.
    policy String
    'Deny' traffic specified by this rule
    type String
    Type of the L7 rule. One of: 'application', 'applicationCategory', 'host', 'port', 'ipRange'
    value String
    The 'value' of what you want to block. Format of 'value' varies depending on type of the rule. Send a string to request.
    valueLists List<String>
    The 'value_list' of what you want to block. Send a lis of string in request.
    valueObj Property Map
    The 'value_obj' of what you want to block. Send a dict in request.

    ApplianceFirewallL7FirewallRulesRuleValueObj, ApplianceFirewallL7FirewallRulesRuleValueObjArgs

    Id string
    Name string
    Id string
    Name string
    id String
    name String
    id string
    name string
    id str
    name str
    id String
    name String

    Import

    $ pulumi import meraki:networks/applianceFirewallL7FirewallRules:ApplianceFirewallL7FirewallRules example "network_id"
    

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

    Package Details

    Repository
    meraki pulumi/pulumi-meraki
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the meraki Terraform Provider.
    meraki logo
    Meraki v0.1.2 published on Tuesday, May 21, 2024 by Pulumi