ESXi Native v1.0.0 published on Monday, Aug 28, 2023 by pulumiverse
esxi-native.PortGroup
Explore with Pulumi AI
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.
- Forged
Transmits bool - Forged transmits (true=Accept/false=Reject).
- Mac
Changes bool - MAC address changes (true=Accept/false=Reject).
- Name string
- Virtual Switch name.
- Promiscuous
Mode bool - Promiscuous mode (true=Accept/false=Reject).
- Vlan int
- Port Group vlan id
- VSwitch string
- Virtual Switch Name.
- Forged
Transmits bool - Forged transmits (true=Accept/false=Reject).
- Mac
Changes bool - MAC address changes (true=Accept/false=Reject).
- Name string
- Virtual Switch name.
- Promiscuous
Mode bool - Promiscuous mode (true=Accept/false=Reject).
- Vlan int
- Port Group vlan id
- v
Switch String - Virtual Switch Name.
- forged
Transmits Boolean - Forged transmits (true=Accept/false=Reject).
- mac
Changes Boolean - MAC address changes (true=Accept/false=Reject).
- name String
- Virtual Switch name.
- promiscuous
Mode Boolean - Promiscuous mode (true=Accept/false=Reject).
- vlan Integer
- Port Group vlan id
- v
Switch string - Virtual Switch Name.
- forged
Transmits boolean - Forged transmits (true=Accept/false=Reject).
- mac
Changes boolean - MAC address changes (true=Accept/false=Reject).
- name string
- Virtual Switch name.
- promiscuous
Mode 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
- v
Switch String - Virtual Switch Name.
- forged
Transmits Boolean - Forged transmits (true=Accept/false=Reject).
- mac
Changes Boolean - MAC address changes (true=Accept/false=Reject).
- name String
- Virtual Switch name.
- promiscuous
Mode 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.