1. Packages
  2. ESXi Native
  3. API Docs
  4. PortGroup
ESXi Native v1.0.0 published on Monday, Aug 28, 2023 by pulumiverse

esxi-native.PortGroup

Explore with Pulumi AI

esxi-native logo
ESXi Native v1.0.0 published on Monday, Aug 28, 2023 by pulumiverse

    Create PortGroup Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new PortGroup(name: string, args: PortGroupArgs, opts?: CustomResourceOptions);
    @overload
    def PortGroup(resource_name: str,
                  args: PortGroupArgs,
                  opts: Optional[ResourceOptions] = None)
    
    @overload
    def PortGroup(resource_name: str,
                  opts: Optional[ResourceOptions] = None,
                  v_switch: Optional[str] = None,
                  forged_transmits: Optional[bool] = None,
                  mac_changes: Optional[bool] = None,
                  name: Optional[str] = None,
                  promiscuous_mode: Optional[bool] = None,
                  vlan: Optional[int] = None)
    func NewPortGroup(ctx *Context, name string, args PortGroupArgs, opts ...ResourceOption) (*PortGroup, error)
    public PortGroup(string name, PortGroupArgs args, CustomResourceOptions? opts = null)
    public PortGroup(String name, PortGroupArgs args)
    public PortGroup(String name, PortGroupArgs args, CustomResourceOptions options)
    
    type: esxi-native:PortGroup
    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 PortGroupArgs
    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 PortGroupArgs
    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 PortGroupArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args PortGroupArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args PortGroupArgs
    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 portGroupResource = new EsxiNative.PortGroup("portGroupResource", new()
    {
        VSwitch = "string",
        ForgedTransmits = false,
        MacChanges = false,
        Name = "string",
        PromiscuousMode = false,
        Vlan = 0,
    });
    
    example, err := esxinative.NewPortGroup(ctx, "portGroupResource", &esxinative.PortGroupArgs{
    	VSwitch:         pulumi.String("string"),
    	ForgedTransmits: pulumi.Bool(false),
    	MacChanges:      pulumi.Bool(false),
    	Name:            pulumi.String("string"),
    	PromiscuousMode: pulumi.Bool(false),
    	Vlan:            pulumi.Int(0),
    })
    
    var portGroupResource = new PortGroup("portGroupResource", PortGroupArgs.builder()
        .vSwitch("string")
        .forgedTransmits(false)
        .macChanges(false)
        .name("string")
        .promiscuousMode(false)
        .vlan(0)
        .build());
    
    port_group_resource = esxi_native.PortGroup("portGroupResource",
        v_switch="string",
        forged_transmits=False,
        mac_changes=False,
        name="string",
        promiscuous_mode=False,
        vlan=0)
    
    const portGroupResource = new esxi_native.PortGroup("portGroupResource", {
        vSwitch: "string",
        forgedTransmits: false,
        macChanges: false,
        name: "string",
        promiscuousMode: false,
        vlan: 0,
    });
    
    type: esxi-native:PortGroup
    properties:
        forgedTransmits: false
        macChanges: false
        name: string
        promiscuousMode: false
        vSwitch: string
        vlan: 0
    

    PortGroup 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 PortGroup resource accepts the following input properties:

    VSwitch string
    Virtual Switch Name.
    ForgedTransmits bool
    Forged transmits (true=Accept/false=Reject).
    MacChanges bool
    MAC address changes (true=Accept/false=Reject).
    Name string
    Virtual Switch name.
    PromiscuousMode bool
    Promiscuous mode (true=Accept/false=Reject).
    Vlan int
    Port Group vlan id
    VSwitch string
    Virtual Switch Name.
    ForgedTransmits bool
    Forged transmits (true=Accept/false=Reject).
    MacChanges bool
    MAC address changes (true=Accept/false=Reject).
    Name string
    Virtual Switch name.
    PromiscuousMode bool
    Promiscuous mode (true=Accept/false=Reject).
    Vlan int
    Port Group vlan id
    vSwitch String
    Virtual Switch Name.
    forgedTransmits Boolean
    Forged transmits (true=Accept/false=Reject).
    macChanges Boolean
    MAC address changes (true=Accept/false=Reject).
    name String
    Virtual Switch name.
    promiscuousMode Boolean
    Promiscuous mode (true=Accept/false=Reject).
    vlan Integer
    Port Group vlan id
    vSwitch string
    Virtual Switch Name.
    forgedTransmits boolean
    Forged transmits (true=Accept/false=Reject).
    macChanges boolean
    MAC address changes (true=Accept/false=Reject).
    name string
    Virtual Switch name.
    promiscuousMode boolean
    Promiscuous mode (true=Accept/false=Reject).
    vlan number
    Port Group vlan id
    v_switch str
    Virtual Switch Name.
    forged_transmits bool
    Forged transmits (true=Accept/false=Reject).
    mac_changes bool
    MAC address changes (true=Accept/false=Reject).
    name str
    Virtual Switch name.
    promiscuous_mode bool
    Promiscuous mode (true=Accept/false=Reject).
    vlan int
    Port Group vlan id
    vSwitch String
    Virtual Switch Name.
    forgedTransmits Boolean
    Forged transmits (true=Accept/false=Reject).
    macChanges Boolean
    MAC address changes (true=Accept/false=Reject).
    name String
    Virtual Switch name.
    promiscuousMode Boolean
    Promiscuous mode (true=Accept/false=Reject).
    vlan Number
    Port Group vlan id

    Outputs

    All input properties are implicitly available as output properties. Additionally, the PortGroup 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.

    Package Details

    Repository
    esxi-native pulumiverse/pulumi-esxi-native
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the Terraform Provider terraform-provider-esxi.
    esxi-native logo
    ESXi Native v1.0.0 published on Monday, Aug 28, 2023 by pulumiverse