nsxt.PolicyEvpnTenant
Explore with Pulumi AI
Create PolicyEvpnTenant Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new PolicyEvpnTenant(name: string, args: PolicyEvpnTenantArgs, opts?: CustomResourceOptions);
@overload
def PolicyEvpnTenant(resource_name: str,
args: PolicyEvpnTenantArgs,
opts: Optional[ResourceOptions] = None)
@overload
def PolicyEvpnTenant(resource_name: str,
opts: Optional[ResourceOptions] = None,
display_name: Optional[str] = None,
mappings: Optional[Sequence[PolicyEvpnTenantMappingArgs]] = None,
transport_zone_path: Optional[str] = None,
vni_pool_path: Optional[str] = None,
description: Optional[str] = None,
nsx_id: Optional[str] = None,
policy_evpn_tenant_id: Optional[str] = None,
tags: Optional[Sequence[PolicyEvpnTenantTagArgs]] = None)
func NewPolicyEvpnTenant(ctx *Context, name string, args PolicyEvpnTenantArgs, opts ...ResourceOption) (*PolicyEvpnTenant, error)
public PolicyEvpnTenant(string name, PolicyEvpnTenantArgs args, CustomResourceOptions? opts = null)
public PolicyEvpnTenant(String name, PolicyEvpnTenantArgs args)
public PolicyEvpnTenant(String name, PolicyEvpnTenantArgs args, CustomResourceOptions options)
type: nsxt:PolicyEvpnTenant
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 PolicyEvpnTenantArgs
- 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 PolicyEvpnTenantArgs
- 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 PolicyEvpnTenantArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args PolicyEvpnTenantArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args PolicyEvpnTenantArgs
- 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 policyEvpnTenantResource = new Nsxt.PolicyEvpnTenant("policyEvpnTenantResource", new()
{
DisplayName = "string",
Mappings = new[]
{
new Nsxt.Inputs.PolicyEvpnTenantMappingArgs
{
Vlans = "string",
Vnis = "string",
},
},
TransportZonePath = "string",
VniPoolPath = "string",
Description = "string",
NsxId = "string",
PolicyEvpnTenantId = "string",
Tags = new[]
{
new Nsxt.Inputs.PolicyEvpnTenantTagArgs
{
Scope = "string",
Tag = "string",
},
},
});
example, err := nsxt.NewPolicyEvpnTenant(ctx, "policyEvpnTenantResource", &nsxt.PolicyEvpnTenantArgs{
DisplayName: pulumi.String("string"),
Mappings: nsxt.PolicyEvpnTenantMappingArray{
&nsxt.PolicyEvpnTenantMappingArgs{
Vlans: pulumi.String("string"),
Vnis: pulumi.String("string"),
},
},
TransportZonePath: pulumi.String("string"),
VniPoolPath: pulumi.String("string"),
Description: pulumi.String("string"),
NsxId: pulumi.String("string"),
PolicyEvpnTenantId: pulumi.String("string"),
Tags: nsxt.PolicyEvpnTenantTagArray{
&nsxt.PolicyEvpnTenantTagArgs{
Scope: pulumi.String("string"),
Tag: pulumi.String("string"),
},
},
})
var policyEvpnTenantResource = new PolicyEvpnTenant("policyEvpnTenantResource", PolicyEvpnTenantArgs.builder()
.displayName("string")
.mappings(PolicyEvpnTenantMappingArgs.builder()
.vlans("string")
.vnis("string")
.build())
.transportZonePath("string")
.vniPoolPath("string")
.description("string")
.nsxId("string")
.policyEvpnTenantId("string")
.tags(PolicyEvpnTenantTagArgs.builder()
.scope("string")
.tag("string")
.build())
.build());
policy_evpn_tenant_resource = nsxt.PolicyEvpnTenant("policyEvpnTenantResource",
display_name="string",
mappings=[{
"vlans": "string",
"vnis": "string",
}],
transport_zone_path="string",
vni_pool_path="string",
description="string",
nsx_id="string",
policy_evpn_tenant_id="string",
tags=[{
"scope": "string",
"tag": "string",
}])
const policyEvpnTenantResource = new nsxt.PolicyEvpnTenant("policyEvpnTenantResource", {
displayName: "string",
mappings: [{
vlans: "string",
vnis: "string",
}],
transportZonePath: "string",
vniPoolPath: "string",
description: "string",
nsxId: "string",
policyEvpnTenantId: "string",
tags: [{
scope: "string",
tag: "string",
}],
});
type: nsxt:PolicyEvpnTenant
properties:
description: string
displayName: string
mappings:
- vlans: string
vnis: string
nsxId: string
policyEvpnTenantId: string
tags:
- scope: string
tag: string
transportZonePath: string
vniPoolPath: string
PolicyEvpnTenant 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 PolicyEvpnTenant resource accepts the following input properties:
- Display
Name string - Display name of the resource.
- Mappings
List<Policy
Evpn Tenant Mapping> - List of VLAN - VNI mappings for this tenant.
- Transport
Zone stringPath - Policy path for Overlay Transport Zone.
- Vni
Pool stringPath - Policy path for existing VNI pool.
- Description string
- Description of the resource.
- Nsx
Id string - The NSX ID of this resource. If set, this ID will be used to create the policy resource.
- Policy
Evpn stringTenant Id - List<Policy
Evpn Tenant Tag> - A list of scope + tag pairs to associate with this resource.
- Display
Name string - Display name of the resource.
- Mappings
[]Policy
Evpn Tenant Mapping Args - List of VLAN - VNI mappings for this tenant.
- Transport
Zone stringPath - Policy path for Overlay Transport Zone.
- Vni
Pool stringPath - Policy path for existing VNI pool.
- Description string
- Description of the resource.
- Nsx
Id string - The NSX ID of this resource. If set, this ID will be used to create the policy resource.
- Policy
Evpn stringTenant Id - []Policy
Evpn Tenant Tag Args - A list of scope + tag pairs to associate with this resource.
- display
Name String - Display name of the resource.
- mappings
List<Policy
Evpn Tenant Mapping> - List of VLAN - VNI mappings for this tenant.
- transport
Zone StringPath - Policy path for Overlay Transport Zone.
- vni
Pool StringPath - Policy path for existing VNI pool.
- description String
- Description of the resource.
- nsx
Id String - The NSX ID of this resource. If set, this ID will be used to create the policy resource.
- policy
Evpn StringTenant Id - List<Policy
Evpn Tenant Tag> - A list of scope + tag pairs to associate with this resource.
- display
Name string - Display name of the resource.
- mappings
Policy
Evpn Tenant Mapping[] - List of VLAN - VNI mappings for this tenant.
- transport
Zone stringPath - Policy path for Overlay Transport Zone.
- vni
Pool stringPath - Policy path for existing VNI pool.
- description string
- Description of the resource.
- nsx
Id string - The NSX ID of this resource. If set, this ID will be used to create the policy resource.
- policy
Evpn stringTenant Id - Policy
Evpn Tenant Tag[] - A list of scope + tag pairs to associate with this resource.
- display_
name str - Display name of the resource.
- mappings
Sequence[Policy
Evpn Tenant Mapping Args] - List of VLAN - VNI mappings for this tenant.
- transport_
zone_ strpath - Policy path for Overlay Transport Zone.
- vni_
pool_ strpath - Policy path for existing VNI pool.
- description str
- Description of the resource.
- nsx_
id str - The NSX ID of this resource. If set, this ID will be used to create the policy resource.
- policy_
evpn_ strtenant_ id - Sequence[Policy
Evpn Tenant Tag Args] - A list of scope + tag pairs to associate with this resource.
- display
Name String - Display name of the resource.
- mappings List<Property Map>
- List of VLAN - VNI mappings for this tenant.
- transport
Zone StringPath - Policy path for Overlay Transport Zone.
- vni
Pool StringPath - Policy path for existing VNI pool.
- description String
- Description of the resource.
- nsx
Id String - The NSX ID of this resource. If set, this ID will be used to create the policy resource.
- policy
Evpn StringTenant Id - List<Property Map>
- A list of scope + tag pairs to associate with this resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the PolicyEvpnTenant resource produces the following output properties:
Look up Existing PolicyEvpnTenant Resource
Get an existing PolicyEvpnTenant 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?: PolicyEvpnTenantState, opts?: CustomResourceOptions): PolicyEvpnTenant
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
display_name: Optional[str] = None,
mappings: Optional[Sequence[PolicyEvpnTenantMappingArgs]] = None,
nsx_id: Optional[str] = None,
path: Optional[str] = None,
policy_evpn_tenant_id: Optional[str] = None,
revision: Optional[float] = None,
tags: Optional[Sequence[PolicyEvpnTenantTagArgs]] = None,
transport_zone_path: Optional[str] = None,
vni_pool_path: Optional[str] = None) -> PolicyEvpnTenant
func GetPolicyEvpnTenant(ctx *Context, name string, id IDInput, state *PolicyEvpnTenantState, opts ...ResourceOption) (*PolicyEvpnTenant, error)
public static PolicyEvpnTenant Get(string name, Input<string> id, PolicyEvpnTenantState? state, CustomResourceOptions? opts = null)
public static PolicyEvpnTenant get(String name, Output<String> id, PolicyEvpnTenantState state, CustomResourceOptions options)
resources: _: type: nsxt:PolicyEvpnTenant 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 the resource.
- Display
Name string - Display name of the resource.
- Mappings
List<Policy
Evpn Tenant Mapping> - List of VLAN - VNI mappings for this tenant.
- Nsx
Id string - The NSX ID of this resource. If set, this ID will be used to create the policy resource.
- Path string
- The NSX path of the policy resource.
- Policy
Evpn stringTenant Id - 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
Evpn Tenant Tag> - A list of scope + tag pairs to associate with this resource.
- Transport
Zone stringPath - Policy path for Overlay Transport Zone.
- Vni
Pool stringPath - Policy path for existing VNI pool.
- Description string
- Description of the resource.
- Display
Name string - Display name of the resource.
- Mappings
[]Policy
Evpn Tenant Mapping Args - List of VLAN - VNI mappings for this tenant.
- Nsx
Id string - The NSX ID of this resource. If set, this ID will be used to create the policy resource.
- Path string
- The NSX path of the policy resource.
- Policy
Evpn stringTenant Id - Revision float64
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- []Policy
Evpn Tenant Tag Args - A list of scope + tag pairs to associate with this resource.
- Transport
Zone stringPath - Policy path for Overlay Transport Zone.
- Vni
Pool stringPath - Policy path for existing VNI pool.
- description String
- Description of the resource.
- display
Name String - Display name of the resource.
- mappings
List<Policy
Evpn Tenant Mapping> - List of VLAN - VNI mappings for this tenant.
- nsx
Id String - The NSX ID of this resource. If set, this ID will be used to create the policy resource.
- path String
- The NSX path of the policy resource.
- policy
Evpn StringTenant Id - 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
Evpn Tenant Tag> - A list of scope + tag pairs to associate with this resource.
- transport
Zone StringPath - Policy path for Overlay Transport Zone.
- vni
Pool StringPath - Policy path for existing VNI pool.
- description string
- Description of the resource.
- display
Name string - Display name of the resource.
- mappings
Policy
Evpn Tenant Mapping[] - List of VLAN - VNI mappings for this tenant.
- nsx
Id string - The NSX ID of this resource. If set, this ID will be used to create the policy resource.
- path string
- The NSX path of the policy resource.
- policy
Evpn stringTenant Id - revision number
- Indicates current revision number of the object as seen by NSX-T API server. This attribute can be useful for debugging.
- Policy
Evpn Tenant Tag[] - A list of scope + tag pairs to associate with this resource.
- transport
Zone stringPath - Policy path for Overlay Transport Zone.
- vni
Pool stringPath - Policy path for existing VNI pool.
- description str
- Description of the resource.
- display_
name str - Display name of the resource.
- mappings
Sequence[Policy
Evpn Tenant Mapping Args] - List of VLAN - VNI mappings for this tenant.
- nsx_
id str - The NSX ID of this resource. If set, this ID will be used to create the policy resource.
- path str
- The NSX path of the policy resource.
- policy_
evpn_ strtenant_ id - 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
Evpn Tenant Tag Args] - A list of scope + tag pairs to associate with this resource.
- transport_
zone_ strpath - Policy path for Overlay Transport Zone.
- vni_
pool_ strpath - Policy path for existing VNI pool.
- description String
- Description of the resource.
- display
Name String - Display name of the resource.
- mappings List<Property Map>
- List of VLAN - VNI mappings for this tenant.
- nsx
Id String - The NSX ID of this resource. If set, this ID will be used to create the policy resource.
- path String
- The NSX path of the policy resource.
- policy
Evpn StringTenant Id - 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.
- transport
Zone StringPath - Policy path for Overlay Transport Zone.
- vni
Pool StringPath - Policy path for existing VNI pool.
Supporting Types
PolicyEvpnTenantMapping, PolicyEvpnTenantMappingArgs
PolicyEvpnTenantTag, PolicyEvpnTenantTagArgs
Package Details
- Repository
- nsxt vmware/terraform-provider-nsxt
- License
- Notes
- This Pulumi package is based on the
nsxt
Terraform Provider.