1. Packages
  2. vSphere
  3. API Docs
  4. HostVirtualSwitch
vSphere v4.10.1 published on Friday, May 10, 2024 by Pulumi

vsphere.HostVirtualSwitch

Explore with Pulumi AI

vsphere logo
vSphere v4.10.1 published on Friday, May 10, 2024 by Pulumi

    Create HostVirtualSwitch Resource

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

    Constructor syntax

    new HostVirtualSwitch(name: string, args: HostVirtualSwitchArgs, opts?: CustomResourceOptions);
    @overload
    def HostVirtualSwitch(resource_name: str,
                          args: HostVirtualSwitchArgs,
                          opts: Optional[ResourceOptions] = None)
    
    @overload
    def HostVirtualSwitch(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          host_system_id: Optional[str] = None,
                          network_adapters: Optional[Sequence[str]] = None,
                          active_nics: Optional[Sequence[str]] = None,
                          mtu: Optional[int] = None,
                          allow_forged_transmits: Optional[bool] = None,
                          check_beacon: Optional[bool] = None,
                          failback: Optional[bool] = None,
                          allow_promiscuous: Optional[bool] = None,
                          link_discovery_operation: Optional[str] = None,
                          link_discovery_protocol: Optional[str] = None,
                          allow_mac_changes: Optional[bool] = None,
                          name: Optional[str] = None,
                          beacon_interval: Optional[int] = None,
                          notify_switches: Optional[bool] = None,
                          number_of_ports: Optional[int] = None,
                          shaping_average_bandwidth: Optional[int] = None,
                          shaping_burst_size: Optional[int] = None,
                          shaping_enabled: Optional[bool] = None,
                          shaping_peak_bandwidth: Optional[int] = None,
                          standby_nics: Optional[Sequence[str]] = None,
                          teaming_policy: Optional[str] = None)
    func NewHostVirtualSwitch(ctx *Context, name string, args HostVirtualSwitchArgs, opts ...ResourceOption) (*HostVirtualSwitch, error)
    public HostVirtualSwitch(string name, HostVirtualSwitchArgs args, CustomResourceOptions? opts = null)
    public HostVirtualSwitch(String name, HostVirtualSwitchArgs args)
    public HostVirtualSwitch(String name, HostVirtualSwitchArgs args, CustomResourceOptions options)
    
    type: vsphere:HostVirtualSwitch
    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 HostVirtualSwitchArgs
    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 HostVirtualSwitchArgs
    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 HostVirtualSwitchArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args HostVirtualSwitchArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args HostVirtualSwitchArgs
    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 hostVirtualSwitchResource = new VSphere.HostVirtualSwitch("hostVirtualSwitchResource", new()
    {
        HostSystemId = "string",
        NetworkAdapters = new[]
        {
            "string",
        },
        ActiveNics = new[]
        {
            "string",
        },
        Mtu = 0,
        AllowForgedTransmits = false,
        CheckBeacon = false,
        Failback = false,
        AllowPromiscuous = false,
        LinkDiscoveryOperation = "string",
        LinkDiscoveryProtocol = "string",
        AllowMacChanges = false,
        Name = "string",
        BeaconInterval = 0,
        NotifySwitches = false,
        NumberOfPorts = 0,
        ShapingAverageBandwidth = 0,
        ShapingBurstSize = 0,
        ShapingEnabled = false,
        ShapingPeakBandwidth = 0,
        StandbyNics = new[]
        {
            "string",
        },
        TeamingPolicy = "string",
    });
    
    example, err := vsphere.NewHostVirtualSwitch(ctx, "hostVirtualSwitchResource", &vsphere.HostVirtualSwitchArgs{
    	HostSystemId: pulumi.String("string"),
    	NetworkAdapters: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	ActiveNics: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Mtu:                     pulumi.Int(0),
    	AllowForgedTransmits:    pulumi.Bool(false),
    	CheckBeacon:             pulumi.Bool(false),
    	Failback:                pulumi.Bool(false),
    	AllowPromiscuous:        pulumi.Bool(false),
    	LinkDiscoveryOperation:  pulumi.String("string"),
    	LinkDiscoveryProtocol:   pulumi.String("string"),
    	AllowMacChanges:         pulumi.Bool(false),
    	Name:                    pulumi.String("string"),
    	BeaconInterval:          pulumi.Int(0),
    	NotifySwitches:          pulumi.Bool(false),
    	NumberOfPorts:           pulumi.Int(0),
    	ShapingAverageBandwidth: pulumi.Int(0),
    	ShapingBurstSize:        pulumi.Int(0),
    	ShapingEnabled:          pulumi.Bool(false),
    	ShapingPeakBandwidth:    pulumi.Int(0),
    	StandbyNics: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	TeamingPolicy: pulumi.String("string"),
    })
    
    var hostVirtualSwitchResource = new HostVirtualSwitch("hostVirtualSwitchResource", HostVirtualSwitchArgs.builder()
        .hostSystemId("string")
        .networkAdapters("string")
        .activeNics("string")
        .mtu(0)
        .allowForgedTransmits(false)
        .checkBeacon(false)
        .failback(false)
        .allowPromiscuous(false)
        .linkDiscoveryOperation("string")
        .linkDiscoveryProtocol("string")
        .allowMacChanges(false)
        .name("string")
        .beaconInterval(0)
        .notifySwitches(false)
        .numberOfPorts(0)
        .shapingAverageBandwidth(0)
        .shapingBurstSize(0)
        .shapingEnabled(false)
        .shapingPeakBandwidth(0)
        .standbyNics("string")
        .teamingPolicy("string")
        .build());
    
    host_virtual_switch_resource = vsphere.HostVirtualSwitch("hostVirtualSwitchResource",
        host_system_id="string",
        network_adapters=["string"],
        active_nics=["string"],
        mtu=0,
        allow_forged_transmits=False,
        check_beacon=False,
        failback=False,
        allow_promiscuous=False,
        link_discovery_operation="string",
        link_discovery_protocol="string",
        allow_mac_changes=False,
        name="string",
        beacon_interval=0,
        notify_switches=False,
        number_of_ports=0,
        shaping_average_bandwidth=0,
        shaping_burst_size=0,
        shaping_enabled=False,
        shaping_peak_bandwidth=0,
        standby_nics=["string"],
        teaming_policy="string")
    
    const hostVirtualSwitchResource = new vsphere.HostVirtualSwitch("hostVirtualSwitchResource", {
        hostSystemId: "string",
        networkAdapters: ["string"],
        activeNics: ["string"],
        mtu: 0,
        allowForgedTransmits: false,
        checkBeacon: false,
        failback: false,
        allowPromiscuous: false,
        linkDiscoveryOperation: "string",
        linkDiscoveryProtocol: "string",
        allowMacChanges: false,
        name: "string",
        beaconInterval: 0,
        notifySwitches: false,
        numberOfPorts: 0,
        shapingAverageBandwidth: 0,
        shapingBurstSize: 0,
        shapingEnabled: false,
        shapingPeakBandwidth: 0,
        standbyNics: ["string"],
        teamingPolicy: "string",
    });
    
    type: vsphere:HostVirtualSwitch
    properties:
        activeNics:
            - string
        allowForgedTransmits: false
        allowMacChanges: false
        allowPromiscuous: false
        beaconInterval: 0
        checkBeacon: false
        failback: false
        hostSystemId: string
        linkDiscoveryOperation: string
        linkDiscoveryProtocol: string
        mtu: 0
        name: string
        networkAdapters:
            - string
        notifySwitches: false
        numberOfPorts: 0
        shapingAverageBandwidth: 0
        shapingBurstSize: 0
        shapingEnabled: false
        shapingPeakBandwidth: 0
        standbyNics:
            - string
        teamingPolicy: string
    

    HostVirtualSwitch Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The HostVirtualSwitch resource accepts the following input properties:

    ActiveNics List<string>
    List of active network adapters used for load balancing.
    HostSystemId string
    The managed object ID of the host to set the virtual switch up on. Forces a new resource if changed.
    NetworkAdapters List<string>
    The list of network adapters to bind to this virtual switch.
    AllowForgedTransmits bool
    Controls whether or not the virtual network adapter is allowed to send network traffic with a different MAC address than that of its own.
    AllowMacChanges bool
    Controls whether or not the Media Access Control (MAC) address can be changed.
    AllowPromiscuous bool
    Enable promiscuous mode on the network. This flag indicates whether or not all traffic is seen on a given port.
    BeaconInterval int
    Determines how often, in seconds, a beacon should be sent to probe for the validity of a link.
    CheckBeacon bool
    Enable beacon probing. Requires that the vSwitch has been configured to use a beacon. If disabled, link status is used only.
    Failback bool
    If true, the teaming policy will re-activate failed interfaces higher in precedence when they come back up.
    LinkDiscoveryOperation string
    Whether to advertise or listen for link discovery. Valid values are advertise, both, listen, and none.
    LinkDiscoveryProtocol string
    The discovery protocol type. Valid values are cdp and lldp.
    Mtu int
    The maximum transmission unit (MTU) for the virtual switch. Default: 1500.
    Name string
    The name of the virtual switch. Forces a new resource if changed.
    NotifySwitches bool
    If true, the teaming policy will notify the broadcast network of a NIC failover, triggering cache updates.
    NumberOfPorts int

    The number of ports to create with this virtual switch. Default: 128.

    NOTE: Changing the port count requires a reboot of the host. This provider will not restart the host for you.

    ShapingAverageBandwidth int
    The average bandwidth in bits per second if traffic shaping is enabled.
    ShapingBurstSize int
    The maximum burst size allowed in bytes if traffic shaping is enabled.
    ShapingEnabled bool
    Enable traffic shaping on this virtual switch or port group.
    ShapingPeakBandwidth int
    The peak bandwidth during bursts in bits per second if traffic shaping is enabled.
    StandbyNics List<string>
    List of standby network adapters used for failover.
    TeamingPolicy string
    The network adapter teaming policy. Can be one of loadbalance_ip, loadbalance_srcmac, loadbalance_srcid, or failover_explicit.
    ActiveNics []string
    List of active network adapters used for load balancing.
    HostSystemId string
    The managed object ID of the host to set the virtual switch up on. Forces a new resource if changed.
    NetworkAdapters []string
    The list of network adapters to bind to this virtual switch.
    AllowForgedTransmits bool
    Controls whether or not the virtual network adapter is allowed to send network traffic with a different MAC address than that of its own.
    AllowMacChanges bool
    Controls whether or not the Media Access Control (MAC) address can be changed.
    AllowPromiscuous bool
    Enable promiscuous mode on the network. This flag indicates whether or not all traffic is seen on a given port.
    BeaconInterval int
    Determines how often, in seconds, a beacon should be sent to probe for the validity of a link.
    CheckBeacon bool
    Enable beacon probing. Requires that the vSwitch has been configured to use a beacon. If disabled, link status is used only.
    Failback bool
    If true, the teaming policy will re-activate failed interfaces higher in precedence when they come back up.
    LinkDiscoveryOperation string
    Whether to advertise or listen for link discovery. Valid values are advertise, both, listen, and none.
    LinkDiscoveryProtocol string
    The discovery protocol type. Valid values are cdp and lldp.
    Mtu int
    The maximum transmission unit (MTU) for the virtual switch. Default: 1500.
    Name string
    The name of the virtual switch. Forces a new resource if changed.
    NotifySwitches bool
    If true, the teaming policy will notify the broadcast network of a NIC failover, triggering cache updates.
    NumberOfPorts int

    The number of ports to create with this virtual switch. Default: 128.

    NOTE: Changing the port count requires a reboot of the host. This provider will not restart the host for you.

    ShapingAverageBandwidth int
    The average bandwidth in bits per second if traffic shaping is enabled.
    ShapingBurstSize int
    The maximum burst size allowed in bytes if traffic shaping is enabled.
    ShapingEnabled bool
    Enable traffic shaping on this virtual switch or port group.
    ShapingPeakBandwidth int
    The peak bandwidth during bursts in bits per second if traffic shaping is enabled.
    StandbyNics []string
    List of standby network adapters used for failover.
    TeamingPolicy string
    The network adapter teaming policy. Can be one of loadbalance_ip, loadbalance_srcmac, loadbalance_srcid, or failover_explicit.
    activeNics List<String>
    List of active network adapters used for load balancing.
    hostSystemId String
    The managed object ID of the host to set the virtual switch up on. Forces a new resource if changed.
    networkAdapters List<String>
    The list of network adapters to bind to this virtual switch.
    allowForgedTransmits Boolean
    Controls whether or not the virtual network adapter is allowed to send network traffic with a different MAC address than that of its own.
    allowMacChanges Boolean
    Controls whether or not the Media Access Control (MAC) address can be changed.
    allowPromiscuous Boolean
    Enable promiscuous mode on the network. This flag indicates whether or not all traffic is seen on a given port.
    beaconInterval Integer
    Determines how often, in seconds, a beacon should be sent to probe for the validity of a link.
    checkBeacon Boolean
    Enable beacon probing. Requires that the vSwitch has been configured to use a beacon. If disabled, link status is used only.
    failback Boolean
    If true, the teaming policy will re-activate failed interfaces higher in precedence when they come back up.
    linkDiscoveryOperation String
    Whether to advertise or listen for link discovery. Valid values are advertise, both, listen, and none.
    linkDiscoveryProtocol String
    The discovery protocol type. Valid values are cdp and lldp.
    mtu Integer
    The maximum transmission unit (MTU) for the virtual switch. Default: 1500.
    name String
    The name of the virtual switch. Forces a new resource if changed.
    notifySwitches Boolean
    If true, the teaming policy will notify the broadcast network of a NIC failover, triggering cache updates.
    numberOfPorts Integer

    The number of ports to create with this virtual switch. Default: 128.

    NOTE: Changing the port count requires a reboot of the host. This provider will not restart the host for you.

    shapingAverageBandwidth Integer
    The average bandwidth in bits per second if traffic shaping is enabled.
    shapingBurstSize Integer
    The maximum burst size allowed in bytes if traffic shaping is enabled.
    shapingEnabled Boolean
    Enable traffic shaping on this virtual switch or port group.
    shapingPeakBandwidth Integer
    The peak bandwidth during bursts in bits per second if traffic shaping is enabled.
    standbyNics List<String>
    List of standby network adapters used for failover.
    teamingPolicy String
    The network adapter teaming policy. Can be one of loadbalance_ip, loadbalance_srcmac, loadbalance_srcid, or failover_explicit.
    activeNics string[]
    List of active network adapters used for load balancing.
    hostSystemId string
    The managed object ID of the host to set the virtual switch up on. Forces a new resource if changed.
    networkAdapters string[]
    The list of network adapters to bind to this virtual switch.
    allowForgedTransmits boolean
    Controls whether or not the virtual network adapter is allowed to send network traffic with a different MAC address than that of its own.
    allowMacChanges boolean
    Controls whether or not the Media Access Control (MAC) address can be changed.
    allowPromiscuous boolean
    Enable promiscuous mode on the network. This flag indicates whether or not all traffic is seen on a given port.
    beaconInterval number
    Determines how often, in seconds, a beacon should be sent to probe for the validity of a link.
    checkBeacon boolean
    Enable beacon probing. Requires that the vSwitch has been configured to use a beacon. If disabled, link status is used only.
    failback boolean
    If true, the teaming policy will re-activate failed interfaces higher in precedence when they come back up.
    linkDiscoveryOperation string
    Whether to advertise or listen for link discovery. Valid values are advertise, both, listen, and none.
    linkDiscoveryProtocol string
    The discovery protocol type. Valid values are cdp and lldp.
    mtu number
    The maximum transmission unit (MTU) for the virtual switch. Default: 1500.
    name string
    The name of the virtual switch. Forces a new resource if changed.
    notifySwitches boolean
    If true, the teaming policy will notify the broadcast network of a NIC failover, triggering cache updates.
    numberOfPorts number

    The number of ports to create with this virtual switch. Default: 128.

    NOTE: Changing the port count requires a reboot of the host. This provider will not restart the host for you.

    shapingAverageBandwidth number
    The average bandwidth in bits per second if traffic shaping is enabled.
    shapingBurstSize number
    The maximum burst size allowed in bytes if traffic shaping is enabled.
    shapingEnabled boolean
    Enable traffic shaping on this virtual switch or port group.
    shapingPeakBandwidth number
    The peak bandwidth during bursts in bits per second if traffic shaping is enabled.
    standbyNics string[]
    List of standby network adapters used for failover.
    teamingPolicy string
    The network adapter teaming policy. Can be one of loadbalance_ip, loadbalance_srcmac, loadbalance_srcid, or failover_explicit.
    active_nics Sequence[str]
    List of active network adapters used for load balancing.
    host_system_id str
    The managed object ID of the host to set the virtual switch up on. Forces a new resource if changed.
    network_adapters Sequence[str]
    The list of network adapters to bind to this virtual switch.
    allow_forged_transmits bool
    Controls whether or not the virtual network adapter is allowed to send network traffic with a different MAC address than that of its own.
    allow_mac_changes bool
    Controls whether or not the Media Access Control (MAC) address can be changed.
    allow_promiscuous bool
    Enable promiscuous mode on the network. This flag indicates whether or not all traffic is seen on a given port.
    beacon_interval int
    Determines how often, in seconds, a beacon should be sent to probe for the validity of a link.
    check_beacon bool
    Enable beacon probing. Requires that the vSwitch has been configured to use a beacon. If disabled, link status is used only.
    failback bool
    If true, the teaming policy will re-activate failed interfaces higher in precedence when they come back up.
    link_discovery_operation str
    Whether to advertise or listen for link discovery. Valid values are advertise, both, listen, and none.
    link_discovery_protocol str
    The discovery protocol type. Valid values are cdp and lldp.
    mtu int
    The maximum transmission unit (MTU) for the virtual switch. Default: 1500.
    name str
    The name of the virtual switch. Forces a new resource if changed.
    notify_switches bool
    If true, the teaming policy will notify the broadcast network of a NIC failover, triggering cache updates.
    number_of_ports int

    The number of ports to create with this virtual switch. Default: 128.

    NOTE: Changing the port count requires a reboot of the host. This provider will not restart the host for you.

    shaping_average_bandwidth int
    The average bandwidth in bits per second if traffic shaping is enabled.
    shaping_burst_size int
    The maximum burst size allowed in bytes if traffic shaping is enabled.
    shaping_enabled bool
    Enable traffic shaping on this virtual switch or port group.
    shaping_peak_bandwidth int
    The peak bandwidth during bursts in bits per second if traffic shaping is enabled.
    standby_nics Sequence[str]
    List of standby network adapters used for failover.
    teaming_policy str
    The network adapter teaming policy. Can be one of loadbalance_ip, loadbalance_srcmac, loadbalance_srcid, or failover_explicit.
    activeNics List<String>
    List of active network adapters used for load balancing.
    hostSystemId String
    The managed object ID of the host to set the virtual switch up on. Forces a new resource if changed.
    networkAdapters List<String>
    The list of network adapters to bind to this virtual switch.
    allowForgedTransmits Boolean
    Controls whether or not the virtual network adapter is allowed to send network traffic with a different MAC address than that of its own.
    allowMacChanges Boolean
    Controls whether or not the Media Access Control (MAC) address can be changed.
    allowPromiscuous Boolean
    Enable promiscuous mode on the network. This flag indicates whether or not all traffic is seen on a given port.
    beaconInterval Number
    Determines how often, in seconds, a beacon should be sent to probe for the validity of a link.
    checkBeacon Boolean
    Enable beacon probing. Requires that the vSwitch has been configured to use a beacon. If disabled, link status is used only.
    failback Boolean
    If true, the teaming policy will re-activate failed interfaces higher in precedence when they come back up.
    linkDiscoveryOperation String
    Whether to advertise or listen for link discovery. Valid values are advertise, both, listen, and none.
    linkDiscoveryProtocol String
    The discovery protocol type. Valid values are cdp and lldp.
    mtu Number
    The maximum transmission unit (MTU) for the virtual switch. Default: 1500.
    name String
    The name of the virtual switch. Forces a new resource if changed.
    notifySwitches Boolean
    If true, the teaming policy will notify the broadcast network of a NIC failover, triggering cache updates.
    numberOfPorts Number

    The number of ports to create with this virtual switch. Default: 128.

    NOTE: Changing the port count requires a reboot of the host. This provider will not restart the host for you.

    shapingAverageBandwidth Number
    The average bandwidth in bits per second if traffic shaping is enabled.
    shapingBurstSize Number
    The maximum burst size allowed in bytes if traffic shaping is enabled.
    shapingEnabled Boolean
    Enable traffic shaping on this virtual switch or port group.
    shapingPeakBandwidth Number
    The peak bandwidth during bursts in bits per second if traffic shaping is enabled.
    standbyNics List<String>
    List of standby network adapters used for failover.
    teamingPolicy String
    The network adapter teaming policy. Can be one of loadbalance_ip, loadbalance_srcmac, loadbalance_srcid, or failover_explicit.

    Outputs

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

    Get an existing HostVirtualSwitch 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?: HostVirtualSwitchState, opts?: CustomResourceOptions): HostVirtualSwitch
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            active_nics: Optional[Sequence[str]] = None,
            allow_forged_transmits: Optional[bool] = None,
            allow_mac_changes: Optional[bool] = None,
            allow_promiscuous: Optional[bool] = None,
            beacon_interval: Optional[int] = None,
            check_beacon: Optional[bool] = None,
            failback: Optional[bool] = None,
            host_system_id: Optional[str] = None,
            link_discovery_operation: Optional[str] = None,
            link_discovery_protocol: Optional[str] = None,
            mtu: Optional[int] = None,
            name: Optional[str] = None,
            network_adapters: Optional[Sequence[str]] = None,
            notify_switches: Optional[bool] = None,
            number_of_ports: Optional[int] = None,
            shaping_average_bandwidth: Optional[int] = None,
            shaping_burst_size: Optional[int] = None,
            shaping_enabled: Optional[bool] = None,
            shaping_peak_bandwidth: Optional[int] = None,
            standby_nics: Optional[Sequence[str]] = None,
            teaming_policy: Optional[str] = None) -> HostVirtualSwitch
    func GetHostVirtualSwitch(ctx *Context, name string, id IDInput, state *HostVirtualSwitchState, opts ...ResourceOption) (*HostVirtualSwitch, error)
    public static HostVirtualSwitch Get(string name, Input<string> id, HostVirtualSwitchState? state, CustomResourceOptions? opts = null)
    public static HostVirtualSwitch get(String name, Output<String> id, HostVirtualSwitchState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    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:
    ActiveNics List<string>
    List of active network adapters used for load balancing.
    AllowForgedTransmits bool
    Controls whether or not the virtual network adapter is allowed to send network traffic with a different MAC address than that of its own.
    AllowMacChanges bool
    Controls whether or not the Media Access Control (MAC) address can be changed.
    AllowPromiscuous bool
    Enable promiscuous mode on the network. This flag indicates whether or not all traffic is seen on a given port.
    BeaconInterval int
    Determines how often, in seconds, a beacon should be sent to probe for the validity of a link.
    CheckBeacon bool
    Enable beacon probing. Requires that the vSwitch has been configured to use a beacon. If disabled, link status is used only.
    Failback bool
    If true, the teaming policy will re-activate failed interfaces higher in precedence when they come back up.
    HostSystemId string
    The managed object ID of the host to set the virtual switch up on. Forces a new resource if changed.
    LinkDiscoveryOperation string
    Whether to advertise or listen for link discovery. Valid values are advertise, both, listen, and none.
    LinkDiscoveryProtocol string
    The discovery protocol type. Valid values are cdp and lldp.
    Mtu int
    The maximum transmission unit (MTU) for the virtual switch. Default: 1500.
    Name string
    The name of the virtual switch. Forces a new resource if changed.
    NetworkAdapters List<string>
    The list of network adapters to bind to this virtual switch.
    NotifySwitches bool
    If true, the teaming policy will notify the broadcast network of a NIC failover, triggering cache updates.
    NumberOfPorts int

    The number of ports to create with this virtual switch. Default: 128.

    NOTE: Changing the port count requires a reboot of the host. This provider will not restart the host for you.

    ShapingAverageBandwidth int
    The average bandwidth in bits per second if traffic shaping is enabled.
    ShapingBurstSize int
    The maximum burst size allowed in bytes if traffic shaping is enabled.
    ShapingEnabled bool
    Enable traffic shaping on this virtual switch or port group.
    ShapingPeakBandwidth int
    The peak bandwidth during bursts in bits per second if traffic shaping is enabled.
    StandbyNics List<string>
    List of standby network adapters used for failover.
    TeamingPolicy string
    The network adapter teaming policy. Can be one of loadbalance_ip, loadbalance_srcmac, loadbalance_srcid, or failover_explicit.
    ActiveNics []string
    List of active network adapters used for load balancing.
    AllowForgedTransmits bool
    Controls whether or not the virtual network adapter is allowed to send network traffic with a different MAC address than that of its own.
    AllowMacChanges bool
    Controls whether or not the Media Access Control (MAC) address can be changed.
    AllowPromiscuous bool
    Enable promiscuous mode on the network. This flag indicates whether or not all traffic is seen on a given port.
    BeaconInterval int
    Determines how often, in seconds, a beacon should be sent to probe for the validity of a link.
    CheckBeacon bool
    Enable beacon probing. Requires that the vSwitch has been configured to use a beacon. If disabled, link status is used only.
    Failback bool
    If true, the teaming policy will re-activate failed interfaces higher in precedence when they come back up.
    HostSystemId string
    The managed object ID of the host to set the virtual switch up on. Forces a new resource if changed.
    LinkDiscoveryOperation string
    Whether to advertise or listen for link discovery. Valid values are advertise, both, listen, and none.
    LinkDiscoveryProtocol string
    The discovery protocol type. Valid values are cdp and lldp.
    Mtu int
    The maximum transmission unit (MTU) for the virtual switch. Default: 1500.
    Name string
    The name of the virtual switch. Forces a new resource if changed.
    NetworkAdapters []string
    The list of network adapters to bind to this virtual switch.
    NotifySwitches bool
    If true, the teaming policy will notify the broadcast network of a NIC failover, triggering cache updates.
    NumberOfPorts int

    The number of ports to create with this virtual switch. Default: 128.

    NOTE: Changing the port count requires a reboot of the host. This provider will not restart the host for you.

    ShapingAverageBandwidth int
    The average bandwidth in bits per second if traffic shaping is enabled.
    ShapingBurstSize int
    The maximum burst size allowed in bytes if traffic shaping is enabled.
    ShapingEnabled bool
    Enable traffic shaping on this virtual switch or port group.
    ShapingPeakBandwidth int
    The peak bandwidth during bursts in bits per second if traffic shaping is enabled.
    StandbyNics []string
    List of standby network adapters used for failover.
    TeamingPolicy string
    The network adapter teaming policy. Can be one of loadbalance_ip, loadbalance_srcmac, loadbalance_srcid, or failover_explicit.
    activeNics List<String>
    List of active network adapters used for load balancing.
    allowForgedTransmits Boolean
    Controls whether or not the virtual network adapter is allowed to send network traffic with a different MAC address than that of its own.
    allowMacChanges Boolean
    Controls whether or not the Media Access Control (MAC) address can be changed.
    allowPromiscuous Boolean
    Enable promiscuous mode on the network. This flag indicates whether or not all traffic is seen on a given port.
    beaconInterval Integer
    Determines how often, in seconds, a beacon should be sent to probe for the validity of a link.
    checkBeacon Boolean
    Enable beacon probing. Requires that the vSwitch has been configured to use a beacon. If disabled, link status is used only.
    failback Boolean
    If true, the teaming policy will re-activate failed interfaces higher in precedence when they come back up.
    hostSystemId String
    The managed object ID of the host to set the virtual switch up on. Forces a new resource if changed.
    linkDiscoveryOperation String
    Whether to advertise or listen for link discovery. Valid values are advertise, both, listen, and none.
    linkDiscoveryProtocol String
    The discovery protocol type. Valid values are cdp and lldp.
    mtu Integer
    The maximum transmission unit (MTU) for the virtual switch. Default: 1500.
    name String
    The name of the virtual switch. Forces a new resource if changed.
    networkAdapters List<String>
    The list of network adapters to bind to this virtual switch.
    notifySwitches Boolean
    If true, the teaming policy will notify the broadcast network of a NIC failover, triggering cache updates.
    numberOfPorts Integer

    The number of ports to create with this virtual switch. Default: 128.

    NOTE: Changing the port count requires a reboot of the host. This provider will not restart the host for you.

    shapingAverageBandwidth Integer
    The average bandwidth in bits per second if traffic shaping is enabled.
    shapingBurstSize Integer
    The maximum burst size allowed in bytes if traffic shaping is enabled.
    shapingEnabled Boolean
    Enable traffic shaping on this virtual switch or port group.
    shapingPeakBandwidth Integer
    The peak bandwidth during bursts in bits per second if traffic shaping is enabled.
    standbyNics List<String>
    List of standby network adapters used for failover.
    teamingPolicy String
    The network adapter teaming policy. Can be one of loadbalance_ip, loadbalance_srcmac, loadbalance_srcid, or failover_explicit.
    activeNics string[]
    List of active network adapters used for load balancing.
    allowForgedTransmits boolean
    Controls whether or not the virtual network adapter is allowed to send network traffic with a different MAC address than that of its own.
    allowMacChanges boolean
    Controls whether or not the Media Access Control (MAC) address can be changed.
    allowPromiscuous boolean
    Enable promiscuous mode on the network. This flag indicates whether or not all traffic is seen on a given port.
    beaconInterval number
    Determines how often, in seconds, a beacon should be sent to probe for the validity of a link.
    checkBeacon boolean
    Enable beacon probing. Requires that the vSwitch has been configured to use a beacon. If disabled, link status is used only.
    failback boolean
    If true, the teaming policy will re-activate failed interfaces higher in precedence when they come back up.
    hostSystemId string
    The managed object ID of the host to set the virtual switch up on. Forces a new resource if changed.
    linkDiscoveryOperation string
    Whether to advertise or listen for link discovery. Valid values are advertise, both, listen, and none.
    linkDiscoveryProtocol string
    The discovery protocol type. Valid values are cdp and lldp.
    mtu number
    The maximum transmission unit (MTU) for the virtual switch. Default: 1500.
    name string
    The name of the virtual switch. Forces a new resource if changed.
    networkAdapters string[]
    The list of network adapters to bind to this virtual switch.
    notifySwitches boolean
    If true, the teaming policy will notify the broadcast network of a NIC failover, triggering cache updates.
    numberOfPorts number

    The number of ports to create with this virtual switch. Default: 128.

    NOTE: Changing the port count requires a reboot of the host. This provider will not restart the host for you.

    shapingAverageBandwidth number
    The average bandwidth in bits per second if traffic shaping is enabled.
    shapingBurstSize number
    The maximum burst size allowed in bytes if traffic shaping is enabled.
    shapingEnabled boolean
    Enable traffic shaping on this virtual switch or port group.
    shapingPeakBandwidth number
    The peak bandwidth during bursts in bits per second if traffic shaping is enabled.
    standbyNics string[]
    List of standby network adapters used for failover.
    teamingPolicy string
    The network adapter teaming policy. Can be one of loadbalance_ip, loadbalance_srcmac, loadbalance_srcid, or failover_explicit.
    active_nics Sequence[str]
    List of active network adapters used for load balancing.
    allow_forged_transmits bool
    Controls whether or not the virtual network adapter is allowed to send network traffic with a different MAC address than that of its own.
    allow_mac_changes bool
    Controls whether or not the Media Access Control (MAC) address can be changed.
    allow_promiscuous bool
    Enable promiscuous mode on the network. This flag indicates whether or not all traffic is seen on a given port.
    beacon_interval int
    Determines how often, in seconds, a beacon should be sent to probe for the validity of a link.
    check_beacon bool
    Enable beacon probing. Requires that the vSwitch has been configured to use a beacon. If disabled, link status is used only.
    failback bool
    If true, the teaming policy will re-activate failed interfaces higher in precedence when they come back up.
    host_system_id str
    The managed object ID of the host to set the virtual switch up on. Forces a new resource if changed.
    link_discovery_operation str
    Whether to advertise or listen for link discovery. Valid values are advertise, both, listen, and none.
    link_discovery_protocol str
    The discovery protocol type. Valid values are cdp and lldp.
    mtu int
    The maximum transmission unit (MTU) for the virtual switch. Default: 1500.
    name str
    The name of the virtual switch. Forces a new resource if changed.
    network_adapters Sequence[str]
    The list of network adapters to bind to this virtual switch.
    notify_switches bool
    If true, the teaming policy will notify the broadcast network of a NIC failover, triggering cache updates.
    number_of_ports int

    The number of ports to create with this virtual switch. Default: 128.

    NOTE: Changing the port count requires a reboot of the host. This provider will not restart the host for you.

    shaping_average_bandwidth int
    The average bandwidth in bits per second if traffic shaping is enabled.
    shaping_burst_size int
    The maximum burst size allowed in bytes if traffic shaping is enabled.
    shaping_enabled bool
    Enable traffic shaping on this virtual switch or port group.
    shaping_peak_bandwidth int
    The peak bandwidth during bursts in bits per second if traffic shaping is enabled.
    standby_nics Sequence[str]
    List of standby network adapters used for failover.
    teaming_policy str
    The network adapter teaming policy. Can be one of loadbalance_ip, loadbalance_srcmac, loadbalance_srcid, or failover_explicit.
    activeNics List<String>
    List of active network adapters used for load balancing.
    allowForgedTransmits Boolean
    Controls whether or not the virtual network adapter is allowed to send network traffic with a different MAC address than that of its own.
    allowMacChanges Boolean
    Controls whether or not the Media Access Control (MAC) address can be changed.
    allowPromiscuous Boolean
    Enable promiscuous mode on the network. This flag indicates whether or not all traffic is seen on a given port.
    beaconInterval Number
    Determines how often, in seconds, a beacon should be sent to probe for the validity of a link.
    checkBeacon Boolean
    Enable beacon probing. Requires that the vSwitch has been configured to use a beacon. If disabled, link status is used only.
    failback Boolean
    If true, the teaming policy will re-activate failed interfaces higher in precedence when they come back up.
    hostSystemId String
    The managed object ID of the host to set the virtual switch up on. Forces a new resource if changed.
    linkDiscoveryOperation String
    Whether to advertise or listen for link discovery. Valid values are advertise, both, listen, and none.
    linkDiscoveryProtocol String
    The discovery protocol type. Valid values are cdp and lldp.
    mtu Number
    The maximum transmission unit (MTU) for the virtual switch. Default: 1500.
    name String
    The name of the virtual switch. Forces a new resource if changed.
    networkAdapters List<String>
    The list of network adapters to bind to this virtual switch.
    notifySwitches Boolean
    If true, the teaming policy will notify the broadcast network of a NIC failover, triggering cache updates.
    numberOfPorts Number

    The number of ports to create with this virtual switch. Default: 128.

    NOTE: Changing the port count requires a reboot of the host. This provider will not restart the host for you.

    shapingAverageBandwidth Number
    The average bandwidth in bits per second if traffic shaping is enabled.
    shapingBurstSize Number
    The maximum burst size allowed in bytes if traffic shaping is enabled.
    shapingEnabled Boolean
    Enable traffic shaping on this virtual switch or port group.
    shapingPeakBandwidth Number
    The peak bandwidth during bursts in bits per second if traffic shaping is enabled.
    standbyNics List<String>
    List of standby network adapters used for failover.
    teamingPolicy String
    The network adapter teaming policy. Can be one of loadbalance_ip, loadbalance_srcmac, loadbalance_srcid, or failover_explicit.

    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.10.1 published on Friday, May 10, 2024 by Pulumi