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 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 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 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> 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> ipv4() { @@ -80,14 +80,14 @@ public Optional> 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. * */ @Import(name="ipv6") private @Nullable Output 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 Optional> ipv6() { @@ -125,14 +125,14 @@ public Optional> 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`) * */ @Import(name="netstack") private @Nullable Output 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 Optional> netstack() { @@ -155,14 +155,14 @@ public Optional> 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`. * */ @Import(name="services") private @Nullable Output> 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 Optional>> services() { @@ -266,7 +266,7 @@ public Builder host(String host) { } /** - * @param ipv4 IPv4 settings. Either this or `ipv6` needs to be set. See ipv4 options below. + * @param ipv4 IPv4 settings. Either this or `ipv6` needs to be set. See IPv4 options below. * * @return builder * @@ -277,7 +277,7 @@ public Builder ipv4(@Nullable Output ipv4) { } /** - * @param ipv4 IPv4 settings. Either this or `ipv6` needs to be set. See ipv4 options below. + * @param ipv4 IPv4 settings. Either this or `ipv6` needs to be set. See IPv4 options below. * * @return builder * @@ -287,7 +287,7 @@ public Builder ipv4(VnicIpv4Args ipv4) { } /** - * @param ipv6 IPv6 settings. Either this or `ipv6` needs to be set. See ipv6 options below. + * @param ipv6 IPv6 settings. Either this or `ipv6` needs to be set. See IPv6 options below. * * @return builder * @@ -298,7 +298,7 @@ public Builder ipv6(@Nullable Output ipv6) { } /** - * @param ipv6 IPv6 settings. Either this or `ipv6` needs to be set. See ipv6 options below. + * @param ipv6 IPv6 settings. Either this or `ipv6` needs to be set. See IPv6 options below. * * @return builder * @@ -350,7 +350,7 @@ public Builder mtu(Integer mtu) { } /** - * @param netstack 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`) + * @param netstack 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 builder * @@ -361,7 +361,7 @@ public Builder netstack(@Nullable Output netstack) { } /** - * @param netstack 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`) + * @param netstack 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 builder * @@ -392,7 +392,7 @@ public Builder portgroup(String portgroup) { } /** - * @param services Enabled services setting for this interface. Current possible values are 'vmotion', 'management', and 'vsan'. + * @param services Enabled services setting for this interface. Currently support values are `vmotion`, `management`, and `vsan`. * * @return builder * @@ -403,7 +403,7 @@ public Builder services(@Nullable Output> services) { } /** - * @param services Enabled services setting for this interface. Current possible values are 'vmotion', 'management', and 'vsan'. + * @param services Enabled services setting for this interface. Currently support values are `vmotion`, `management`, and `vsan`. * * @return builder * @@ -413,7 +413,7 @@ public Builder services(List services) { } /** - * @param services Enabled services setting for this interface. Current possible values are 'vmotion', 'management', and 'vsan'. + * @param services Enabled services setting for this interface. Currently support values are `vmotion`, `management`, and `vsan`. * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/vsphere/inputs/VnicIpv4Args.java b/sdk/java/src/main/java/com/pulumi/vsphere/inputs/VnicIpv4Args.java index 8bf37f03..d0808652 100644 --- a/sdk/java/src/main/java/com/pulumi/vsphere/inputs/VnicIpv4Args.java +++ b/sdk/java/src/main/java/com/pulumi/vsphere/inputs/VnicIpv4Args.java @@ -17,14 +17,14 @@ public final class VnicIpv4Args extends com.pulumi.resources.ResourceArgs { public static final VnicIpv4Args Empty = new VnicIpv4Args(); /** - * Use DHCP to configure the interface's IPv4 stack. + * Use DHCP to configure the interface's IPv6 stack. * */ @Import(name="dhcp") private @Nullable Output dhcp; /** - * @return Use DHCP to configure the interface's IPv4 stack. + * @return Use DHCP to configure the interface's IPv6 stack. * */ public Optional> dhcp() { @@ -104,7 +104,7 @@ public Builder(VnicIpv4Args defaults) { } /** - * @param dhcp Use DHCP to configure the interface's IPv4 stack. + * @param dhcp Use DHCP to configure the interface's IPv6 stack. * * @return builder * @@ -115,7 +115,7 @@ public Builder dhcp(@Nullable Output dhcp) { } /** - * @param dhcp Use DHCP to configure the interface's IPv4 stack. + * @param dhcp Use DHCP to configure the interface's IPv6 stack. * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/vsphere/inputs/VnicIpv6Args.java b/sdk/java/src/main/java/com/pulumi/vsphere/inputs/VnicIpv6Args.java index a331d624..069e2b84 100644 --- a/sdk/java/src/main/java/com/pulumi/vsphere/inputs/VnicIpv6Args.java +++ b/sdk/java/src/main/java/com/pulumi/vsphere/inputs/VnicIpv6Args.java @@ -48,14 +48,14 @@ public Optional> autoconfig() { } /** - * Use DHCP to configure the interface's IPv4 stack. + * Use DHCP to configure the interface's IPv6 stack. * */ @Import(name="dhcp") private @Nullable Output dhcp; /** - * @return Use DHCP to configure the interface's IPv4 stack. + * @return Use DHCP to configure the interface's IPv6 stack. * */ public Optional> dhcp() { @@ -157,7 +157,7 @@ public Builder autoconfig(Boolean autoconfig) { } /** - * @param dhcp Use DHCP to configure the interface's IPv4 stack. + * @param dhcp Use DHCP to configure the interface's IPv6 stack. * * @return builder * @@ -168,7 +168,7 @@ public Builder dhcp(@Nullable Output dhcp) { } /** - * @param dhcp Use DHCP to configure the interface's IPv4 stack. + * @param dhcp Use DHCP to configure the interface's IPv6 stack. * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/vsphere/inputs/VnicState.java b/sdk/java/src/main/java/com/pulumi/vsphere/inputs/VnicState.java index 3e4948a9..d135d7bb 100644 --- a/sdk/java/src/main/java/com/pulumi/vsphere/inputs/VnicState.java +++ b/sdk/java/src/main/java/com/pulumi/vsphere/inputs/VnicState.java @@ -65,14 +65,14 @@ public Optional> 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> ipv4() { @@ -80,14 +80,14 @@ public Optional> 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. * */ @Import(name="ipv6") private @Nullable Output 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 Optional> ipv6() { @@ -125,14 +125,14 @@ public Optional> 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`) * */ @Import(name="netstack") private @Nullable Output 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 Optional> netstack() { @@ -155,14 +155,14 @@ public Optional> 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`. * */ @Import(name="services") private @Nullable Output> 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 Optional>> services() { @@ -266,7 +266,7 @@ public Builder host(String host) { } /** - * @param ipv4 IPv4 settings. Either this or `ipv6` needs to be set. See ipv4 options below. + * @param ipv4 IPv4 settings. Either this or `ipv6` needs to be set. See IPv4 options below. * * @return builder * @@ -277,7 +277,7 @@ public Builder ipv4(@Nullable Output ipv4) { } /** - * @param ipv4 IPv4 settings. Either this or `ipv6` needs to be set. See ipv4 options below. + * @param ipv4 IPv4 settings. Either this or `ipv6` needs to be set. See IPv4 options below. * * @return builder * @@ -287,7 +287,7 @@ public Builder ipv4(VnicIpv4Args ipv4) { } /** - * @param ipv6 IPv6 settings. Either this or `ipv6` needs to be set. See ipv6 options below. + * @param ipv6 IPv6 settings. Either this or `ipv6` needs to be set. See IPv6 options below. * * @return builder * @@ -298,7 +298,7 @@ public Builder ipv6(@Nullable Output ipv6) { } /** - * @param ipv6 IPv6 settings. Either this or `ipv6` needs to be set. See ipv6 options below. + * @param ipv6 IPv6 settings. Either this or `ipv6` needs to be set. See IPv6 options below. * * @return builder * @@ -350,7 +350,7 @@ public Builder mtu(Integer mtu) { } /** - * @param netstack 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`) + * @param netstack 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 builder * @@ -361,7 +361,7 @@ public Builder netstack(@Nullable Output netstack) { } /** - * @param netstack 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`) + * @param netstack 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 builder * @@ -392,7 +392,7 @@ public Builder portgroup(String portgroup) { } /** - * @param services Enabled services setting for this interface. Current possible values are 'vmotion', 'management', and 'vsan'. + * @param services Enabled services setting for this interface. Currently support values are `vmotion`, `management`, and `vsan`. * * @return builder * @@ -403,7 +403,7 @@ public Builder services(@Nullable Output> services) { } /** - * @param services Enabled services setting for this interface. Current possible values are 'vmotion', 'management', and 'vsan'. + * @param services Enabled services setting for this interface. Currently support values are `vmotion`, `management`, and `vsan`. * * @return builder * @@ -413,7 +413,7 @@ public Builder services(List services) { } /** - * @param services Enabled services setting for this interface. Current possible values are 'vmotion', 'management', and 'vsan'. + * @param services Enabled services setting for this interface. Currently support values are `vmotion`, `management`, and `vsan`. * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/vsphere/outputs/VnicIpv4.java b/sdk/java/src/main/java/com/pulumi/vsphere/outputs/VnicIpv4.java index 03bcf698..dd44b116 100644 --- a/sdk/java/src/main/java/com/pulumi/vsphere/outputs/VnicIpv4.java +++ b/sdk/java/src/main/java/com/pulumi/vsphere/outputs/VnicIpv4.java @@ -13,7 +13,7 @@ @CustomType public final class VnicIpv4 { /** - * @return Use DHCP to configure the interface's IPv4 stack. + * @return Use DHCP to configure the interface's IPv6 stack. * */ private @Nullable Boolean dhcp; @@ -35,7 +35,7 @@ public final class VnicIpv4 { private VnicIpv4() {} /** - * @return Use DHCP to configure the interface's IPv4 stack. + * @return Use DHCP to configure the interface's IPv6 stack. * */ public Optional dhcp() { diff --git a/sdk/java/src/main/java/com/pulumi/vsphere/outputs/VnicIpv6.java b/sdk/java/src/main/java/com/pulumi/vsphere/outputs/VnicIpv6.java index a4b3a524..8488f450 100644 --- a/sdk/java/src/main/java/com/pulumi/vsphere/outputs/VnicIpv6.java +++ b/sdk/java/src/main/java/com/pulumi/vsphere/outputs/VnicIpv6.java @@ -24,7 +24,7 @@ public final class VnicIpv6 { */ private @Nullable Boolean autoconfig; /** - * @return Use DHCP to configure the interface's IPv4 stack. + * @return Use DHCP to configure the interface's IPv6 stack. * */ private @Nullable Boolean dhcp; @@ -50,7 +50,7 @@ public Optional autoconfig() { return Optional.ofNullable(this.autoconfig); } /** - * @return Use DHCP to configure the interface's IPv4 stack. + * @return Use DHCP to configure the interface's IPv6 stack. * */ public Optional dhcp() { diff --git a/sdk/nodejs/types/input.ts b/sdk/nodejs/types/input.ts index e7354c12..8d573719 100644 --- a/sdk/nodejs/types/input.ts +++ b/sdk/nodejs/types/input.ts @@ -421,7 +421,7 @@ export interface VmStoragePolicyTagRule { export interface VnicIpv4 { /** - * Use DHCP to configure the interface's IPv4 stack. + * Use DHCP to configure the interface's IPv6 stack. */ dhcp?: pulumi.Input; /** @@ -448,7 +448,7 @@ export interface VnicIpv6 { */ autoconfig?: pulumi.Input; /** - * Use DHCP to configure the interface's IPv4 stack. + * Use DHCP to configure the interface's IPv6 stack. */ dhcp?: pulumi.Input; /** diff --git a/sdk/nodejs/types/output.ts b/sdk/nodejs/types/output.ts index bcd85691..ad42bfb4 100644 --- a/sdk/nodejs/types/output.ts +++ b/sdk/nodejs/types/output.ts @@ -478,7 +478,7 @@ export interface VmStoragePolicyTagRule { export interface VnicIpv4 { /** - * Use DHCP to configure the interface's IPv4 stack. + * Use DHCP to configure the interface's IPv6 stack. */ dhcp?: boolean; /** @@ -505,7 +505,7 @@ export interface VnicIpv6 { */ autoconfig?: boolean; /** - * Use DHCP to configure the interface's IPv4 stack. + * Use DHCP to configure the interface's IPv6 stack. */ dhcp?: boolean; /** diff --git a/sdk/nodejs/vnic.ts b/sdk/nodejs/vnic.ts index 54ec385d..fc32ffb5 100644 --- a/sdk/nodejs/vnic.ts +++ b/sdk/nodejs/vnic.ts @@ -46,6 +46,44 @@ import * as utilities from "./utilities"; * netstack: "vmotion", * }); * ``` + * ### Create a vnic attached to a portgroup using the default TCP/IP stack + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as vsphere from "@pulumi/vsphere"; + * + * const dc = vsphere.getDatacenter({ + * name: "mydc", + * }); + * const h1 = dc.then(dc => vsphere.getHost({ + * name: "esxi1.host.test", + * datacenterId: dc.id, + * })); + * const hvs1 = new vsphere.HostVirtualSwitch("hvs1", { + * hostSystemId: h1.then(h1 => h1.id), + * networkAdapters: [ + * "vmnic3", + * "vmnic4", + * ], + * activeNics: ["vmnic3"], + * standbyNics: ["vmnic4"], + * }); + * const p1 = new vsphere.HostPortGroup("p1", { + * virtualSwitchName: hvs1.name, + * hostSystemId: h1.then(h1 => h1.id), + * }); + * const v1 = new vsphere.Vnic("v1", { + * host: h1.then(h1 => h1.id), + * portgroup: p1.name, + * ipv4: { + * dhcp: true, + * }, + * services: [ + * "vsan", + * "management", + * ], + * }); + * ``` * ## Importing * * An existing vNic can be [imported][docs-import] into this resource @@ -100,11 +138,11 @@ export class Vnic extends pulumi.CustomResource { */ public readonly host!: pulumi.Output; /** - * 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. */ public readonly ipv4!: pulumi.Output; /** - * 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. */ public readonly ipv6!: pulumi.Output; /** @@ -116,7 +154,7 @@ export class Vnic extends pulumi.CustomResource { */ public readonly mtu!: pulumi.Output; /** - * 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`) */ public readonly netstack!: pulumi.Output; /** @@ -124,7 +162,7 @@ export class Vnic extends pulumi.CustomResource { */ public readonly portgroup!: pulumi.Output; /** - * 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 readonly services!: pulumi.Output; @@ -189,11 +227,11 @@ export interface VnicState { */ host?: pulumi.Input; /** - * 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?: pulumi.Input; /** - * 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?: pulumi.Input; /** @@ -205,7 +243,7 @@ export interface VnicState { */ mtu?: pulumi.Input; /** - * 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.Input; /** @@ -213,7 +251,7 @@ export interface VnicState { */ portgroup?: pulumi.Input; /** - * 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.Input[]>; } @@ -235,11 +273,11 @@ export interface VnicArgs { */ host: pulumi.Input; /** - * 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?: pulumi.Input; /** - * 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?: pulumi.Input; /** @@ -251,7 +289,7 @@ export interface VnicArgs { */ mtu?: pulumi.Input; /** - * 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.Input; /** @@ -259,7 +297,7 @@ export interface VnicArgs { */ portgroup?: pulumi.Input; /** - * 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.Input[]>; } diff --git a/sdk/python/pulumi_vsphere/_inputs.py b/sdk/python/pulumi_vsphere/_inputs.py index 2490c3d1..1412a975 100644 --- a/sdk/python/pulumi_vsphere/_inputs.py +++ b/sdk/python/pulumi_vsphere/_inputs.py @@ -2273,7 +2273,7 @@ def __init__(__self__, *, ip: Optional[pulumi.Input[str]] = None, netmask: Optional[pulumi.Input[str]] = None): """ - :param pulumi.Input[bool] dhcp: Use DHCP to configure the interface's IPv4 stack. + :param pulumi.Input[bool] dhcp: Use DHCP to configure the interface's IPv6 stack. :param pulumi.Input[str] gw: IP address of the default gateway, if DHCP or autoconfig is not set. :param pulumi.Input[str] ip: Address of the interface, if DHCP is not set. :param pulumi.Input[str] netmask: Netmask of the interface, if DHCP is not set. @@ -2306,7 +2306,7 @@ def _configure( @pulumi.getter def dhcp(self) -> Optional[pulumi.Input[bool]]: """ - Use DHCP to configure the interface's IPv4 stack. + Use DHCP to configure the interface's IPv6 stack. """ return pulumi.get(self, "dhcp") @@ -2361,7 +2361,7 @@ def __init__(__self__, *, """ :param pulumi.Input[Sequence[pulumi.Input[str]]] addresses: List of IPv6 addresses :param pulumi.Input[bool] autoconfig: Use IPv6 Autoconfiguration (RFC2462). - :param pulumi.Input[bool] dhcp: Use DHCP to configure the interface's IPv4 stack. + :param pulumi.Input[bool] dhcp: Use DHCP to configure the interface's IPv6 stack. :param pulumi.Input[str] gw: IP address of the default gateway, if DHCP or autoconfig is not set. """ VnicIpv6Args._configure( @@ -2416,7 +2416,7 @@ def autoconfig(self, value: Optional[pulumi.Input[bool]]): @pulumi.getter def dhcp(self) -> Optional[pulumi.Input[bool]]: """ - Use DHCP to configure the interface's IPv4 stack. + Use DHCP to configure the interface's IPv6 stack. """ return pulumi.get(self, "dhcp") diff --git a/sdk/python/pulumi_vsphere/outputs.py b/sdk/python/pulumi_vsphere/outputs.py index 5b233cae..6f3f8baa 100644 --- a/sdk/python/pulumi_vsphere/outputs.py +++ b/sdk/python/pulumi_vsphere/outputs.py @@ -2256,7 +2256,7 @@ def __init__(__self__, *, ip: Optional[str] = None, netmask: Optional[str] = None): """ - :param bool dhcp: Use DHCP to configure the interface's IPv4 stack. + :param bool dhcp: Use DHCP to configure the interface's IPv6 stack. :param str gw: IP address of the default gateway, if DHCP or autoconfig is not set. :param str ip: Address of the interface, if DHCP is not set. :param str netmask: Netmask of the interface, if DHCP is not set. @@ -2289,7 +2289,7 @@ def _configure( @pulumi.getter def dhcp(self) -> Optional[bool]: """ - Use DHCP to configure the interface's IPv4 stack. + Use DHCP to configure the interface's IPv6 stack. """ return pulumi.get(self, "dhcp") @@ -2328,7 +2328,7 @@ def __init__(__self__, *, """ :param Sequence[str] addresses: List of IPv6 addresses :param bool autoconfig: Use IPv6 Autoconfiguration (RFC2462). - :param bool dhcp: Use DHCP to configure the interface's IPv4 stack. + :param bool dhcp: Use DHCP to configure the interface's IPv6 stack. :param str gw: IP address of the default gateway, if DHCP or autoconfig is not set. """ VnicIpv6._configure( @@ -2375,7 +2375,7 @@ def autoconfig(self) -> Optional[bool]: @pulumi.getter def dhcp(self) -> Optional[bool]: """ - Use DHCP to configure the interface's IPv4 stack. + Use DHCP to configure the interface's IPv6 stack. """ return pulumi.get(self, "dhcp") diff --git a/sdk/python/pulumi_vsphere/vnic.py b/sdk/python/pulumi_vsphere/vnic.py index a3dd95a0..b3d2f25b 100644 --- a/sdk/python/pulumi_vsphere/vnic.py +++ b/sdk/python/pulumi_vsphere/vnic.py @@ -31,13 +31,13 @@ def __init__(__self__, *, :param pulumi.Input[str] host: ESX host the interface belongs to :param pulumi.Input[str] distributed_port_group: Key of the distributed portgroup the nic will connect to. :param pulumi.Input[str] distributed_switch_port: UUID of the DVSwitch the nic will be attached to. Do not set if you set portgroup. - :param pulumi.Input['VnicIpv4Args'] ipv4: IPv4 settings. Either this or `ipv6` needs to be set. See ipv4 options below. - :param pulumi.Input['VnicIpv6Args'] ipv6: IPv6 settings. Either this or `ipv6` needs to be set. See ipv6 options below. + :param pulumi.Input['VnicIpv4Args'] ipv4: IPv4 settings. Either this or `ipv6` needs to be set. See IPv4 options below. + :param pulumi.Input['VnicIpv6Args'] ipv6: IPv6 settings. Either this or `ipv6` needs to be set. See IPv6 options below. :param pulumi.Input[str] mac: MAC address of the interface. :param pulumi.Input[int] mtu: MTU of the interface. - :param pulumi.Input[str] netstack: 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`) + :param pulumi.Input[str] netstack: 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`) :param pulumi.Input[str] portgroup: Portgroup to attach the nic to. Do not set if you set distributed_switch_port. - :param pulumi.Input[Sequence[pulumi.Input[str]]] services: Enabled services setting for this interface. Current possible values are 'vmotion', 'management', and 'vsan'. + :param pulumi.Input[Sequence[pulumi.Input[str]]] services: Enabled services setting for this interface. Currently support values are `vmotion`, `management`, and `vsan`. """ VnicArgs._configure( lambda key, value: pulumi.set(__self__, key, value), @@ -126,7 +126,7 @@ def distributed_switch_port(self, value: Optional[pulumi.Input[str]]): @pulumi.getter def ipv4(self) -> Optional[pulumi.Input['VnicIpv4Args']]: """ - 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. """ return pulumi.get(self, "ipv4") @@ -138,7 +138,7 @@ def ipv4(self, value: Optional[pulumi.Input['VnicIpv4Args']]): @pulumi.getter def ipv6(self) -> Optional[pulumi.Input['VnicIpv6Args']]: """ - 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. """ return pulumi.get(self, "ipv6") @@ -174,7 +174,7 @@ def mtu(self, value: Optional[pulumi.Input[int]]): @pulumi.getter def netstack(self) -> Optional[pulumi.Input[str]]: """ - 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`) """ return pulumi.get(self, "netstack") @@ -198,7 +198,7 @@ def portgroup(self, value: Optional[pulumi.Input[str]]): @pulumi.getter def services(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: """ - 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`. """ return pulumi.get(self, "services") @@ -225,13 +225,13 @@ def __init__(__self__, *, :param pulumi.Input[str] distributed_port_group: Key of the distributed portgroup the nic will connect to. :param pulumi.Input[str] distributed_switch_port: UUID of the DVSwitch the nic will be attached to. Do not set if you set portgroup. :param pulumi.Input[str] host: ESX host the interface belongs to - :param pulumi.Input['VnicIpv4Args'] ipv4: IPv4 settings. Either this or `ipv6` needs to be set. See ipv4 options below. - :param pulumi.Input['VnicIpv6Args'] ipv6: IPv6 settings. Either this or `ipv6` needs to be set. See ipv6 options below. + :param pulumi.Input['VnicIpv4Args'] ipv4: IPv4 settings. Either this or `ipv6` needs to be set. See IPv4 options below. + :param pulumi.Input['VnicIpv6Args'] ipv6: IPv6 settings. Either this or `ipv6` needs to be set. See IPv6 options below. :param pulumi.Input[str] mac: MAC address of the interface. :param pulumi.Input[int] mtu: MTU of the interface. - :param pulumi.Input[str] netstack: 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`) + :param pulumi.Input[str] netstack: 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`) :param pulumi.Input[str] portgroup: Portgroup to attach the nic to. Do not set if you set distributed_switch_port. - :param pulumi.Input[Sequence[pulumi.Input[str]]] services: Enabled services setting for this interface. Current possible values are 'vmotion', 'management', and 'vsan'. + :param pulumi.Input[Sequence[pulumi.Input[str]]] services: Enabled services setting for this interface. Currently support values are `vmotion`, `management`, and `vsan`. """ _VnicState._configure( lambda key, value: pulumi.set(__self__, key, value), @@ -321,7 +321,7 @@ def host(self, value: Optional[pulumi.Input[str]]): @pulumi.getter def ipv4(self) -> Optional[pulumi.Input['VnicIpv4Args']]: """ - 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. """ return pulumi.get(self, "ipv4") @@ -333,7 +333,7 @@ def ipv4(self, value: Optional[pulumi.Input['VnicIpv4Args']]): @pulumi.getter def ipv6(self) -> Optional[pulumi.Input['VnicIpv6Args']]: """ - 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. """ return pulumi.get(self, "ipv6") @@ -369,7 +369,7 @@ def mtu(self, value: Optional[pulumi.Input[int]]): @pulumi.getter def netstack(self) -> Optional[pulumi.Input[str]]: """ - 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`) """ return pulumi.get(self, "netstack") @@ -393,7 +393,7 @@ def portgroup(self, value: Optional[pulumi.Input[str]]): @pulumi.getter def services(self) -> Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]: """ - 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`. """ return pulumi.get(self, "services") @@ -451,6 +451,37 @@ def __init__(__self__, ), netstack="vmotion") ``` + ### Create a vnic attached to a portgroup using the default TCP/IP stack + + ```python + import pulumi + import pulumi_vsphere as vsphere + + dc = vsphere.get_datacenter(name="mydc") + h1 = vsphere.get_host(name="esxi1.host.test", + datacenter_id=dc.id) + hvs1 = vsphere.HostVirtualSwitch("hvs1", + host_system_id=h1.id, + network_adapters=[ + "vmnic3", + "vmnic4", + ], + active_nics=["vmnic3"], + standby_nics=["vmnic4"]) + p1 = vsphere.HostPortGroup("p1", + virtual_switch_name=hvs1.name, + host_system_id=h1.id) + v1 = vsphere.Vnic("v1", + host=h1.id, + portgroup=p1.name, + ipv4=vsphere.VnicIpv4Args( + dhcp=True, + ), + services=[ + "vsan", + "management", + ]) + ``` ## Importing An existing vNic can be [imported][docs-import] into this resource @@ -469,13 +500,13 @@ def __init__(__self__, :param pulumi.Input[str] distributed_port_group: Key of the distributed portgroup the nic will connect to. :param pulumi.Input[str] distributed_switch_port: UUID of the DVSwitch the nic will be attached to. Do not set if you set portgroup. :param pulumi.Input[str] host: ESX host the interface belongs to - :param pulumi.Input[pulumi.InputType['VnicIpv4Args']] ipv4: IPv4 settings. Either this or `ipv6` needs to be set. See ipv4 options below. - :param pulumi.Input[pulumi.InputType['VnicIpv6Args']] ipv6: IPv6 settings. Either this or `ipv6` needs to be set. See ipv6 options below. + :param pulumi.Input[pulumi.InputType['VnicIpv4Args']] ipv4: IPv4 settings. Either this or `ipv6` needs to be set. See IPv4 options below. + :param pulumi.Input[pulumi.InputType['VnicIpv6Args']] ipv6: IPv6 settings. Either this or `ipv6` needs to be set. See IPv6 options below. :param pulumi.Input[str] mac: MAC address of the interface. :param pulumi.Input[int] mtu: MTU of the interface. - :param pulumi.Input[str] netstack: 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`) + :param pulumi.Input[str] netstack: 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`) :param pulumi.Input[str] portgroup: Portgroup to attach the nic to. Do not set if you set distributed_switch_port. - :param pulumi.Input[Sequence[pulumi.Input[str]]] services: Enabled services setting for this interface. Current possible values are 'vmotion', 'management', and 'vsan'. + :param pulumi.Input[Sequence[pulumi.Input[str]]] services: Enabled services setting for this interface. Currently support values are `vmotion`, `management`, and `vsan`. """ ... @overload @@ -516,6 +547,37 @@ def __init__(__self__, ), netstack="vmotion") ``` + ### Create a vnic attached to a portgroup using the default TCP/IP stack + + ```python + import pulumi + import pulumi_vsphere as vsphere + + dc = vsphere.get_datacenter(name="mydc") + h1 = vsphere.get_host(name="esxi1.host.test", + datacenter_id=dc.id) + hvs1 = vsphere.HostVirtualSwitch("hvs1", + host_system_id=h1.id, + network_adapters=[ + "vmnic3", + "vmnic4", + ], + active_nics=["vmnic3"], + standby_nics=["vmnic4"]) + p1 = vsphere.HostPortGroup("p1", + virtual_switch_name=hvs1.name, + host_system_id=h1.id) + v1 = vsphere.Vnic("v1", + host=h1.id, + portgroup=p1.name, + ipv4=vsphere.VnicIpv4Args( + dhcp=True, + ), + services=[ + "vsan", + "management", + ]) + ``` ## Importing An existing vNic can be [imported][docs-import] into this resource @@ -619,13 +681,13 @@ def get(resource_name: str, :param pulumi.Input[str] distributed_port_group: Key of the distributed portgroup the nic will connect to. :param pulumi.Input[str] distributed_switch_port: UUID of the DVSwitch the nic will be attached to. Do not set if you set portgroup. :param pulumi.Input[str] host: ESX host the interface belongs to - :param pulumi.Input[pulumi.InputType['VnicIpv4Args']] ipv4: IPv4 settings. Either this or `ipv6` needs to be set. See ipv4 options below. - :param pulumi.Input[pulumi.InputType['VnicIpv6Args']] ipv6: IPv6 settings. Either this or `ipv6` needs to be set. See ipv6 options below. + :param pulumi.Input[pulumi.InputType['VnicIpv4Args']] ipv4: IPv4 settings. Either this or `ipv6` needs to be set. See IPv4 options below. + :param pulumi.Input[pulumi.InputType['VnicIpv6Args']] ipv6: IPv6 settings. Either this or `ipv6` needs to be set. See IPv6 options below. :param pulumi.Input[str] mac: MAC address of the interface. :param pulumi.Input[int] mtu: MTU of the interface. - :param pulumi.Input[str] netstack: 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`) + :param pulumi.Input[str] netstack: 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`) :param pulumi.Input[str] portgroup: Portgroup to attach the nic to. Do not set if you set distributed_switch_port. - :param pulumi.Input[Sequence[pulumi.Input[str]]] services: Enabled services setting for this interface. Current possible values are 'vmotion', 'management', and 'vsan'. + :param pulumi.Input[Sequence[pulumi.Input[str]]] services: Enabled services setting for this interface. Currently support values are `vmotion`, `management`, and `vsan`. """ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) @@ -671,7 +733,7 @@ def host(self) -> pulumi.Output[str]: @pulumi.getter def ipv4(self) -> pulumi.Output[Optional['outputs.VnicIpv4']]: """ - 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. """ return pulumi.get(self, "ipv4") @@ -679,7 +741,7 @@ def ipv4(self) -> pulumi.Output[Optional['outputs.VnicIpv4']]: @pulumi.getter def ipv6(self) -> pulumi.Output[Optional['outputs.VnicIpv6']]: """ - 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. """ return pulumi.get(self, "ipv6") @@ -703,7 +765,7 @@ def mtu(self) -> pulumi.Output[int]: @pulumi.getter def netstack(self) -> pulumi.Output[Optional[str]]: """ - 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`) """ return pulumi.get(self, "netstack") @@ -719,7 +781,7 @@ def portgroup(self) -> pulumi.Output[Optional[str]]: @pulumi.getter def services(self) -> pulumi.Output[Optional[Sequence[str]]]: """ - 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`. """ return pulumi.get(self, "services")