Cisco Catalyst SD-WAN v0.2.0 published on Friday, Nov 1, 2024 by Pulumi
sdwan.getZoneBasedFirewallPolicyDefinition
Explore with Pulumi AI
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:
- Apply
Zone List<GetPairs Zone Based Firewall Policy Definition Apply Zone Pair> - Default
Action 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<Get
Zone Based Firewall Policy Definition Rule> - Version int
- The version of the object
- Apply
Zone []GetPairs Zone Based Firewall Policy Definition Apply Zone Pair - Default
Action 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
[]Get
Zone Based Firewall Policy Definition Rule - Version int
- The version of the object
- apply
Zone List<GetPairs Zone Based Firewall Policy Definition Apply Zone Pair> - default
Action 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<Get
Zone Based Firewall Policy Definition Rule> - version Integer
- The version of the object
- apply
Zone GetPairs Zone Based Firewall Policy Definition Apply Zone Pair[] - default
Action 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
Get
Zone Based Firewall Policy Definition Rule[] - version number
- The version of the object
- apply_
zone_ Sequence[Getpairs Zone Based Firewall Policy Definition Apply Zone Pair] - 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[Get
Zone Based Firewall Policy Definition Rule] - version int
- The version of the object
- apply
Zone List<Property Map>Pairs - default
Action 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
- Destination
Zone string - Destination Zone
- Source
Zone string - Source Zone
- Destination
Zone string - Destination Zone
- Source
Zone string - Source Zone
- destination
Zone String - Destination Zone
- source
Zone String - Source Zone
- destination
Zone string - Destination Zone
- source
Zone string - Source Zone
- destination_
zone str - Destination Zone
- source_
zone str - Source Zone
- destination
Zone String - Destination Zone
- source
Zone String - Source Zone
GetZoneBasedFirewallPolicyDefinitionRule
- Action
Entries List<GetZone Based Firewall Policy Definition Rule Action Entry> - List of actions entries
- Base
Action string - Base action
- Match
Entries List<GetZone Based Firewall Policy Definition Rule Match Entry> - List of match entries
- Rule
Name string - Rule name
- Rule
Order int - Rule
- Action
Entries []GetZone Based Firewall Policy Definition Rule Action Entry - List of actions entries
- Base
Action string - Base action
- Match
Entries []GetZone Based Firewall Policy Definition Rule Match Entry - List of match entries
- Rule
Name string - Rule name
- Rule
Order int - Rule
- action
Entries List<GetZone Based Firewall Policy Definition Rule Action Entry> - List of actions entries
- base
Action String - Base action
- match
Entries List<GetZone Based Firewall Policy Definition Rule Match Entry> - List of match entries
- rule
Name String - Rule name
- rule
Order Integer - Rule
- action
Entries GetZone Based Firewall Policy Definition Rule Action Entry[] - List of actions entries
- base
Action string - Base action
- match
Entries GetZone Based Firewall Policy Definition Rule Match Entry[] - List of match entries
- rule
Name string - Rule name
- rule
Order number - Rule
- action_
entries Sequence[GetZone Based Firewall Policy Definition Rule Action Entry] - List of actions entries
- base_
action str - Base action
- match_
entries Sequence[GetZone Based Firewall Policy Definition Rule Match Entry] - List of match entries
- rule_
name str - Rule name
- rule_
order int - Rule
- action
Entries List<Property Map> - List of actions entries
- base
Action String - Base action
- match
Entries List<Property Map> - List of match entries
- rule
Name String - Rule name
- rule
Order 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
- Policy
Id string - policy id for selected match entry
- Protocol
Type string - Should be included with additionally entries for
destinationPort
andprotocol
whenever the typeprotocolName
is used. - Type string
- Type of match entry
- Value string
- value for selected match entry
- Value
Variable string - variable value for selected match entry if it has variable option (sourceIp & destinationIp)
- Policy
Id string - policy id for selected match entry
- Protocol
Type string - Should be included with additionally entries for
destinationPort
andprotocol
whenever the typeprotocolName
is used. - Type string
- Type of match entry
- Value string
- value for selected match entry
- Value
Variable string - variable value for selected match entry if it has variable option (sourceIp & destinationIp)
- policy
Id String - policy id for selected match entry
- protocol
Type String - Should be included with additionally entries for
destinationPort
andprotocol
whenever the typeprotocolName
is used. - type String
- Type of match entry
- value String
- value for selected match entry
- value
Variable String - variable value for selected match entry if it has variable option (sourceIp & destinationIp)
- policy
Id string - policy id for selected match entry
- protocol
Type string - Should be included with additionally entries for
destinationPort
andprotocol
whenever the typeprotocolName
is used. - type string
- Type of match entry
- value string
- value for selected match entry
- value
Variable 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
andprotocol
whenever the typeprotocolName
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)
- policy
Id String - policy id for selected match entry
- protocol
Type String - Should be included with additionally entries for
destinationPort
andprotocol
whenever the typeprotocolName
is used. - type String
- Type of match entry
- value String
- value for selected match entry
- value
Variable 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.