nsxt.SwitchSecuritySwitchingProfile
Explore with Pulumi AI
Create SwitchSecuritySwitchingProfile Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SwitchSecuritySwitchingProfile(name: string, args?: SwitchSecuritySwitchingProfileArgs, opts?: CustomResourceOptions);
@overload
def SwitchSecuritySwitchingProfile(resource_name: str,
args: Optional[SwitchSecuritySwitchingProfileArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def SwitchSecuritySwitchingProfile(resource_name: str,
opts: Optional[ResourceOptions] = None,
block_client_dhcp: Optional[bool] = None,
block_non_ip: Optional[bool] = None,
block_server_dhcp: Optional[bool] = None,
bpdu_filter_enabled: Optional[bool] = None,
bpdu_filter_whitelists: Optional[Sequence[str]] = None,
description: Optional[str] = None,
display_name: Optional[str] = None,
rate_limits: Optional[SwitchSecuritySwitchingProfileRateLimitsArgs] = None,
switch_security_switching_profile_id: Optional[str] = None,
tags: Optional[Sequence[SwitchSecuritySwitchingProfileTagArgs]] = None)
func NewSwitchSecuritySwitchingProfile(ctx *Context, name string, args *SwitchSecuritySwitchingProfileArgs, opts ...ResourceOption) (*SwitchSecuritySwitchingProfile, error)
public SwitchSecuritySwitchingProfile(string name, SwitchSecuritySwitchingProfileArgs? args = null, CustomResourceOptions? opts = null)
public SwitchSecuritySwitchingProfile(String name, SwitchSecuritySwitchingProfileArgs args)
public SwitchSecuritySwitchingProfile(String name, SwitchSecuritySwitchingProfileArgs args, CustomResourceOptions options)
type: nsxt:SwitchSecuritySwitchingProfile
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 SwitchSecuritySwitchingProfileArgs
- 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 SwitchSecuritySwitchingProfileArgs
- 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 SwitchSecuritySwitchingProfileArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SwitchSecuritySwitchingProfileArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SwitchSecuritySwitchingProfileArgs
- 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 switchSecuritySwitchingProfileResource = new Nsxt.SwitchSecuritySwitchingProfile("switchSecuritySwitchingProfileResource", new()
{
BlockClientDhcp = false,
BlockNonIp = false,
BlockServerDhcp = false,
BpduFilterEnabled = false,
BpduFilterWhitelists = new[]
{
"string",
},
Description = "string",
DisplayName = "string",
RateLimits = new Nsxt.Inputs.SwitchSecuritySwitchingProfileRateLimitsArgs
{
Enabled = false,
RxBroadcast = 0,
RxMulticast = 0,
TxBroadcast = 0,
TxMulticast = 0,
},
SwitchSecuritySwitchingProfileId = "string",
Tags = new[]
{
new Nsxt.Inputs.SwitchSecuritySwitchingProfileTagArgs
{
Scope = "string",
Tag = "string",
},
},
});
example, err := nsxt.NewSwitchSecuritySwitchingProfile(ctx, "switchSecuritySwitchingProfileResource", &nsxt.SwitchSecuritySwitchingProfileArgs{
BlockClientDhcp: pulumi.Bool(false),
BlockNonIp: pulumi.Bool(false),
BlockServerDhcp: pulumi.Bool(false),
BpduFilterEnabled: pulumi.Bool(false),
BpduFilterWhitelists: pulumi.StringArray{
pulumi.String("string"),
},
Description: pulumi.String("string"),
DisplayName: pulumi.String("string"),
RateLimits: &nsxt.SwitchSecuritySwitchingProfileRateLimitsArgs{
Enabled: pulumi.Bool(false),
RxBroadcast: pulumi.Float64(0),
RxMulticast: pulumi.Float64(0),
TxBroadcast: pulumi.Float64(0),
TxMulticast: pulumi.Float64(0),
},
SwitchSecuritySwitchingProfileId: pulumi.String("string"),
Tags: nsxt.SwitchSecuritySwitchingProfileTagArray{
&nsxt.SwitchSecuritySwitchingProfileTagArgs{
Scope: pulumi.String("string"),
Tag: pulumi.String("string"),
},
},
})
var switchSecuritySwitchingProfileResource = new SwitchSecuritySwitchingProfile("switchSecuritySwitchingProfileResource", SwitchSecuritySwitchingProfileArgs.builder()
.blockClientDhcp(false)
.blockNonIp(false)
.blockServerDhcp(false)
.bpduFilterEnabled(false)
.bpduFilterWhitelists("string")
.description("string")
.displayName("string")
.rateLimits(SwitchSecuritySwitchingProfileRateLimitsArgs.builder()
.enabled(false)
.rxBroadcast(0)
.rxMulticast(0)
.txBroadcast(0)
.txMulticast(0)
.build())
.switchSecuritySwitchingProfileId("string")
.tags(SwitchSecuritySwitchingProfileTagArgs.builder()
.scope("string")
.tag("string")
.build())
.build());
switch_security_switching_profile_resource = nsxt.SwitchSecuritySwitchingProfile("switchSecuritySwitchingProfileResource",
block_client_dhcp=False,
block_non_ip=False,
block_server_dhcp=False,
bpdu_filter_enabled=False,
bpdu_filter_whitelists=["string"],
description="string",
display_name="string",
rate_limits={
"enabled": False,
"rx_broadcast": 0,
"rx_multicast": 0,
"tx_broadcast": 0,
"tx_multicast": 0,
},
switch_security_switching_profile_id="string",
tags=[{
"scope": "string",
"tag": "string",
}])
const switchSecuritySwitchingProfileResource = new nsxt.SwitchSecuritySwitchingProfile("switchSecuritySwitchingProfileResource", {
blockClientDhcp: false,
blockNonIp: false,
blockServerDhcp: false,
bpduFilterEnabled: false,
bpduFilterWhitelists: ["string"],
description: "string",
displayName: "string",
rateLimits: {
enabled: false,
rxBroadcast: 0,
rxMulticast: 0,
txBroadcast: 0,
txMulticast: 0,
},
switchSecuritySwitchingProfileId: "string",
tags: [{
scope: "string",
tag: "string",
}],
});
type: nsxt:SwitchSecuritySwitchingProfile
properties:
blockClientDhcp: false
blockNonIp: false
blockServerDhcp: false
bpduFilterEnabled: false
bpduFilterWhitelists:
- string
description: string
displayName: string
rateLimits:
enabled: false
rxBroadcast: 0
rxMulticast: 0
txBroadcast: 0
txMulticast: 0
switchSecuritySwitchingProfileId: string
tags:
- scope: string
tag: string
SwitchSecuritySwitchingProfile 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 SwitchSecuritySwitchingProfile resource accepts the following input properties:
- Block
Client boolDhcp - Indicates whether DHCP client blocking is enabled
- Block
Non boolIp - Indicates whether blocking of all traffic except IP/(G)ARP/BPDU is enabled.
- Block
Server boolDhcp - Indicates whether DHCP server blocking is enabled
- Bpdu
Filter boolEnabled - Indicates whether BPDU filter is enabled
- Bpdu
Filter List<string>Whitelists - Set of allowed MAC addresses to be excluded from BPDU filtering, if enabled.
- Description string
- Description of this resource.
- Display
Name string - The display name of this resource. Defaults to ID if not set.
- Rate
Limits SwitchSecurity Switching Profile Rate Limits - Rate limit definitions for broadcast and multicast traffic.
- Switch
Security stringSwitching Profile Id - ID of the switch security switching profile.
- List<Switch
Security Switching Profile Tag> - A list of scope + tag pairs to associate with this qos switching profile.
- Block
Client boolDhcp - Indicates whether DHCP client blocking is enabled
- Block
Non boolIp - Indicates whether blocking of all traffic except IP/(G)ARP/BPDU is enabled.
- Block
Server boolDhcp - Indicates whether DHCP server blocking is enabled
- Bpdu
Filter boolEnabled - Indicates whether BPDU filter is enabled
- Bpdu
Filter []stringWhitelists - Set of allowed MAC addresses to be excluded from BPDU filtering, if enabled.
- Description string
- Description of this resource.
- Display
Name string - The display name of this resource. Defaults to ID if not set.
- Rate
Limits SwitchSecurity Switching Profile Rate Limits Args - Rate limit definitions for broadcast and multicast traffic.
- Switch
Security stringSwitching Profile Id - ID of the switch security switching profile.
- []Switch
Security Switching Profile Tag Args - A list of scope + tag pairs to associate with this qos switching profile.
- block
Client BooleanDhcp - Indicates whether DHCP client blocking is enabled
- block
Non BooleanIp - Indicates whether blocking of all traffic except IP/(G)ARP/BPDU is enabled.
- block
Server BooleanDhcp - Indicates whether DHCP server blocking is enabled
- bpdu
Filter BooleanEnabled - Indicates whether BPDU filter is enabled
- bpdu
Filter List<String>Whitelists - Set of allowed MAC addresses to be excluded from BPDU filtering, if enabled.
- description String
- Description of this resource.
- display
Name String - The display name of this resource. Defaults to ID if not set.
- rate
Limits SwitchSecurity Switching Profile Rate Limits - Rate limit definitions for broadcast and multicast traffic.
- switch
Security StringSwitching Profile Id - ID of the switch security switching profile.
- List<Switch
Security Switching Profile Tag> - A list of scope + tag pairs to associate with this qos switching profile.
- block
Client booleanDhcp - Indicates whether DHCP client blocking is enabled
- block
Non booleanIp - Indicates whether blocking of all traffic except IP/(G)ARP/BPDU is enabled.
- block
Server booleanDhcp - Indicates whether DHCP server blocking is enabled
- bpdu
Filter booleanEnabled - Indicates whether BPDU filter is enabled
- bpdu
Filter string[]Whitelists - Set of allowed MAC addresses to be excluded from BPDU filtering, if enabled.
- description string
- Description of this resource.
- display
Name string - The display name of this resource. Defaults to ID if not set.
- rate
Limits SwitchSecurity Switching Profile Rate Limits - Rate limit definitions for broadcast and multicast traffic.
- switch
Security stringSwitching Profile Id - ID of the switch security switching profile.
- Switch
Security Switching Profile Tag[] - A list of scope + tag pairs to associate with this qos switching profile.
- block_
client_ booldhcp - Indicates whether DHCP client blocking is enabled
- block_
non_ boolip - Indicates whether blocking of all traffic except IP/(G)ARP/BPDU is enabled.
- block_
server_ booldhcp - Indicates whether DHCP server blocking is enabled
- bpdu_
filter_ boolenabled - Indicates whether BPDU filter is enabled
- bpdu_
filter_ Sequence[str]whitelists - Set of allowed MAC addresses to be excluded from BPDU filtering, if enabled.
- description str
- Description of this resource.
- display_
name str - The display name of this resource. Defaults to ID if not set.
- rate_
limits SwitchSecurity Switching Profile Rate Limits Args - Rate limit definitions for broadcast and multicast traffic.
- switch_
security_ strswitching_ profile_ id - ID of the switch security switching profile.
- Sequence[Switch
Security Switching Profile Tag Args] - A list of scope + tag pairs to associate with this qos switching profile.
- block
Client BooleanDhcp - Indicates whether DHCP client blocking is enabled
- block
Non BooleanIp - Indicates whether blocking of all traffic except IP/(G)ARP/BPDU is enabled.
- block
Server BooleanDhcp - Indicates whether DHCP server blocking is enabled
- bpdu
Filter BooleanEnabled - Indicates whether BPDU filter is enabled
- bpdu
Filter List<String>Whitelists - Set of allowed MAC addresses to be excluded from BPDU filtering, if enabled.
- description String
- Description of this resource.
- display
Name String - The display name of this resource. Defaults to ID if not set.
- rate
Limits Property Map - Rate limit definitions for broadcast and multicast traffic.
- switch
Security StringSwitching Profile Id - ID of the switch security switching profile.
- List<Property Map>
- A list of scope + tag pairs to associate with this qos switching profile.
Outputs
All input properties are implicitly available as output properties. Additionally, the SwitchSecuritySwitchingProfile resource produces the following output properties:
Look up Existing SwitchSecuritySwitchingProfile Resource
Get an existing SwitchSecuritySwitchingProfile 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?: SwitchSecuritySwitchingProfileState, opts?: CustomResourceOptions): SwitchSecuritySwitchingProfile
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
block_client_dhcp: Optional[bool] = None,
block_non_ip: Optional[bool] = None,
block_server_dhcp: Optional[bool] = None,
bpdu_filter_enabled: Optional[bool] = None,
bpdu_filter_whitelists: Optional[Sequence[str]] = None,
description: Optional[str] = None,
display_name: Optional[str] = None,
rate_limits: Optional[SwitchSecuritySwitchingProfileRateLimitsArgs] = None,
revision: Optional[float] = None,
switch_security_switching_profile_id: Optional[str] = None,
tags: Optional[Sequence[SwitchSecuritySwitchingProfileTagArgs]] = None) -> SwitchSecuritySwitchingProfile
func GetSwitchSecuritySwitchingProfile(ctx *Context, name string, id IDInput, state *SwitchSecuritySwitchingProfileState, opts ...ResourceOption) (*SwitchSecuritySwitchingProfile, error)
public static SwitchSecuritySwitchingProfile Get(string name, Input<string> id, SwitchSecuritySwitchingProfileState? state, CustomResourceOptions? opts = null)
public static SwitchSecuritySwitchingProfile get(String name, Output<String> id, SwitchSecuritySwitchingProfileState state, CustomResourceOptions options)
resources: _: type: nsxt:SwitchSecuritySwitchingProfile 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.
- Block
Client boolDhcp - Indicates whether DHCP client blocking is enabled
- Block
Non boolIp - Indicates whether blocking of all traffic except IP/(G)ARP/BPDU is enabled.
- Block
Server boolDhcp - Indicates whether DHCP server blocking is enabled
- Bpdu
Filter boolEnabled - Indicates whether BPDU filter is enabled
- Bpdu
Filter List<string>Whitelists - Set of allowed MAC addresses to be excluded from BPDU filtering, if enabled.
- Description string
- Description of this resource.
- Display
Name string - The display name of this resource. Defaults to ID if not set.
- Rate
Limits SwitchSecurity Switching Profile Rate Limits - Rate limit definitions for broadcast and multicast traffic.
- Revision double
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- Switch
Security stringSwitching Profile Id - ID of the switch security switching profile.
- List<Switch
Security Switching Profile Tag> - A list of scope + tag pairs to associate with this qos switching profile.
- Block
Client boolDhcp - Indicates whether DHCP client blocking is enabled
- Block
Non boolIp - Indicates whether blocking of all traffic except IP/(G)ARP/BPDU is enabled.
- Block
Server boolDhcp - Indicates whether DHCP server blocking is enabled
- Bpdu
Filter boolEnabled - Indicates whether BPDU filter is enabled
- Bpdu
Filter []stringWhitelists - Set of allowed MAC addresses to be excluded from BPDU filtering, if enabled.
- Description string
- Description of this resource.
- Display
Name string - The display name of this resource. Defaults to ID if not set.
- Rate
Limits SwitchSecurity Switching Profile Rate Limits Args - Rate limit definitions for broadcast and multicast traffic.
- Revision float64
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- Switch
Security stringSwitching Profile Id - ID of the switch security switching profile.
- []Switch
Security Switching Profile Tag Args - A list of scope + tag pairs to associate with this qos switching profile.
- block
Client BooleanDhcp - Indicates whether DHCP client blocking is enabled
- block
Non BooleanIp - Indicates whether blocking of all traffic except IP/(G)ARP/BPDU is enabled.
- block
Server BooleanDhcp - Indicates whether DHCP server blocking is enabled
- bpdu
Filter BooleanEnabled - Indicates whether BPDU filter is enabled
- bpdu
Filter List<String>Whitelists - Set of allowed MAC addresses to be excluded from BPDU filtering, if enabled.
- description String
- Description of this resource.
- display
Name String - The display name of this resource. Defaults to ID if not set.
- rate
Limits SwitchSecurity Switching Profile Rate Limits - Rate limit definitions for broadcast and multicast traffic.
- revision Double
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- switch
Security StringSwitching Profile Id - ID of the switch security switching profile.
- List<Switch
Security Switching Profile Tag> - A list of scope + tag pairs to associate with this qos switching profile.
- block
Client booleanDhcp - Indicates whether DHCP client blocking is enabled
- block
Non booleanIp - Indicates whether blocking of all traffic except IP/(G)ARP/BPDU is enabled.
- block
Server booleanDhcp - Indicates whether DHCP server blocking is enabled
- bpdu
Filter booleanEnabled - Indicates whether BPDU filter is enabled
- bpdu
Filter string[]Whitelists - Set of allowed MAC addresses to be excluded from BPDU filtering, if enabled.
- description string
- Description of this resource.
- display
Name string - The display name of this resource. Defaults to ID if not set.
- rate
Limits SwitchSecurity Switching Profile Rate Limits - Rate limit definitions for broadcast and multicast traffic.
- revision number
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- switch
Security stringSwitching Profile Id - ID of the switch security switching profile.
- Switch
Security Switching Profile Tag[] - A list of scope + tag pairs to associate with this qos switching profile.
- block_
client_ booldhcp - Indicates whether DHCP client blocking is enabled
- block_
non_ boolip - Indicates whether blocking of all traffic except IP/(G)ARP/BPDU is enabled.
- block_
server_ booldhcp - Indicates whether DHCP server blocking is enabled
- bpdu_
filter_ boolenabled - Indicates whether BPDU filter is enabled
- bpdu_
filter_ Sequence[str]whitelists - Set of allowed MAC addresses to be excluded from BPDU filtering, if enabled.
- description str
- Description of this resource.
- display_
name str - The display name of this resource. Defaults to ID if not set.
- rate_
limits SwitchSecurity Switching Profile Rate Limits Args - Rate limit definitions for broadcast and multicast traffic.
- revision float
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- switch_
security_ strswitching_ profile_ id - ID of the switch security switching profile.
- Sequence[Switch
Security Switching Profile Tag Args] - A list of scope + tag pairs to associate with this qos switching profile.
- block
Client BooleanDhcp - Indicates whether DHCP client blocking is enabled
- block
Non BooleanIp - Indicates whether blocking of all traffic except IP/(G)ARP/BPDU is enabled.
- block
Server BooleanDhcp - Indicates whether DHCP server blocking is enabled
- bpdu
Filter BooleanEnabled - Indicates whether BPDU filter is enabled
- bpdu
Filter List<String>Whitelists - Set of allowed MAC addresses to be excluded from BPDU filtering, if enabled.
- description String
- Description of this resource.
- display
Name String - The display name of this resource. Defaults to ID if not set.
- rate
Limits Property Map - Rate limit definitions for broadcast and multicast traffic.
- revision Number
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- switch
Security StringSwitching Profile Id - ID of the switch security switching profile.
- List<Property Map>
- A list of scope + tag pairs to associate with this qos switching profile.
Supporting Types
SwitchSecuritySwitchingProfileRateLimits, SwitchSecuritySwitchingProfileRateLimitsArgs
- Enabled bool
- Whether rate limitimg is enabled.
- Rx
Broadcast double - Incoming broadcast traffic limit in packets per second.
- Rx
Multicast double - Incoming multicast traffic limit in packets per second.
- Tx
Broadcast double - Outgoing broadcast traffic limit in packets per second.
- Tx
Multicast double - Outgoing multicast traffic limit in packets per second.
- Enabled bool
- Whether rate limitimg is enabled.
- Rx
Broadcast float64 - Incoming broadcast traffic limit in packets per second.
- Rx
Multicast float64 - Incoming multicast traffic limit in packets per second.
- Tx
Broadcast float64 - Outgoing broadcast traffic limit in packets per second.
- Tx
Multicast float64 - Outgoing multicast traffic limit in packets per second.
- enabled Boolean
- Whether rate limitimg is enabled.
- rx
Broadcast Double - Incoming broadcast traffic limit in packets per second.
- rx
Multicast Double - Incoming multicast traffic limit in packets per second.
- tx
Broadcast Double - Outgoing broadcast traffic limit in packets per second.
- tx
Multicast Double - Outgoing multicast traffic limit in packets per second.
- enabled boolean
- Whether rate limitimg is enabled.
- rx
Broadcast number - Incoming broadcast traffic limit in packets per second.
- rx
Multicast number - Incoming multicast traffic limit in packets per second.
- tx
Broadcast number - Outgoing broadcast traffic limit in packets per second.
- tx
Multicast number - Outgoing multicast traffic limit in packets per second.
- enabled bool
- Whether rate limitimg is enabled.
- rx_
broadcast float - Incoming broadcast traffic limit in packets per second.
- rx_
multicast float - Incoming multicast traffic limit in packets per second.
- tx_
broadcast float - Outgoing broadcast traffic limit in packets per second.
- tx_
multicast float - Outgoing multicast traffic limit in packets per second.
- enabled Boolean
- Whether rate limitimg is enabled.
- rx
Broadcast Number - Incoming broadcast traffic limit in packets per second.
- rx
Multicast Number - Incoming multicast traffic limit in packets per second.
- tx
Broadcast Number - Outgoing broadcast traffic limit in packets per second.
- tx
Multicast Number - Outgoing multicast traffic limit in packets per second.
SwitchSecuritySwitchingProfileTag, SwitchSecuritySwitchingProfileTagArgs
Package Details
- Repository
- nsxt vmware/terraform-provider-nsxt
- License
- Notes
- This Pulumi package is based on the
nsxt
Terraform Provider.