1. Packages
  2. Vsphere Provider
  3. API Docs
  4. DistributedVirtualSwitchPvlanMapping
vSphere v4.13.1 published on Wednesday, Feb 5, 2025 by Pulumi

vsphere.DistributedVirtualSwitchPvlanMapping

Explore with Pulumi AI

vsphere logo
vSphere v4.13.1 published on Wednesday, Feb 5, 2025 by Pulumi

    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:

    DistributedVirtualSwitchId string
    The ID of the distributed virtual switch to attach this mapping to.
    PrimaryVlanId int
    The primary VLAN ID. The VLAN IDs of 0 and 4095 are reserved and cannot be used in this property.
    PvlanType string
    The private VLAN type. Valid values are promiscuous, community and isolated.
    SecondaryVlanId int
    The secondary VLAN ID. The VLAN IDs of 0 and 4095 are reserved and cannot be used in this property.
    DistributedVirtualSwitchId string
    The ID of the distributed virtual switch to attach this mapping to.
    PrimaryVlanId int
    The primary VLAN ID. The VLAN IDs of 0 and 4095 are reserved and cannot be used in this property.
    PvlanType string
    The private VLAN type. Valid values are promiscuous, community and isolated.
    SecondaryVlanId int
    The secondary VLAN ID. The VLAN IDs of 0 and 4095 are reserved and cannot be used in this property.
    distributedVirtualSwitchId String
    The ID of the distributed virtual switch to attach this mapping to.
    primaryVlanId Integer
    The primary VLAN ID. The VLAN IDs of 0 and 4095 are reserved and cannot be used in this property.
    pvlanType String
    The private VLAN type. Valid values are promiscuous, community and isolated.
    secondaryVlanId Integer
    The secondary VLAN ID. The VLAN IDs of 0 and 4095 are reserved and cannot be used in this property.
    distributedVirtualSwitchId string
    The ID of the distributed virtual switch to attach this mapping to.
    primaryVlanId number
    The primary VLAN ID. The VLAN IDs of 0 and 4095 are reserved and cannot be used in this property.
    pvlanType string
    The private VLAN type. Valid values are promiscuous, community and isolated.
    secondaryVlanId number
    The secondary VLAN ID. The VLAN IDs of 0 and 4095 are reserved and cannot be used in this property.
    distributed_virtual_switch_id str
    The ID of the distributed virtual switch to attach this mapping to.
    primary_vlan_id int
    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_id int
    The secondary VLAN ID. The VLAN IDs of 0 and 4095 are reserved and cannot be used in this property.
    distributedVirtualSwitchId String
    The ID of the distributed virtual switch to attach this mapping to.
    primaryVlanId Number
    The primary VLAN ID. The VLAN IDs of 0 and 4095 are reserved and cannot be used in this property.
    pvlanType String
    The private VLAN type. Valid values are promiscuous, community and isolated.
    secondaryVlanId Number
    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.
    The following state arguments are supported:
    DistributedVirtualSwitchId string
    The ID of the distributed virtual switch to attach this mapping to.
    PrimaryVlanId int
    The primary VLAN ID. The VLAN IDs of 0 and 4095 are reserved and cannot be used in this property.
    PvlanType string
    The private VLAN type. Valid values are promiscuous, community and isolated.
    SecondaryVlanId int
    The secondary VLAN ID. The VLAN IDs of 0 and 4095 are reserved and cannot be used in this property.
    DistributedVirtualSwitchId string
    The ID of the distributed virtual switch to attach this mapping to.
    PrimaryVlanId int
    The primary VLAN ID. The VLAN IDs of 0 and 4095 are reserved and cannot be used in this property.
    PvlanType string
    The private VLAN type. Valid values are promiscuous, community and isolated.
    SecondaryVlanId int
    The secondary VLAN ID. The VLAN IDs of 0 and 4095 are reserved and cannot be used in this property.
    distributedVirtualSwitchId String
    The ID of the distributed virtual switch to attach this mapping to.
    primaryVlanId Integer
    The primary VLAN ID. The VLAN IDs of 0 and 4095 are reserved and cannot be used in this property.
    pvlanType String
    The private VLAN type. Valid values are promiscuous, community and isolated.
    secondaryVlanId Integer
    The secondary VLAN ID. The VLAN IDs of 0 and 4095 are reserved and cannot be used in this property.
    distributedVirtualSwitchId string
    The ID of the distributed virtual switch to attach this mapping to.
    primaryVlanId number
    The primary VLAN ID. The VLAN IDs of 0 and 4095 are reserved and cannot be used in this property.
    pvlanType string
    The private VLAN type. Valid values are promiscuous, community and isolated.
    secondaryVlanId number
    The secondary VLAN ID. The VLAN IDs of 0 and 4095 are reserved and cannot be used in this property.
    distributed_virtual_switch_id str
    The ID of the distributed virtual switch to attach this mapping to.
    primary_vlan_id int
    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_id int
    The secondary VLAN ID. The VLAN IDs of 0 and 4095 are reserved and cannot be used in this property.
    distributedVirtualSwitchId String
    The ID of the distributed virtual switch to attach this mapping to.
    primaryVlanId Number
    The primary VLAN ID. The VLAN IDs of 0 and 4095 are reserved and cannot be used in this property.
    pvlanType String
    The private VLAN type. Valid values are promiscuous, community and isolated.
    secondaryVlanId Number
    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.
    vsphere logo
    vSphere v4.13.1 published on Wednesday, Feb 5, 2025 by Pulumi