vsphere.DistributedVirtualSwitchPvlanMapping
Explore with Pulumi AI
Create DistributedVirtualSwitchPvlanMapping Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DistributedVirtualSwitchPvlanMapping(name: string, args: DistributedVirtualSwitchPvlanMappingArgs, opts?: CustomResourceOptions);
@overload
def DistributedVirtualSwitchPvlanMapping(resource_name: str,
args: DistributedVirtualSwitchPvlanMappingInitArgs,
opts: Optional[ResourceOptions] = None)
@overload
def DistributedVirtualSwitchPvlanMapping(resource_name: str,
opts: Optional[ResourceOptions] = None,
distributed_virtual_switch_id: Optional[str] = None,
primary_vlan_id: Optional[int] = None,
pvlan_type: Optional[str] = None,
secondary_vlan_id: Optional[int] = None)
func NewDistributedVirtualSwitchPvlanMapping(ctx *Context, name string, args DistributedVirtualSwitchPvlanMappingArgs, opts ...ResourceOption) (*DistributedVirtualSwitchPvlanMapping, error)
public DistributedVirtualSwitchPvlanMapping(string name, DistributedVirtualSwitchPvlanMappingArgs args, CustomResourceOptions? opts = null)
public DistributedVirtualSwitchPvlanMapping(String name, DistributedVirtualSwitchPvlanMappingArgs args)
public DistributedVirtualSwitchPvlanMapping(String name, DistributedVirtualSwitchPvlanMappingArgs args, CustomResourceOptions options)
type: vsphere:DistributedVirtualSwitchPvlanMapping
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 DistributedVirtualSwitchPvlanMappingArgs
- 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 DistributedVirtualSwitchPvlanMappingInitArgs
- 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 DistributedVirtualSwitchPvlanMappingArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DistributedVirtualSwitchPvlanMappingArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DistributedVirtualSwitchPvlanMappingArgs
- 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 distributedVirtualSwitchPvlanMappingResource = new VSphere.DistributedVirtualSwitchPvlanMapping("distributedVirtualSwitchPvlanMappingResource", new()
{
DistributedVirtualSwitchId = "string",
PrimaryVlanId = 0,
PvlanType = "string",
SecondaryVlanId = 0,
});
example, err := vsphere.NewDistributedVirtualSwitchPvlanMapping(ctx, "distributedVirtualSwitchPvlanMappingResource", &vsphere.DistributedVirtualSwitchPvlanMappingArgs{
DistributedVirtualSwitchId: pulumi.String("string"),
PrimaryVlanId: pulumi.Int(0),
PvlanType: pulumi.String("string"),
SecondaryVlanId: pulumi.Int(0),
})
var distributedVirtualSwitchPvlanMappingResource = new DistributedVirtualSwitchPvlanMapping("distributedVirtualSwitchPvlanMappingResource", DistributedVirtualSwitchPvlanMappingArgs.builder()
.distributedVirtualSwitchId("string")
.primaryVlanId(0)
.pvlanType("string")
.secondaryVlanId(0)
.build());
distributed_virtual_switch_pvlan_mapping_resource = vsphere.DistributedVirtualSwitchPvlanMapping("distributedVirtualSwitchPvlanMappingResource",
distributed_virtual_switch_id="string",
primary_vlan_id=0,
pvlan_type="string",
secondary_vlan_id=0)
const distributedVirtualSwitchPvlanMappingResource = new vsphere.DistributedVirtualSwitchPvlanMapping("distributedVirtualSwitchPvlanMappingResource", {
distributedVirtualSwitchId: "string",
primaryVlanId: 0,
pvlanType: "string",
secondaryVlanId: 0,
});
type: vsphere:DistributedVirtualSwitchPvlanMapping
properties:
distributedVirtualSwitchId: string
primaryVlanId: 0
pvlanType: string
secondaryVlanId: 0
DistributedVirtualSwitchPvlanMapping 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 DistributedVirtualSwitchPvlanMapping resource accepts the following input properties:
- Distributed
Virtual stringSwitch Id - The ID of the distributed virtual switch to attach this mapping to.
- Primary
Vlan intId - The primary VLAN ID. The VLAN IDs of 0 and 4095 are reserved and cannot be used in this property.
- Pvlan
Type string - The private VLAN type. Valid values are promiscuous, community and isolated.
- Secondary
Vlan intId - The secondary VLAN ID. The VLAN IDs of 0 and 4095 are reserved and cannot be used in this property.
- Distributed
Virtual stringSwitch Id - The ID of the distributed virtual switch to attach this mapping to.
- Primary
Vlan intId - The primary VLAN ID. The VLAN IDs of 0 and 4095 are reserved and cannot be used in this property.
- Pvlan
Type string - The private VLAN type. Valid values are promiscuous, community and isolated.
- Secondary
Vlan intId - The secondary VLAN ID. The VLAN IDs of 0 and 4095 are reserved and cannot be used in this property.
- distributed
Virtual StringSwitch Id - The ID of the distributed virtual switch to attach this mapping to.
- primary
Vlan IntegerId - The primary VLAN ID. The VLAN IDs of 0 and 4095 are reserved and cannot be used in this property.
- pvlan
Type String - The private VLAN type. Valid values are promiscuous, community and isolated.
- secondary
Vlan IntegerId - The secondary VLAN ID. The VLAN IDs of 0 and 4095 are reserved and cannot be used in this property.
- distributed
Virtual stringSwitch Id - The ID of the distributed virtual switch to attach this mapping to.
- primary
Vlan numberId - The primary VLAN ID. The VLAN IDs of 0 and 4095 are reserved and cannot be used in this property.
- pvlan
Type string - The private VLAN type. Valid values are promiscuous, community and isolated.
- secondary
Vlan numberId - The secondary VLAN ID. The VLAN IDs of 0 and 4095 are reserved and cannot be used in this property.
- distributed_
virtual_ strswitch_ id - The ID of the distributed virtual switch to attach this mapping to.
- primary_
vlan_ intid - The primary VLAN ID. The VLAN IDs of 0 and 4095 are reserved and cannot be used in this property.
- pvlan_
type str - The private VLAN type. Valid values are promiscuous, community and isolated.
- secondary_
vlan_ intid - The secondary VLAN ID. The VLAN IDs of 0 and 4095 are reserved and cannot be used in this property.
- distributed
Virtual StringSwitch Id - The ID of the distributed virtual switch to attach this mapping to.
- primary
Vlan NumberId - The primary VLAN ID. The VLAN IDs of 0 and 4095 are reserved and cannot be used in this property.
- pvlan
Type String - The private VLAN type. Valid values are promiscuous, community and isolated.
- secondary
Vlan NumberId - The secondary VLAN ID. The VLAN IDs of 0 and 4095 are reserved and cannot be used in this property.
Outputs
All input properties are implicitly available as output properties. Additionally, the DistributedVirtualSwitchPvlanMapping resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing DistributedVirtualSwitchPvlanMapping Resource
Get an existing DistributedVirtualSwitchPvlanMapping 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?: DistributedVirtualSwitchPvlanMappingState, opts?: CustomResourceOptions): DistributedVirtualSwitchPvlanMapping
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
distributed_virtual_switch_id: Optional[str] = None,
primary_vlan_id: Optional[int] = None,
pvlan_type: Optional[str] = None,
secondary_vlan_id: Optional[int] = None) -> DistributedVirtualSwitchPvlanMapping
func GetDistributedVirtualSwitchPvlanMapping(ctx *Context, name string, id IDInput, state *DistributedVirtualSwitchPvlanMappingState, opts ...ResourceOption) (*DistributedVirtualSwitchPvlanMapping, error)
public static DistributedVirtualSwitchPvlanMapping Get(string name, Input<string> id, DistributedVirtualSwitchPvlanMappingState? state, CustomResourceOptions? opts = null)
public static DistributedVirtualSwitchPvlanMapping get(String name, Output<String> id, DistributedVirtualSwitchPvlanMappingState state, CustomResourceOptions options)
resources: _: type: vsphere:DistributedVirtualSwitchPvlanMapping 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.
- Distributed
Virtual stringSwitch Id - The ID of the distributed virtual switch to attach this mapping to.
- Primary
Vlan intId - The primary VLAN ID. The VLAN IDs of 0 and 4095 are reserved and cannot be used in this property.
- Pvlan
Type string - The private VLAN type. Valid values are promiscuous, community and isolated.
- Secondary
Vlan intId - The secondary VLAN ID. The VLAN IDs of 0 and 4095 are reserved and cannot be used in this property.
- Distributed
Virtual stringSwitch Id - The ID of the distributed virtual switch to attach this mapping to.
- Primary
Vlan intId - The primary VLAN ID. The VLAN IDs of 0 and 4095 are reserved and cannot be used in this property.
- Pvlan
Type string - The private VLAN type. Valid values are promiscuous, community and isolated.
- Secondary
Vlan intId - The secondary VLAN ID. The VLAN IDs of 0 and 4095 are reserved and cannot be used in this property.
- distributed
Virtual StringSwitch Id - The ID of the distributed virtual switch to attach this mapping to.
- primary
Vlan IntegerId - The primary VLAN ID. The VLAN IDs of 0 and 4095 are reserved and cannot be used in this property.
- pvlan
Type String - The private VLAN type. Valid values are promiscuous, community and isolated.
- secondary
Vlan IntegerId - The secondary VLAN ID. The VLAN IDs of 0 and 4095 are reserved and cannot be used in this property.
- distributed
Virtual stringSwitch Id - The ID of the distributed virtual switch to attach this mapping to.
- primary
Vlan numberId - The primary VLAN ID. The VLAN IDs of 0 and 4095 are reserved and cannot be used in this property.
- pvlan
Type string - The private VLAN type. Valid values are promiscuous, community and isolated.
- secondary
Vlan numberId - The secondary VLAN ID. The VLAN IDs of 0 and 4095 are reserved and cannot be used in this property.
- distributed_
virtual_ strswitch_ id - The ID of the distributed virtual switch to attach this mapping to.
- primary_
vlan_ intid - The primary VLAN ID. The VLAN IDs of 0 and 4095 are reserved and cannot be used in this property.
- pvlan_
type str - The private VLAN type. Valid values are promiscuous, community and isolated.
- secondary_
vlan_ intid - The secondary VLAN ID. The VLAN IDs of 0 and 4095 are reserved and cannot be used in this property.
- distributed
Virtual StringSwitch Id - The ID of the distributed virtual switch to attach this mapping to.
- primary
Vlan NumberId - The primary VLAN ID. The VLAN IDs of 0 and 4095 are reserved and cannot be used in this property.
- pvlan
Type String - The private VLAN type. Valid values are promiscuous, community and isolated.
- secondary
Vlan NumberId - The secondary VLAN ID. The VLAN IDs of 0 and 4095 are reserved and cannot be used in this property.
Package Details
- Repository
- vSphere pulumi/pulumi-vsphere
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
vsphere
Terraform Provider.