nsxt.PolicyMacDiscoveryProfile
Explore with Pulumi AI
Create PolicyMacDiscoveryProfile Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new PolicyMacDiscoveryProfile(name: string, args: PolicyMacDiscoveryProfileArgs, opts?: CustomResourceOptions);
@overload
def PolicyMacDiscoveryProfile(resource_name: str,
args: PolicyMacDiscoveryProfileArgs,
opts: Optional[ResourceOptions] = None)
@overload
def PolicyMacDiscoveryProfile(resource_name: str,
opts: Optional[ResourceOptions] = None,
display_name: Optional[str] = None,
context: Optional[PolicyMacDiscoveryProfileContextArgs] = None,
description: Optional[str] = None,
mac_change_enabled: Optional[bool] = None,
mac_learning_enabled: Optional[bool] = None,
mac_limit: Optional[float] = None,
mac_limit_policy: Optional[str] = None,
nsx_id: Optional[str] = None,
policy_mac_discovery_profile_id: Optional[str] = None,
remote_overlay_mac_limit: Optional[float] = None,
tags: Optional[Sequence[PolicyMacDiscoveryProfileTagArgs]] = None,
unknown_unicast_flooding_enabled: Optional[bool] = None)
func NewPolicyMacDiscoveryProfile(ctx *Context, name string, args PolicyMacDiscoveryProfileArgs, opts ...ResourceOption) (*PolicyMacDiscoveryProfile, error)
public PolicyMacDiscoveryProfile(string name, PolicyMacDiscoveryProfileArgs args, CustomResourceOptions? opts = null)
public PolicyMacDiscoveryProfile(String name, PolicyMacDiscoveryProfileArgs args)
public PolicyMacDiscoveryProfile(String name, PolicyMacDiscoveryProfileArgs args, CustomResourceOptions options)
type: nsxt:PolicyMacDiscoveryProfile
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 PolicyMacDiscoveryProfileArgs
- 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 PolicyMacDiscoveryProfileArgs
- 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 PolicyMacDiscoveryProfileArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PolicyMacDiscoveryProfileArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PolicyMacDiscoveryProfileArgs
- 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 policyMacDiscoveryProfileResource = new Nsxt.PolicyMacDiscoveryProfile("policyMacDiscoveryProfileResource", new()
{
DisplayName = "string",
Context = new Nsxt.Inputs.PolicyMacDiscoveryProfileContextArgs
{
ProjectId = "string",
},
Description = "string",
MacChangeEnabled = false,
MacLearningEnabled = false,
MacLimit = 0,
MacLimitPolicy = "string",
NsxId = "string",
PolicyMacDiscoveryProfileId = "string",
RemoteOverlayMacLimit = 0,
Tags = new[]
{
new Nsxt.Inputs.PolicyMacDiscoveryProfileTagArgs
{
Scope = "string",
Tag = "string",
},
},
UnknownUnicastFloodingEnabled = false,
});
example, err := nsxt.NewPolicyMacDiscoveryProfile(ctx, "policyMacDiscoveryProfileResource", &nsxt.PolicyMacDiscoveryProfileArgs{
DisplayName: pulumi.String("string"),
Context: &nsxt.PolicyMacDiscoveryProfileContextArgs{
ProjectId: pulumi.String("string"),
},
Description: pulumi.String("string"),
MacChangeEnabled: pulumi.Bool(false),
MacLearningEnabled: pulumi.Bool(false),
MacLimit: pulumi.Float64(0),
MacLimitPolicy: pulumi.String("string"),
NsxId: pulumi.String("string"),
PolicyMacDiscoveryProfileId: pulumi.String("string"),
RemoteOverlayMacLimit: pulumi.Float64(0),
Tags: nsxt.PolicyMacDiscoveryProfileTagArray{
&nsxt.PolicyMacDiscoveryProfileTagArgs{
Scope: pulumi.String("string"),
Tag: pulumi.String("string"),
},
},
UnknownUnicastFloodingEnabled: pulumi.Bool(false),
})
var policyMacDiscoveryProfileResource = new PolicyMacDiscoveryProfile("policyMacDiscoveryProfileResource", PolicyMacDiscoveryProfileArgs.builder()
.displayName("string")
.context(PolicyMacDiscoveryProfileContextArgs.builder()
.projectId("string")
.build())
.description("string")
.macChangeEnabled(false)
.macLearningEnabled(false)
.macLimit(0)
.macLimitPolicy("string")
.nsxId("string")
.policyMacDiscoveryProfileId("string")
.remoteOverlayMacLimit(0)
.tags(PolicyMacDiscoveryProfileTagArgs.builder()
.scope("string")
.tag("string")
.build())
.unknownUnicastFloodingEnabled(false)
.build());
policy_mac_discovery_profile_resource = nsxt.PolicyMacDiscoveryProfile("policyMacDiscoveryProfileResource",
display_name="string",
context={
"project_id": "string",
},
description="string",
mac_change_enabled=False,
mac_learning_enabled=False,
mac_limit=0,
mac_limit_policy="string",
nsx_id="string",
policy_mac_discovery_profile_id="string",
remote_overlay_mac_limit=0,
tags=[{
"scope": "string",
"tag": "string",
}],
unknown_unicast_flooding_enabled=False)
const policyMacDiscoveryProfileResource = new nsxt.PolicyMacDiscoveryProfile("policyMacDiscoveryProfileResource", {
displayName: "string",
context: {
projectId: "string",
},
description: "string",
macChangeEnabled: false,
macLearningEnabled: false,
macLimit: 0,
macLimitPolicy: "string",
nsxId: "string",
policyMacDiscoveryProfileId: "string",
remoteOverlayMacLimit: 0,
tags: [{
scope: "string",
tag: "string",
}],
unknownUnicastFloodingEnabled: false,
});
type: nsxt:PolicyMacDiscoveryProfile
properties:
context:
projectId: string
description: string
displayName: string
macChangeEnabled: false
macLearningEnabled: false
macLimit: 0
macLimitPolicy: string
nsxId: string
policyMacDiscoveryProfileId: string
remoteOverlayMacLimit: 0
tags:
- scope: string
tag: string
unknownUnicastFloodingEnabled: false
PolicyMacDiscoveryProfile 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 PolicyMacDiscoveryProfile resource accepts the following input properties:
- Display
Name string - Display name of the resource.
- Context
Policy
Mac Discovery Profile Context - The context which the object belongs to
- Description string
- Description of the resource.
- Mac
Change boolEnabled - MAC address change feature.
- Mac
Learning boolEnabled - MAC learning feature.
- Mac
Limit double - The maximum number of MAC addresses that can be learned on this port.
- Mac
Limit stringPolicy - The policy after MAC Limit is exceeded. Possible values are
ALLOW
andDROP
, with default beingALLOW
. - Nsx
Id string - The NSX ID of this resource. If set, this ID will be used to create the resource.
- Policy
Mac stringDiscovery Profile Id - ID of the resource.
- Remote
Overlay doubleMac Limit - The maximum number of MAC addresses learned on an overlay Logical Switch.
- List<Policy
Mac Discovery Profile Tag> - A list of scope + tag pairs to associate with this resource.
- Unknown
Unicast boolFlooding Enabled - Allowing flooding for unlearned MAC for ingress traffic.
- Display
Name string - Display name of the resource.
- Context
Policy
Mac Discovery Profile Context Args - The context which the object belongs to
- Description string
- Description of the resource.
- Mac
Change boolEnabled - MAC address change feature.
- Mac
Learning boolEnabled - MAC learning feature.
- Mac
Limit float64 - The maximum number of MAC addresses that can be learned on this port.
- Mac
Limit stringPolicy - The policy after MAC Limit is exceeded. Possible values are
ALLOW
andDROP
, with default beingALLOW
. - Nsx
Id string - The NSX ID of this resource. If set, this ID will be used to create the resource.
- Policy
Mac stringDiscovery Profile Id - ID of the resource.
- Remote
Overlay float64Mac Limit - The maximum number of MAC addresses learned on an overlay Logical Switch.
- []Policy
Mac Discovery Profile Tag Args - A list of scope + tag pairs to associate with this resource.
- Unknown
Unicast boolFlooding Enabled - Allowing flooding for unlearned MAC for ingress traffic.
- display
Name String - Display name of the resource.
- context
Policy
Mac Discovery Profile Context - The context which the object belongs to
- description String
- Description of the resource.
- mac
Change BooleanEnabled - MAC address change feature.
- mac
Learning BooleanEnabled - MAC learning feature.
- mac
Limit Double - The maximum number of MAC addresses that can be learned on this port.
- mac
Limit StringPolicy - The policy after MAC Limit is exceeded. Possible values are
ALLOW
andDROP
, with default beingALLOW
. - nsx
Id String - The NSX ID of this resource. If set, this ID will be used to create the resource.
- policy
Mac StringDiscovery Profile Id - ID of the resource.
- remote
Overlay DoubleMac Limit - The maximum number of MAC addresses learned on an overlay Logical Switch.
- List<Policy
Mac Discovery Profile Tag> - A list of scope + tag pairs to associate with this resource.
- unknown
Unicast BooleanFlooding Enabled - Allowing flooding for unlearned MAC for ingress traffic.
- display
Name string - Display name of the resource.
- context
Policy
Mac Discovery Profile Context - The context which the object belongs to
- description string
- Description of the resource.
- mac
Change booleanEnabled - MAC address change feature.
- mac
Learning booleanEnabled - MAC learning feature.
- mac
Limit number - The maximum number of MAC addresses that can be learned on this port.
- mac
Limit stringPolicy - The policy after MAC Limit is exceeded. Possible values are
ALLOW
andDROP
, with default beingALLOW
. - nsx
Id string - The NSX ID of this resource. If set, this ID will be used to create the resource.
- policy
Mac stringDiscovery Profile Id - ID of the resource.
- remote
Overlay numberMac Limit - The maximum number of MAC addresses learned on an overlay Logical Switch.
- Policy
Mac Discovery Profile Tag[] - A list of scope + tag pairs to associate with this resource.
- unknown
Unicast booleanFlooding Enabled - Allowing flooding for unlearned MAC for ingress traffic.
- display_
name str - Display name of the resource.
- context
Policy
Mac Discovery Profile Context Args - The context which the object belongs to
- description str
- Description of the resource.
- mac_
change_ boolenabled - MAC address change feature.
- mac_
learning_ boolenabled - MAC learning feature.
- mac_
limit float - The maximum number of MAC addresses that can be learned on this port.
- mac_
limit_ strpolicy - The policy after MAC Limit is exceeded. Possible values are
ALLOW
andDROP
, with default beingALLOW
. - nsx_
id str - The NSX ID of this resource. If set, this ID will be used to create the resource.
- policy_
mac_ strdiscovery_ profile_ id - ID of the resource.
- remote_
overlay_ floatmac_ limit - The maximum number of MAC addresses learned on an overlay Logical Switch.
- Sequence[Policy
Mac Discovery Profile Tag Args] - A list of scope + tag pairs to associate with this resource.
- unknown_
unicast_ boolflooding_ enabled - Allowing flooding for unlearned MAC for ingress traffic.
- display
Name String - Display name of the resource.
- context Property Map
- The context which the object belongs to
- description String
- Description of the resource.
- mac
Change BooleanEnabled - MAC address change feature.
- mac
Learning BooleanEnabled - MAC learning feature.
- mac
Limit Number - The maximum number of MAC addresses that can be learned on this port.
- mac
Limit StringPolicy - The policy after MAC Limit is exceeded. Possible values are
ALLOW
andDROP
, with default beingALLOW
. - nsx
Id String - The NSX ID of this resource. If set, this ID will be used to create the resource.
- policy
Mac StringDiscovery Profile Id - ID of the resource.
- remote
Overlay NumberMac Limit - The maximum number of MAC addresses learned on an overlay Logical Switch.
- List<Property Map>
- A list of scope + tag pairs to associate with this resource.
- unknown
Unicast BooleanFlooding Enabled - Allowing flooding for unlearned MAC for ingress traffic.
Outputs
All input properties are implicitly available as output properties. Additionally, the PolicyMacDiscoveryProfile resource produces the following output properties:
Look up Existing PolicyMacDiscoveryProfile Resource
Get an existing PolicyMacDiscoveryProfile 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?: PolicyMacDiscoveryProfileState, opts?: CustomResourceOptions): PolicyMacDiscoveryProfile
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
context: Optional[PolicyMacDiscoveryProfileContextArgs] = None,
description: Optional[str] = None,
display_name: Optional[str] = None,
mac_change_enabled: Optional[bool] = None,
mac_learning_enabled: Optional[bool] = None,
mac_limit: Optional[float] = None,
mac_limit_policy: Optional[str] = None,
nsx_id: Optional[str] = None,
path: Optional[str] = None,
policy_mac_discovery_profile_id: Optional[str] = None,
remote_overlay_mac_limit: Optional[float] = None,
revision: Optional[float] = None,
tags: Optional[Sequence[PolicyMacDiscoveryProfileTagArgs]] = None,
unknown_unicast_flooding_enabled: Optional[bool] = None) -> PolicyMacDiscoveryProfile
func GetPolicyMacDiscoveryProfile(ctx *Context, name string, id IDInput, state *PolicyMacDiscoveryProfileState, opts ...ResourceOption) (*PolicyMacDiscoveryProfile, error)
public static PolicyMacDiscoveryProfile Get(string name, Input<string> id, PolicyMacDiscoveryProfileState? state, CustomResourceOptions? opts = null)
public static PolicyMacDiscoveryProfile get(String name, Output<String> id, PolicyMacDiscoveryProfileState state, CustomResourceOptions options)
resources: _: type: nsxt:PolicyMacDiscoveryProfile 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.
- Context
Policy
Mac Discovery Profile Context - The context which the object belongs to
- Description string
- Description of the resource.
- Display
Name string - Display name of the resource.
- Mac
Change boolEnabled - MAC address change feature.
- Mac
Learning boolEnabled - MAC learning feature.
- Mac
Limit double - The maximum number of MAC addresses that can be learned on this port.
- Mac
Limit stringPolicy - The policy after MAC Limit is exceeded. Possible values are
ALLOW
andDROP
, with default beingALLOW
. - Nsx
Id string - The NSX ID of this resource. If set, this ID will be used to create the resource.
- Path string
- The NSX path of the policy resource.
- Policy
Mac stringDiscovery Profile Id - ID of the resource.
- Remote
Overlay doubleMac Limit - The maximum number of MAC addresses learned on an overlay Logical Switch.
- Revision double
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- List<Policy
Mac Discovery Profile Tag> - A list of scope + tag pairs to associate with this resource.
- Unknown
Unicast boolFlooding Enabled - Allowing flooding for unlearned MAC for ingress traffic.
- Context
Policy
Mac Discovery Profile Context Args - The context which the object belongs to
- Description string
- Description of the resource.
- Display
Name string - Display name of the resource.
- Mac
Change boolEnabled - MAC address change feature.
- Mac
Learning boolEnabled - MAC learning feature.
- Mac
Limit float64 - The maximum number of MAC addresses that can be learned on this port.
- Mac
Limit stringPolicy - The policy after MAC Limit is exceeded. Possible values are
ALLOW
andDROP
, with default beingALLOW
. - Nsx
Id string - The NSX ID of this resource. If set, this ID will be used to create the resource.
- Path string
- The NSX path of the policy resource.
- Policy
Mac stringDiscovery Profile Id - ID of the resource.
- Remote
Overlay float64Mac Limit - The maximum number of MAC addresses learned on an overlay Logical Switch.
- Revision float64
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- []Policy
Mac Discovery Profile Tag Args - A list of scope + tag pairs to associate with this resource.
- Unknown
Unicast boolFlooding Enabled - Allowing flooding for unlearned MAC for ingress traffic.
- context
Policy
Mac Discovery Profile Context - The context which the object belongs to
- description String
- Description of the resource.
- display
Name String - Display name of the resource.
- mac
Change BooleanEnabled - MAC address change feature.
- mac
Learning BooleanEnabled - MAC learning feature.
- mac
Limit Double - The maximum number of MAC addresses that can be learned on this port.
- mac
Limit StringPolicy - The policy after MAC Limit is exceeded. Possible values are
ALLOW
andDROP
, with default beingALLOW
. - nsx
Id String - The NSX ID of this resource. If set, this ID will be used to create the resource.
- path String
- The NSX path of the policy resource.
- policy
Mac StringDiscovery Profile Id - ID of the resource.
- remote
Overlay DoubleMac Limit - The maximum number of MAC addresses learned on an overlay Logical Switch.
- revision Double
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- List<Policy
Mac Discovery Profile Tag> - A list of scope + tag pairs to associate with this resource.
- unknown
Unicast BooleanFlooding Enabled - Allowing flooding for unlearned MAC for ingress traffic.
- context
Policy
Mac Discovery Profile Context - The context which the object belongs to
- description string
- Description of the resource.
- display
Name string - Display name of the resource.
- mac
Change booleanEnabled - MAC address change feature.
- mac
Learning booleanEnabled - MAC learning feature.
- mac
Limit number - The maximum number of MAC addresses that can be learned on this port.
- mac
Limit stringPolicy - The policy after MAC Limit is exceeded. Possible values are
ALLOW
andDROP
, with default beingALLOW
. - nsx
Id string - The NSX ID of this resource. If set, this ID will be used to create the resource.
- path string
- The NSX path of the policy resource.
- policy
Mac stringDiscovery Profile Id - ID of the resource.
- remote
Overlay numberMac Limit - The maximum number of MAC addresses learned on an overlay Logical Switch.
- revision number
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- Policy
Mac Discovery Profile Tag[] - A list of scope + tag pairs to associate with this resource.
- unknown
Unicast booleanFlooding Enabled - Allowing flooding for unlearned MAC for ingress traffic.
- context
Policy
Mac Discovery Profile Context Args - The context which the object belongs to
- description str
- Description of the resource.
- display_
name str - Display name of the resource.
- mac_
change_ boolenabled - MAC address change feature.
- mac_
learning_ boolenabled - MAC learning feature.
- mac_
limit float - The maximum number of MAC addresses that can be learned on this port.
- mac_
limit_ strpolicy - The policy after MAC Limit is exceeded. Possible values are
ALLOW
andDROP
, with default beingALLOW
. - nsx_
id str - The NSX ID of this resource. If set, this ID will be used to create the resource.
- path str
- The NSX path of the policy resource.
- policy_
mac_ strdiscovery_ profile_ id - ID of the resource.
- remote_
overlay_ floatmac_ limit - The maximum number of MAC addresses learned on an overlay Logical Switch.
- revision float
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- Sequence[Policy
Mac Discovery Profile Tag Args] - A list of scope + tag pairs to associate with this resource.
- unknown_
unicast_ boolflooding_ enabled - Allowing flooding for unlearned MAC for ingress traffic.
- context Property Map
- The context which the object belongs to
- description String
- Description of the resource.
- display
Name String - Display name of the resource.
- mac
Change BooleanEnabled - MAC address change feature.
- mac
Learning BooleanEnabled - MAC learning feature.
- mac
Limit Number - The maximum number of MAC addresses that can be learned on this port.
- mac
Limit StringPolicy - The policy after MAC Limit is exceeded. Possible values are
ALLOW
andDROP
, with default beingALLOW
. - nsx
Id String - The NSX ID of this resource. If set, this ID will be used to create the resource.
- path String
- The NSX path of the policy resource.
- policy
Mac StringDiscovery Profile Id - ID of the resource.
- remote
Overlay NumberMac Limit - The maximum number of MAC addresses learned on an overlay Logical Switch.
- 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 resource.
- unknown
Unicast BooleanFlooding Enabled - Allowing flooding for unlearned MAC for ingress traffic.
Supporting Types
PolicyMacDiscoveryProfileContext, PolicyMacDiscoveryProfileContextArgs
- Project
Id string - The ID of the project which the object belongs to
- Project
Id string - The ID of the project which the object belongs to
- project
Id String - The ID of the project which the object belongs to
- project
Id string - The ID of the project which the object belongs to
- project_
id str - The ID of the project which the object belongs to
- project
Id String - The ID of the project which the object belongs to
PolicyMacDiscoveryProfileTag, PolicyMacDiscoveryProfileTagArgs
Package Details
- Repository
- nsxt vmware/terraform-provider-nsxt
- License
- Notes
- This Pulumi package is based on the
nsxt
Terraform Provider.