1. Packages
  2. Cisco Catalyst SD-WAN
  3. API Docs
  4. getZoneBasedFirewallPolicyDefinition
Cisco Catalyst SD-WAN v0.1.3 published on Tuesday, Sep 24, 2024 by Pulumi

sdwan.getZoneBasedFirewallPolicyDefinition

Explore with Pulumi AI

sdwan logo
Cisco Catalyst SD-WAN v0.1.3 published on Tuesday, Sep 24, 2024 by Pulumi

    This data source can read the Zone Based Firewall Policy Definition .

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as sdwan from "@pulumi/sdwan";
    
    const example = sdwan.getZoneBasedFirewallPolicyDefinition({
        id: "f6b2c44c-693c-4763-b010-895aa3d236bd",
    });
    
    import pulumi
    import pulumi_sdwan as sdwan
    
    example = sdwan.get_zone_based_firewall_policy_definition(id="f6b2c44c-693c-4763-b010-895aa3d236bd")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-sdwan/sdk/go/sdwan"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := sdwan.LookupZoneBasedFirewallPolicyDefinition(ctx, &sdwan.LookupZoneBasedFirewallPolicyDefinitionArgs{
    			Id: "f6b2c44c-693c-4763-b010-895aa3d236bd",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Sdwan = Pulumi.Sdwan;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Sdwan.GetZoneBasedFirewallPolicyDefinition.Invoke(new()
        {
            Id = "f6b2c44c-693c-4763-b010-895aa3d236bd",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.sdwan.SdwanFunctions;
    import com.pulumi.sdwan.inputs.GetZoneBasedFirewallPolicyDefinitionArgs;
    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) {
            final var example = SdwanFunctions.getZoneBasedFirewallPolicyDefinition(GetZoneBasedFirewallPolicyDefinitionArgs.builder()
                .id("f6b2c44c-693c-4763-b010-895aa3d236bd")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          Function: sdwan:getZoneBasedFirewallPolicyDefinition
          Arguments:
            id: f6b2c44c-693c-4763-b010-895aa3d236bd
    

    Using getZoneBasedFirewallPolicyDefinition

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getZoneBasedFirewallPolicyDefinition(args: GetZoneBasedFirewallPolicyDefinitionArgs, opts?: InvokeOptions): Promise<GetZoneBasedFirewallPolicyDefinitionResult>
    function getZoneBasedFirewallPolicyDefinitionOutput(args: GetZoneBasedFirewallPolicyDefinitionOutputArgs, opts?: InvokeOptions): Output<GetZoneBasedFirewallPolicyDefinitionResult>
    def get_zone_based_firewall_policy_definition(id: Optional[str] = None,
                                                  opts: Optional[InvokeOptions] = None) -> GetZoneBasedFirewallPolicyDefinitionResult
    def get_zone_based_firewall_policy_definition_output(id: Optional[pulumi.Input[str]] = None,
                                                  opts: Optional[InvokeOptions] = None) -> Output[GetZoneBasedFirewallPolicyDefinitionResult]
    func LookupZoneBasedFirewallPolicyDefinition(ctx *Context, args *LookupZoneBasedFirewallPolicyDefinitionArgs, opts ...InvokeOption) (*LookupZoneBasedFirewallPolicyDefinitionResult, error)
    func LookupZoneBasedFirewallPolicyDefinitionOutput(ctx *Context, args *LookupZoneBasedFirewallPolicyDefinitionOutputArgs, opts ...InvokeOption) LookupZoneBasedFirewallPolicyDefinitionResultOutput

    > Note: This function is named LookupZoneBasedFirewallPolicyDefinition in the Go SDK.

    public static class GetZoneBasedFirewallPolicyDefinition 
    {
        public static Task<GetZoneBasedFirewallPolicyDefinitionResult> InvokeAsync(GetZoneBasedFirewallPolicyDefinitionArgs args, InvokeOptions? opts = null)
        public static Output<GetZoneBasedFirewallPolicyDefinitionResult> Invoke(GetZoneBasedFirewallPolicyDefinitionInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetZoneBasedFirewallPolicyDefinitionResult> getZoneBasedFirewallPolicyDefinition(GetZoneBasedFirewallPolicyDefinitionArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: sdwan:index/getZoneBasedFirewallPolicyDefinition:getZoneBasedFirewallPolicyDefinition
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    The id of the object
    Id string
    The id of the object
    id String
    The id of the object
    id string
    The id of the object
    id str
    The id of the object
    id String
    The id of the object

    getZoneBasedFirewallPolicyDefinition Result

    The following output properties are available:

    ApplyZonePairs List<GetZoneBasedFirewallPolicyDefinitionApplyZonePair>
    DefaultAction string
    Default Action
    Description string
    The description of the policy definition
    Id string
    The id of the object
    Mode string
    The policy mode
    Name string
    The name of the policy definition
    Rules List<GetZoneBasedFirewallPolicyDefinitionRule>
    Version int
    The version of the object
    ApplyZonePairs []GetZoneBasedFirewallPolicyDefinitionApplyZonePair
    DefaultAction string
    Default Action
    Description string
    The description of the policy definition
    Id string
    The id of the object
    Mode string
    The policy mode
    Name string
    The name of the policy definition
    Rules []GetZoneBasedFirewallPolicyDefinitionRule
    Version int
    The version of the object
    applyZonePairs List<GetZoneBasedFirewallPolicyDefinitionApplyZonePair>
    defaultAction String
    Default Action
    description String
    The description of the policy definition
    id String
    The id of the object
    mode String
    The policy mode
    name String
    The name of the policy definition
    rules List<GetZoneBasedFirewallPolicyDefinitionRule>
    version Integer
    The version of the object
    applyZonePairs GetZoneBasedFirewallPolicyDefinitionApplyZonePair[]
    defaultAction string
    Default Action
    description string
    The description of the policy definition
    id string
    The id of the object
    mode string
    The policy mode
    name string
    The name of the policy definition
    rules GetZoneBasedFirewallPolicyDefinitionRule[]
    version number
    The version of the object
    apply_zone_pairs Sequence[GetZoneBasedFirewallPolicyDefinitionApplyZonePair]
    default_action str
    Default Action
    description str
    The description of the policy definition
    id str
    The id of the object
    mode str
    The policy mode
    name str
    The name of the policy definition
    rules Sequence[GetZoneBasedFirewallPolicyDefinitionRule]
    version int
    The version of the object
    applyZonePairs List<Property Map>
    defaultAction String
    Default Action
    description String
    The description of the policy definition
    id String
    The id of the object
    mode String
    The policy mode
    name String
    The name of the policy definition
    rules List<Property Map>
    version Number
    The version of the object

    Supporting Types

    GetZoneBasedFirewallPolicyDefinitionApplyZonePair

    DestinationZone string
    Destination Zone
    SourceZone string
    Source Zone
    DestinationZone string
    Destination Zone
    SourceZone string
    Source Zone
    destinationZone String
    Destination Zone
    sourceZone String
    Source Zone
    destinationZone string
    Destination Zone
    sourceZone string
    Source Zone
    destination_zone str
    Destination Zone
    source_zone str
    Source Zone
    destinationZone String
    Destination Zone
    sourceZone String
    Source Zone

    GetZoneBasedFirewallPolicyDefinitionRule

    actionEntries List<Property Map>
    List of actions entries
    baseAction String
    Base action
    matchEntries List<Property Map>
    List of match entries
    ruleName String
    Rule name
    ruleOrder Number
    Rule

    GetZoneBasedFirewallPolicyDefinitionRuleActionEntry

    Type string
    Type of action entry
    Type string
    Type of action entry
    type String
    Type of action entry
    type string
    Type of action entry
    type str
    Type of action entry
    type String
    Type of action entry

    GetZoneBasedFirewallPolicyDefinitionRuleMatchEntry

    PolicyId string
    policy id for selected match entry
    ProtocolType string
    Should be included with additionally entries for destinationPort and protocol whenever the type protocolName is used.
    Type string
    Type of match entry
    Value string
    value for selected match entry
    ValueVariable string
    variable value for selected match entry if it has variable option (sourceIp & destinationIp)
    PolicyId string
    policy id for selected match entry
    ProtocolType string
    Should be included with additionally entries for destinationPort and protocol whenever the type protocolName is used.
    Type string
    Type of match entry
    Value string
    value for selected match entry
    ValueVariable string
    variable value for selected match entry if it has variable option (sourceIp & destinationIp)
    policyId String
    policy id for selected match entry
    protocolType String
    Should be included with additionally entries for destinationPort and protocol whenever the type protocolName is used.
    type String
    Type of match entry
    value String
    value for selected match entry
    valueVariable String
    variable value for selected match entry if it has variable option (sourceIp & destinationIp)
    policyId string
    policy id for selected match entry
    protocolType string
    Should be included with additionally entries for destinationPort and protocol whenever the type protocolName is used.
    type string
    Type of match entry
    value string
    value for selected match entry
    valueVariable string
    variable value for selected match entry if it has variable option (sourceIp & destinationIp)
    policy_id str
    policy id for selected match entry
    protocol_type str
    Should be included with additionally entries for destinationPort and protocol whenever the type protocolName is used.
    type str
    Type of match entry
    value str
    value for selected match entry
    value_variable str
    variable value for selected match entry if it has variable option (sourceIp & destinationIp)
    policyId String
    policy id for selected match entry
    protocolType String
    Should be included with additionally entries for destinationPort and protocol whenever the type protocolName is used.
    type String
    Type of match entry
    value String
    value for selected match entry
    valueVariable String
    variable value for selected match entry if it has variable option (sourceIp & destinationIp)

    Package Details

    Repository
    sdwan pulumi/pulumi-sdwan
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the sdwan Terraform Provider.
    sdwan logo
    Cisco Catalyst SD-WAN v0.1.3 published on Tuesday, Sep 24, 2024 by Pulumi