nsxt.MacManagementSwitchingProfile
Explore with Pulumi AI
Create MacManagementSwitchingProfile Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new MacManagementSwitchingProfile(name: string, args?: MacManagementSwitchingProfileArgs, opts?: CustomResourceOptions);
@overload
def MacManagementSwitchingProfile(resource_name: str,
args: Optional[MacManagementSwitchingProfileArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def MacManagementSwitchingProfile(resource_name: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
display_name: Optional[str] = None,
mac_change_allowed: Optional[bool] = None,
mac_learning: Optional[MacManagementSwitchingProfileMacLearningArgs] = None,
mac_management_switching_profile_id: Optional[str] = None,
tags: Optional[Sequence[MacManagementSwitchingProfileTagArgs]] = None)
func NewMacManagementSwitchingProfile(ctx *Context, name string, args *MacManagementSwitchingProfileArgs, opts ...ResourceOption) (*MacManagementSwitchingProfile, error)
public MacManagementSwitchingProfile(string name, MacManagementSwitchingProfileArgs? args = null, CustomResourceOptions? opts = null)
public MacManagementSwitchingProfile(String name, MacManagementSwitchingProfileArgs args)
public MacManagementSwitchingProfile(String name, MacManagementSwitchingProfileArgs args, CustomResourceOptions options)
type: nsxt:MacManagementSwitchingProfile
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 MacManagementSwitchingProfileArgs
- 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 MacManagementSwitchingProfileArgs
- 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 MacManagementSwitchingProfileArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args MacManagementSwitchingProfileArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args MacManagementSwitchingProfileArgs
- 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 macManagementSwitchingProfileResource = new Nsxt.MacManagementSwitchingProfile("macManagementSwitchingProfileResource", new()
{
Description = "string",
DisplayName = "string",
MacChangeAllowed = false,
MacLearning = new Nsxt.Inputs.MacManagementSwitchingProfileMacLearningArgs
{
Enabled = false,
Limit = 0,
LimitPolicy = "string",
UnicastFloodingAllowed = false,
},
MacManagementSwitchingProfileId = "string",
Tags = new[]
{
new Nsxt.Inputs.MacManagementSwitchingProfileTagArgs
{
Scope = "string",
Tag = "string",
},
},
});
example, err := nsxt.NewMacManagementSwitchingProfile(ctx, "macManagementSwitchingProfileResource", &nsxt.MacManagementSwitchingProfileArgs{
Description: pulumi.String("string"),
DisplayName: pulumi.String("string"),
MacChangeAllowed: pulumi.Bool(false),
MacLearning: &nsxt.MacManagementSwitchingProfileMacLearningArgs{
Enabled: pulumi.Bool(false),
Limit: pulumi.Float64(0),
LimitPolicy: pulumi.String("string"),
UnicastFloodingAllowed: pulumi.Bool(false),
},
MacManagementSwitchingProfileId: pulumi.String("string"),
Tags: nsxt.MacManagementSwitchingProfileTagArray{
&nsxt.MacManagementSwitchingProfileTagArgs{
Scope: pulumi.String("string"),
Tag: pulumi.String("string"),
},
},
})
var macManagementSwitchingProfileResource = new MacManagementSwitchingProfile("macManagementSwitchingProfileResource", MacManagementSwitchingProfileArgs.builder()
.description("string")
.displayName("string")
.macChangeAllowed(false)
.macLearning(MacManagementSwitchingProfileMacLearningArgs.builder()
.enabled(false)
.limit(0)
.limitPolicy("string")
.unicastFloodingAllowed(false)
.build())
.macManagementSwitchingProfileId("string")
.tags(MacManagementSwitchingProfileTagArgs.builder()
.scope("string")
.tag("string")
.build())
.build());
mac_management_switching_profile_resource = nsxt.MacManagementSwitchingProfile("macManagementSwitchingProfileResource",
description="string",
display_name="string",
mac_change_allowed=False,
mac_learning={
"enabled": False,
"limit": 0,
"limit_policy": "string",
"unicast_flooding_allowed": False,
},
mac_management_switching_profile_id="string",
tags=[{
"scope": "string",
"tag": "string",
}])
const macManagementSwitchingProfileResource = new nsxt.MacManagementSwitchingProfile("macManagementSwitchingProfileResource", {
description: "string",
displayName: "string",
macChangeAllowed: false,
macLearning: {
enabled: false,
limit: 0,
limitPolicy: "string",
unicastFloodingAllowed: false,
},
macManagementSwitchingProfileId: "string",
tags: [{
scope: "string",
tag: "string",
}],
});
type: nsxt:MacManagementSwitchingProfile
properties:
description: string
displayName: string
macChangeAllowed: false
macLearning:
enabled: false
limit: 0
limitPolicy: string
unicastFloodingAllowed: false
macManagementSwitchingProfileId: string
tags:
- scope: string
tag: string
MacManagementSwitchingProfile 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 MacManagementSwitchingProfile resource accepts the following input properties:
- Description string
- Description of this resource.
- Display
Name string - The display name of this resource. Defaults to ID if not set.
- Mac
Change boolAllowed - A boolean flag indicating allowing source MAC address change.
- Mac
Learning MacManagement Switching Profile Mac Learning - Mac learning configuration:
- Mac
Management stringSwitching Profile Id - ID of the MAC management switching profile.
- List<Mac
Management Switching Profile Tag> - A list of scope + tag pairs to associate with this MAC management switching profile.
- Description string
- Description of this resource.
- Display
Name string - The display name of this resource. Defaults to ID if not set.
- Mac
Change boolAllowed - A boolean flag indicating allowing source MAC address change.
- Mac
Learning MacManagement Switching Profile Mac Learning Args - Mac learning configuration:
- Mac
Management stringSwitching Profile Id - ID of the MAC management switching profile.
- []Mac
Management Switching Profile Tag Args - A list of scope + tag pairs to associate with this MAC management switching profile.
- description String
- Description of this resource.
- display
Name String - The display name of this resource. Defaults to ID if not set.
- mac
Change BooleanAllowed - A boolean flag indicating allowing source MAC address change.
- mac
Learning MacManagement Switching Profile Mac Learning - Mac learning configuration:
- mac
Management StringSwitching Profile Id - ID of the MAC management switching profile.
- List<Mac
Management Switching Profile Tag> - A list of scope + tag pairs to associate with this MAC management switching profile.
- description string
- Description of this resource.
- display
Name string - The display name of this resource. Defaults to ID if not set.
- mac
Change booleanAllowed - A boolean flag indicating allowing source MAC address change.
- mac
Learning MacManagement Switching Profile Mac Learning - Mac learning configuration:
- mac
Management stringSwitching Profile Id - ID of the MAC management switching profile.
- Mac
Management Switching Profile Tag[] - A list of scope + tag pairs to associate with this MAC management switching profile.
- description str
- Description of this resource.
- display_
name str - The display name of this resource. Defaults to ID if not set.
- mac_
change_ boolallowed - A boolean flag indicating allowing source MAC address change.
- mac_
learning MacManagement Switching Profile Mac Learning Args - Mac learning configuration:
- mac_
management_ strswitching_ profile_ id - ID of the MAC management switching profile.
- Sequence[Mac
Management Switching Profile Tag Args] - A list of scope + tag pairs to associate with this MAC management switching profile.
- description String
- Description of this resource.
- display
Name String - The display name of this resource. Defaults to ID if not set.
- mac
Change BooleanAllowed - A boolean flag indicating allowing source MAC address change.
- mac
Learning Property Map - Mac learning configuration:
- mac
Management StringSwitching Profile Id - ID of the MAC management switching profile.
- List<Property Map>
- A list of scope + tag pairs to associate with this MAC management switching profile.
Outputs
All input properties are implicitly available as output properties. Additionally, the MacManagementSwitchingProfile resource produces the following output properties:
Look up Existing MacManagementSwitchingProfile Resource
Get an existing MacManagementSwitchingProfile 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?: MacManagementSwitchingProfileState, opts?: CustomResourceOptions): MacManagementSwitchingProfile
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
display_name: Optional[str] = None,
mac_change_allowed: Optional[bool] = None,
mac_learning: Optional[MacManagementSwitchingProfileMacLearningArgs] = None,
mac_management_switching_profile_id: Optional[str] = None,
revision: Optional[float] = None,
tags: Optional[Sequence[MacManagementSwitchingProfileTagArgs]] = None) -> MacManagementSwitchingProfile
func GetMacManagementSwitchingProfile(ctx *Context, name string, id IDInput, state *MacManagementSwitchingProfileState, opts ...ResourceOption) (*MacManagementSwitchingProfile, error)
public static MacManagementSwitchingProfile Get(string name, Input<string> id, MacManagementSwitchingProfileState? state, CustomResourceOptions? opts = null)
public static MacManagementSwitchingProfile get(String name, Output<String> id, MacManagementSwitchingProfileState state, CustomResourceOptions options)
resources: _: type: nsxt:MacManagementSwitchingProfile 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.
- Description string
- Description of this resource.
- Display
Name string - The display name of this resource. Defaults to ID if not set.
- Mac
Change boolAllowed - A boolean flag indicating allowing source MAC address change.
- Mac
Learning MacManagement Switching Profile Mac Learning - Mac learning configuration:
- Mac
Management stringSwitching Profile Id - ID of the MAC management switching profile.
- Revision double
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- List<Mac
Management Switching Profile Tag> - A list of scope + tag pairs to associate with this MAC management switching profile.
- Description string
- Description of this resource.
- Display
Name string - The display name of this resource. Defaults to ID if not set.
- Mac
Change boolAllowed - A boolean flag indicating allowing source MAC address change.
- Mac
Learning MacManagement Switching Profile Mac Learning Args - Mac learning configuration:
- Mac
Management stringSwitching Profile Id - ID of the MAC management switching profile.
- Revision float64
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- []Mac
Management Switching Profile Tag Args - A list of scope + tag pairs to associate with this MAC management switching profile.
- description String
- Description of this resource.
- display
Name String - The display name of this resource. Defaults to ID if not set.
- mac
Change BooleanAllowed - A boolean flag indicating allowing source MAC address change.
- mac
Learning MacManagement Switching Profile Mac Learning - Mac learning configuration:
- mac
Management StringSwitching Profile Id - ID of the MAC management switching profile.
- revision Double
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- List<Mac
Management Switching Profile Tag> - A list of scope + tag pairs to associate with this MAC management switching profile.
- description string
- Description of this resource.
- display
Name string - The display name of this resource. Defaults to ID if not set.
- mac
Change booleanAllowed - A boolean flag indicating allowing source MAC address change.
- mac
Learning MacManagement Switching Profile Mac Learning - Mac learning configuration:
- mac
Management stringSwitching Profile Id - ID of the MAC management switching profile.
- revision number
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- Mac
Management Switching Profile Tag[] - A list of scope + tag pairs to associate with this MAC management switching profile.
- description str
- Description of this resource.
- display_
name str - The display name of this resource. Defaults to ID if not set.
- mac_
change_ boolallowed - A boolean flag indicating allowing source MAC address change.
- mac_
learning MacManagement Switching Profile Mac Learning Args - Mac learning configuration:
- mac_
management_ strswitching_ profile_ id - ID of the MAC management switching profile.
- revision float
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- Sequence[Mac
Management Switching Profile Tag Args] - A list of scope + tag pairs to associate with this MAC management switching profile.
- description String
- Description of this resource.
- display
Name String - The display name of this resource. Defaults to ID if not set.
- mac
Change BooleanAllowed - A boolean flag indicating allowing source MAC address change.
- mac
Learning Property Map - Mac learning configuration:
- mac
Management StringSwitching Profile Id - ID of the MAC management switching profile.
- revision Number
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- List<Property Map>
- A list of scope + tag pairs to associate with this MAC management switching profile.
Supporting Types
MacManagementSwitchingProfileMacLearning, MacManagementSwitchingProfileMacLearningArgs
- Enabled bool
- A boolean flag indicating allowing source MAC address learning.
- Limit double
- The maximum number of MAC addresses that can be learned on this port.
- Limit
Policy string - The policy after MAC Limit is exceeded: ALLOW/DROP.
- Unicast
Flooding boolAllowed - A boolean flag indicating allowing flooding for unlearned MAC for ingress traffic. Can be True only if mac_learning is enabled.
- Enabled bool
- A boolean flag indicating allowing source MAC address learning.
- Limit float64
- The maximum number of MAC addresses that can be learned on this port.
- Limit
Policy string - The policy after MAC Limit is exceeded: ALLOW/DROP.
- Unicast
Flooding boolAllowed - A boolean flag indicating allowing flooding for unlearned MAC for ingress traffic. Can be True only if mac_learning is enabled.
- enabled Boolean
- A boolean flag indicating allowing source MAC address learning.
- limit Double
- The maximum number of MAC addresses that can be learned on this port.
- limit
Policy String - The policy after MAC Limit is exceeded: ALLOW/DROP.
- unicast
Flooding BooleanAllowed - A boolean flag indicating allowing flooding for unlearned MAC for ingress traffic. Can be True only if mac_learning is enabled.
- enabled boolean
- A boolean flag indicating allowing source MAC address learning.
- limit number
- The maximum number of MAC addresses that can be learned on this port.
- limit
Policy string - The policy after MAC Limit is exceeded: ALLOW/DROP.
- unicast
Flooding booleanAllowed - A boolean flag indicating allowing flooding for unlearned MAC for ingress traffic. Can be True only if mac_learning is enabled.
- enabled bool
- A boolean flag indicating allowing source MAC address learning.
- limit float
- The maximum number of MAC addresses that can be learned on this port.
- limit_
policy str - The policy after MAC Limit is exceeded: ALLOW/DROP.
- unicast_
flooding_ boolallowed - A boolean flag indicating allowing flooding for unlearned MAC for ingress traffic. Can be True only if mac_learning is enabled.
- enabled Boolean
- A boolean flag indicating allowing source MAC address learning.
- limit Number
- The maximum number of MAC addresses that can be learned on this port.
- limit
Policy String - The policy after MAC Limit is exceeded: ALLOW/DROP.
- unicast
Flooding BooleanAllowed - A boolean flag indicating allowing flooding for unlearned MAC for ingress traffic. Can be True only if mac_learning is enabled.
MacManagementSwitchingProfileTag, MacManagementSwitchingProfileTagArgs
Package Details
- Repository
- nsxt vmware/terraform-provider-nsxt
- License
- Notes
- This Pulumi package is based on the
nsxt
Terraform Provider.