vcd.NsxvDistributedFirewall
Explore with Pulumi AI
Create NsxvDistributedFirewall Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new NsxvDistributedFirewall(name: string, args: NsxvDistributedFirewallArgs, opts?: CustomResourceOptions);
@overload
def NsxvDistributedFirewall(resource_name: str,
args: NsxvDistributedFirewallArgs,
opts: Optional[ResourceOptions] = None)
@overload
def NsxvDistributedFirewall(resource_name: str,
opts: Optional[ResourceOptions] = None,
vdc_id: Optional[str] = None,
nsxv_distributed_firewall_id: Optional[str] = None,
rules: Optional[Sequence[NsxvDistributedFirewallRuleArgs]] = None)
func NewNsxvDistributedFirewall(ctx *Context, name string, args NsxvDistributedFirewallArgs, opts ...ResourceOption) (*NsxvDistributedFirewall, error)
public NsxvDistributedFirewall(string name, NsxvDistributedFirewallArgs args, CustomResourceOptions? opts = null)
public NsxvDistributedFirewall(String name, NsxvDistributedFirewallArgs args)
public NsxvDistributedFirewall(String name, NsxvDistributedFirewallArgs args, CustomResourceOptions options)
type: vcd:NsxvDistributedFirewall
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 NsxvDistributedFirewallArgs
- 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 NsxvDistributedFirewallArgs
- 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 NsxvDistributedFirewallArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args NsxvDistributedFirewallArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args NsxvDistributedFirewallArgs
- 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 nsxvDistributedFirewallResource = new Vcd.NsxvDistributedFirewall("nsxvDistributedFirewallResource", new()
{
VdcId = "string",
NsxvDistributedFirewallId = "string",
Rules = new[]
{
new Vcd.Inputs.NsxvDistributedFirewallRuleArgs
{
Direction = "string",
Action = "string",
AppliedTos = new[]
{
new Vcd.Inputs.NsxvDistributedFirewallRuleAppliedToArgs
{
Name = "string",
Type = "string",
Value = "string",
},
},
ExcludeDestination = false,
Destinations = new[]
{
new Vcd.Inputs.NsxvDistributedFirewallRuleDestinationArgs
{
Name = "string",
Type = "string",
Value = "string",
},
},
Enabled = false,
Applications = new[]
{
new Vcd.Inputs.NsxvDistributedFirewallRuleApplicationArgs
{
DestinationPort = "string",
Name = "string",
Protocol = "string",
SourcePort = "string",
Type = "string",
Value = "string",
},
},
ExcludeSource = false,
Id = 0,
Logged = false,
Name = "string",
PacketType = "string",
Sources = new[]
{
new Vcd.Inputs.NsxvDistributedFirewallRuleSourceArgs
{
Name = "string",
Type = "string",
Value = "string",
},
},
},
},
});
example, err := vcd.NewNsxvDistributedFirewall(ctx, "nsxvDistributedFirewallResource", &vcd.NsxvDistributedFirewallArgs{
VdcId: pulumi.String("string"),
NsxvDistributedFirewallId: pulumi.String("string"),
Rules: vcd.NsxvDistributedFirewallRuleArray{
&vcd.NsxvDistributedFirewallRuleArgs{
Direction: pulumi.String("string"),
Action: pulumi.String("string"),
AppliedTos: vcd.NsxvDistributedFirewallRuleAppliedToArray{
&vcd.NsxvDistributedFirewallRuleAppliedToArgs{
Name: pulumi.String("string"),
Type: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
ExcludeDestination: pulumi.Bool(false),
Destinations: vcd.NsxvDistributedFirewallRuleDestinationArray{
&vcd.NsxvDistributedFirewallRuleDestinationArgs{
Name: pulumi.String("string"),
Type: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
Enabled: pulumi.Bool(false),
Applications: vcd.NsxvDistributedFirewallRuleApplicationArray{
&vcd.NsxvDistributedFirewallRuleApplicationArgs{
DestinationPort: pulumi.String("string"),
Name: pulumi.String("string"),
Protocol: pulumi.String("string"),
SourcePort: pulumi.String("string"),
Type: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
ExcludeSource: pulumi.Bool(false),
Id: pulumi.Float64(0),
Logged: pulumi.Bool(false),
Name: pulumi.String("string"),
PacketType: pulumi.String("string"),
Sources: vcd.NsxvDistributedFirewallRuleSourceArray{
&vcd.NsxvDistributedFirewallRuleSourceArgs{
Name: pulumi.String("string"),
Type: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
},
},
})
var nsxvDistributedFirewallResource = new NsxvDistributedFirewall("nsxvDistributedFirewallResource", NsxvDistributedFirewallArgs.builder()
.vdcId("string")
.nsxvDistributedFirewallId("string")
.rules(NsxvDistributedFirewallRuleArgs.builder()
.direction("string")
.action("string")
.appliedTos(NsxvDistributedFirewallRuleAppliedToArgs.builder()
.name("string")
.type("string")
.value("string")
.build())
.excludeDestination(false)
.destinations(NsxvDistributedFirewallRuleDestinationArgs.builder()
.name("string")
.type("string")
.value("string")
.build())
.enabled(false)
.applications(NsxvDistributedFirewallRuleApplicationArgs.builder()
.destinationPort("string")
.name("string")
.protocol("string")
.sourcePort("string")
.type("string")
.value("string")
.build())
.excludeSource(false)
.id(0)
.logged(false)
.name("string")
.packetType("string")
.sources(NsxvDistributedFirewallRuleSourceArgs.builder()
.name("string")
.type("string")
.value("string")
.build())
.build())
.build());
nsxv_distributed_firewall_resource = vcd.NsxvDistributedFirewall("nsxvDistributedFirewallResource",
vdc_id="string",
nsxv_distributed_firewall_id="string",
rules=[{
"direction": "string",
"action": "string",
"applied_tos": [{
"name": "string",
"type": "string",
"value": "string",
}],
"exclude_destination": False,
"destinations": [{
"name": "string",
"type": "string",
"value": "string",
}],
"enabled": False,
"applications": [{
"destination_port": "string",
"name": "string",
"protocol": "string",
"source_port": "string",
"type": "string",
"value": "string",
}],
"exclude_source": False,
"id": 0,
"logged": False,
"name": "string",
"packet_type": "string",
"sources": [{
"name": "string",
"type": "string",
"value": "string",
}],
}])
const nsxvDistributedFirewallResource = new vcd.NsxvDistributedFirewall("nsxvDistributedFirewallResource", {
vdcId: "string",
nsxvDistributedFirewallId: "string",
rules: [{
direction: "string",
action: "string",
appliedTos: [{
name: "string",
type: "string",
value: "string",
}],
excludeDestination: false,
destinations: [{
name: "string",
type: "string",
value: "string",
}],
enabled: false,
applications: [{
destinationPort: "string",
name: "string",
protocol: "string",
sourcePort: "string",
type: "string",
value: "string",
}],
excludeSource: false,
id: 0,
logged: false,
name: "string",
packetType: "string",
sources: [{
name: "string",
type: "string",
value: "string",
}],
}],
});
type: vcd:NsxvDistributedFirewall
properties:
nsxvDistributedFirewallId: string
rules:
- action: string
applications:
- destinationPort: string
name: string
protocol: string
sourcePort: string
type: string
value: string
appliedTos:
- name: string
type: string
value: string
destinations:
- name: string
type: string
value: string
direction: string
enabled: false
excludeDestination: false
excludeSource: false
id: 0
logged: false
name: string
packetType: string
sources:
- name: string
type: string
value: string
vdcId: string
NsxvDistributedFirewall 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 NsxvDistributedFirewall resource accepts the following input properties:
- Vdc
Id string - The ID of VDC to manage the Distributed Firewall in. Can be looked up using a
vcd.OrgVdc
data source - Nsxv
Distributed stringFirewall Id - Rules
List<Nsxv
Distributed Firewall Rule> - One or more blocks with Firewall Rule definitions. Order defines firewall rule precedence. If no rules are defined, all will be removed from the firewall
- Vdc
Id string - The ID of VDC to manage the Distributed Firewall in. Can be looked up using a
vcd.OrgVdc
data source - Nsxv
Distributed stringFirewall Id - Rules
[]Nsxv
Distributed Firewall Rule Args - One or more blocks with Firewall Rule definitions. Order defines firewall rule precedence. If no rules are defined, all will be removed from the firewall
- vdc
Id String - The ID of VDC to manage the Distributed Firewall in. Can be looked up using a
vcd.OrgVdc
data source - nsxv
Distributed StringFirewall Id - rules
List<Nsxv
Distributed Firewall Rule> - One or more blocks with Firewall Rule definitions. Order defines firewall rule precedence. If no rules are defined, all will be removed from the firewall
- vdc
Id string - The ID of VDC to manage the Distributed Firewall in. Can be looked up using a
vcd.OrgVdc
data source - nsxv
Distributed stringFirewall Id - rules
Nsxv
Distributed Firewall Rule[] - One or more blocks with Firewall Rule definitions. Order defines firewall rule precedence. If no rules are defined, all will be removed from the firewall
- vdc_
id str - The ID of VDC to manage the Distributed Firewall in. Can be looked up using a
vcd.OrgVdc
data source - nsxv_
distributed_ strfirewall_ id - rules
Sequence[Nsxv
Distributed Firewall Rule Args] - One or more blocks with Firewall Rule definitions. Order defines firewall rule precedence. If no rules are defined, all will be removed from the firewall
- vdc
Id String - The ID of VDC to manage the Distributed Firewall in. Can be looked up using a
vcd.OrgVdc
data source - nsxv
Distributed StringFirewall Id - rules List<Property Map>
- One or more blocks with Firewall Rule definitions. Order defines firewall rule precedence. If no rules are defined, all will be removed from the firewall
Outputs
All input properties are implicitly available as output properties. Additionally, the NsxvDistributedFirewall resource produces the following output properties:
Look up Existing NsxvDistributedFirewall Resource
Get an existing NsxvDistributedFirewall 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?: NsxvDistributedFirewallState, opts?: CustomResourceOptions): NsxvDistributedFirewall
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
enabled: Optional[bool] = None,
nsxv_distributed_firewall_id: Optional[str] = None,
rules: Optional[Sequence[NsxvDistributedFirewallRuleArgs]] = None,
vdc_id: Optional[str] = None) -> NsxvDistributedFirewall
func GetNsxvDistributedFirewall(ctx *Context, name string, id IDInput, state *NsxvDistributedFirewallState, opts ...ResourceOption) (*NsxvDistributedFirewall, error)
public static NsxvDistributedFirewall Get(string name, Input<string> id, NsxvDistributedFirewallState? state, CustomResourceOptions? opts = null)
public static NsxvDistributedFirewall get(String name, Output<String> id, NsxvDistributedFirewallState state, CustomResourceOptions options)
resources: _: type: vcd:NsxvDistributedFirewall 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.
- Enabled bool
- Shows whether the NSX-V Distributed Firewall is enabled.
- Nsxv
Distributed stringFirewall Id - Rules
List<Nsxv
Distributed Firewall Rule> - One or more blocks with Firewall Rule definitions. Order defines firewall rule precedence. If no rules are defined, all will be removed from the firewall
- Vdc
Id string - The ID of VDC to manage the Distributed Firewall in. Can be looked up using a
vcd.OrgVdc
data source
- Enabled bool
- Shows whether the NSX-V Distributed Firewall is enabled.
- Nsxv
Distributed stringFirewall Id - Rules
[]Nsxv
Distributed Firewall Rule Args - One or more blocks with Firewall Rule definitions. Order defines firewall rule precedence. If no rules are defined, all will be removed from the firewall
- Vdc
Id string - The ID of VDC to manage the Distributed Firewall in. Can be looked up using a
vcd.OrgVdc
data source
- enabled Boolean
- Shows whether the NSX-V Distributed Firewall is enabled.
- nsxv
Distributed StringFirewall Id - rules
List<Nsxv
Distributed Firewall Rule> - One or more blocks with Firewall Rule definitions. Order defines firewall rule precedence. If no rules are defined, all will be removed from the firewall
- vdc
Id String - The ID of VDC to manage the Distributed Firewall in. Can be looked up using a
vcd.OrgVdc
data source
- enabled boolean
- Shows whether the NSX-V Distributed Firewall is enabled.
- nsxv
Distributed stringFirewall Id - rules
Nsxv
Distributed Firewall Rule[] - One or more blocks with Firewall Rule definitions. Order defines firewall rule precedence. If no rules are defined, all will be removed from the firewall
- vdc
Id string - The ID of VDC to manage the Distributed Firewall in. Can be looked up using a
vcd.OrgVdc
data source
- enabled bool
- Shows whether the NSX-V Distributed Firewall is enabled.
- nsxv_
distributed_ strfirewall_ id - rules
Sequence[Nsxv
Distributed Firewall Rule Args] - One or more blocks with Firewall Rule definitions. Order defines firewall rule precedence. If no rules are defined, all will be removed from the firewall
- vdc_
id str - The ID of VDC to manage the Distributed Firewall in. Can be looked up using a
vcd.OrgVdc
data source
- enabled Boolean
- Shows whether the NSX-V Distributed Firewall is enabled.
- nsxv
Distributed StringFirewall Id - rules List<Property Map>
- One or more blocks with Firewall Rule definitions. Order defines firewall rule precedence. If no rules are defined, all will be removed from the firewall
- vdc
Id String - The ID of VDC to manage the Distributed Firewall in. Can be looked up using a
vcd.OrgVdc
data source
Supporting Types
NsxvDistributedFirewallRule, NsxvDistributedFirewallRuleArgs
- Action string
- Action of the rule (allow, deny)
- Applied
Tos List<NsxvDistributed Firewall Rule Applied To> - List of elements to which this rule applies
- Direction string
- Direction of the rule (in, out, inout)
- Applications
List<Nsxv
Distributed Firewall Rule Application> - Application definitions for this rule. An empty value means 'any'
- Destinations
List<Nsxv
Distributed Firewall Rule Destination> - List of destination traffic for this rule. An empty value means 'any'
- Enabled bool
- Shows whether the NSX-V Distributed Firewall is enabled.
- Exclude
Destination bool - If true, the content of the destination elements is reversed
- Exclude
Source bool - If true, the content of the source elements is reversed
- Id double
- Firewall Rule ID
- Logged bool
- Whether the rule traffic is logged
- Name string
- Firewall Rule name
- Packet
Type string - Packet type of the rule (any, ipv4, ipv6)
- Sources
List<Nsxv
Distributed Firewall Rule Source> - List of source traffic for this rule. An empty value means 'any'
- Action string
- Action of the rule (allow, deny)
- Applied
Tos []NsxvDistributed Firewall Rule Applied To - List of elements to which this rule applies
- Direction string
- Direction of the rule (in, out, inout)
- Applications
[]Nsxv
Distributed Firewall Rule Application - Application definitions for this rule. An empty value means 'any'
- Destinations
[]Nsxv
Distributed Firewall Rule Destination - List of destination traffic for this rule. An empty value means 'any'
- Enabled bool
- Shows whether the NSX-V Distributed Firewall is enabled.
- Exclude
Destination bool - If true, the content of the destination elements is reversed
- Exclude
Source bool - If true, the content of the source elements is reversed
- Id float64
- Firewall Rule ID
- Logged bool
- Whether the rule traffic is logged
- Name string
- Firewall Rule name
- Packet
Type string - Packet type of the rule (any, ipv4, ipv6)
- Sources
[]Nsxv
Distributed Firewall Rule Source - List of source traffic for this rule. An empty value means 'any'
- action String
- Action of the rule (allow, deny)
- applied
Tos List<NsxvDistributed Firewall Rule Applied To> - List of elements to which this rule applies
- direction String
- Direction of the rule (in, out, inout)
- applications
List<Nsxv
Distributed Firewall Rule Application> - Application definitions for this rule. An empty value means 'any'
- destinations
List<Nsxv
Distributed Firewall Rule Destination> - List of destination traffic for this rule. An empty value means 'any'
- enabled Boolean
- Shows whether the NSX-V Distributed Firewall is enabled.
- exclude
Destination Boolean - If true, the content of the destination elements is reversed
- exclude
Source Boolean - If true, the content of the source elements is reversed
- id Double
- Firewall Rule ID
- logged Boolean
- Whether the rule traffic is logged
- name String
- Firewall Rule name
- packet
Type String - Packet type of the rule (any, ipv4, ipv6)
- sources
List<Nsxv
Distributed Firewall Rule Source> - List of source traffic for this rule. An empty value means 'any'
- action string
- Action of the rule (allow, deny)
- applied
Tos NsxvDistributed Firewall Rule Applied To[] - List of elements to which this rule applies
- direction string
- Direction of the rule (in, out, inout)
- applications
Nsxv
Distributed Firewall Rule Application[] - Application definitions for this rule. An empty value means 'any'
- destinations
Nsxv
Distributed Firewall Rule Destination[] - List of destination traffic for this rule. An empty value means 'any'
- enabled boolean
- Shows whether the NSX-V Distributed Firewall is enabled.
- exclude
Destination boolean - If true, the content of the destination elements is reversed
- exclude
Source boolean - If true, the content of the source elements is reversed
- id number
- Firewall Rule ID
- logged boolean
- Whether the rule traffic is logged
- name string
- Firewall Rule name
- packet
Type string - Packet type of the rule (any, ipv4, ipv6)
- sources
Nsxv
Distributed Firewall Rule Source[] - List of source traffic for this rule. An empty value means 'any'
- action str
- Action of the rule (allow, deny)
- applied_
tos Sequence[NsxvDistributed Firewall Rule Applied To] - List of elements to which this rule applies
- direction str
- Direction of the rule (in, out, inout)
- applications
Sequence[Nsxv
Distributed Firewall Rule Application] - Application definitions for this rule. An empty value means 'any'
- destinations
Sequence[Nsxv
Distributed Firewall Rule Destination] - List of destination traffic for this rule. An empty value means 'any'
- enabled bool
- Shows whether the NSX-V Distributed Firewall is enabled.
- exclude_
destination bool - If true, the content of the destination elements is reversed
- exclude_
source bool - If true, the content of the source elements is reversed
- id float
- Firewall Rule ID
- logged bool
- Whether the rule traffic is logged
- name str
- Firewall Rule name
- packet_
type str - Packet type of the rule (any, ipv4, ipv6)
- sources
Sequence[Nsxv
Distributed Firewall Rule Source] - List of source traffic for this rule. An empty value means 'any'
- action String
- Action of the rule (allow, deny)
- applied
Tos List<Property Map> - List of elements to which this rule applies
- direction String
- Direction of the rule (in, out, inout)
- applications List<Property Map>
- Application definitions for this rule. An empty value means 'any'
- destinations List<Property Map>
- List of destination traffic for this rule. An empty value means 'any'
- enabled Boolean
- Shows whether the NSX-V Distributed Firewall is enabled.
- exclude
Destination Boolean - If true, the content of the destination elements is reversed
- exclude
Source Boolean - If true, the content of the source elements is reversed
- id Number
- Firewall Rule ID
- logged Boolean
- Whether the rule traffic is logged
- name String
- Firewall Rule name
- packet
Type String - Packet type of the rule (any, ipv4, ipv6)
- sources List<Property Map>
- List of source traffic for this rule. An empty value means 'any'
NsxvDistributedFirewallRuleApplication, NsxvDistributedFirewallRuleApplicationArgs
- Destination
Port string - Destination port for this application. Leaving it empty means 'any' port
- Name string
- Name of application (Application, ApplicationGroup)
- Protocol string
- Protocol of the application (one of TCP, UDP, ICMP) (When not using name/value)
- Source
Port string - Source port for this application. Leaving it empty means 'any' port
- Type string
- Type of application
- Value string
- Value of the application
- Destination
Port string - Destination port for this application. Leaving it empty means 'any' port
- Name string
- Name of application (Application, ApplicationGroup)
- Protocol string
- Protocol of the application (one of TCP, UDP, ICMP) (When not using name/value)
- Source
Port string - Source port for this application. Leaving it empty means 'any' port
- Type string
- Type of application
- Value string
- Value of the application
- destination
Port String - Destination port for this application. Leaving it empty means 'any' port
- name String
- Name of application (Application, ApplicationGroup)
- protocol String
- Protocol of the application (one of TCP, UDP, ICMP) (When not using name/value)
- source
Port String - Source port for this application. Leaving it empty means 'any' port
- type String
- Type of application
- value String
- Value of the application
- destination
Port string - Destination port for this application. Leaving it empty means 'any' port
- name string
- Name of application (Application, ApplicationGroup)
- protocol string
- Protocol of the application (one of TCP, UDP, ICMP) (When not using name/value)
- source
Port string - Source port for this application. Leaving it empty means 'any' port
- type string
- Type of application
- value string
- Value of the application
- destination_
port str - Destination port for this application. Leaving it empty means 'any' port
- name str
- Name of application (Application, ApplicationGroup)
- protocol str
- Protocol of the application (one of TCP, UDP, ICMP) (When not using name/value)
- source_
port str - Source port for this application. Leaving it empty means 'any' port
- type str
- Type of application
- value str
- Value of the application
- destination
Port String - Destination port for this application. Leaving it empty means 'any' port
- name String
- Name of application (Application, ApplicationGroup)
- protocol String
- Protocol of the application (one of TCP, UDP, ICMP) (When not using name/value)
- source
Port String - Source port for this application. Leaving it empty means 'any' port
- type String
- Type of application
- value String
- Value of the application
NsxvDistributedFirewallRuleAppliedTo, NsxvDistributedFirewallRuleAppliedToArgs
NsxvDistributedFirewallRuleDestination, NsxvDistributedFirewallRuleDestinationArgs
NsxvDistributedFirewallRuleSource, NsxvDistributedFirewallRuleSourceArgs
Package Details
- Repository
- vcd vmware/terraform-provider-vcd
- License
- Notes
- This Pulumi package is based on the
vcd
Terraform Provider.