diff --git a/sdk/dotnet/Inputs/VnicIpv4Args.cs b/sdk/dotnet/Inputs/VnicIpv4Args.cs
index 597a1b34..9e1bf839 100644
--- a/sdk/dotnet/Inputs/VnicIpv4Args.cs
+++ b/sdk/dotnet/Inputs/VnicIpv4Args.cs
@@ -13,7 +13,7 @@ namespace Pulumi.VSphere.Inputs
public sealed class VnicIpv4Args : global::Pulumi.ResourceArgs
{
///
- /// Use DHCP to configure the interface's IPv4 stack.
+ /// Use DHCP to configure the interface's IPv6 stack.
///
[Input("dhcp")]
public Input? Dhcp { get; set; }
diff --git a/sdk/dotnet/Inputs/VnicIpv4GetArgs.cs b/sdk/dotnet/Inputs/VnicIpv4GetArgs.cs
index 9e987a76..37aa93f4 100644
--- a/sdk/dotnet/Inputs/VnicIpv4GetArgs.cs
+++ b/sdk/dotnet/Inputs/VnicIpv4GetArgs.cs
@@ -13,7 +13,7 @@ namespace Pulumi.VSphere.Inputs
public sealed class VnicIpv4GetArgs : global::Pulumi.ResourceArgs
{
///
- /// Use DHCP to configure the interface's IPv4 stack.
+ /// Use DHCP to configure the interface's IPv6 stack.
///
[Input("dhcp")]
public Input? Dhcp { get; set; }
diff --git a/sdk/dotnet/Inputs/VnicIpv6Args.cs b/sdk/dotnet/Inputs/VnicIpv6Args.cs
index 349ecbaa..e9002348 100644
--- a/sdk/dotnet/Inputs/VnicIpv6Args.cs
+++ b/sdk/dotnet/Inputs/VnicIpv6Args.cs
@@ -31,7 +31,7 @@ public InputList Addresses
public Input? Autoconfig { get; set; }
///
- /// Use DHCP to configure the interface's IPv4 stack.
+ /// Use DHCP to configure the interface's IPv6 stack.
///
[Input("dhcp")]
public Input? Dhcp { get; set; }
diff --git a/sdk/dotnet/Inputs/VnicIpv6GetArgs.cs b/sdk/dotnet/Inputs/VnicIpv6GetArgs.cs
index 67bac855..886fed84 100644
--- a/sdk/dotnet/Inputs/VnicIpv6GetArgs.cs
+++ b/sdk/dotnet/Inputs/VnicIpv6GetArgs.cs
@@ -31,7 +31,7 @@ public InputList Addresses
public Input? Autoconfig { get; set; }
///
- /// Use DHCP to configure the interface's IPv4 stack.
+ /// Use DHCP to configure the interface's IPv6 stack.
///
[Input("dhcp")]
public Input? Dhcp { get; set; }
diff --git a/sdk/dotnet/Outputs/VnicIpv4.cs b/sdk/dotnet/Outputs/VnicIpv4.cs
index 8e504b17..61dd9b43 100644
--- a/sdk/dotnet/Outputs/VnicIpv4.cs
+++ b/sdk/dotnet/Outputs/VnicIpv4.cs
@@ -14,7 +14,7 @@ namespace Pulumi.VSphere.Outputs
public sealed class VnicIpv4
{
///
- /// Use DHCP to configure the interface's IPv4 stack.
+ /// Use DHCP to configure the interface's IPv6 stack.
///
public readonly bool? Dhcp;
///
diff --git a/sdk/dotnet/Outputs/VnicIpv6.cs b/sdk/dotnet/Outputs/VnicIpv6.cs
index e3272e2c..af9fc2e3 100644
--- a/sdk/dotnet/Outputs/VnicIpv6.cs
+++ b/sdk/dotnet/Outputs/VnicIpv6.cs
@@ -22,7 +22,7 @@ public sealed class VnicIpv6
///
public readonly bool? Autoconfig;
///
- /// Use DHCP to configure the interface's IPv4 stack.
+ /// Use DHCP to configure the interface's IPv6 stack.
///
public readonly bool? Dhcp;
///
diff --git a/sdk/dotnet/Vnic.cs b/sdk/dotnet/Vnic.cs
index c7a04313..1dcdb3ca 100644
--- a/sdk/dotnet/Vnic.cs
+++ b/sdk/dotnet/Vnic.cs
@@ -72,6 +72,68 @@ namespace Pulumi.VSphere
///
/// });
/// ```
+ /// ### Create a vnic attached to a portgroup using the default TCP/IP stack
+ ///
+ /// ```csharp
+ /// using System.Collections.Generic;
+ /// using System.Linq;
+ /// using Pulumi;
+ /// using VSphere = Pulumi.VSphere;
+ ///
+ /// return await Deployment.RunAsync(() =>
+ /// {
+ /// var dc = VSphere.GetDatacenter.Invoke(new()
+ /// {
+ /// Name = "mydc",
+ /// });
+ ///
+ /// var h1 = VSphere.GetHost.Invoke(new()
+ /// {
+ /// Name = "esxi1.host.test",
+ /// DatacenterId = dc.Apply(getDatacenterResult => getDatacenterResult.Id),
+ /// });
+ ///
+ /// var hvs1 = new VSphere.HostVirtualSwitch("hvs1", new()
+ /// {
+ /// HostSystemId = h1.Apply(getHostResult => getHostResult.Id),
+ /// NetworkAdapters = new[]
+ /// {
+ /// "vmnic3",
+ /// "vmnic4",
+ /// },
+ /// ActiveNics = new[]
+ /// {
+ /// "vmnic3",
+ /// },
+ /// StandbyNics = new[]
+ /// {
+ /// "vmnic4",
+ /// },
+ /// });
+ ///
+ /// var p1 = new VSphere.HostPortGroup("p1", new()
+ /// {
+ /// VirtualSwitchName = hvs1.Name,
+ /// HostSystemId = h1.Apply(getHostResult => getHostResult.Id),
+ /// });
+ ///
+ /// var v1 = new VSphere.Vnic("v1", new()
+ /// {
+ /// Host = h1.Apply(getHostResult => getHostResult.Id),
+ /// Portgroup = p1.Name,
+ /// Ipv4 = new VSphere.Inputs.VnicIpv4Args
+ /// {
+ /// Dhcp = true,
+ /// },
+ /// Services = new[]
+ /// {
+ /// "vsan",
+ /// "management",
+ /// },
+ /// });
+ ///
+ /// });
+ /// ```
/// ## Importing
///
/// An existing vNic can be [imported][docs-import] into this resource
@@ -113,13 +175,13 @@ public partial class Vnic : global::Pulumi.CustomResource
public Output Host { get; private set; } = null!;
///
- /// IPv4 settings. Either this or `ipv6` needs to be set. See ipv4 options below.
+ /// IPv4 settings. Either this or `ipv6` needs to be set. See IPv4 options below.
///
[Output("ipv4")]
public Output Ipv4 { get; private set; } = null!;
///
- /// IPv6 settings. Either this or `ipv6` needs to be set. See ipv6 options below.
+ /// IPv6 settings. Either this or `ipv6` needs to be set. See IPv6 options below.
///
[Output("ipv6")]
public Output Ipv6 { get; private set; } = null!;
@@ -137,7 +199,7 @@ public partial class Vnic : global::Pulumi.CustomResource
public Output Mtu { get; private set; } = null!;
///
- /// TCP/IP stack setting for this interface. Possible values are 'defaultTcpipStack', 'vmotion', 'vSphereProvisioning'. Changing this will force the creation of a new interface since it's not possible to change the stack once it gets created. (Default: `defaultTcpipStack`)
+ /// TCP/IP stack setting for this interface. Possible values are `defaultTcpipStack``, 'vmotion', 'vSphereProvisioning'. Changing this will force the creation of a new interface since it's not possible to change the stack once it gets created. (Default:`defaultTcpipStack`)
///
[Output("netstack")]
public Output Netstack { get; private set; } = null!;
@@ -149,7 +211,7 @@ public partial class Vnic : global::Pulumi.CustomResource
public Output Portgroup { get; private set; } = null!;
///
- /// Enabled services setting for this interface. Current possible values are 'vmotion', 'management', and 'vsan'.
+ /// Enabled services setting for this interface. Currently support values are `vmotion`, `management`, and `vsan`.
///
[Output("services")]
public Output> Services { get; private set; } = null!;
@@ -219,13 +281,13 @@ public sealed class VnicArgs : global::Pulumi.ResourceArgs
public Input Host { get; set; } = null!;
///
- /// IPv4 settings. Either this or `ipv6` needs to be set. See ipv4 options below.
+ /// IPv4 settings. Either this or `ipv6` needs to be set. See IPv4 options below.
///
[Input("ipv4")]
public Input? Ipv4 { get; set; }
///
- /// IPv6 settings. Either this or `ipv6` needs to be set. See ipv6 options below.
+ /// IPv6 settings. Either this or `ipv6` needs to be set. See IPv6 options below.
///
[Input("ipv6")]
public Input? Ipv6 { get; set; }
@@ -243,7 +305,7 @@ public sealed class VnicArgs : global::Pulumi.ResourceArgs
public Input? Mtu { get; set; }
///
- /// TCP/IP stack setting for this interface. Possible values are 'defaultTcpipStack', 'vmotion', 'vSphereProvisioning'. Changing this will force the creation of a new interface since it's not possible to change the stack once it gets created. (Default: `defaultTcpipStack`)
+ /// TCP/IP stack setting for this interface. Possible values are `defaultTcpipStack``, 'vmotion', 'vSphereProvisioning'. Changing this will force the creation of a new interface since it's not possible to change the stack once it gets created. (Default:`defaultTcpipStack`)
///
[Input("netstack")]
public Input? Netstack { get; set; }
@@ -258,7 +320,7 @@ public sealed class VnicArgs : global::Pulumi.ResourceArgs
private InputList? _services;
///
- /// Enabled services setting for this interface. Current possible values are 'vmotion', 'management', and 'vsan'.
+ /// Enabled services setting for this interface. Currently support values are `vmotion`, `management`, and `vsan`.
///
public InputList Services
{
@@ -293,13 +355,13 @@ public sealed class VnicState : global::Pulumi.ResourceArgs
public Input? Host { get; set; }
///
- /// IPv4 settings. Either this or `ipv6` needs to be set. See ipv4 options below.
+ /// IPv4 settings. Either this or `ipv6` needs to be set. See IPv4 options below.
///
[Input("ipv4")]
public Input? Ipv4 { get; set; }
///
- /// IPv6 settings. Either this or `ipv6` needs to be set. See ipv6 options below.
+ /// IPv6 settings. Either this or `ipv6` needs to be set. See IPv6 options below.
///
[Input("ipv6")]
public Input? Ipv6 { get; set; }
@@ -317,7 +379,7 @@ public sealed class VnicState : global::Pulumi.ResourceArgs
public Input? Mtu { get; set; }
///
- /// TCP/IP stack setting for this interface. Possible values are 'defaultTcpipStack', 'vmotion', 'vSphereProvisioning'. Changing this will force the creation of a new interface since it's not possible to change the stack once it gets created. (Default: `defaultTcpipStack`)
+ /// TCP/IP stack setting for this interface. Possible values are `defaultTcpipStack``, 'vmotion', 'vSphereProvisioning'. Changing this will force the creation of a new interface since it's not possible to change the stack once it gets created. (Default:`defaultTcpipStack`)
///
[Input("netstack")]
public Input? Netstack { get; set; }
@@ -332,7 +394,7 @@ public sealed class VnicState : global::Pulumi.ResourceArgs
private InputList? _services;
///
- /// Enabled services setting for this interface. Current possible values are 'vmotion', 'management', and 'vsan'.
+ /// Enabled services setting for this interface. Currently support values are `vmotion`, `management`, and `vsan`.
///
public InputList Services
{
diff --git a/sdk/go/vsphere/pulumiTypes.go b/sdk/go/vsphere/pulumiTypes.go
index 351de32b..d8622b7d 100644
--- a/sdk/go/vsphere/pulumiTypes.go
+++ b/sdk/go/vsphere/pulumiTypes.go
@@ -4076,7 +4076,7 @@ func (o VmStoragePolicyTagRuleArrayOutput) Index(i pulumi.IntInput) VmStoragePol
}
type VnicIpv4 struct {
- // Use DHCP to configure the interface's IPv4 stack.
+ // Use DHCP to configure the interface's IPv6 stack.
Dhcp *bool `pulumi:"dhcp"`
// IP address of the default gateway, if DHCP or autoconfig is not set.
Gw *string `pulumi:"gw"`
@@ -4098,7 +4098,7 @@ type VnicIpv4Input interface {
}
type VnicIpv4Args struct {
- // Use DHCP to configure the interface's IPv4 stack.
+ // Use DHCP to configure the interface's IPv6 stack.
Dhcp pulumi.BoolPtrInput `pulumi:"dhcp"`
// IP address of the default gateway, if DHCP or autoconfig is not set.
Gw pulumi.StringPtrInput `pulumi:"gw"`
@@ -4203,7 +4203,7 @@ func (o VnicIpv4Output) ToOutput(ctx context.Context) pulumix.Output[VnicIpv4] {
}
}
-// Use DHCP to configure the interface's IPv4 stack.
+// Use DHCP to configure the interface's IPv6 stack.
func (o VnicIpv4Output) Dhcp() pulumi.BoolPtrOutput {
return o.ApplyT(func(v VnicIpv4) *bool { return v.Dhcp }).(pulumi.BoolPtrOutput)
}
@@ -4253,7 +4253,7 @@ func (o VnicIpv4PtrOutput) Elem() VnicIpv4Output {
}).(VnicIpv4Output)
}
-// Use DHCP to configure the interface's IPv4 stack.
+// Use DHCP to configure the interface's IPv6 stack.
func (o VnicIpv4PtrOutput) Dhcp() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *VnicIpv4) *bool {
if v == nil {
@@ -4298,7 +4298,7 @@ type VnicIpv6 struct {
Addresses []string `pulumi:"addresses"`
// Use IPv6 Autoconfiguration (RFC2462).
Autoconfig *bool `pulumi:"autoconfig"`
- // Use DHCP to configure the interface's IPv4 stack.
+ // Use DHCP to configure the interface's IPv6 stack.
Dhcp *bool `pulumi:"dhcp"`
// IP address of the default gateway, if DHCP or autoconfig is not set.
Gw *string `pulumi:"gw"`
@@ -4320,7 +4320,7 @@ type VnicIpv6Args struct {
Addresses pulumi.StringArrayInput `pulumi:"addresses"`
// Use IPv6 Autoconfiguration (RFC2462).
Autoconfig pulumi.BoolPtrInput `pulumi:"autoconfig"`
- // Use DHCP to configure the interface's IPv4 stack.
+ // Use DHCP to configure the interface's IPv6 stack.
Dhcp pulumi.BoolPtrInput `pulumi:"dhcp"`
// IP address of the default gateway, if DHCP or autoconfig is not set.
Gw pulumi.StringPtrInput `pulumi:"gw"`
@@ -4431,7 +4431,7 @@ func (o VnicIpv6Output) Autoconfig() pulumi.BoolPtrOutput {
return o.ApplyT(func(v VnicIpv6) *bool { return v.Autoconfig }).(pulumi.BoolPtrOutput)
}
-// Use DHCP to configure the interface's IPv4 stack.
+// Use DHCP to configure the interface's IPv6 stack.
func (o VnicIpv6Output) Dhcp() pulumi.BoolPtrOutput {
return o.ApplyT(func(v VnicIpv6) *bool { return v.Dhcp }).(pulumi.BoolPtrOutput)
}
@@ -4491,7 +4491,7 @@ func (o VnicIpv6PtrOutput) Autoconfig() pulumi.BoolPtrOutput {
}).(pulumi.BoolPtrOutput)
}
-// Use DHCP to configure the interface's IPv4 stack.
+// Use DHCP to configure the interface's IPv6 stack.
func (o VnicIpv6PtrOutput) Dhcp() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *VnicIpv6) *bool {
if v == nil {
diff --git a/sdk/go/vsphere/vnic.go b/sdk/go/vsphere/vnic.go
index b47ba034..7aacb319 100644
--- a/sdk/go/vsphere/vnic.go
+++ b/sdk/go/vsphere/vnic.go
@@ -83,6 +83,75 @@ import (
// }
//
// ```
+// ### Create a vnic attached to a portgroup using the default TCP/IP stack
+//
+// ```go
+// package main
+//
+// import (
+//
+// "github.com/pulumi/pulumi-vsphere/sdk/v4/go/vsphere"
+// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
+//
+// )
+//
+// func main() {
+// pulumi.Run(func(ctx *pulumi.Context) error {
+// dc, err := vsphere.LookupDatacenter(ctx, &vsphere.LookupDatacenterArgs{
+// Name: pulumi.StringRef("mydc"),
+// }, nil)
+// if err != nil {
+// return err
+// }
+// h1, err := vsphere.LookupHost(ctx, &vsphere.LookupHostArgs{
+// Name: pulumi.StringRef("esxi1.host.test"),
+// DatacenterId: dc.Id,
+// }, nil)
+// if err != nil {
+// return err
+// }
+// hvs1, err := vsphere.NewHostVirtualSwitch(ctx, "hvs1", &vsphere.HostVirtualSwitchArgs{
+// HostSystemId: *pulumi.String(h1.Id),
+// NetworkAdapters: pulumi.StringArray{
+// pulumi.String("vmnic3"),
+// pulumi.String("vmnic4"),
+// },
+// ActiveNics: pulumi.StringArray{
+// pulumi.String("vmnic3"),
+// },
+// StandbyNics: pulumi.StringArray{
+// pulumi.String("vmnic4"),
+// },
+// })
+// if err != nil {
+// return err
+// }
+// p1, err := vsphere.NewHostPortGroup(ctx, "p1", &vsphere.HostPortGroupArgs{
+// VirtualSwitchName: hvs1.Name,
+// HostSystemId: *pulumi.String(h1.Id),
+// })
+// if err != nil {
+// return err
+// }
+// _, err = vsphere.NewVnic(ctx, "v1", &vsphere.VnicArgs{
+// Host: *pulumi.String(h1.Id),
+// Portgroup: p1.Name,
+// Ipv4: &vsphere.VnicIpv4Args{
+// Dhcp: pulumi.Bool(true),
+// },
+// Services: pulumi.StringArray{
+// pulumi.String("vsan"),
+// pulumi.String("management"),
+// },
+// })
+// if err != nil {
+// return err
+// }
+// return nil
+// })
+// }
+//
+// ```
// ## Importing
//
// An existing vNic can be [imported][docs-import] into this resource
@@ -117,19 +186,19 @@ type Vnic struct {
DistributedSwitchPort pulumi.StringPtrOutput `pulumi:"distributedSwitchPort"`
// ESX host the interface belongs to
Host pulumi.StringOutput `pulumi:"host"`
- // IPv4 settings. Either this or `ipv6` needs to be set. See ipv4 options below.
+ // IPv4 settings. Either this or `ipv6` needs to be set. See IPv4 options below.
Ipv4 VnicIpv4PtrOutput `pulumi:"ipv4"`
- // IPv6 settings. Either this or `ipv6` needs to be set. See ipv6 options below.
+ // IPv6 settings. Either this or `ipv6` needs to be set. See IPv6 options below.
Ipv6 VnicIpv6PtrOutput `pulumi:"ipv6"`
// MAC address of the interface.
Mac pulumi.StringOutput `pulumi:"mac"`
// MTU of the interface.
Mtu pulumi.IntOutput `pulumi:"mtu"`
- // TCP/IP stack setting for this interface. Possible values are 'defaultTcpipStack', 'vmotion', 'vSphereProvisioning'. Changing this will force the creation of a new interface since it's not possible to change the stack once it gets created. (Default: `defaultTcpipStack`)
+ // TCP/IP stack setting for this interface. Possible values are `defaultTcpipStack``, 'vmotion', 'vSphereProvisioning'. Changing this will force the creation of a new interface since it's not possible to change the stack once it gets created. (Default:`defaultTcpipStack`)
Netstack pulumi.StringPtrOutput `pulumi:"netstack"`
// Portgroup to attach the nic to. Do not set if you set distributed_switch_port.
Portgroup pulumi.StringPtrOutput `pulumi:"portgroup"`
- // Enabled services setting for this interface. Current possible values are 'vmotion', 'management', and 'vsan'.
+ // Enabled services setting for this interface. Currently support values are `vmotion`, `management`, and `vsan`.
Services pulumi.StringArrayOutput `pulumi:"services"`
}
@@ -172,19 +241,19 @@ type vnicState struct {
DistributedSwitchPort *string `pulumi:"distributedSwitchPort"`
// ESX host the interface belongs to
Host *string `pulumi:"host"`
- // IPv4 settings. Either this or `ipv6` needs to be set. See ipv4 options below.
+ // IPv4 settings. Either this or `ipv6` needs to be set. See IPv4 options below.
Ipv4 *VnicIpv4 `pulumi:"ipv4"`
- // IPv6 settings. Either this or `ipv6` needs to be set. See ipv6 options below.
+ // IPv6 settings. Either this or `ipv6` needs to be set. See IPv6 options below.
Ipv6 *VnicIpv6 `pulumi:"ipv6"`
// MAC address of the interface.
Mac *string `pulumi:"mac"`
// MTU of the interface.
Mtu *int `pulumi:"mtu"`
- // TCP/IP stack setting for this interface. Possible values are 'defaultTcpipStack', 'vmotion', 'vSphereProvisioning'. Changing this will force the creation of a new interface since it's not possible to change the stack once it gets created. (Default: `defaultTcpipStack`)
+ // TCP/IP stack setting for this interface. Possible values are `defaultTcpipStack``, 'vmotion', 'vSphereProvisioning'. Changing this will force the creation of a new interface since it's not possible to change the stack once it gets created. (Default:`defaultTcpipStack`)
Netstack *string `pulumi:"netstack"`
// Portgroup to attach the nic to. Do not set if you set distributed_switch_port.
Portgroup *string `pulumi:"portgroup"`
- // Enabled services setting for this interface. Current possible values are 'vmotion', 'management', and 'vsan'.
+ // Enabled services setting for this interface. Currently support values are `vmotion`, `management`, and `vsan`.
Services []string `pulumi:"services"`
}
@@ -195,19 +264,19 @@ type VnicState struct {
DistributedSwitchPort pulumi.StringPtrInput
// ESX host the interface belongs to
Host pulumi.StringPtrInput
- // IPv4 settings. Either this or `ipv6` needs to be set. See ipv4 options below.
+ // IPv4 settings. Either this or `ipv6` needs to be set. See IPv4 options below.
Ipv4 VnicIpv4PtrInput
- // IPv6 settings. Either this or `ipv6` needs to be set. See ipv6 options below.
+ // IPv6 settings. Either this or `ipv6` needs to be set. See IPv6 options below.
Ipv6 VnicIpv6PtrInput
// MAC address of the interface.
Mac pulumi.StringPtrInput
// MTU of the interface.
Mtu pulumi.IntPtrInput
- // TCP/IP stack setting for this interface. Possible values are 'defaultTcpipStack', 'vmotion', 'vSphereProvisioning'. Changing this will force the creation of a new interface since it's not possible to change the stack once it gets created. (Default: `defaultTcpipStack`)
+ // TCP/IP stack setting for this interface. Possible values are `defaultTcpipStack``, 'vmotion', 'vSphereProvisioning'. Changing this will force the creation of a new interface since it's not possible to change the stack once it gets created. (Default:`defaultTcpipStack`)
Netstack pulumi.StringPtrInput
// Portgroup to attach the nic to. Do not set if you set distributed_switch_port.
Portgroup pulumi.StringPtrInput
- // Enabled services setting for this interface. Current possible values are 'vmotion', 'management', and 'vsan'.
+ // Enabled services setting for this interface. Currently support values are `vmotion`, `management`, and `vsan`.
Services pulumi.StringArrayInput
}
@@ -222,19 +291,19 @@ type vnicArgs struct {
DistributedSwitchPort *string `pulumi:"distributedSwitchPort"`
// ESX host the interface belongs to
Host string `pulumi:"host"`
- // IPv4 settings. Either this or `ipv6` needs to be set. See ipv4 options below.
+ // IPv4 settings. Either this or `ipv6` needs to be set. See IPv4 options below.
Ipv4 *VnicIpv4 `pulumi:"ipv4"`
- // IPv6 settings. Either this or `ipv6` needs to be set. See ipv6 options below.
+ // IPv6 settings. Either this or `ipv6` needs to be set. See IPv6 options below.
Ipv6 *VnicIpv6 `pulumi:"ipv6"`
// MAC address of the interface.
Mac *string `pulumi:"mac"`
// MTU of the interface.
Mtu *int `pulumi:"mtu"`
- // TCP/IP stack setting for this interface. Possible values are 'defaultTcpipStack', 'vmotion', 'vSphereProvisioning'. Changing this will force the creation of a new interface since it's not possible to change the stack once it gets created. (Default: `defaultTcpipStack`)
+ // TCP/IP stack setting for this interface. Possible values are `defaultTcpipStack``, 'vmotion', 'vSphereProvisioning'. Changing this will force the creation of a new interface since it's not possible to change the stack once it gets created. (Default:`defaultTcpipStack`)
Netstack *string `pulumi:"netstack"`
// Portgroup to attach the nic to. Do not set if you set distributed_switch_port.
Portgroup *string `pulumi:"portgroup"`
- // Enabled services setting for this interface. Current possible values are 'vmotion', 'management', and 'vsan'.
+ // Enabled services setting for this interface. Currently support values are `vmotion`, `management`, and `vsan`.
Services []string `pulumi:"services"`
}
@@ -246,19 +315,19 @@ type VnicArgs struct {
DistributedSwitchPort pulumi.StringPtrInput
// ESX host the interface belongs to
Host pulumi.StringInput
- // IPv4 settings. Either this or `ipv6` needs to be set. See ipv4 options below.
+ // IPv4 settings. Either this or `ipv6` needs to be set. See IPv4 options below.
Ipv4 VnicIpv4PtrInput
- // IPv6 settings. Either this or `ipv6` needs to be set. See ipv6 options below.
+ // IPv6 settings. Either this or `ipv6` needs to be set. See IPv6 options below.
Ipv6 VnicIpv6PtrInput
// MAC address of the interface.
Mac pulumi.StringPtrInput
// MTU of the interface.
Mtu pulumi.IntPtrInput
- // TCP/IP stack setting for this interface. Possible values are 'defaultTcpipStack', 'vmotion', 'vSphereProvisioning'. Changing this will force the creation of a new interface since it's not possible to change the stack once it gets created. (Default: `defaultTcpipStack`)
+ // TCP/IP stack setting for this interface. Possible values are `defaultTcpipStack``, 'vmotion', 'vSphereProvisioning'. Changing this will force the creation of a new interface since it's not possible to change the stack once it gets created. (Default:`defaultTcpipStack`)
Netstack pulumi.StringPtrInput
// Portgroup to attach the nic to. Do not set if you set distributed_switch_port.
Portgroup pulumi.StringPtrInput
- // Enabled services setting for this interface. Current possible values are 'vmotion', 'management', and 'vsan'.
+ // Enabled services setting for this interface. Currently support values are `vmotion`, `management`, and `vsan`.
Services pulumi.StringArrayInput
}
@@ -388,12 +457,12 @@ func (o VnicOutput) Host() pulumi.StringOutput {
return o.ApplyT(func(v *Vnic) pulumi.StringOutput { return v.Host }).(pulumi.StringOutput)
}
-// IPv4 settings. Either this or `ipv6` needs to be set. See ipv4 options below.
+// IPv4 settings. Either this or `ipv6` needs to be set. See IPv4 options below.
func (o VnicOutput) Ipv4() VnicIpv4PtrOutput {
return o.ApplyT(func(v *Vnic) VnicIpv4PtrOutput { return v.Ipv4 }).(VnicIpv4PtrOutput)
}
-// IPv6 settings. Either this or `ipv6` needs to be set. See ipv6 options below.
+// IPv6 settings. Either this or `ipv6` needs to be set. See IPv6 options below.
func (o VnicOutput) Ipv6() VnicIpv6PtrOutput {
return o.ApplyT(func(v *Vnic) VnicIpv6PtrOutput { return v.Ipv6 }).(VnicIpv6PtrOutput)
}
@@ -408,7 +477,7 @@ func (o VnicOutput) Mtu() pulumi.IntOutput {
return o.ApplyT(func(v *Vnic) pulumi.IntOutput { return v.Mtu }).(pulumi.IntOutput)
}
-// TCP/IP stack setting for this interface. Possible values are 'defaultTcpipStack', 'vmotion', 'vSphereProvisioning'. Changing this will force the creation of a new interface since it's not possible to change the stack once it gets created. (Default: `defaultTcpipStack`)
+// TCP/IP stack setting for this interface. Possible values are `defaultTcpipStack“, 'vmotion', 'vSphereProvisioning'. Changing this will force the creation of a new interface since it's not possible to change the stack once it gets created. (Default:`defaultTcpipStack`)
func (o VnicOutput) Netstack() pulumi.StringPtrOutput {
return o.ApplyT(func(v *Vnic) pulumi.StringPtrOutput { return v.Netstack }).(pulumi.StringPtrOutput)
}
@@ -418,7 +487,7 @@ func (o VnicOutput) Portgroup() pulumi.StringPtrOutput {
return o.ApplyT(func(v *Vnic) pulumi.StringPtrOutput { return v.Portgroup }).(pulumi.StringPtrOutput)
}
-// Enabled services setting for this interface. Current possible values are 'vmotion', 'management', and 'vsan'.
+// Enabled services setting for this interface. Currently support values are `vmotion`, `management`, and `vsan`.
func (o VnicOutput) Services() pulumi.StringArrayOutput {
return o.ApplyT(func(v *Vnic) pulumi.StringArrayOutput { return v.Services }).(pulumi.StringArrayOutput)
}
diff --git a/sdk/java/src/main/java/com/pulumi/vsphere/Vnic.java b/sdk/java/src/main/java/com/pulumi/vsphere/Vnic.java
index 3359e9f2..b5b5a66e 100644
--- a/sdk/java/src/main/java/com/pulumi/vsphere/Vnic.java
+++ b/sdk/java/src/main/java/com/pulumi/vsphere/Vnic.java
@@ -91,7 +91,6 @@
* }
* ```
* ### Create a vnic attached to a portgroup using the default TCP/IP stack
- *
* ```java
* package generated_program;
*
@@ -150,7 +149,7 @@
* .ipv4(VnicIpv4Args.builder()
* .dhcp(true)
* .build())
- * .enabledServices(
+ * .services(
* "vsan",
* "management")
* .build());
@@ -235,28 +234,28 @@ public Output host() {
return this.host;
}
/**
- * IPv4 settings. Either this or `ipv6` needs to be set. See ipv4 options below.
+ * IPv4 settings. Either this or `ipv6` needs to be set. See IPv4 options below.
*
*/
@Export(name="ipv4", type=VnicIpv4.class, parameters={})
private Output* @Nullable */ VnicIpv4> ipv4;
/**
- * @return IPv4 settings. Either this or `ipv6` needs to be set. See ipv4 options below.
+ * @return IPv4 settings. Either this or `ipv6` needs to be set. See IPv4 options below.
*
*/
public Output> ipv4() {
return Codegen.optional(this.ipv4);
}
/**
- * IPv6 settings. Either this or `ipv6` needs to be set. See ipv6 options below.
+ * IPv6 settings. Either this or `ipv6` needs to be set. See IPv6 options below.
*
*/
@Export(name="ipv6", type=VnicIpv6.class, parameters={})
private Output* @Nullable */ VnicIpv6> ipv6;
/**
- * @return IPv6 settings. Either this or `ipv6` needs to be set. See ipv6 options below.
+ * @return IPv6 settings. Either this or `ipv6` needs to be set. See IPv6 options below.
*
*/
public Output> ipv6() {
@@ -291,14 +290,14 @@ public Output mtu() {
return this.mtu;
}
/**
- * TCP/IP stack setting for this interface. Possible values are 'defaultTcpipStack', 'vmotion', 'vSphereProvisioning'. Changing this will force the creation of a new interface since it's not possible to change the stack once it gets created. (Default: `defaultTcpipStack`)
+ * TCP/IP stack setting for this interface. Possible values are `defaultTcpipStack``, 'vmotion', 'vSphereProvisioning'. Changing this will force the creation of a new interface since it's not possible to change the stack once it gets created. (Default:`defaultTcpipStack`)
*
*/
@Export(name="netstack", type=String.class, parameters={})
private Output* @Nullable */ String> netstack;
/**
- * @return TCP/IP stack setting for this interface. Possible values are 'defaultTcpipStack', 'vmotion', 'vSphereProvisioning'. Changing this will force the creation of a new interface since it's not possible to change the stack once it gets created. (Default: `defaultTcpipStack`)
+ * @return TCP/IP stack setting for this interface. Possible values are `defaultTcpipStack``, 'vmotion', 'vSphereProvisioning'. Changing this will force the creation of a new interface since it's not possible to change the stack once it gets created. (Default:`defaultTcpipStack`)
*
*/
public Output> netstack() {
@@ -319,14 +318,14 @@ public Output> portgroup() {
return Codegen.optional(this.portgroup);
}
/**
- * Enabled services setting for this interface. Current possible values are 'vmotion', 'management', and 'vsan'.
+ * Enabled services setting for this interface. Currently support values are `vmotion`, `management`, and `vsan`.
*
*/
@Export(name="services", type=List.class, parameters={String.class})
private Output* @Nullable */ List> services;
/**
- * @return Enabled services setting for this interface. Current possible values are 'vmotion', 'management', and 'vsan'.
+ * @return Enabled services setting for this interface. Currently support values are `vmotion`, `management`, and `vsan`.
*
*/
public Output>> services() {
diff --git a/sdk/java/src/main/java/com/pulumi/vsphere/VnicArgs.java b/sdk/java/src/main/java/com/pulumi/vsphere/VnicArgs.java
index c365c0ea..9ed82577 100644
--- a/sdk/java/src/main/java/com/pulumi/vsphere/VnicArgs.java
+++ b/sdk/java/src/main/java/com/pulumi/vsphere/VnicArgs.java
@@ -65,14 +65,14 @@ public Output host() {
}
/**
- * IPv4 settings. Either this or `ipv6` needs to be set. See ipv4 options below.
+ * IPv4 settings. Either this or `ipv6` needs to be set. See IPv4 options below.
*
*/
@Import(name="ipv4")
private @Nullable Output ipv4;
/**
- * @return IPv4 settings. Either this or `ipv6` needs to be set. See ipv4 options below.
+ * @return IPv4 settings. Either this or `ipv6` needs to be set. See IPv4 options below.
*
*/
public Optional