diff --git a/sdk/dotnet/ComputeClusterVmAffinityRule.cs b/sdk/dotnet/ComputeClusterVmAffinityRule.cs index d70be3b9..2998fe46 100644 --- a/sdk/dotnet/ComputeClusterVmAffinityRule.cs +++ b/sdk/dotnet/ComputeClusterVmAffinityRule.cs @@ -41,6 +41,7 @@ namespace Pulumi.VSphere /// then creates an affinity rule for these two virtual machines, ensuring they /// will run on the same host whenever possible. /// + /// <!--Start PulumiCodeChooser --> /// ```csharp /// using System.Collections.Generic; /// using System.Linq; @@ -111,11 +112,13 @@ namespace Pulumi.VSphere /// /// }); /// ``` + /// <!--End PulumiCodeChooser --> /// /// The following example creates an affinity rule for a set of virtual machines /// in the cluster by looking up the virtual machine UUIDs from the /// `vsphere.VirtualMachine` data source. /// + /// <!--Start PulumiCodeChooser --> /// ```csharp /// using System.Collections.Generic; /// using System.Linq; @@ -160,6 +163,7 @@ namespace Pulumi.VSphere /// /// }); /// ``` + /// <!--End PulumiCodeChooser --> /// [VSphereResourceType("vsphere:index/computeClusterVmAffinityRule:ComputeClusterVmAffinityRule")] public partial class ComputeClusterVmAffinityRule : global::Pulumi.CustomResource diff --git a/sdk/dotnet/Datacenter.cs b/sdk/dotnet/Datacenter.cs index e52500e0..9a216d54 100644 --- a/sdk/dotnet/Datacenter.cs +++ b/sdk/dotnet/Datacenter.cs @@ -14,8 +14,10 @@ namespace Pulumi.VSphere /// container of inventory objects such as hosts and virtual machines. /// /// ## Example Usage + /// /// ### Create datacenter on the root folder /// + /// <!--Start PulumiCodeChooser --> /// ```csharp /// using System.Collections.Generic; /// using System.Linq; @@ -28,8 +30,11 @@ namespace Pulumi.VSphere /// /// }); /// ``` + /// <!--End PulumiCodeChooser --> + /// /// ### Create datacenter on a subfolder /// + /// <!--Start PulumiCodeChooser --> /// ```csharp /// using System.Collections.Generic; /// using System.Linq; @@ -45,6 +50,7 @@ namespace Pulumi.VSphere /// /// }); /// ``` + /// <!--End PulumiCodeChooser --> /// [VSphereResourceType("vsphere:index/datacenter:Datacenter")] public partial class Datacenter : global::Pulumi.CustomResource diff --git a/sdk/dotnet/DatastoreCluster.cs b/sdk/dotnet/DatastoreCluster.cs index 5286484c..0c22b050 100644 --- a/sdk/dotnet/DatastoreCluster.cs +++ b/sdk/dotnet/DatastoreCluster.cs @@ -140,7 +140,7 @@ public partial class DatastoreCluster : global::Pulumi.CustomResource /// recommendations to move VMs off of a datastore. Note that this setting should /// only be set if `sdrs_io_reservable_percent_threshold` cannot make an accurate /// estimate of the capacity of the datastores in your cluster, and should be set - /// to roughly 50-60% of the worst case peak performance of the backing LUNs. + /// to roughly 50-60%!o(MISSING)f the worst case peak performance of the backing LUNs. /// [Output("sdrsIoReservableIopsThreshold")] public Output SdrsIoReservableIopsThreshold { get; private set; } = null!; @@ -400,7 +400,7 @@ public InputMap SdrsAdvancedOptions /// recommendations to move VMs off of a datastore. Note that this setting should /// only be set if `sdrs_io_reservable_percent_threshold` cannot make an accurate /// estimate of the capacity of the datastores in your cluster, and should be set - /// to roughly 50-60% of the worst case peak performance of the backing LUNs. + /// to roughly 50-60%!o(MISSING)f the worst case peak performance of the backing LUNs. /// [Input("sdrsIoReservableIopsThreshold")] public Input? SdrsIoReservableIopsThreshold { get; set; } @@ -628,7 +628,7 @@ public InputMap SdrsAdvancedOptions /// recommendations to move VMs off of a datastore. Note that this setting should /// only be set if `sdrs_io_reservable_percent_threshold` cannot make an accurate /// estimate of the capacity of the datastores in your cluster, and should be set - /// to roughly 50-60% of the worst case peak performance of the backing LUNs. + /// to roughly 50-60%!o(MISSING)f the worst case peak performance of the backing LUNs. /// [Input("sdrsIoReservableIopsThreshold")] public Input? SdrsIoReservableIopsThreshold { get; set; } diff --git a/sdk/dotnet/DistributedVirtualSwitch.cs b/sdk/dotnet/DistributedVirtualSwitch.cs index e4a8cd23..a178613b 100644 --- a/sdk/dotnet/DistributedVirtualSwitch.cs +++ b/sdk/dotnet/DistributedVirtualSwitch.cs @@ -434,7 +434,8 @@ public partial class DistributedVirtualSwitch : global::Pulumi.CustomResource /// The ratio of total number of packets to /// the number of packets analyzed. The default is `0`, which indicates that the /// VDS should analyze all packets. The maximum value is `1000`, which - /// indicates an analysis rate of 0.001%. + /// indicates an analysis rate of 0.001%! + /// (MISSING) /// [Output("netflowSamplingRate")] public Output NetflowSamplingRate { get; private set; } = null!; @@ -608,6 +609,7 @@ public partial class DistributedVirtualSwitch : global::Pulumi.CustomResource /// `vlan_range` definitions are allowed, but they must not overlap. Example /// below: /// + /// <!--Start PulumiCodeChooser --> /// ```csharp /// using System.Collections.Generic; /// using System.Linq; @@ -635,6 +637,7 @@ public partial class DistributedVirtualSwitch : global::Pulumi.CustomResource /// /// }); /// ``` + /// <!--End PulumiCodeChooser --> /// [Output("vlanRanges")] public Output> VlanRanges { get; private set; } = null!; @@ -1166,7 +1169,8 @@ public InputList Hosts /// The ratio of total number of packets to /// the number of packets analyzed. The default is `0`, which indicates that the /// VDS should analyze all packets. The maximum value is `1000`, which - /// indicates an analysis rate of 0.001%. + /// indicates an analysis rate of 0.001%! + /// (MISSING) /// [Input("netflowSamplingRate")] public Input? NetflowSamplingRate { get; set; } @@ -1367,6 +1371,7 @@ public InputList Uplinks /// `vlan_range` definitions are allowed, but they must not overlap. Example /// below: /// + /// <!--Start PulumiCodeChooser --> /// ```csharp /// using System.Collections.Generic; /// using System.Linq; @@ -1394,6 +1399,7 @@ public InputList Uplinks /// /// }); /// ``` + /// <!--End PulumiCodeChooser --> /// public InputList VlanRanges { @@ -1897,7 +1903,8 @@ public InputList Hosts /// The ratio of total number of packets to /// the number of packets analyzed. The default is `0`, which indicates that the /// VDS should analyze all packets. The maximum value is `1000`, which - /// indicates an analysis rate of 0.001%. + /// indicates an analysis rate of 0.001%! + /// (MISSING) /// [Input("netflowSamplingRate")] public Input? NetflowSamplingRate { get; set; } @@ -2098,6 +2105,7 @@ public InputList Uplinks /// `vlan_range` definitions are allowed, but they must not overlap. Example /// below: /// + /// <!--Start PulumiCodeChooser --> /// ```csharp /// using System.Collections.Generic; /// using System.Linq; @@ -2125,6 +2133,7 @@ public InputList Uplinks /// /// }); /// ``` + /// <!--End PulumiCodeChooser --> /// public InputList VlanRanges { diff --git a/sdk/dotnet/File.cs b/sdk/dotnet/File.cs index 8d6576ec..48e0003e 100644 --- a/sdk/dotnet/File.cs +++ b/sdk/dotnet/File.cs @@ -11,8 +11,10 @@ namespace Pulumi.VSphere { /// /// ## Example Usage + /// /// ### Uploading a File /// + /// <!--Start PulumiCodeChooser --> /// ```csharp /// using System.Collections.Generic; /// using System.Linq; @@ -32,8 +34,11 @@ namespace Pulumi.VSphere /// /// }); /// ``` + /// <!--End PulumiCodeChooser --> + /// /// ### Copying a File /// + /// <!--Start PulumiCodeChooser --> /// ```csharp /// using System.Collections.Generic; /// using System.Linq; @@ -55,6 +60,7 @@ namespace Pulumi.VSphere /// /// }); /// ``` + /// <!--End PulumiCodeChooser --> /// [VSphereResourceType("vsphere:index/file:File")] public partial class File : global::Pulumi.CustomResource diff --git a/sdk/dotnet/GetComputeCluster.cs b/sdk/dotnet/GetComputeCluster.cs index 5f5864bb..72a19297 100644 --- a/sdk/dotnet/GetComputeCluster.cs +++ b/sdk/dotnet/GetComputeCluster.cs @@ -22,10 +22,9 @@ public static class GetComputeCluster /// resource for more information about clusters and how to managed the resource /// in this provider. /// - /// {{% examples %}} /// ## Example Usage - /// {{% example %}} /// + /// <!--Start PulumiCodeChooser --> /// ```csharp /// using System.Collections.Generic; /// using System.Linq; @@ -47,8 +46,7 @@ public static class GetComputeCluster /// /// }); /// ``` - /// {{% /example %}} - /// {{% /examples %}} + /// <!--End PulumiCodeChooser --> /// public static Task InvokeAsync(GetComputeClusterArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.InvokeAsync("vsphere:index/getComputeCluster:getComputeCluster", args ?? new GetComputeClusterArgs(), options.WithDefaults()); @@ -64,10 +62,9 @@ public static Task InvokeAsync(GetComputeClusterArgs ar /// resource for more information about clusters and how to managed the resource /// in this provider. /// - /// {{% examples %}} /// ## Example Usage - /// {{% example %}} /// + /// <!--Start PulumiCodeChooser --> /// ```csharp /// using System.Collections.Generic; /// using System.Linq; @@ -89,8 +86,7 @@ public static Task InvokeAsync(GetComputeClusterArgs ar /// /// }); /// ``` - /// {{% /example %}} - /// {{% /examples %}} + /// <!--End PulumiCodeChooser --> /// public static Output Invoke(GetComputeClusterInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("vsphere:index/getComputeCluster:getComputeCluster", args ?? new GetComputeClusterInvokeArgs(), options.WithDefaults()); diff --git a/sdk/dotnet/GetComputeClusterHostGroup.cs b/sdk/dotnet/GetComputeClusterHostGroup.cs index 5b60aa35..d5bcf947 100644 --- a/sdk/dotnet/GetComputeClusterHostGroup.cs +++ b/sdk/dotnet/GetComputeClusterHostGroup.cs @@ -16,10 +16,9 @@ public static class GetComputeClusterHostGroup /// the IDs ESXi hosts in a host group and return host group attributes to other /// resources. /// - /// {{% examples %}} /// ## Example Usage - /// {{% example %}} /// + /// <!--Start PulumiCodeChooser --> /// ```csharp /// using System.Collections.Generic; /// using System.Linq; @@ -54,8 +53,7 @@ public static class GetComputeClusterHostGroup /// /// }); /// ``` - /// {{% /example %}} - /// {{% /examples %}} + /// <!--End PulumiCodeChooser --> /// public static Task InvokeAsync(GetComputeClusterHostGroupArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.InvokeAsync("vsphere:index/getComputeClusterHostGroup:getComputeClusterHostGroup", args ?? new GetComputeClusterHostGroupArgs(), options.WithDefaults()); @@ -65,10 +63,9 @@ public static Task InvokeAsync(GetComputeClust /// the IDs ESXi hosts in a host group and return host group attributes to other /// resources. /// - /// {{% examples %}} /// ## Example Usage - /// {{% example %}} /// + /// <!--Start PulumiCodeChooser --> /// ```csharp /// using System.Collections.Generic; /// using System.Linq; @@ -103,8 +100,7 @@ public static Task InvokeAsync(GetComputeClust /// /// }); /// ``` - /// {{% /example %}} - /// {{% /examples %}} + /// <!--End PulumiCodeChooser --> /// public static Output Invoke(GetComputeClusterHostGroupInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("vsphere:index/getComputeClusterHostGroup:getComputeClusterHostGroup", args ?? new GetComputeClusterHostGroupInvokeArgs(), options.WithDefaults()); diff --git a/sdk/dotnet/GetContentLibrary.cs b/sdk/dotnet/GetContentLibrary.cs index a50d61a0..0a906a5a 100644 --- a/sdk/dotnet/GetContentLibrary.cs +++ b/sdk/dotnet/GetContentLibrary.cs @@ -16,10 +16,9 @@ public static class GetContentLibrary /// /// > **NOTE:** This resource requires vCenter Server and is not available on direct ESXi host connections. /// - /// {{% examples %}} /// ## Example Usage - /// {{% example %}} /// + /// <!--Start PulumiCodeChooser --> /// ```csharp /// using System.Collections.Generic; /// using System.Linq; @@ -35,8 +34,7 @@ public static class GetContentLibrary /// /// }); /// ``` - /// {{% /example %}} - /// {{% /examples %}} + /// <!--End PulumiCodeChooser --> /// public static Task InvokeAsync(GetContentLibraryArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.InvokeAsync("vsphere:index/getContentLibrary:getContentLibrary", args ?? new GetContentLibraryArgs(), options.WithDefaults()); @@ -46,10 +44,9 @@ public static Task InvokeAsync(GetContentLibraryArgs ar /// /// > **NOTE:** This resource requires vCenter Server and is not available on direct ESXi host connections. /// - /// {{% examples %}} /// ## Example Usage - /// {{% example %}} /// + /// <!--Start PulumiCodeChooser --> /// ```csharp /// using System.Collections.Generic; /// using System.Linq; @@ -65,8 +62,7 @@ public static Task InvokeAsync(GetContentLibraryArgs ar /// /// }); /// ``` - /// {{% /example %}} - /// {{% /examples %}} + /// <!--End PulumiCodeChooser --> /// public static Output Invoke(GetContentLibraryInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("vsphere:index/getContentLibrary:getContentLibrary", args ?? new GetContentLibraryInvokeArgs(), options.WithDefaults()); diff --git a/sdk/dotnet/GetCustomAttribute.cs b/sdk/dotnet/GetCustomAttribute.cs index 7c2901b4..58668324 100644 --- a/sdk/dotnet/GetCustomAttribute.cs +++ b/sdk/dotnet/GetCustomAttribute.cs @@ -21,10 +21,9 @@ public static class GetCustomAttribute /// > **NOTE:** Custom attributes are unsupported on direct ESXi host connections /// and require vCenter Server. /// - /// {{% examples %}} /// ## Example Usage - /// {{% example %}} /// + /// <!--Start PulumiCodeChooser --> /// ```csharp /// using System.Collections.Generic; /// using System.Linq; @@ -40,8 +39,7 @@ public static class GetCustomAttribute /// /// }); /// ``` - /// {{% /example %}} - /// {{% /examples %}} + /// <!--End PulumiCodeChooser --> /// public static Task InvokeAsync(GetCustomAttributeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.InvokeAsync("vsphere:index/getCustomAttribute:getCustomAttribute", args ?? new GetCustomAttributeArgs(), options.WithDefaults()); @@ -56,10 +54,9 @@ public static Task InvokeAsync(GetCustomAttributeArgs /// > **NOTE:** Custom attributes are unsupported on direct ESXi host connections /// and require vCenter Server. /// - /// {{% examples %}} /// ## Example Usage - /// {{% example %}} /// + /// <!--Start PulumiCodeChooser --> /// ```csharp /// using System.Collections.Generic; /// using System.Linq; @@ -75,8 +72,7 @@ public static Task InvokeAsync(GetCustomAttributeArgs /// /// }); /// ``` - /// {{% /example %}} - /// {{% /examples %}} + /// <!--End PulumiCodeChooser --> /// public static Output Invoke(GetCustomAttributeInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("vsphere:index/getCustomAttribute:getCustomAttribute", args ?? new GetCustomAttributeInvokeArgs(), options.WithDefaults()); diff --git a/sdk/dotnet/GetDatacenter.cs b/sdk/dotnet/GetDatacenter.cs index f49fdb44..39c7149f 100644 --- a/sdk/dotnet/GetDatacenter.cs +++ b/sdk/dotnet/GetDatacenter.cs @@ -17,10 +17,9 @@ public static class GetDatacenter /// that require a datacenter, such as the `vsphere.Host` /// data source. /// - /// {{% examples %}} /// ## Example Usage - /// {{% example %}} /// + /// <!--Start PulumiCodeChooser --> /// ```csharp /// using System.Collections.Generic; /// using System.Linq; @@ -36,8 +35,7 @@ public static class GetDatacenter /// /// }); /// ``` - /// {{% /example %}} - /// {{% /examples %}} + /// <!--End PulumiCodeChooser --> /// public static Task InvokeAsync(GetDatacenterArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.InvokeAsync("vsphere:index/getDatacenter:getDatacenter", args ?? new GetDatacenterArgs(), options.WithDefaults()); @@ -48,10 +46,9 @@ public static Task InvokeAsync(GetDatacenterArgs? args = nu /// that require a datacenter, such as the `vsphere.Host` /// data source. /// - /// {{% examples %}} /// ## Example Usage - /// {{% example %}} /// + /// <!--Start PulumiCodeChooser --> /// ```csharp /// using System.Collections.Generic; /// using System.Linq; @@ -67,8 +64,7 @@ public static Task InvokeAsync(GetDatacenterArgs? args = nu /// /// }); /// ``` - /// {{% /example %}} - /// {{% /examples %}} + /// <!--End PulumiCodeChooser --> /// public static Output Invoke(GetDatacenterInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("vsphere:index/getDatacenter:getDatacenter", args ?? new GetDatacenterInvokeArgs(), options.WithDefaults()); diff --git a/sdk/dotnet/GetDatastore.cs b/sdk/dotnet/GetDatastore.cs index 9e97767e..0da17b4b 100644 --- a/sdk/dotnet/GetDatastore.cs +++ b/sdk/dotnet/GetDatastore.cs @@ -18,10 +18,9 @@ public static class GetDatastore /// `vsphere.VirtualMachine` resource. /// /// - /// {{% examples %}} /// ## Example Usage - /// {{% example %}} /// + /// <!--Start PulumiCodeChooser --> /// ```csharp /// using System.Collections.Generic; /// using System.Linq; @@ -43,8 +42,7 @@ public static class GetDatastore /// /// }); /// ``` - /// {{% /example %}} - /// {{% /examples %}} + /// <!--End PulumiCodeChooser --> /// public static Task InvokeAsync(GetDatastoreArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.InvokeAsync("vsphere:index/getDatastore:getDatastore", args ?? new GetDatastoreArgs(), options.WithDefaults()); @@ -56,10 +54,9 @@ public static Task InvokeAsync(GetDatastoreArgs args, Invoke /// `vsphere.VirtualMachine` resource. /// /// - /// {{% examples %}} /// ## Example Usage - /// {{% example %}} /// + /// <!--Start PulumiCodeChooser --> /// ```csharp /// using System.Collections.Generic; /// using System.Linq; @@ -81,8 +78,7 @@ public static Task InvokeAsync(GetDatastoreArgs args, Invoke /// /// }); /// ``` - /// {{% /example %}} - /// {{% /examples %}} + /// <!--End PulumiCodeChooser --> /// public static Output Invoke(GetDatastoreInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("vsphere:index/getDatastore:getDatastore", args ?? new GetDatastoreInvokeArgs(), options.WithDefaults()); diff --git a/sdk/dotnet/GetDatastoreCluster.cs b/sdk/dotnet/GetDatastoreCluster.cs index 0a82cab9..a8ba33a2 100644 --- a/sdk/dotnet/GetDatastoreCluster.cs +++ b/sdk/dotnet/GetDatastoreCluster.cs @@ -17,10 +17,9 @@ public static class GetDatastoreCluster /// that require a datastore. For example, to assign datastores using the /// `vsphere.NasDatastore` or `vsphere.VmfsDatastore` resources, or to create virtual machines in using the `vsphere.VirtualMachine` resource. /// - /// {{% examples %}} /// ## Example Usage - /// {{% example %}} /// + /// <!--Start PulumiCodeChooser --> /// ```csharp /// using System.Collections.Generic; /// using System.Linq; @@ -42,8 +41,7 @@ public static class GetDatastoreCluster /// /// }); /// ``` - /// {{% /example %}} - /// {{% /examples %}} + /// <!--End PulumiCodeChooser --> /// public static Task InvokeAsync(GetDatastoreClusterArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.InvokeAsync("vsphere:index/getDatastoreCluster:getDatastoreCluster", args ?? new GetDatastoreClusterArgs(), options.WithDefaults()); @@ -54,10 +52,9 @@ public static Task InvokeAsync(GetDatastoreClusterArg /// that require a datastore. For example, to assign datastores using the /// `vsphere.NasDatastore` or `vsphere.VmfsDatastore` resources, or to create virtual machines in using the `vsphere.VirtualMachine` resource. /// - /// {{% examples %}} /// ## Example Usage - /// {{% example %}} /// + /// <!--Start PulumiCodeChooser --> /// ```csharp /// using System.Collections.Generic; /// using System.Linq; @@ -79,8 +76,7 @@ public static Task InvokeAsync(GetDatastoreClusterArg /// /// }); /// ``` - /// {{% /example %}} - /// {{% /examples %}} + /// <!--End PulumiCodeChooser --> /// public static Output Invoke(GetDatastoreClusterInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("vsphere:index/getDatastoreCluster:getDatastoreCluster", args ?? new GetDatastoreClusterInvokeArgs(), options.WithDefaults()); diff --git a/sdk/dotnet/GetDistributedVirtualSwitch.cs b/sdk/dotnet/GetDistributedVirtualSwitch.cs index 57326913..e51e5196 100644 --- a/sdk/dotnet/GetDistributedVirtualSwitch.cs +++ b/sdk/dotnet/GetDistributedVirtualSwitch.cs @@ -21,15 +21,14 @@ public static class GetDistributedVirtualSwitch /// > **NOTE:** This data source requires vCenter Server and is not available on /// direct ESXi host connections. /// - /// {{% examples %}} /// ## Example Usage - /// {{% example %}} /// /// The following example locates a distributed switch named `vds-01`, in the /// datacenter `dc-01`. It then uses this distributed switch to set up a /// `vsphere.DistributedPortGroup` resource that uses the first uplink as a /// primary uplink and the second uplink as a secondary. /// + /// <!--Start PulumiCodeChooser --> /// ```csharp /// using System.Collections.Generic; /// using System.Linq; @@ -64,8 +63,7 @@ public static class GetDistributedVirtualSwitch /// /// }); /// ``` - /// {{% /example %}} - /// {{% /examples %}} + /// <!--End PulumiCodeChooser --> /// public static Task InvokeAsync(GetDistributedVirtualSwitchArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.InvokeAsync("vsphere:index/getDistributedVirtualSwitch:getDistributedVirtualSwitch", args ?? new GetDistributedVirtualSwitchArgs(), options.WithDefaults()); @@ -80,15 +78,14 @@ public static Task InvokeAsync(GetDistributed /// > **NOTE:** This data source requires vCenter Server and is not available on /// direct ESXi host connections. /// - /// {{% examples %}} /// ## Example Usage - /// {{% example %}} /// /// The following example locates a distributed switch named `vds-01`, in the /// datacenter `dc-01`. It then uses this distributed switch to set up a /// `vsphere.DistributedPortGroup` resource that uses the first uplink as a /// primary uplink and the second uplink as a secondary. /// + /// <!--Start PulumiCodeChooser --> /// ```csharp /// using System.Collections.Generic; /// using System.Linq; @@ -123,8 +120,7 @@ public static Task InvokeAsync(GetDistributed /// /// }); /// ``` - /// {{% /example %}} - /// {{% /examples %}} + /// <!--End PulumiCodeChooser --> /// public static Output Invoke(GetDistributedVirtualSwitchInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("vsphere:index/getDistributedVirtualSwitch:getDistributedVirtualSwitch", args ?? new GetDistributedVirtualSwitchInvokeArgs(), options.WithDefaults()); diff --git a/sdk/dotnet/GetDynamic.cs b/sdk/dotnet/GetDynamic.cs index b7fc08f7..24e0547f 100644 --- a/sdk/dotnet/GetDynamic.cs +++ b/sdk/dotnet/GetDynamic.cs @@ -18,10 +18,9 @@ public static class GetDynamic /// of any tagged managed object in vCenter Server by providing a list of tag IDs /// and an optional regular expression to filter objects by name. /// - /// {{% examples %}} /// ## Example Usage - /// {{% example %}} /// + /// <!--Start PulumiCodeChooser --> /// ```csharp /// using System.Collections.Generic; /// using System.Linq; @@ -60,8 +59,7 @@ public static class GetDynamic /// /// }); /// ``` - /// {{% /example %}} - /// {{% /examples %}} + /// <!--End PulumiCodeChooser --> /// public static Task InvokeAsync(GetDynamicArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.InvokeAsync("vsphere:index/getDynamic:getDynamic", args ?? new GetDynamicArgs(), options.WithDefaults()); @@ -73,10 +71,9 @@ public static Task InvokeAsync(GetDynamicArgs args, InvokeOpti /// of any tagged managed object in vCenter Server by providing a list of tag IDs /// and an optional regular expression to filter objects by name. /// - /// {{% examples %}} /// ## Example Usage - /// {{% example %}} /// + /// <!--Start PulumiCodeChooser --> /// ```csharp /// using System.Collections.Generic; /// using System.Linq; @@ -115,8 +112,7 @@ public static Task InvokeAsync(GetDynamicArgs args, InvokeOpti /// /// }); /// ``` - /// {{% /example %}} - /// {{% /examples %}} + /// <!--End PulumiCodeChooser --> /// public static Output Invoke(GetDynamicInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("vsphere:index/getDynamic:getDynamic", args ?? new GetDynamicInvokeArgs(), options.WithDefaults()); diff --git a/sdk/dotnet/GetFolder.cs b/sdk/dotnet/GetFolder.cs index 5aac10ed..0bef2265 100644 --- a/sdk/dotnet/GetFolder.cs +++ b/sdk/dotnet/GetFolder.cs @@ -15,10 +15,9 @@ public static class GetFolder /// The `vsphere.Folder` data source can be used to get the general attributes of a /// vSphere inventory folder. Paths are absolute and must include the datacenter. /// - /// {{% examples %}} /// ## Example Usage - /// {{% example %}} /// + /// <!--Start PulumiCodeChooser --> /// ```csharp /// using System.Collections.Generic; /// using System.Linq; @@ -34,8 +33,7 @@ public static class GetFolder /// /// }); /// ``` - /// {{% /example %}} - /// {{% /examples %}} + /// <!--End PulumiCodeChooser --> /// public static Task InvokeAsync(GetFolderArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.InvokeAsync("vsphere:index/getFolder:getFolder", args ?? new GetFolderArgs(), options.WithDefaults()); @@ -44,10 +42,9 @@ public static Task InvokeAsync(GetFolderArgs args, InvokeOption /// The `vsphere.Folder` data source can be used to get the general attributes of a /// vSphere inventory folder. Paths are absolute and must include the datacenter. /// - /// {{% examples %}} /// ## Example Usage - /// {{% example %}} /// + /// <!--Start PulumiCodeChooser --> /// ```csharp /// using System.Collections.Generic; /// using System.Linq; @@ -63,8 +60,7 @@ public static Task InvokeAsync(GetFolderArgs args, InvokeOption /// /// }); /// ``` - /// {{% /example %}} - /// {{% /examples %}} + /// <!--End PulumiCodeChooser --> /// public static Output Invoke(GetFolderInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("vsphere:index/getFolder:getFolder", args ?? new GetFolderInvokeArgs(), options.WithDefaults()); diff --git a/sdk/dotnet/GetGuestOsCustomization.cs b/sdk/dotnet/GetGuestOsCustomization.cs index 27ee729a..526b3f6a 100644 --- a/sdk/dotnet/GetGuestOsCustomization.cs +++ b/sdk/dotnet/GetGuestOsCustomization.cs @@ -18,10 +18,9 @@ public static class GetGuestOsCustomization /// > **NOTE:** The name attribute is the unique identifier for the customization specification per vCenter Server instance. /// /// - /// {{% examples %}} /// ## Example Usage - /// {{% example %}} /// + /// <!--Start PulumiCodeChooser --> /// ```csharp /// using System.Collections.Generic; /// using System.Linq; @@ -37,8 +36,7 @@ public static class GetGuestOsCustomization /// /// }); /// ``` - /// {{% /example %}} - /// {{% /examples %}} + /// <!--End PulumiCodeChooser --> /// public static Task InvokeAsync(GetGuestOsCustomizationArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.InvokeAsync("vsphere:index/getGuestOsCustomization:getGuestOsCustomization", args ?? new GetGuestOsCustomizationArgs(), options.WithDefaults()); @@ -50,10 +48,9 @@ public static Task InvokeAsync(GetGuestOsCustomiz /// > **NOTE:** The name attribute is the unique identifier for the customization specification per vCenter Server instance. /// /// - /// {{% examples %}} /// ## Example Usage - /// {{% example %}} /// + /// <!--Start PulumiCodeChooser --> /// ```csharp /// using System.Collections.Generic; /// using System.Linq; @@ -69,8 +66,7 @@ public static Task InvokeAsync(GetGuestOsCustomiz /// /// }); /// ``` - /// {{% /example %}} - /// {{% /examples %}} + /// <!--End PulumiCodeChooser --> /// public static Output Invoke(GetGuestOsCustomizationInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("vsphere:index/getGuestOsCustomization:getGuestOsCustomization", args ?? new GetGuestOsCustomizationInvokeArgs(), options.WithDefaults()); diff --git a/sdk/dotnet/GetHost.cs b/sdk/dotnet/GetHost.cs index 772d9048..cb1b228f 100644 --- a/sdk/dotnet/GetHost.cs +++ b/sdk/dotnet/GetHost.cs @@ -16,10 +16,9 @@ public static class GetHost /// This can then be used with resources or data sources that require an ESX /// host's managed object reference ID. /// - /// {{% examples %}} /// ## Example Usage - /// {{% example %}} /// + /// <!--Start PulumiCodeChooser --> /// ```csharp /// using System.Collections.Generic; /// using System.Linq; @@ -41,8 +40,7 @@ public static class GetHost /// /// }); /// ``` - /// {{% /example %}} - /// {{% /examples %}} + /// <!--End PulumiCodeChooser --> /// public static Task InvokeAsync(GetHostArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.InvokeAsync("vsphere:index/getHost:getHost", args ?? new GetHostArgs(), options.WithDefaults()); @@ -52,10 +50,9 @@ public static Task InvokeAsync(GetHostArgs args, InvokeOptions? o /// This can then be used with resources or data sources that require an ESX /// host's managed object reference ID. /// - /// {{% examples %}} /// ## Example Usage - /// {{% example %}} /// + /// <!--Start PulumiCodeChooser --> /// ```csharp /// using System.Collections.Generic; /// using System.Linq; @@ -77,8 +74,7 @@ public static Task InvokeAsync(GetHostArgs args, InvokeOptions? o /// /// }); /// ``` - /// {{% /example %}} - /// {{% /examples %}} + /// <!--End PulumiCodeChooser --> /// public static Output Invoke(GetHostInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("vsphere:index/getHost:getHost", args ?? new GetHostInvokeArgs(), options.WithDefaults()); diff --git a/sdk/dotnet/GetHostPciDevice.cs b/sdk/dotnet/GetHostPciDevice.cs index b16004b7..b96934c7 100644 --- a/sdk/dotnet/GetHostPciDevice.cs +++ b/sdk/dotnet/GetHostPciDevice.cs @@ -16,11 +16,11 @@ public static class GetHostPciDevice /// of a vSphere host's PCI device. This can then be used with /// `vsphere.VirtualMachine`'s `pci_device_id`. /// - /// {{% examples %}} /// ## Example Usage - /// {{% example %}} + /// /// ### With Vendor ID And Class ID /// + /// <!--Start PulumiCodeChooser --> /// ```csharp /// using System.Collections.Generic; /// using System.Linq; @@ -49,25 +49,39 @@ public static class GetHostPciDevice /// /// }); /// ``` - /// {{% /example %}} + /// <!--End PulumiCodeChooser --> + /// /// ### With Name Regular Expression /// - /// ```hcl - /// data "vsphere_datacenter" "datacenter" { - /// name = "dc-01" - /// } - /// - /// data "vsphere_host" "host" { - /// name = "esxi-01.example.com" - /// datacenter_id = data.vsphere_datacenter.datacenter.id - /// } - /// - /// data "vsphere_host_pci_device" "dev" { - /// host_id = data.vsphere_host.host.id - /// name_regex = "MMC" - /// } - /// ``` - /// {{% /examples %}} + /// <!--Start PulumiCodeChooser --> + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using VSphere = Pulumi.VSphere; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var datacenter = VSphere.GetDatacenter.Invoke(new() + /// { + /// Name = "dc-01", + /// }); + /// + /// var host = VSphere.GetHost.Invoke(new() + /// { + /// Name = "esxi-01.example.com", + /// DatacenterId = datacenter.Apply(getDatacenterResult => getDatacenterResult.Id), + /// }); + /// + /// var dev = VSphere.GetHostPciDevice.Invoke(new() + /// { + /// HostId = host.Apply(getHostResult => getHostResult.Id), + /// NameRegex = "MMC", + /// }); + /// + /// }); + /// ``` + /// <!--End PulumiCodeChooser --> /// public static Task InvokeAsync(GetHostPciDeviceArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.InvokeAsync("vsphere:index/getHostPciDevice:getHostPciDevice", args ?? new GetHostPciDeviceArgs(), options.WithDefaults()); @@ -77,11 +91,11 @@ public static Task InvokeAsync(GetHostPciDeviceArgs args /// of a vSphere host's PCI device. This can then be used with /// `vsphere.VirtualMachine`'s `pci_device_id`. /// - /// {{% examples %}} /// ## Example Usage - /// {{% example %}} + /// /// ### With Vendor ID And Class ID /// + /// <!--Start PulumiCodeChooser --> /// ```csharp /// using System.Collections.Generic; /// using System.Linq; @@ -110,25 +124,39 @@ public static Task InvokeAsync(GetHostPciDeviceArgs args /// /// }); /// ``` - /// {{% /example %}} + /// <!--End PulumiCodeChooser --> + /// /// ### With Name Regular Expression /// - /// ```hcl - /// data "vsphere_datacenter" "datacenter" { - /// name = "dc-01" - /// } - /// - /// data "vsphere_host" "host" { - /// name = "esxi-01.example.com" - /// datacenter_id = data.vsphere_datacenter.datacenter.id - /// } - /// - /// data "vsphere_host_pci_device" "dev" { - /// host_id = data.vsphere_host.host.id - /// name_regex = "MMC" - /// } - /// ``` - /// {{% /examples %}} + /// <!--Start PulumiCodeChooser --> + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using VSphere = Pulumi.VSphere; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var datacenter = VSphere.GetDatacenter.Invoke(new() + /// { + /// Name = "dc-01", + /// }); + /// + /// var host = VSphere.GetHost.Invoke(new() + /// { + /// Name = "esxi-01.example.com", + /// DatacenterId = datacenter.Apply(getDatacenterResult => getDatacenterResult.Id), + /// }); + /// + /// var dev = VSphere.GetHostPciDevice.Invoke(new() + /// { + /// HostId = host.Apply(getHostResult => getHostResult.Id), + /// NameRegex = "MMC", + /// }); + /// + /// }); + /// ``` + /// <!--End PulumiCodeChooser --> /// public static Output Invoke(GetHostPciDeviceInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("vsphere:index/getHostPciDevice:getHostPciDevice", args ?? new GetHostPciDeviceInvokeArgs(), options.WithDefaults()); diff --git a/sdk/dotnet/GetHostThumbprint.cs b/sdk/dotnet/GetHostThumbprint.cs index bbc90998..0d50544b 100644 --- a/sdk/dotnet/GetHostThumbprint.cs +++ b/sdk/dotnet/GetHostThumbprint.cs @@ -17,10 +17,9 @@ public static class GetHostThumbprint /// resource. If the ESXi host is using a certificate chain, the first one returned /// will be used to generate the thumbprint. /// - /// {{% examples %}} /// ## Example Usage - /// {{% example %}} /// + /// <!--Start PulumiCodeChooser --> /// ```csharp /// using System.Collections.Generic; /// using System.Linq; @@ -36,8 +35,7 @@ public static class GetHostThumbprint /// /// }); /// ``` - /// {{% /example %}} - /// {{% /examples %}} + /// <!--End PulumiCodeChooser --> /// public static Task InvokeAsync(GetHostThumbprintArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.InvokeAsync("vsphere:index/getHostThumbprint:getHostThumbprint", args ?? new GetHostThumbprintArgs(), options.WithDefaults()); @@ -48,10 +46,9 @@ public static Task InvokeAsync(GetHostThumbprintArgs ar /// resource. If the ESXi host is using a certificate chain, the first one returned /// will be used to generate the thumbprint. /// - /// {{% examples %}} /// ## Example Usage - /// {{% example %}} /// + /// <!--Start PulumiCodeChooser --> /// ```csharp /// using System.Collections.Generic; /// using System.Linq; @@ -67,8 +64,7 @@ public static Task InvokeAsync(GetHostThumbprintArgs ar /// /// }); /// ``` - /// {{% /example %}} - /// {{% /examples %}} + /// <!--End PulumiCodeChooser --> /// public static Output Invoke(GetHostThumbprintInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("vsphere:index/getHostThumbprint:getHostThumbprint", args ?? new GetHostThumbprintInvokeArgs(), options.WithDefaults()); diff --git a/sdk/dotnet/GetLicense.cs b/sdk/dotnet/GetLicense.cs index a0d6fae2..2212618a 100644 --- a/sdk/dotnet/GetLicense.cs +++ b/sdk/dotnet/GetLicense.cs @@ -15,10 +15,9 @@ public static class GetLicense /// The `vsphere.License` data source can be used to get the general attributes of /// a license keys from a vCenter Server instance. /// - /// {{% examples %}} /// ## Example Usage - /// {{% example %}} /// + /// <!--Start PulumiCodeChooser --> /// ```csharp /// using System.Collections.Generic; /// using System.Linq; @@ -34,8 +33,7 @@ public static class GetLicense /// /// }); /// ``` - /// {{% /example %}} - /// {{% /examples %}} + /// <!--End PulumiCodeChooser --> /// public static Task InvokeAsync(GetLicenseArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.InvokeAsync("vsphere:index/getLicense:getLicense", args ?? new GetLicenseArgs(), options.WithDefaults()); @@ -44,10 +42,9 @@ public static Task InvokeAsync(GetLicenseArgs args, InvokeOpti /// The `vsphere.License` data source can be used to get the general attributes of /// a license keys from a vCenter Server instance. /// - /// {{% examples %}} /// ## Example Usage - /// {{% example %}} /// + /// <!--Start PulumiCodeChooser --> /// ```csharp /// using System.Collections.Generic; /// using System.Linq; @@ -63,8 +60,7 @@ public static Task InvokeAsync(GetLicenseArgs args, InvokeOpti /// /// }); /// ``` - /// {{% /example %}} - /// {{% /examples %}} + /// <!--End PulumiCodeChooser --> /// public static Output Invoke(GetLicenseInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("vsphere:index/getLicense:getLicense", args ?? new GetLicenseInvokeArgs(), options.WithDefaults()); diff --git a/sdk/dotnet/GetNetwork.cs b/sdk/dotnet/GetNetwork.cs index 0d23b74a..14cb3d5a 100644 --- a/sdk/dotnet/GetNetwork.cs +++ b/sdk/dotnet/GetNetwork.cs @@ -18,10 +18,9 @@ public static class GetNetwork /// that requires a network. This includes standard (host-based) port groups, /// distributed port groups, or opaque networks such as those managed by NSX. /// - /// {{% examples %}} /// ## Example Usage - /// {{% example %}} /// + /// <!--Start PulumiCodeChooser --> /// ```csharp /// using System.Collections.Generic; /// using System.Linq; @@ -43,8 +42,7 @@ public static class GetNetwork /// /// }); /// ``` - /// {{% /example %}} - /// {{% /examples %}} + /// <!--End PulumiCodeChooser --> /// public static Task InvokeAsync(GetNetworkArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.InvokeAsync("vsphere:index/getNetwork:getNetwork", args ?? new GetNetworkArgs(), options.WithDefaults()); @@ -56,10 +54,9 @@ public static Task InvokeAsync(GetNetworkArgs args, InvokeOpti /// that requires a network. This includes standard (host-based) port groups, /// distributed port groups, or opaque networks such as those managed by NSX. /// - /// {{% examples %}} /// ## Example Usage - /// {{% example %}} /// + /// <!--Start PulumiCodeChooser --> /// ```csharp /// using System.Collections.Generic; /// using System.Linq; @@ -81,8 +78,7 @@ public static Task InvokeAsync(GetNetworkArgs args, InvokeOpti /// /// }); /// ``` - /// {{% /example %}} - /// {{% /examples %}} + /// <!--End PulumiCodeChooser --> /// public static Output Invoke(GetNetworkInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("vsphere:index/getNetwork:getNetwork", args ?? new GetNetworkInvokeArgs(), options.WithDefaults()); diff --git a/sdk/dotnet/GetOvfVmTemplate.cs b/sdk/dotnet/GetOvfVmTemplate.cs index 79de28a2..e2b2764b 100644 --- a/sdk/dotnet/GetOvfVmTemplate.cs +++ b/sdk/dotnet/GetOvfVmTemplate.cs @@ -15,90 +15,6 @@ public static class GetOvfVmTemplate /// The `vsphere.getOvfVmTemplate` data source can be used to submit an OVF to /// vSphere and extract its hardware settings in a form that can be then used as /// inputs for a `vsphere.VirtualMachine` resource. - /// - /// ## Remote OVF/OVA Source - /// - /// data "vsphere_ovf_vm_template" "ovfRemote" { - /// name = "Nested-ESXi-7.0-Terraform-Deploy-1" - /// disk_provisioning = "thin" - /// resource_pool_id = data.vsphere_resource_pool.default.id - /// datastore_id = data.vsphere_datastore.datastore.id - /// host_system_id = data.vsphere_host.host.id - /// remote_ovf_url = "https://download3.vmware.com/software/vmw-tools/nested-esxi/Nested_ESXi7.0u3_Appliance_Template_v1.ova" - /// ovf_network_map = { - /// "VM Network" : data.vsphere_network.network.id - /// } - /// } - /// - /// ## Local OVF/OVA Source - /// - /// data "vsphere_ovf_vm_template" "ovfLocal" { - /// name = "Nested-ESXi-7.0-Terraform-Deploy-2" - /// disk_provisioning = "thin" - /// resource_pool_id = data.vsphere_resource_pool.default.id - /// datastore_id = data.vsphere_datastore.datastore.id - /// host_system_id = data.vsphere_host.host.id - /// local_ovf_path = "/Volume/Storage/OVA/Nested_ESXi7.0u3_Appliance_Template_v1.ova" - /// ovf_network_map = { - /// "VM Network" : data.vsphere_network.network.id - /// } - /// } - /// - /// ## Deployment of VM from Remote OVF - /// - /// resource "vsphere_virtual_machine" "vmFromRemoteOvf" { - /// name = "Nested-ESXi-7.0-Terraform-Deploy-1" - /// datacenter_id = data.vsphere_datacenter.datacenter.id - /// datastore_id = data.vsphere_datastore.datastore.id - /// host_system_id = data.vsphere_host.host.id - /// resource_pool_id = data.vsphere_resource_pool.default.id - /// num_cpus = data.vsphere_ovf_vm_template.ovfRemote.num_cpus - /// num_cores_per_socket = data.vsphere_ovf_vm_template.ovfRemote.num_cores_per_socket - /// memory = data.vsphere_ovf_vm_template.ovfRemote.memory - /// guest_id = data.vsphere_ovf_vm_template.ovfRemote.guest_id - /// firmware = data.vsphere_ovf_vm_template.ovfRemote.firmware - /// scsi_type = data.vsphere_ovf_vm_template.ovfRemote.scsi_type - /// nested_hv_enabled = data.vsphere_ovf_vm_template.ovfRemote.nested_hv_enabled - /// dynamic "network_interface" { - /// for_each = data.vsphere_ovf_vm_template.ovfRemote.ovf_network_map - /// content { - /// network_id = network_interface.value - /// } - /// } - /// wait_for_guest_net_timeout = 0 - /// wait_for_guest_ip_timeout = 0 - /// - /// ovf_deploy { - /// allow_unverified_ssl_cert = false - /// remote_ovf_url = data.vsphere_ovf_vm_template.ovfRemote.remote_ovf_url - /// disk_provisioning = data.vsphere_ovf_vm_template.ovfRemote.disk_provisioning - /// ovf_network_map = data.vsphere_ovf_vm_template.ovfRemote.ovf_network_map - /// } - /// - /// vapp { - /// properties = { - /// "guestinfo.hostname" = "nested-esxi-01.example.com", - /// "guestinfo.ipaddress" = "172.16.11.101", - /// "guestinfo.netmask" = "255.255.255.0", - /// "guestinfo.gateway" = "172.16.11.1", - /// "guestinfo.dns" = "172.16.11.4", - /// "guestinfo.domain" = "example.com", - /// "guestinfo.ntp" = "ntp.example.com", - /// "guestinfo.password" = "VMware1!", - /// "guestinfo.ssh" = "True" - /// } - /// } - /// - /// lifecycle { - /// ignore_changes = [ - /// annotation, - /// disk[0].io_share_count, - /// disk[1].io_share_count, - /// disk[2].io_share_count, - /// vapp[0].properties, - /// ] - /// } - /// } /// public static Task InvokeAsync(GetOvfVmTemplateArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.InvokeAsync("vsphere:index/getOvfVmTemplate:getOvfVmTemplate", args ?? new GetOvfVmTemplateArgs(), options.WithDefaults()); @@ -107,90 +23,6 @@ public static Task InvokeAsync(GetOvfVmTemplateArgs args /// The `vsphere.getOvfVmTemplate` data source can be used to submit an OVF to /// vSphere and extract its hardware settings in a form that can be then used as /// inputs for a `vsphere.VirtualMachine` resource. - /// - /// ## Remote OVF/OVA Source - /// - /// data "vsphere_ovf_vm_template" "ovfRemote" { - /// name = "Nested-ESXi-7.0-Terraform-Deploy-1" - /// disk_provisioning = "thin" - /// resource_pool_id = data.vsphere_resource_pool.default.id - /// datastore_id = data.vsphere_datastore.datastore.id - /// host_system_id = data.vsphere_host.host.id - /// remote_ovf_url = "https://download3.vmware.com/software/vmw-tools/nested-esxi/Nested_ESXi7.0u3_Appliance_Template_v1.ova" - /// ovf_network_map = { - /// "VM Network" : data.vsphere_network.network.id - /// } - /// } - /// - /// ## Local OVF/OVA Source - /// - /// data "vsphere_ovf_vm_template" "ovfLocal" { - /// name = "Nested-ESXi-7.0-Terraform-Deploy-2" - /// disk_provisioning = "thin" - /// resource_pool_id = data.vsphere_resource_pool.default.id - /// datastore_id = data.vsphere_datastore.datastore.id - /// host_system_id = data.vsphere_host.host.id - /// local_ovf_path = "/Volume/Storage/OVA/Nested_ESXi7.0u3_Appliance_Template_v1.ova" - /// ovf_network_map = { - /// "VM Network" : data.vsphere_network.network.id - /// } - /// } - /// - /// ## Deployment of VM from Remote OVF - /// - /// resource "vsphere_virtual_machine" "vmFromRemoteOvf" { - /// name = "Nested-ESXi-7.0-Terraform-Deploy-1" - /// datacenter_id = data.vsphere_datacenter.datacenter.id - /// datastore_id = data.vsphere_datastore.datastore.id - /// host_system_id = data.vsphere_host.host.id - /// resource_pool_id = data.vsphere_resource_pool.default.id - /// num_cpus = data.vsphere_ovf_vm_template.ovfRemote.num_cpus - /// num_cores_per_socket = data.vsphere_ovf_vm_template.ovfRemote.num_cores_per_socket - /// memory = data.vsphere_ovf_vm_template.ovfRemote.memory - /// guest_id = data.vsphere_ovf_vm_template.ovfRemote.guest_id - /// firmware = data.vsphere_ovf_vm_template.ovfRemote.firmware - /// scsi_type = data.vsphere_ovf_vm_template.ovfRemote.scsi_type - /// nested_hv_enabled = data.vsphere_ovf_vm_template.ovfRemote.nested_hv_enabled - /// dynamic "network_interface" { - /// for_each = data.vsphere_ovf_vm_template.ovfRemote.ovf_network_map - /// content { - /// network_id = network_interface.value - /// } - /// } - /// wait_for_guest_net_timeout = 0 - /// wait_for_guest_ip_timeout = 0 - /// - /// ovf_deploy { - /// allow_unverified_ssl_cert = false - /// remote_ovf_url = data.vsphere_ovf_vm_template.ovfRemote.remote_ovf_url - /// disk_provisioning = data.vsphere_ovf_vm_template.ovfRemote.disk_provisioning - /// ovf_network_map = data.vsphere_ovf_vm_template.ovfRemote.ovf_network_map - /// } - /// - /// vapp { - /// properties = { - /// "guestinfo.hostname" = "nested-esxi-01.example.com", - /// "guestinfo.ipaddress" = "172.16.11.101", - /// "guestinfo.netmask" = "255.255.255.0", - /// "guestinfo.gateway" = "172.16.11.1", - /// "guestinfo.dns" = "172.16.11.4", - /// "guestinfo.domain" = "example.com", - /// "guestinfo.ntp" = "ntp.example.com", - /// "guestinfo.password" = "VMware1!", - /// "guestinfo.ssh" = "True" - /// } - /// } - /// - /// lifecycle { - /// ignore_changes = [ - /// annotation, - /// disk[0].io_share_count, - /// disk[1].io_share_count, - /// disk[2].io_share_count, - /// vapp[0].properties, - /// ] - /// } - /// } /// public static Output Invoke(GetOvfVmTemplateInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("vsphere:index/getOvfVmTemplate:getOvfVmTemplate", args ?? new GetOvfVmTemplateInvokeArgs(), options.WithDefaults()); diff --git a/sdk/dotnet/GetPolicy.cs b/sdk/dotnet/GetPolicy.cs index e233057a..a7f62e0d 100644 --- a/sdk/dotnet/GetPolicy.cs +++ b/sdk/dotnet/GetPolicy.cs @@ -19,10 +19,9 @@ public static class GetPolicy /// > **NOTE:** Storage policies are not supported on direct ESXi hosts and /// requires vCenter Server. /// - /// {{% examples %}} /// ## Example Usage - /// {{% example %}} /// + /// <!--Start PulumiCodeChooser --> /// ```csharp /// using System.Collections.Generic; /// using System.Linq; @@ -43,8 +42,7 @@ public static class GetPolicy /// /// }); /// ``` - /// {{% /example %}} - /// {{% /examples %}} + /// <!--End PulumiCodeChooser --> /// public static Task InvokeAsync(GetPolicyArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.InvokeAsync("vsphere:index/getPolicy:getPolicy", args ?? new GetPolicyArgs(), options.WithDefaults()); @@ -57,10 +55,9 @@ public static Task InvokeAsync(GetPolicyArgs args, InvokeOption /// > **NOTE:** Storage policies are not supported on direct ESXi hosts and /// requires vCenter Server. /// - /// {{% examples %}} /// ## Example Usage - /// {{% example %}} /// + /// <!--Start PulumiCodeChooser --> /// ```csharp /// using System.Collections.Generic; /// using System.Linq; @@ -81,8 +78,7 @@ public static Task InvokeAsync(GetPolicyArgs args, InvokeOption /// /// }); /// ``` - /// {{% /example %}} - /// {{% /examples %}} + /// <!--End PulumiCodeChooser --> /// public static Output Invoke(GetPolicyInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("vsphere:index/getPolicy:getPolicy", args ?? new GetPolicyInvokeArgs(), options.WithDefaults()); diff --git a/sdk/dotnet/GetResourcePool.cs b/sdk/dotnet/GetResourcePool.cs index 791f27e7..ffbd5efc 100644 --- a/sdk/dotnet/GetResourcePool.cs +++ b/sdk/dotnet/GetResourcePool.cs @@ -17,10 +17,9 @@ public static class GetResourcePool /// that you want to use to create virtual machines in using the /// `vsphere.VirtualMachine` resource. /// - /// {{% examples %}} /// ## Example Usage - /// {{% example %}} /// + /// <!--Start PulumiCodeChooser --> /// ```csharp /// using System.Collections.Generic; /// using System.Linq; @@ -42,8 +41,8 @@ public static class GetResourcePool /// /// }); /// ``` - /// {{% /example %}} - /// {{% example %}} + /// <!--End PulumiCodeChooser --> + /// /// ### Specifying the Root Resource Pool for a Standalone ESXi Host /// /// > **NOTE:** Returning the root resource pool for a cluster can be done @@ -54,6 +53,7 @@ public static class GetResourcePool /// explicitly created. This resource pool is referred to as the /// _root resource pool_ and can be looked up by specifying the path. /// + /// <!--Start PulumiCodeChooser --> /// ```csharp /// using System.Collections.Generic; /// using System.Linq; @@ -70,12 +70,11 @@ public static class GetResourcePool /// /// }); /// ``` + /// <!--End PulumiCodeChooser --> /// /// For more information on the root resource pool, see [Managing Resource Pools][vmware-docs-resource-pools] in the vSphere documentation. /// /// [vmware-docs-resource-pools]: https://docs.vmware.com/en/VMware-vSphere/7.0/com.vmware.vsphere.resmgmt.doc/GUID-60077B40-66FF-4625-934A-641703ED7601.html - /// {{% /example %}} - /// {{% /examples %}} /// public static Task InvokeAsync(GetResourcePoolArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.InvokeAsync("vsphere:index/getResourcePool:getResourcePool", args ?? new GetResourcePoolArgs(), options.WithDefaults()); @@ -86,10 +85,9 @@ public static Task InvokeAsync(GetResourcePoolArgs? args /// that you want to use to create virtual machines in using the /// `vsphere.VirtualMachine` resource. /// - /// {{% examples %}} /// ## Example Usage - /// {{% example %}} /// + /// <!--Start PulumiCodeChooser --> /// ```csharp /// using System.Collections.Generic; /// using System.Linq; @@ -111,8 +109,8 @@ public static Task InvokeAsync(GetResourcePoolArgs? args /// /// }); /// ``` - /// {{% /example %}} - /// {{% example %}} + /// <!--End PulumiCodeChooser --> + /// /// ### Specifying the Root Resource Pool for a Standalone ESXi Host /// /// > **NOTE:** Returning the root resource pool for a cluster can be done @@ -123,6 +121,7 @@ public static Task InvokeAsync(GetResourcePoolArgs? args /// explicitly created. This resource pool is referred to as the /// _root resource pool_ and can be looked up by specifying the path. /// + /// <!--Start PulumiCodeChooser --> /// ```csharp /// using System.Collections.Generic; /// using System.Linq; @@ -139,12 +138,11 @@ public static Task InvokeAsync(GetResourcePoolArgs? args /// /// }); /// ``` + /// <!--End PulumiCodeChooser --> /// /// For more information on the root resource pool, see [Managing Resource Pools][vmware-docs-resource-pools] in the vSphere documentation. /// /// [vmware-docs-resource-pools]: https://docs.vmware.com/en/VMware-vSphere/7.0/com.vmware.vsphere.resmgmt.doc/GUID-60077B40-66FF-4625-934A-641703ED7601.html - /// {{% /example %}} - /// {{% /examples %}} /// public static Output Invoke(GetResourcePoolInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("vsphere:index/getResourcePool:getResourcePool", args ?? new GetResourcePoolInvokeArgs(), options.WithDefaults()); diff --git a/sdk/dotnet/GetRole.cs b/sdk/dotnet/GetRole.cs index 426ce921..fca28a45 100644 --- a/sdk/dotnet/GetRole.cs +++ b/sdk/dotnet/GetRole.cs @@ -16,10 +16,9 @@ public static class GetRole /// with a role given its name or display label. /// /// - /// {{% examples %}} /// ## Example Usage - /// {{% example %}} /// + /// <!--Start PulumiCodeChooser --> /// ```csharp /// using System.Collections.Generic; /// using System.Linq; @@ -35,8 +34,7 @@ public static class GetRole /// /// }); /// ``` - /// {{% /example %}} - /// {{% /examples %}} + /// <!--End PulumiCodeChooser --> /// public static Task InvokeAsync(GetRoleArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.InvokeAsync("vsphere:index/getRole:getRole", args ?? new GetRoleArgs(), options.WithDefaults()); @@ -46,10 +44,9 @@ public static Task InvokeAsync(GetRoleArgs args, InvokeOptions? o /// with a role given its name or display label. /// /// - /// {{% examples %}} /// ## Example Usage - /// {{% example %}} /// + /// <!--Start PulumiCodeChooser --> /// ```csharp /// using System.Collections.Generic; /// using System.Linq; @@ -65,8 +62,7 @@ public static Task InvokeAsync(GetRoleArgs args, InvokeOptions? o /// /// }); /// ``` - /// {{% /example %}} - /// {{% /examples %}} + /// <!--End PulumiCodeChooser --> /// public static Output Invoke(GetRoleInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("vsphere:index/getRole:getRole", args ?? new GetRoleInvokeArgs(), options.WithDefaults()); diff --git a/sdk/dotnet/GetTag.cs b/sdk/dotnet/GetTag.cs index c550fa77..0b1207de 100644 --- a/sdk/dotnet/GetTag.cs +++ b/sdk/dotnet/GetTag.cs @@ -21,10 +21,9 @@ public static class GetTag /// > **NOTE:** Tagging is not supported on direct ESXi hosts connections and /// requires vCenter Server. /// - /// {{% examples %}} /// ## Example Usage - /// {{% example %}} /// + /// <!--Start PulumiCodeChooser --> /// ```csharp /// using System.Collections.Generic; /// using System.Linq; @@ -46,8 +45,7 @@ public static class GetTag /// /// }); /// ``` - /// {{% /example %}} - /// {{% /examples %}} + /// <!--End PulumiCodeChooser --> /// public static Task InvokeAsync(GetTagArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.InvokeAsync("vsphere:index/getTag:getTag", args ?? new GetTagArgs(), options.WithDefaults()); @@ -62,10 +60,9 @@ public static Task InvokeAsync(GetTagArgs args, InvokeOptions? opt /// > **NOTE:** Tagging is not supported on direct ESXi hosts connections and /// requires vCenter Server. /// - /// {{% examples %}} /// ## Example Usage - /// {{% example %}} /// + /// <!--Start PulumiCodeChooser --> /// ```csharp /// using System.Collections.Generic; /// using System.Linq; @@ -87,8 +84,7 @@ public static Task InvokeAsync(GetTagArgs args, InvokeOptions? opt /// /// }); /// ``` - /// {{% /example %}} - /// {{% /examples %}} + /// <!--End PulumiCodeChooser --> /// public static Output Invoke(GetTagInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("vsphere:index/getTag:getTag", args ?? new GetTagInvokeArgs(), options.WithDefaults()); diff --git a/sdk/dotnet/GetTagCategory.cs b/sdk/dotnet/GetTagCategory.cs index dc6f4395..abebd86f 100644 --- a/sdk/dotnet/GetTagCategory.cs +++ b/sdk/dotnet/GetTagCategory.cs @@ -21,10 +21,9 @@ public static class GetTagCategory /// > **NOTE:** Tagging is not supported on direct ESXi hosts connections and /// requires vCenter Server. /// - /// {{% examples %}} /// ## Example Usage - /// {{% example %}} /// + /// <!--Start PulumiCodeChooser --> /// ```csharp /// using System.Collections.Generic; /// using System.Linq; @@ -40,8 +39,7 @@ public static class GetTagCategory /// /// }); /// ``` - /// {{% /example %}} - /// {{% /examples %}} + /// <!--End PulumiCodeChooser --> /// public static Task InvokeAsync(GetTagCategoryArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.InvokeAsync("vsphere:index/getTagCategory:getTagCategory", args ?? new GetTagCategoryArgs(), options.WithDefaults()); @@ -56,10 +54,9 @@ public static Task InvokeAsync(GetTagCategoryArgs args, In /// > **NOTE:** Tagging is not supported on direct ESXi hosts connections and /// requires vCenter Server. /// - /// {{% examples %}} /// ## Example Usage - /// {{% example %}} /// + /// <!--Start PulumiCodeChooser --> /// ```csharp /// using System.Collections.Generic; /// using System.Linq; @@ -75,8 +72,7 @@ public static Task InvokeAsync(GetTagCategoryArgs args, In /// /// }); /// ``` - /// {{% /example %}} - /// {{% /examples %}} + /// <!--End PulumiCodeChooser --> /// public static Output Invoke(GetTagCategoryInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("vsphere:index/getTagCategory:getTagCategory", args ?? new GetTagCategoryInvokeArgs(), options.WithDefaults()); diff --git a/sdk/dotnet/GetVappContainer.cs b/sdk/dotnet/GetVappContainer.cs index 1df5fa71..8af539e5 100644 --- a/sdk/dotnet/GetVappContainer.cs +++ b/sdk/dotnet/GetVappContainer.cs @@ -17,10 +17,9 @@ public static class GetVappContainer /// that you want to use to create virtual machines in using the /// `vsphere.VirtualMachine` resource. /// - /// {{% examples %}} /// ## Example Usage - /// {{% example %}} /// + /// <!--Start PulumiCodeChooser --> /// ```csharp /// using System.Collections.Generic; /// using System.Linq; @@ -42,8 +41,7 @@ public static class GetVappContainer /// /// }); /// ``` - /// {{% /example %}} - /// {{% /examples %}} + /// <!--End PulumiCodeChooser --> /// public static Task InvokeAsync(GetVappContainerArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.InvokeAsync("vsphere:index/getVappContainer:getVappContainer", args ?? new GetVappContainerArgs(), options.WithDefaults()); @@ -54,10 +52,9 @@ public static Task InvokeAsync(GetVappContainerArgs args /// that you want to use to create virtual machines in using the /// `vsphere.VirtualMachine` resource. /// - /// {{% examples %}} /// ## Example Usage - /// {{% example %}} /// + /// <!--Start PulumiCodeChooser --> /// ```csharp /// using System.Collections.Generic; /// using System.Linq; @@ -79,8 +76,7 @@ public static Task InvokeAsync(GetVappContainerArgs args /// /// }); /// ``` - /// {{% /example %}} - /// {{% /examples %}} + /// <!--End PulumiCodeChooser --> /// public static Output Invoke(GetVappContainerInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("vsphere:index/getVappContainer:getVappContainer", args ?? new GetVappContainerInvokeArgs(), options.WithDefaults()); diff --git a/sdk/dotnet/GetVirtualMachine.cs b/sdk/dotnet/GetVirtualMachine.cs index 6bb90526..c2d93c82 100644 --- a/sdk/dotnet/GetVirtualMachine.cs +++ b/sdk/dotnet/GetVirtualMachine.cs @@ -18,13 +18,12 @@ public static class GetVirtualMachine /// `vsphere.VirtualMachine` resource. It also /// reads the guest ID so that can be supplied as well. /// - /// {{% examples %}} /// ## Example Usage - /// {{% example %}} /// /// In the following example, a virtual machine template is returned by its /// unique name within the `vsphere.Datacenter`. /// + /// <!--Start PulumiCodeChooser --> /// ```csharp /// using System.Collections.Generic; /// using System.Linq; @@ -46,9 +45,11 @@ public static class GetVirtualMachine /// /// }); /// ``` + /// <!--End PulumiCodeChooser --> /// In the following example, each virtual machine template is returned by its /// unique full path within the `vsphere.Datacenter`. /// + /// <!--Start PulumiCodeChooser --> /// ```csharp /// using System.Collections.Generic; /// using System.Linq; @@ -76,8 +77,7 @@ public static class GetVirtualMachine /// /// }); /// ``` - /// {{% /example %}} - /// {{% /examples %}} + /// <!--End PulumiCodeChooser --> /// public static Task InvokeAsync(GetVirtualMachineArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.InvokeAsync("vsphere:index/getVirtualMachine:getVirtualMachine", args ?? new GetVirtualMachineArgs(), options.WithDefaults()); @@ -89,13 +89,12 @@ public static Task InvokeAsync(GetVirtualMachineArgs? a /// `vsphere.VirtualMachine` resource. It also /// reads the guest ID so that can be supplied as well. /// - /// {{% examples %}} /// ## Example Usage - /// {{% example %}} /// /// In the following example, a virtual machine template is returned by its /// unique name within the `vsphere.Datacenter`. /// + /// <!--Start PulumiCodeChooser --> /// ```csharp /// using System.Collections.Generic; /// using System.Linq; @@ -117,9 +116,11 @@ public static Task InvokeAsync(GetVirtualMachineArgs? a /// /// }); /// ``` + /// <!--End PulumiCodeChooser --> /// In the following example, each virtual machine template is returned by its /// unique full path within the `vsphere.Datacenter`. /// + /// <!--Start PulumiCodeChooser --> /// ```csharp /// using System.Collections.Generic; /// using System.Linq; @@ -147,8 +148,7 @@ public static Task InvokeAsync(GetVirtualMachineArgs? a /// /// }); /// ``` - /// {{% /example %}} - /// {{% /examples %}} + /// <!--End PulumiCodeChooser --> /// public static Output Invoke(GetVirtualMachineInvokeArgs? args = null, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("vsphere:index/getVirtualMachine:getVirtualMachine", args ?? new GetVirtualMachineInvokeArgs(), options.WithDefaults()); diff --git a/sdk/dotnet/GetVmfsDisks.cs b/sdk/dotnet/GetVmfsDisks.cs index cd1934fa..c7b06ffa 100644 --- a/sdk/dotnet/GetVmfsDisks.cs +++ b/sdk/dotnet/GetVmfsDisks.cs @@ -18,10 +18,9 @@ public static class GetVmfsDisks /// datastores based off a set of discovered disks. /// /// - /// {{% examples %}} /// ## Example Usage - /// {{% example %}} /// + /// <!--Start PulumiCodeChooser --> /// ```csharp /// using System.Collections.Generic; /// using System.Linq; @@ -50,8 +49,7 @@ public static class GetVmfsDisks /// /// }); /// ``` - /// {{% /example %}} - /// {{% /examples %}} + /// <!--End PulumiCodeChooser --> /// public static Task InvokeAsync(GetVmfsDisksArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.InvokeAsync("vsphere:index/getVmfsDisks:getVmfsDisks", args ?? new GetVmfsDisksArgs(), options.WithDefaults()); @@ -63,10 +61,9 @@ public static Task InvokeAsync(GetVmfsDisksArgs args, Invoke /// datastores based off a set of discovered disks. /// /// - /// {{% examples %}} /// ## Example Usage - /// {{% example %}} /// + /// <!--Start PulumiCodeChooser --> /// ```csharp /// using System.Collections.Generic; /// using System.Linq; @@ -95,8 +92,7 @@ public static Task InvokeAsync(GetVmfsDisksArgs args, Invoke /// /// }); /// ``` - /// {{% /example %}} - /// {{% /examples %}} + /// <!--End PulumiCodeChooser --> /// public static Output Invoke(GetVmfsDisksInvokeArgs args, InvokeOptions? options = null) => global::Pulumi.Deployment.Instance.Invoke("vsphere:index/getVmfsDisks:getVmfsDisks", args ?? new GetVmfsDisksInvokeArgs(), options.WithDefaults()); diff --git a/sdk/dotnet/Host.cs b/sdk/dotnet/Host.cs index d11d2bb6..a5641d4d 100644 --- a/sdk/dotnet/Host.cs +++ b/sdk/dotnet/Host.cs @@ -14,8 +14,10 @@ namespace Pulumi.VSphere /// can be used either as a member of a cluster or as a standalone host. /// /// ## Example Usage + /// /// ### Create a standalone host /// + /// <!--Start PulumiCodeChooser --> /// ```csharp /// using System.Collections.Generic; /// using System.Linq; @@ -47,8 +49,11 @@ namespace Pulumi.VSphere /// /// }); /// ``` + /// <!--End PulumiCodeChooser --> + /// /// ### Create host in a compute cluster /// + /// <!--Start PulumiCodeChooser --> /// ```csharp /// using System.Collections.Generic; /// using System.Linq; @@ -86,6 +91,8 @@ namespace Pulumi.VSphere /// /// }); /// ``` + /// <!--End PulumiCodeChooser --> + /// /// ## Importing /// /// An existing host can be [imported][docs-import] into this resource by supplying @@ -93,6 +100,7 @@ namespace Pulumi.VSphere /// /// [docs-import]: /docs/import/index.html /// + /// <!--Start PulumiCodeChooser --> /// ```csharp /// using System.Collections.Generic; /// using System.Linq; @@ -102,6 +110,7 @@ namespace Pulumi.VSphere /// { /// }); /// ``` + /// <!--End PulumiCodeChooser --> /// /// The above would import the host with ID `host-123`. /// diff --git a/sdk/dotnet/HostPortGroup.cs b/sdk/dotnet/HostPortGroup.cs index 954cccaa..accf671c 100644 --- a/sdk/dotnet/HostPortGroup.cs +++ b/sdk/dotnet/HostPortGroup.cs @@ -23,6 +23,7 @@ namespace Pulumi.VSphere /// /// **Create a Virtual Switch and Bind a Port Group:** /// + /// <!--Start PulumiCodeChooser --> /// ```csharp /// using System.Collections.Generic; /// using System.Linq; @@ -68,6 +69,7 @@ namespace Pulumi.VSphere /// /// }); /// ``` + /// <!--End PulumiCodeChooser --> /// /// **Create a Port Group with a VLAN and ab Override:** /// @@ -77,6 +79,7 @@ namespace Pulumi.VSphere /// to ensure that all traffic is seen on the port. The setting overrides /// the implicit default of `false` set on the standard switch. /// + /// <!--Start PulumiCodeChooser --> /// ```csharp /// using System.Collections.Generic; /// using System.Linq; @@ -124,11 +127,14 @@ namespace Pulumi.VSphere /// /// }); /// ``` + /// <!--End PulumiCodeChooser --> + /// /// ## Importing /// /// An existing host port group can be imported into this resource /// using the host port group's ID. An example is below: /// + /// <!--Start PulumiCodeChooser --> /// ```csharp /// using System.Collections.Generic; /// using System.Linq; @@ -138,6 +144,7 @@ namespace Pulumi.VSphere /// { /// }); /// ``` + /// <!--End PulumiCodeChooser --> /// /// The above would import the `management` host port group from host with ID `host-123`. /// diff --git a/sdk/dotnet/Inputs/ComputeClusterVsanStretchedClusterArgs.cs b/sdk/dotnet/Inputs/ComputeClusterVsanStretchedClusterArgs.cs index 5872b919..ea256dae 100644 --- a/sdk/dotnet/Inputs/ComputeClusterVsanStretchedClusterArgs.cs +++ b/sdk/dotnet/Inputs/ComputeClusterVsanStretchedClusterArgs.cs @@ -48,6 +48,7 @@ public InputList SecondaryFaultDomainHostIds /// > **NOTE:** You must disable vSphere HA before you enable vSAN on the cluster. /// You can enable or re-enable vSphere HA after vSAN is configured. /// + /// <!--Start PulumiCodeChooser --> /// ```csharp /// using System.Collections.Generic; /// using System.Linq; @@ -125,6 +126,7 @@ public InputList SecondaryFaultDomainHostIds /// /// }); /// ``` + /// <!--End PulumiCodeChooser --> /// [Input("secondaryFaultDomainName")] public Input? SecondaryFaultDomainName { get; set; } diff --git a/sdk/dotnet/Inputs/ComputeClusterVsanStretchedClusterGetArgs.cs b/sdk/dotnet/Inputs/ComputeClusterVsanStretchedClusterGetArgs.cs index c2a22d03..1ed555bc 100644 --- a/sdk/dotnet/Inputs/ComputeClusterVsanStretchedClusterGetArgs.cs +++ b/sdk/dotnet/Inputs/ComputeClusterVsanStretchedClusterGetArgs.cs @@ -48,6 +48,7 @@ public InputList SecondaryFaultDomainHostIds /// > **NOTE:** You must disable vSphere HA before you enable vSAN on the cluster. /// You can enable or re-enable vSphere HA after vSAN is configured. /// + /// <!--Start PulumiCodeChooser --> /// ```csharp /// using System.Collections.Generic; /// using System.Linq; @@ -125,6 +126,7 @@ public InputList SecondaryFaultDomainHostIds /// /// }); /// ``` + /// <!--End PulumiCodeChooser --> /// [Input("secondaryFaultDomainName")] public Input? SecondaryFaultDomainName { get; set; } diff --git a/sdk/dotnet/License.cs b/sdk/dotnet/License.cs index b1cf80fd..856acd89 100644 --- a/sdk/dotnet/License.cs +++ b/sdk/dotnet/License.cs @@ -14,6 +14,7 @@ namespace Pulumi.VSphere /// /// ## Example Usage /// + /// <!--Start PulumiCodeChooser --> /// ```csharp /// using System.Collections.Generic; /// using System.Linq; @@ -34,6 +35,7 @@ namespace Pulumi.VSphere /// /// }); /// ``` + /// <!--End PulumiCodeChooser --> /// [VSphereResourceType("vsphere:index/license:License")] public partial class License : global::Pulumi.CustomResource diff --git a/sdk/dotnet/Outputs/ComputeClusterVsanStretchedCluster.cs b/sdk/dotnet/Outputs/ComputeClusterVsanStretchedCluster.cs index a290efc2..47514291 100644 --- a/sdk/dotnet/Outputs/ComputeClusterVsanStretchedCluster.cs +++ b/sdk/dotnet/Outputs/ComputeClusterVsanStretchedCluster.cs @@ -31,6 +31,7 @@ public sealed class ComputeClusterVsanStretchedCluster /// > **NOTE:** You must disable vSphere HA before you enable vSAN on the cluster. /// You can enable or re-enable vSphere HA after vSAN is configured. /// + /// <!--Start PulumiCodeChooser --> /// ```csharp /// using System.Collections.Generic; /// using System.Linq; @@ -108,6 +109,7 @@ public sealed class ComputeClusterVsanStretchedCluster /// /// }); /// ``` + /// <!--End PulumiCodeChooser --> /// public readonly string? SecondaryFaultDomainName; /// diff --git a/sdk/dotnet/ResourcePool.cs b/sdk/dotnet/ResourcePool.cs index 5d6093ad..68f03e27 100644 --- a/sdk/dotnet/ResourcePool.cs +++ b/sdk/dotnet/ResourcePool.cs @@ -23,6 +23,7 @@ namespace Pulumi.VSphere /// The following example sets up a resource pool in an existing compute cluster /// with the default settings for CPU and memory reservations, shares, and limits. /// + /// <!--Start PulumiCodeChooser --> /// ```csharp /// using System.Collections.Generic; /// using System.Linq; @@ -49,10 +50,12 @@ namespace Pulumi.VSphere /// /// }); /// ``` + /// <!--End PulumiCodeChooser --> /// /// A virtual machine resource could be targeted to use the default resource pool /// of the cluster using the following: /// + /// <!--Start PulumiCodeChooser --> /// ```csharp /// using System.Collections.Generic; /// using System.Linq; @@ -69,11 +72,13 @@ namespace Pulumi.VSphere /// // ... other configuration ... /// }); /// ``` + /// <!--End PulumiCodeChooser --> /// /// The following example sets up a parent resource pool in an existing compute cluster /// with a child resource pool nested below. Each resource pool is configured with /// the default settings for CPU and memory reservations, shares, and limits. /// + /// <!--Start PulumiCodeChooser --> /// ```csharp /// using System.Collections.Generic; /// using System.Linq; @@ -105,12 +110,7 @@ namespace Pulumi.VSphere /// /// }); /// ``` - /// ## Importing - /// ### Settings that Require vSphere 7.0 or higher - /// - /// These settings require vSphere 7.0 or higher: - /// - /// * `scale_descendants_shares` + /// <!--End PulumiCodeChooser --> /// [VSphereResourceType("vsphere:index/resourcePool:ResourcePool")] public partial class ResourcePool : global::Pulumi.CustomResource diff --git a/sdk/dotnet/VirtualMachine.cs b/sdk/dotnet/VirtualMachine.cs index eabcce43..00024275 100644 --- a/sdk/dotnet/VirtualMachine.cs +++ b/sdk/dotnet/VirtualMachine.cs @@ -386,7 +386,7 @@ public partial class VirtualMachine : global::Pulumi.CustomResource /// /// Triggers replacement of resource whenever it changes. /// - /// For example, `replace_trigger = sha256(format("%s-%s",data.template_file.cloud_init_metadata.rendered,data.template_file.cloud_init_userdata.rendered))` will fingerprint the changes in cloud-init metadata and userdata templates. This will enable a replacement of the resource whenever the dependant template renders a new configuration. (Forces a replacement.) + /// For example, `replace_trigger = sha256(format("%!s(MISSING)-%!s(MISSING)",data.template_file.cloud_init_metadata.rendered,data.template_file.cloud_init_userdata.rendered))` will fingerprint the changes in cloud-init metadata and userdata templates. This will enable a replacement of the resource whenever the dependant template renders a new configuration. (Forces a replacement.) /// [Output("replaceTrigger")] public Output ReplaceTrigger { get; private set; } = null!; @@ -981,7 +981,7 @@ public InputList PciDeviceIds /// /// Triggers replacement of resource whenever it changes. /// - /// For example, `replace_trigger = sha256(format("%s-%s",data.template_file.cloud_init_metadata.rendered,data.template_file.cloud_init_userdata.rendered))` will fingerprint the changes in cloud-init metadata and userdata templates. This will enable a replacement of the resource whenever the dependant template renders a new configuration. (Forces a replacement.) + /// For example, `replace_trigger = sha256(format("%!s(MISSING)-%!s(MISSING)",data.template_file.cloud_init_metadata.rendered,data.template_file.cloud_init_userdata.rendered))` will fingerprint the changes in cloud-init metadata and userdata templates. This will enable a replacement of the resource whenever the dependant template renders a new configuration. (Forces a replacement.) /// [Input("replaceTrigger")] public Input? ReplaceTrigger { get; set; } @@ -1568,7 +1568,7 @@ public InputList PciDeviceIds /// /// Triggers replacement of resource whenever it changes. /// - /// For example, `replace_trigger = sha256(format("%s-%s",data.template_file.cloud_init_metadata.rendered,data.template_file.cloud_init_userdata.rendered))` will fingerprint the changes in cloud-init metadata and userdata templates. This will enable a replacement of the resource whenever the dependant template renders a new configuration. (Forces a replacement.) + /// For example, `replace_trigger = sha256(format("%!s(MISSING)-%!s(MISSING)",data.template_file.cloud_init_metadata.rendered,data.template_file.cloud_init_userdata.rendered))` will fingerprint the changes in cloud-init metadata and userdata templates. This will enable a replacement of the resource whenever the dependant template renders a new configuration. (Forces a replacement.) /// [Input("replaceTrigger")] public Input? ReplaceTrigger { get; set; } diff --git a/sdk/dotnet/VirtualMachineSnapshot.cs b/sdk/dotnet/VirtualMachineSnapshot.cs index df9b0e23..6e2ca005 100644 --- a/sdk/dotnet/VirtualMachineSnapshot.cs +++ b/sdk/dotnet/VirtualMachineSnapshot.cs @@ -34,6 +34,7 @@ namespace Pulumi.VSphere /// /// ## Example Usage /// + /// <!--Start PulumiCodeChooser --> /// ```csharp /// using System.Collections.Generic; /// using System.Linq; @@ -55,6 +56,7 @@ namespace Pulumi.VSphere /// /// }); /// ``` + /// <!--End PulumiCodeChooser --> /// [VSphereResourceType("vsphere:index/virtualMachineSnapshot:VirtualMachineSnapshot")] public partial class VirtualMachineSnapshot : global::Pulumi.CustomResource diff --git a/sdk/dotnet/VmStoragePolicy.cs b/sdk/dotnet/VmStoragePolicy.cs index c7233f7d..e4cdd799 100644 --- a/sdk/dotnet/VmStoragePolicy.cs +++ b/sdk/dotnet/VmStoragePolicy.cs @@ -20,6 +20,7 @@ namespace Pulumi.VSphere /// /// In this example, tags are first applied to datastores. /// + /// <!--Start PulumiCodeChooser --> /// ```csharp /// using System.Collections.Generic; /// using System.Linq; @@ -113,9 +114,11 @@ namespace Pulumi.VSphere /// /// }); /// ``` + /// <!--End PulumiCodeChooser --> /// /// Next, storage policies are created and `tag_rules` are applied. /// + /// <!--Start PulumiCodeChooser --> /// ```csharp /// using System.Collections.Generic; /// using System.Linq; @@ -196,9 +199,11 @@ namespace Pulumi.VSphere /// /// }); /// ``` + /// <!--End PulumiCodeChooser --> /// /// Lasttly, when creating a virtual machine resource, a storage policy can be specificed to direct virtual machine placement to a datastore which matches the policy's `tags_rules`. /// + /// <!--Start PulumiCodeChooser --> /// ```csharp /// using System.Collections.Generic; /// using System.Linq; @@ -231,6 +236,7 @@ namespace Pulumi.VSphere /// // ... other configuration ... /// }); /// ``` + /// <!--End PulumiCodeChooser --> /// [VSphereResourceType("vsphere:index/vmStoragePolicy:VmStoragePolicy")] public partial class VmStoragePolicy : global::Pulumi.CustomResource diff --git a/sdk/dotnet/Vnic.cs b/sdk/dotnet/Vnic.cs index 1dcdb3ca..20fc0b41 100644 --- a/sdk/dotnet/Vnic.cs +++ b/sdk/dotnet/Vnic.cs @@ -15,8 +15,10 @@ namespace Pulumi.VSphere /// ## Example Usage /// /// ### S + /// /// ### Create a vnic attached to a distributed virtual switch using the vmotion TCP/IP stack /// + /// <!--Start PulumiCodeChooser --> /// ```csharp /// using System.Collections.Generic; /// using System.Linq; @@ -72,8 +74,11 @@ namespace Pulumi.VSphere /// /// }); /// ``` + /// <!--End PulumiCodeChooser --> + /// /// ### Create a vnic attached to a portgroup using the default TCP/IP stack /// + /// <!--Start PulumiCodeChooser --> /// ```csharp /// using System.Collections.Generic; /// using System.Linq; @@ -134,6 +139,8 @@ namespace Pulumi.VSphere /// /// }); /// ``` + /// <!--End PulumiCodeChooser --> + /// /// ## Importing /// /// An existing vNic can be [imported][docs-import] into this resource @@ -141,6 +148,7 @@ namespace Pulumi.VSphere /// /// [docs-import]: /docs/import/index.html /// + /// <!--Start PulumiCodeChooser --> /// ```csharp /// using System.Collections.Generic; /// using System.Linq; @@ -150,6 +158,7 @@ namespace Pulumi.VSphere /// { /// }); /// ``` + /// <!--End PulumiCodeChooser --> /// /// The above would import the vnic `vmk2` from host with ID `host-123`. /// diff --git a/sdk/go/vsphere/computeClusterVmAffinityRule.go b/sdk/go/vsphere/computeClusterVmAffinityRule.go index 485199a1..88e17c2b 100644 --- a/sdk/go/vsphere/computeClusterVmAffinityRule.go +++ b/sdk/go/vsphere/computeClusterVmAffinityRule.go @@ -43,6 +43,7 @@ import ( // then creates an affinity rule for these two virtual machines, ensuring they // will run on the same host whenever possible. // +// // ```go // package main // @@ -121,11 +122,13 @@ import ( // } // // ``` +// // // The following example creates an affinity rule for a set of virtual machines // in the cluster by looking up the virtual machine UUIDs from the // `VirtualMachine` data source. // +// // ```go // package main // @@ -173,6 +176,7 @@ import ( // } // // ``` +// type ComputeClusterVmAffinityRule struct { pulumi.CustomResourceState diff --git a/sdk/go/vsphere/datacenter.go b/sdk/go/vsphere/datacenter.go index 9f27c30c..248afe58 100644 --- a/sdk/go/vsphere/datacenter.go +++ b/sdk/go/vsphere/datacenter.go @@ -15,8 +15,10 @@ import ( // container of inventory objects such as hosts and virtual machines. // // ## Example Usage +// // ### Create datacenter on the root folder // +// // ```go // package main // @@ -38,8 +40,11 @@ import ( // } // // ``` +// +// // ### Create datacenter on a subfolder // +// // ```go // package main // @@ -63,6 +68,7 @@ import ( // } // // ``` +// type Datacenter struct { pulumi.CustomResourceState diff --git a/sdk/go/vsphere/datastoreCluster.go b/sdk/go/vsphere/datastoreCluster.go index 49e0fbdf..b66b3797 100644 --- a/sdk/go/vsphere/datastoreCluster.go +++ b/sdk/go/vsphere/datastoreCluster.go @@ -82,7 +82,7 @@ type DatastoreCluster struct { // recommendations to move VMs off of a datastore. Note that this setting should // only be set if `sdrsIoReservablePercentThreshold` cannot make an accurate // estimate of the capacity of the datastores in your cluster, and should be set - // to roughly 50-60% of the worst case peak performance of the backing LUNs. + // to roughly 50-60%!o(MISSING)f the worst case peak performance of the backing LUNs. SdrsIoReservableIopsThreshold pulumi.IntPtrOutput `pulumi:"sdrsIoReservableIopsThreshold"` // The threshold, in // percent, of actual estimated performance of the datastore (in IOPS) that @@ -219,7 +219,7 @@ type datastoreClusterState struct { // recommendations to move VMs off of a datastore. Note that this setting should // only be set if `sdrsIoReservablePercentThreshold` cannot make an accurate // estimate of the capacity of the datastores in your cluster, and should be set - // to roughly 50-60% of the worst case peak performance of the backing LUNs. + // to roughly 50-60%!o(MISSING)f the worst case peak performance of the backing LUNs. SdrsIoReservableIopsThreshold *int `pulumi:"sdrsIoReservableIopsThreshold"` // The threshold, in // percent, of actual estimated performance of the datastore (in IOPS) that @@ -324,7 +324,7 @@ type DatastoreClusterState struct { // recommendations to move VMs off of a datastore. Note that this setting should // only be set if `sdrsIoReservablePercentThreshold` cannot make an accurate // estimate of the capacity of the datastores in your cluster, and should be set - // to roughly 50-60% of the worst case peak performance of the backing LUNs. + // to roughly 50-60%!o(MISSING)f the worst case peak performance of the backing LUNs. SdrsIoReservableIopsThreshold pulumi.IntPtrInput // The threshold, in // percent, of actual estimated performance of the datastore (in IOPS) that @@ -433,7 +433,7 @@ type datastoreClusterArgs struct { // recommendations to move VMs off of a datastore. Note that this setting should // only be set if `sdrsIoReservablePercentThreshold` cannot make an accurate // estimate of the capacity of the datastores in your cluster, and should be set - // to roughly 50-60% of the worst case peak performance of the backing LUNs. + // to roughly 50-60%!o(MISSING)f the worst case peak performance of the backing LUNs. SdrsIoReservableIopsThreshold *int `pulumi:"sdrsIoReservableIopsThreshold"` // The threshold, in // percent, of actual estimated performance of the datastore (in IOPS) that @@ -539,7 +539,7 @@ type DatastoreClusterArgs struct { // recommendations to move VMs off of a datastore. Note that this setting should // only be set if `sdrsIoReservablePercentThreshold` cannot make an accurate // estimate of the capacity of the datastores in your cluster, and should be set - // to roughly 50-60% of the worst case peak performance of the backing LUNs. + // to roughly 50-60%!o(MISSING)f the worst case peak performance of the backing LUNs. SdrsIoReservableIopsThreshold pulumi.IntPtrInput // The threshold, in // percent, of actual estimated performance of the datastore (in IOPS) that @@ -775,7 +775,7 @@ func (o DatastoreClusterOutput) SdrsIoLoadImbalanceThreshold() pulumi.IntPtrOutp // recommendations to move VMs off of a datastore. Note that this setting should // only be set if `sdrsIoReservablePercentThreshold` cannot make an accurate // estimate of the capacity of the datastores in your cluster, and should be set -// to roughly 50-60% of the worst case peak performance of the backing LUNs. +// to roughly 50-60%!o(MISSING)f the worst case peak performance of the backing LUNs. func (o DatastoreClusterOutput) SdrsIoReservableIopsThreshold() pulumi.IntPtrOutput { return o.ApplyT(func(v *DatastoreCluster) pulumi.IntPtrOutput { return v.SdrsIoReservableIopsThreshold }).(pulumi.IntPtrOutput) } diff --git a/sdk/go/vsphere/distributedVirtualSwitch.go b/sdk/go/vsphere/distributedVirtualSwitch.go index a520e994..87852556 100644 --- a/sdk/go/vsphere/distributedVirtualSwitch.go +++ b/sdk/go/vsphere/distributedVirtualSwitch.go @@ -192,7 +192,8 @@ type DistributedVirtualSwitch struct { // The ratio of total number of packets to // the number of packets analyzed. The default is `0`, which indicates that the // VDS should analyze all packets. The maximum value is `1000`, which - // indicates an analysis rate of 0.001%. + // indicates an analysis rate of 0.001%! + // (MISSING) NetflowSamplingRate pulumi.IntPtrOutput `pulumi:"netflowSamplingRate"` // Set to `true` to enable // network I/O control. Default: `false`. @@ -266,6 +267,7 @@ type DistributedVirtualSwitch struct { // `vlanRange` definitions are allowed, but they must not overlap. Example // below: // + // // ```go // package main // @@ -295,6 +297,7 @@ type DistributedVirtualSwitch struct { // }) // } // ``` + // VlanRanges DistributedVirtualSwitchVlanRangeArrayOutput `pulumi:"vlanRanges"` // The maximum allowed usage for the vmotion traffic class, in Mbits/sec. VmotionMaximumMbit pulumi.IntOutput `pulumi:"vmotionMaximumMbit"` @@ -524,7 +527,8 @@ type distributedVirtualSwitchState struct { // The ratio of total number of packets to // the number of packets analyzed. The default is `0`, which indicates that the // VDS should analyze all packets. The maximum value is `1000`, which - // indicates an analysis rate of 0.001%. + // indicates an analysis rate of 0.001%! + // (MISSING) NetflowSamplingRate *int `pulumi:"netflowSamplingRate"` // Set to `true` to enable // network I/O control. Default: `false`. @@ -598,6 +602,7 @@ type distributedVirtualSwitchState struct { // `vlanRange` definitions are allowed, but they must not overlap. Example // below: // + // // ```go // package main // @@ -627,6 +632,7 @@ type distributedVirtualSwitchState struct { // }) // } // ``` + // VlanRanges []DistributedVirtualSwitchVlanRange `pulumi:"vlanRanges"` // The maximum allowed usage for the vmotion traffic class, in Mbits/sec. VmotionMaximumMbit *int `pulumi:"vmotionMaximumMbit"` @@ -824,7 +830,8 @@ type DistributedVirtualSwitchState struct { // The ratio of total number of packets to // the number of packets analyzed. The default is `0`, which indicates that the // VDS should analyze all packets. The maximum value is `1000`, which - // indicates an analysis rate of 0.001%. + // indicates an analysis rate of 0.001%! + // (MISSING) NetflowSamplingRate pulumi.IntPtrInput // Set to `true` to enable // network I/O control. Default: `false`. @@ -898,6 +905,7 @@ type DistributedVirtualSwitchState struct { // `vlanRange` definitions are allowed, but they must not overlap. Example // below: // + // // ```go // package main // @@ -927,6 +935,7 @@ type DistributedVirtualSwitchState struct { // }) // } // ``` + // VlanRanges DistributedVirtualSwitchVlanRangeArrayInput // The maximum allowed usage for the vmotion traffic class, in Mbits/sec. VmotionMaximumMbit pulumi.IntPtrInput @@ -1125,7 +1134,8 @@ type distributedVirtualSwitchArgs struct { // The ratio of total number of packets to // the number of packets analyzed. The default is `0`, which indicates that the // VDS should analyze all packets. The maximum value is `1000`, which - // indicates an analysis rate of 0.001%. + // indicates an analysis rate of 0.001%! + // (MISSING) NetflowSamplingRate *int `pulumi:"netflowSamplingRate"` // Set to `true` to enable // network I/O control. Default: `false`. @@ -1199,6 +1209,7 @@ type distributedVirtualSwitchArgs struct { // `vlanRange` definitions are allowed, but they must not overlap. Example // below: // + // // ```go // package main // @@ -1228,6 +1239,7 @@ type distributedVirtualSwitchArgs struct { // }) // } // ``` + // VlanRanges []DistributedVirtualSwitchVlanRange `pulumi:"vlanRanges"` // The maximum allowed usage for the vmotion traffic class, in Mbits/sec. VmotionMaximumMbit *int `pulumi:"vmotionMaximumMbit"` @@ -1423,7 +1435,8 @@ type DistributedVirtualSwitchArgs struct { // The ratio of total number of packets to // the number of packets analyzed. The default is `0`, which indicates that the // VDS should analyze all packets. The maximum value is `1000`, which - // indicates an analysis rate of 0.001%. + // indicates an analysis rate of 0.001%! + // (MISSING) NetflowSamplingRate pulumi.IntPtrInput // Set to `true` to enable // network I/O control. Default: `false`. @@ -1497,6 +1510,7 @@ type DistributedVirtualSwitchArgs struct { // `vlanRange` definitions are allowed, but they must not overlap. Example // below: // + // // ```go // package main // @@ -1526,6 +1540,7 @@ type DistributedVirtualSwitchArgs struct { // }) // } // ``` + // VlanRanges DistributedVirtualSwitchVlanRangeArrayInput // The maximum allowed usage for the vmotion traffic class, in Mbits/sec. VmotionMaximumMbit pulumi.IntPtrInput @@ -1992,7 +2007,8 @@ func (o DistributedVirtualSwitchOutput) NetflowObservationDomainId() pulumi.IntP // The ratio of total number of packets to // the number of packets analyzed. The default is `0`, which indicates that the // VDS should analyze all packets. The maximum value is `1000`, which -// indicates an analysis rate of 0.001%. +// indicates an analysis rate of 0.001%! +// (MISSING) func (o DistributedVirtualSwitchOutput) NetflowSamplingRate() pulumi.IntPtrOutput { return o.ApplyT(func(v *DistributedVirtualSwitch) pulumi.IntPtrOutput { return v.NetflowSamplingRate }).(pulumi.IntPtrOutput) } @@ -2143,6 +2159,7 @@ func (o DistributedVirtualSwitchOutput) VlanId() pulumi.IntOutput { // `vlanRange` definitions are allowed, but they must not overlap. Example // below: // +// // ```go // package main // @@ -2175,6 +2192,7 @@ func (o DistributedVirtualSwitchOutput) VlanId() pulumi.IntOutput { // } // // ``` +// func (o DistributedVirtualSwitchOutput) VlanRanges() DistributedVirtualSwitchVlanRangeArrayOutput { return o.ApplyT(func(v *DistributedVirtualSwitch) DistributedVirtualSwitchVlanRangeArrayOutput { return v.VlanRanges }).(DistributedVirtualSwitchVlanRangeArrayOutput) } diff --git a/sdk/go/vsphere/file.go b/sdk/go/vsphere/file.go index 52ef6ab0..6bba78f3 100644 --- a/sdk/go/vsphere/file.go +++ b/sdk/go/vsphere/file.go @@ -13,8 +13,10 @@ import ( ) // ## Example Usage +// // ### Uploading a File // +// // ```go // package main // @@ -42,8 +44,11 @@ import ( // } // // ``` +// +// // ### Copying a File // +// // ```go // package main // @@ -73,6 +78,7 @@ import ( // } // // ``` +// type File struct { pulumi.CustomResourceState diff --git a/sdk/go/vsphere/getComputeCluster.go b/sdk/go/vsphere/getComputeCluster.go index 8e36e0fc..48fe797f 100644 --- a/sdk/go/vsphere/getComputeCluster.go +++ b/sdk/go/vsphere/getComputeCluster.go @@ -24,6 +24,7 @@ import ( // // ## Example Usage // +// // ```go // package main // @@ -54,6 +55,7 @@ import ( // } // // ``` +// func LookupComputeCluster(ctx *pulumi.Context, args *LookupComputeClusterArgs, opts ...pulumi.InvokeOption) (*LookupComputeClusterResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv LookupComputeClusterResult diff --git a/sdk/go/vsphere/getComputeClusterHostGroup.go b/sdk/go/vsphere/getComputeClusterHostGroup.go index 8d37f217..bc81edaa 100644 --- a/sdk/go/vsphere/getComputeClusterHostGroup.go +++ b/sdk/go/vsphere/getComputeClusterHostGroup.go @@ -17,6 +17,7 @@ import ( // // ## Example Usage // +// // ```go // package main // @@ -62,6 +63,7 @@ import ( // } // // ``` +// func LookupComputeClusterHostGroup(ctx *pulumi.Context, args *LookupComputeClusterHostGroupArgs, opts ...pulumi.InvokeOption) (*LookupComputeClusterHostGroupResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv LookupComputeClusterHostGroupResult diff --git a/sdk/go/vsphere/getContentLibrary.go b/sdk/go/vsphere/getContentLibrary.go index c5d5904c..919dd0af 100644 --- a/sdk/go/vsphere/getContentLibrary.go +++ b/sdk/go/vsphere/getContentLibrary.go @@ -17,6 +17,7 @@ import ( // // ## Example Usage // +// // ```go // package main // @@ -40,6 +41,7 @@ import ( // } // // ``` +// func LookupContentLibrary(ctx *pulumi.Context, args *LookupContentLibraryArgs, opts ...pulumi.InvokeOption) (*LookupContentLibraryResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv LookupContentLibraryResult diff --git a/sdk/go/vsphere/getCustomAttribute.go b/sdk/go/vsphere/getCustomAttribute.go index e637a881..8963f66f 100644 --- a/sdk/go/vsphere/getCustomAttribute.go +++ b/sdk/go/vsphere/getCustomAttribute.go @@ -22,6 +22,7 @@ import ( // // ## Example Usage // +// // ```go // package main // @@ -45,6 +46,7 @@ import ( // } // // ``` +// func LookupCustomAttribute(ctx *pulumi.Context, args *LookupCustomAttributeArgs, opts ...pulumi.InvokeOption) (*LookupCustomAttributeResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv LookupCustomAttributeResult diff --git a/sdk/go/vsphere/getDatacenter.go b/sdk/go/vsphere/getDatacenter.go index c4e7c5cd..9cda9e41 100644 --- a/sdk/go/vsphere/getDatacenter.go +++ b/sdk/go/vsphere/getDatacenter.go @@ -18,6 +18,7 @@ import ( // // ## Example Usage // +// // ```go // package main // @@ -41,6 +42,7 @@ import ( // } // // ``` +// func LookupDatacenter(ctx *pulumi.Context, args *LookupDatacenterArgs, opts ...pulumi.InvokeOption) (*LookupDatacenterResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv LookupDatacenterResult diff --git a/sdk/go/vsphere/getDatastore.go b/sdk/go/vsphere/getDatastore.go index 8d114a80..c2310217 100644 --- a/sdk/go/vsphere/getDatastore.go +++ b/sdk/go/vsphere/getDatastore.go @@ -18,6 +18,7 @@ import ( // // ## Example Usage // +// // ```go // package main // @@ -48,6 +49,7 @@ import ( // } // // ``` +// func GetDatastore(ctx *pulumi.Context, args *GetDatastoreArgs, opts ...pulumi.InvokeOption) (*GetDatastoreResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv GetDatastoreResult diff --git a/sdk/go/vsphere/getDatastoreCluster.go b/sdk/go/vsphere/getDatastoreCluster.go index b55e9de4..a4527f4a 100644 --- a/sdk/go/vsphere/getDatastoreCluster.go +++ b/sdk/go/vsphere/getDatastoreCluster.go @@ -18,6 +18,7 @@ import ( // // ## Example Usage // +// // ```go // package main // @@ -48,6 +49,7 @@ import ( // } // // ``` +// func LookupDatastoreCluster(ctx *pulumi.Context, args *LookupDatastoreClusterArgs, opts ...pulumi.InvokeOption) (*LookupDatastoreClusterResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv LookupDatastoreClusterResult diff --git a/sdk/go/vsphere/getDistributedVirtualSwitch.go b/sdk/go/vsphere/getDistributedVirtualSwitch.go index 3848a500..a08550fa 100644 --- a/sdk/go/vsphere/getDistributedVirtualSwitch.go +++ b/sdk/go/vsphere/getDistributedVirtualSwitch.go @@ -27,6 +27,7 @@ import ( // `DistributedPortGroup` resource that uses the first uplink as a // primary uplink and the second uplink as a secondary. // +// // ```go // package main // @@ -69,6 +70,7 @@ import ( // } // // ``` +// func LookupDistributedVirtualSwitch(ctx *pulumi.Context, args *LookupDistributedVirtualSwitchArgs, opts ...pulumi.InvokeOption) (*LookupDistributedVirtualSwitchResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv LookupDistributedVirtualSwitchResult diff --git a/sdk/go/vsphere/getDynamic.go b/sdk/go/vsphere/getDynamic.go index 00f3e5e2..c0f0ce42 100644 --- a/sdk/go/vsphere/getDynamic.go +++ b/sdk/go/vsphere/getDynamic.go @@ -19,6 +19,7 @@ import ( // // ## Example Usage // +// // ```go // package main // @@ -65,6 +66,7 @@ import ( // }) // } // ``` +// func GetDynamic(ctx *pulumi.Context, args *GetDynamicArgs, opts ...pulumi.InvokeOption) (*GetDynamicResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv GetDynamicResult diff --git a/sdk/go/vsphere/getFolder.go b/sdk/go/vsphere/getFolder.go index cb5276fc..0753f99d 100644 --- a/sdk/go/vsphere/getFolder.go +++ b/sdk/go/vsphere/getFolder.go @@ -16,6 +16,7 @@ import ( // // ## Example Usage // +// // ```go // package main // @@ -39,6 +40,7 @@ import ( // } // // ``` +// func LookupFolder(ctx *pulumi.Context, args *LookupFolderArgs, opts ...pulumi.InvokeOption) (*LookupFolderResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv LookupFolderResult diff --git a/sdk/go/vsphere/getGuestOsCustomization.go b/sdk/go/vsphere/getGuestOsCustomization.go index 1411a7fd..12ebc03c 100644 --- a/sdk/go/vsphere/getGuestOsCustomization.go +++ b/sdk/go/vsphere/getGuestOsCustomization.go @@ -18,6 +18,7 @@ import ( // // ## Example Usage // +// // ```go // package main // @@ -41,6 +42,7 @@ import ( // } // // ``` +// func LookupGuestOsCustomization(ctx *pulumi.Context, args *LookupGuestOsCustomizationArgs, opts ...pulumi.InvokeOption) (*LookupGuestOsCustomizationResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv LookupGuestOsCustomizationResult diff --git a/sdk/go/vsphere/getHost.go b/sdk/go/vsphere/getHost.go index f742f44e..9c221332 100644 --- a/sdk/go/vsphere/getHost.go +++ b/sdk/go/vsphere/getHost.go @@ -17,6 +17,7 @@ import ( // // ## Example Usage // +// // ```go // package main // @@ -47,6 +48,7 @@ import ( // } // // ``` +// func LookupHost(ctx *pulumi.Context, args *LookupHostArgs, opts ...pulumi.InvokeOption) (*LookupHostResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv LookupHostResult diff --git a/sdk/go/vsphere/getHostPciDevice.go b/sdk/go/vsphere/getHostPciDevice.go index 26246c60..ea2dbcd2 100644 --- a/sdk/go/vsphere/getHostPciDevice.go +++ b/sdk/go/vsphere/getHostPciDevice.go @@ -16,8 +16,10 @@ import ( // `VirtualMachine`'s `pciDeviceId`. // // ## Example Usage +// // ### With Vendor ID And Class ID // +// // ```go // package main // @@ -56,7 +58,50 @@ import ( // } // // ``` +// +// // ### With Name Regular Expression +// +// +// +// ```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 { +// datacenter, err := vsphere.LookupDatacenter(ctx, &vsphere.LookupDatacenterArgs{ +// Name: pulumi.StringRef("dc-01"), +// }, nil) +// if err != nil { +// return err +// } +// host, err := vsphere.LookupHost(ctx, &vsphere.LookupHostArgs{ +// Name: pulumi.StringRef("esxi-01.example.com"), +// DatacenterId: datacenter.Id, +// }, nil) +// if err != nil { +// return err +// } +// _, err = vsphere.GetHostPciDevice(ctx, &vsphere.GetHostPciDeviceArgs{ +// HostId: host.Id, +// NameRegex: pulumi.StringRef("MMC"), +// }, nil) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` +// func GetHostPciDevice(ctx *pulumi.Context, args *GetHostPciDeviceArgs, opts ...pulumi.InvokeOption) (*GetHostPciDeviceResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv GetHostPciDeviceResult diff --git a/sdk/go/vsphere/getHostThumbprint.go b/sdk/go/vsphere/getHostThumbprint.go index b842b9a4..8f11e5f9 100644 --- a/sdk/go/vsphere/getHostThumbprint.go +++ b/sdk/go/vsphere/getHostThumbprint.go @@ -18,6 +18,7 @@ import ( // // ## Example Usage // +// // ```go // package main // @@ -41,6 +42,7 @@ import ( // } // // ``` +// func GetHostThumbprint(ctx *pulumi.Context, args *GetHostThumbprintArgs, opts ...pulumi.InvokeOption) (*GetHostThumbprintResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv GetHostThumbprintResult diff --git a/sdk/go/vsphere/getLicense.go b/sdk/go/vsphere/getLicense.go index 4cd5e603..4c38dc1a 100644 --- a/sdk/go/vsphere/getLicense.go +++ b/sdk/go/vsphere/getLicense.go @@ -16,6 +16,7 @@ import ( // // ## Example Usage // +// // ```go // package main // @@ -39,6 +40,7 @@ import ( // } // // ``` +// func LookupLicense(ctx *pulumi.Context, args *LookupLicenseArgs, opts ...pulumi.InvokeOption) (*LookupLicenseResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv LookupLicenseResult diff --git a/sdk/go/vsphere/getNetwork.go b/sdk/go/vsphere/getNetwork.go index 6e705703..de197c9c 100644 --- a/sdk/go/vsphere/getNetwork.go +++ b/sdk/go/vsphere/getNetwork.go @@ -19,6 +19,7 @@ import ( // // ## Example Usage // +// // ```go // package main // @@ -49,6 +50,7 @@ import ( // } // // ``` +// func GetNetwork(ctx *pulumi.Context, args *GetNetworkArgs, opts ...pulumi.InvokeOption) (*GetNetworkResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv GetNetworkResult diff --git a/sdk/go/vsphere/getOvfVmTemplate.go b/sdk/go/vsphere/getOvfVmTemplate.go index c5f86875..f136802b 100644 --- a/sdk/go/vsphere/getOvfVmTemplate.go +++ b/sdk/go/vsphere/getOvfVmTemplate.go @@ -14,90 +14,6 @@ import ( // The `getOvfVmTemplate` data source can be used to submit an OVF to // vSphere and extract its hardware settings in a form that can be then used as // inputs for a `VirtualMachine` resource. -// -// ## Remote OVF/OVA Source -// -// data "vsphere_ovf_vm_template" "ovfRemote" { -// name = "Nested-ESXi-7.0-Terraform-Deploy-1" -// disk_provisioning = "thin" -// resource_pool_id = data.vsphere_resource_pool.default.id -// datastore_id = data.vsphere_datastore.datastore.id -// host_system_id = data.vsphere_host.host.id -// remote_ovf_url = "https://download3.vmware.com/software/vmw-tools/nested-esxi/Nested_ESXi7.0u3_Appliance_Template_v1.ova" -// ovf_network_map = { -// "VM Network" : data.vsphere_network.network.id -// } -// } -// -// ## Local OVF/OVA Source -// -// data "vsphere_ovf_vm_template" "ovfLocal" { -// name = "Nested-ESXi-7.0-Terraform-Deploy-2" -// disk_provisioning = "thin" -// resource_pool_id = data.vsphere_resource_pool.default.id -// datastore_id = data.vsphere_datastore.datastore.id -// host_system_id = data.vsphere_host.host.id -// local_ovf_path = "/Volume/Storage/OVA/Nested_ESXi7.0u3_Appliance_Template_v1.ova" -// ovf_network_map = { -// "VM Network" : data.vsphere_network.network.id -// } -// } -// -// ## Deployment of VM from Remote OVF -// -// resource "vsphere_virtual_machine" "vmFromRemoteOvf" { -// name = "Nested-ESXi-7.0-Terraform-Deploy-1" -// datacenter_id = data.vsphere_datacenter.datacenter.id -// datastore_id = data.vsphere_datastore.datastore.id -// host_system_id = data.vsphere_host.host.id -// resource_pool_id = data.vsphere_resource_pool.default.id -// num_cpus = data.vsphere_ovf_vm_template.ovfRemote.num_cpus -// num_cores_per_socket = data.vsphere_ovf_vm_template.ovfRemote.num_cores_per_socket -// memory = data.vsphere_ovf_vm_template.ovfRemote.memory -// guest_id = data.vsphere_ovf_vm_template.ovfRemote.guest_id -// firmware = data.vsphere_ovf_vm_template.ovfRemote.firmware -// scsi_type = data.vsphere_ovf_vm_template.ovfRemote.scsi_type -// nested_hv_enabled = data.vsphere_ovf_vm_template.ovfRemote.nested_hv_enabled -// dynamic "network_interface" { -// for_each = data.vsphere_ovf_vm_template.ovfRemote.ovf_network_map -// content { -// network_id = network_interface.value -// } -// } -// wait_for_guest_net_timeout = 0 -// wait_for_guest_ip_timeout = 0 -// -// ovf_deploy { -// allow_unverified_ssl_cert = false -// remote_ovf_url = data.vsphere_ovf_vm_template.ovfRemote.remote_ovf_url -// disk_provisioning = data.vsphere_ovf_vm_template.ovfRemote.disk_provisioning -// ovf_network_map = data.vsphere_ovf_vm_template.ovfRemote.ovf_network_map -// } -// -// vapp { -// properties = { -// "guestinfo.hostname" = "nested-esxi-01.example.com", -// "guestinfo.ipaddress" = "172.16.11.101", -// "guestinfo.netmask" = "255.255.255.0", -// "guestinfo.gateway" = "172.16.11.1", -// "guestinfo.dns" = "172.16.11.4", -// "guestinfo.domain" = "example.com", -// "guestinfo.ntp" = "ntp.example.com", -// "guestinfo.password" = "VMware1!", -// "guestinfo.ssh" = "True" -// } -// } -// -// lifecycle { -// ignore_changes = [ -// annotation, -// disk[0].io_share_count, -// disk[1].io_share_count, -// disk[2].io_share_count, -// vapp[0].properties, -// ] -// } -// } func GetOvfVmTemplate(ctx *pulumi.Context, args *GetOvfVmTemplateArgs, opts ...pulumi.InvokeOption) (*GetOvfVmTemplateResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv GetOvfVmTemplateResult diff --git a/sdk/go/vsphere/getPolicy.go b/sdk/go/vsphere/getPolicy.go index ccd0d7b0..4e73cf2d 100644 --- a/sdk/go/vsphere/getPolicy.go +++ b/sdk/go/vsphere/getPolicy.go @@ -20,6 +20,7 @@ import ( // // ## Example Usage // +// // ```go // package main // @@ -49,6 +50,7 @@ import ( // } // // ``` +// func GetPolicy(ctx *pulumi.Context, args *GetPolicyArgs, opts ...pulumi.InvokeOption) (*GetPolicyResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv GetPolicyResult diff --git a/sdk/go/vsphere/getResourcePool.go b/sdk/go/vsphere/getResourcePool.go index 9558dd84..c17f1d31 100644 --- a/sdk/go/vsphere/getResourcePool.go +++ b/sdk/go/vsphere/getResourcePool.go @@ -18,6 +18,7 @@ import ( // // ## Example Usage // +// // ```go // package main // @@ -48,6 +49,8 @@ import ( // } // // ``` +// +// // ### Specifying the Root Resource Pool for a Standalone ESXi Host // // > **NOTE:** Returning the root resource pool for a cluster can be done @@ -58,6 +61,7 @@ import ( // explicitly created. This resource pool is referred to as the // _root resource pool_ and can be looked up by specifying the path. // +// // ```go // package main // @@ -82,6 +86,7 @@ import ( // } // // ``` +// // // For more information on the root resource pool, see [Managing Resource Pools][vmware-docs-resource-pools] in the vSphere documentation. // diff --git a/sdk/go/vsphere/getRole.go b/sdk/go/vsphere/getRole.go index 8c8dc1f6..a6fd22ab 100644 --- a/sdk/go/vsphere/getRole.go +++ b/sdk/go/vsphere/getRole.go @@ -16,6 +16,7 @@ import ( // // ## Example Usage // +// // ```go // package main // @@ -39,6 +40,7 @@ import ( // } // // ``` +// func LookupRole(ctx *pulumi.Context, args *LookupRoleArgs, opts ...pulumi.InvokeOption) (*LookupRoleResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv LookupRoleResult diff --git a/sdk/go/vsphere/getTag.go b/sdk/go/vsphere/getTag.go index a200627a..68209cc4 100644 --- a/sdk/go/vsphere/getTag.go +++ b/sdk/go/vsphere/getTag.go @@ -22,6 +22,7 @@ import ( // // ## Example Usage // +// // ```go // package main // @@ -52,6 +53,7 @@ import ( // } // // ``` +// func LookupTag(ctx *pulumi.Context, args *LookupTagArgs, opts ...pulumi.InvokeOption) (*LookupTagResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv LookupTagResult diff --git a/sdk/go/vsphere/getTagCategory.go b/sdk/go/vsphere/getTagCategory.go index fd83c6e2..e037116f 100644 --- a/sdk/go/vsphere/getTagCategory.go +++ b/sdk/go/vsphere/getTagCategory.go @@ -22,6 +22,7 @@ import ( // // ## Example Usage // +// // ```go // package main // @@ -45,6 +46,7 @@ import ( // } // // ``` +// func LookupTagCategory(ctx *pulumi.Context, args *LookupTagCategoryArgs, opts ...pulumi.InvokeOption) (*LookupTagCategoryResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv LookupTagCategoryResult diff --git a/sdk/go/vsphere/getVappContainer.go b/sdk/go/vsphere/getVappContainer.go index 5df7ff96..281ad6f1 100644 --- a/sdk/go/vsphere/getVappContainer.go +++ b/sdk/go/vsphere/getVappContainer.go @@ -18,6 +18,7 @@ import ( // // ## Example Usage // +// // ```go // package main // @@ -48,6 +49,7 @@ import ( // } // // ``` +// func LookupVappContainer(ctx *pulumi.Context, args *LookupVappContainerArgs, opts ...pulumi.InvokeOption) (*LookupVappContainerResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv LookupVappContainerResult diff --git a/sdk/go/vsphere/getVirtualMachine.go b/sdk/go/vsphere/getVirtualMachine.go index 6f330d2d..d26b41b0 100644 --- a/sdk/go/vsphere/getVirtualMachine.go +++ b/sdk/go/vsphere/getVirtualMachine.go @@ -22,6 +22,7 @@ import ( // In the following example, a virtual machine template is returned by its // unique name within the `Datacenter`. // +// // ```go // package main // @@ -52,9 +53,11 @@ import ( // } // // ``` +// // In the following example, each virtual machine template is returned by its // unique full path within the `Datacenter`. // +// // ```go // package main // @@ -92,6 +95,7 @@ import ( // } // // ``` +// func LookupVirtualMachine(ctx *pulumi.Context, args *LookupVirtualMachineArgs, opts ...pulumi.InvokeOption) (*LookupVirtualMachineResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv LookupVirtualMachineResult diff --git a/sdk/go/vsphere/getVmfsDisks.go b/sdk/go/vsphere/getVmfsDisks.go index 5a055f06..e9edf07c 100644 --- a/sdk/go/vsphere/getVmfsDisks.go +++ b/sdk/go/vsphere/getVmfsDisks.go @@ -18,6 +18,7 @@ import ( // // ## Example Usage // +// // ```go // package main // @@ -56,6 +57,7 @@ import ( // } // // ``` +// func GetVmfsDisks(ctx *pulumi.Context, args *GetVmfsDisksArgs, opts ...pulumi.InvokeOption) (*GetVmfsDisksResult, error) { opts = internal.PkgInvokeDefaultOpts(opts) var rv GetVmfsDisksResult diff --git a/sdk/go/vsphere/host.go b/sdk/go/vsphere/host.go index 1335f992..a1e2fc00 100644 --- a/sdk/go/vsphere/host.go +++ b/sdk/go/vsphere/host.go @@ -16,8 +16,10 @@ import ( // can be used either as a member of a cluster or as a standalone host. // // ## Example Usage +// // ### Create a standalone host // +// // ```go // package main // @@ -59,8 +61,11 @@ import ( // } // // ``` +// +// // ### Create host in a compute cluster // +// // ```go // package main // @@ -109,6 +114,8 @@ import ( // } // // ``` +// +// // ## Importing // // An existing host can be [imported][docs-import] into this resource by supplying @@ -116,6 +123,7 @@ import ( // // [docs-import]: /docs/import/index.html // +// // ```go // package main // @@ -132,6 +140,7 @@ import ( // } // // ``` +// // // The above would import the host with ID `host-123`. type Host struct { diff --git a/sdk/go/vsphere/hostPortGroup.go b/sdk/go/vsphere/hostPortGroup.go index 6bd9b026..5878ad58 100644 --- a/sdk/go/vsphere/hostPortGroup.go +++ b/sdk/go/vsphere/hostPortGroup.go @@ -23,6 +23,7 @@ import ( // // **Create a Virtual Switch and Bind a Port Group:** // +// // ```go // package main // @@ -76,6 +77,7 @@ import ( // } // // ``` +// // // **Create a Port Group with a VLAN and ab Override:** // @@ -85,6 +87,7 @@ import ( // to ensure that all traffic is seen on the port. The setting overrides // the implicit default of `false` set on the standard switch. // +// // ```go // package main // @@ -140,11 +143,14 @@ import ( // } // // ``` +// +// // ## Importing // // An existing host port group can be imported into this resource // using the host port group's ID. An example is below: // +// // ```go // package main // @@ -161,6 +167,7 @@ import ( // } // // ``` +// // // The above would import the `management` host port group from host with ID `host-123`. // diff --git a/sdk/go/vsphere/license.go b/sdk/go/vsphere/license.go index 3dfa4bdd..552e9351 100644 --- a/sdk/go/vsphere/license.go +++ b/sdk/go/vsphere/license.go @@ -16,6 +16,7 @@ import ( // // ## Example Usage // +// // ```go // package main // @@ -43,6 +44,7 @@ import ( // } // // ``` +// type License struct { pulumi.CustomResourceState diff --git a/sdk/go/vsphere/pulumiTypes.go b/sdk/go/vsphere/pulumiTypes.go index c290cb20..3ea57d9d 100644 --- a/sdk/go/vsphere/pulumiTypes.go +++ b/sdk/go/vsphere/pulumiTypes.go @@ -336,6 +336,7 @@ type ComputeClusterVsanStretchedCluster struct { // > **NOTE:** You must disable vSphere HA before you enable vSAN on the cluster. // You can enable or re-enable vSphere HA after vSAN is configured. // + // // ```go // package main // @@ -404,6 +405,7 @@ type ComputeClusterVsanStretchedCluster struct { // }) // } // ``` + // SecondaryFaultDomainName *string `pulumi:"secondaryFaultDomainName"` // The managed object IDs of the host selected as witness node when enable stretched cluster. WitnessNode string `pulumi:"witnessNode"` @@ -432,6 +434,7 @@ type ComputeClusterVsanStretchedClusterArgs struct { // > **NOTE:** You must disable vSphere HA before you enable vSAN on the cluster. // You can enable or re-enable vSphere HA after vSAN is configured. // + // // ```go // package main // @@ -500,6 +503,7 @@ type ComputeClusterVsanStretchedClusterArgs struct { // }) // } // ``` + // SecondaryFaultDomainName pulumi.StringPtrInput `pulumi:"secondaryFaultDomainName"` // The managed object IDs of the host selected as witness node when enable stretched cluster. WitnessNode pulumi.StringInput `pulumi:"witnessNode"` @@ -602,6 +606,7 @@ func (o ComputeClusterVsanStretchedClusterOutput) SecondaryFaultDomainHostIds() // > **NOTE:** You must disable vSphere HA before you enable vSAN on the cluster. // You can enable or re-enable vSphere HA after vSAN is configured. // +// // ```go // package main // @@ -672,6 +677,7 @@ func (o ComputeClusterVsanStretchedClusterOutput) SecondaryFaultDomainHostIds() // }) // } // ``` +// func (o ComputeClusterVsanStretchedClusterOutput) SecondaryFaultDomainName() pulumi.StringPtrOutput { return o.ApplyT(func(v ComputeClusterVsanStretchedCluster) *string { return v.SecondaryFaultDomainName }).(pulumi.StringPtrOutput) } @@ -740,6 +746,7 @@ func (o ComputeClusterVsanStretchedClusterPtrOutput) SecondaryFaultDomainHostIds // > **NOTE:** You must disable vSphere HA before you enable vSAN on the cluster. // You can enable or re-enable vSphere HA after vSAN is configured. // +// // ```go // package main // @@ -810,6 +817,7 @@ func (o ComputeClusterVsanStretchedClusterPtrOutput) SecondaryFaultDomainHostIds // }) // } // ``` +// func (o ComputeClusterVsanStretchedClusterPtrOutput) SecondaryFaultDomainName() pulumi.StringPtrOutput { return o.ApplyT(func(v *ComputeClusterVsanStretchedCluster) *string { if v == nil { diff --git a/sdk/go/vsphere/resourcePool.go b/sdk/go/vsphere/resourcePool.go index 9ff29f3d..2109efba 100644 --- a/sdk/go/vsphere/resourcePool.go +++ b/sdk/go/vsphere/resourcePool.go @@ -23,6 +23,7 @@ import ( // The following example sets up a resource pool in an existing compute cluster // with the default settings for CPU and memory reservations, shares, and limits. // +// // ```go // package main // @@ -59,10 +60,12 @@ import ( // } // // ``` +// // // A virtual machine resource could be targeted to use the default resource pool // of the cluster using the following: // +// // ```go // package main // @@ -86,11 +89,13 @@ import ( // } // // ``` +// // // The following example sets up a parent resource pool in an existing compute cluster // with a child resource pool nested below. Each resource pool is configured with // the default settings for CPU and memory reservations, shares, and limits. // +// // ```go // package main // @@ -133,12 +138,7 @@ import ( // } // // ``` -// ## Importing -// ### Settings that Require vSphere 7.0 or higher -// -// These settings require vSphere 7.0 or higher: -// -// * `scaleDescendantsShares` +// // // [ref-vsphere-resource_pools]: https://docs.vmware.com/en/VMware-vSphere/7.0/com.vmware.vsphere.resmgmt.doc/GUID-60077B40-66FF-4625-934A-641703ED7601.html type ResourcePool struct { diff --git a/sdk/go/vsphere/virtualMachine.go b/sdk/go/vsphere/virtualMachine.go index 51ec9cb7..f66a2ebe 100644 --- a/sdk/go/vsphere/virtualMachine.go +++ b/sdk/go/vsphere/virtualMachine.go @@ -160,7 +160,7 @@ type VirtualMachine struct { RebootRequired pulumi.BoolOutput `pulumi:"rebootRequired"` // Triggers replacement of resource whenever it changes. // - // For example, `replaceTrigger = sha256(format("%s-%s",data.template_file.cloud_init_metadata.rendered,data.template_file.cloud_init_userdata.rendered))` will fingerprint the changes in cloud-init metadata and userdata templates. This will enable a replacement of the resource whenever the dependant template renders a new configuration. (Forces a replacement.) + // For example, `replaceTrigger = sha256(format("%!s(MISSING)-%!s(MISSING)",data.template_file.cloud_init_metadata.rendered,data.template_file.cloud_init_userdata.rendered))` will fingerprint the changes in cloud-init metadata and userdata templates. This will enable a replacement of the resource whenever the dependant template renders a new configuration. (Forces a replacement.) ReplaceTrigger pulumi.StringPtrOutput `pulumi:"replaceTrigger"` // The managed object reference ID of the resource pool in which to place the virtual machine. See the Virtual Machine Migration section for more information on modifying this value. // @@ -404,7 +404,7 @@ type virtualMachineState struct { RebootRequired *bool `pulumi:"rebootRequired"` // Triggers replacement of resource whenever it changes. // - // For example, `replaceTrigger = sha256(format("%s-%s",data.template_file.cloud_init_metadata.rendered,data.template_file.cloud_init_userdata.rendered))` will fingerprint the changes in cloud-init metadata and userdata templates. This will enable a replacement of the resource whenever the dependant template renders a new configuration. (Forces a replacement.) + // For example, `replaceTrigger = sha256(format("%!s(MISSING)-%!s(MISSING)",data.template_file.cloud_init_metadata.rendered,data.template_file.cloud_init_userdata.rendered))` will fingerprint the changes in cloud-init metadata and userdata templates. This will enable a replacement of the resource whenever the dependant template renders a new configuration. (Forces a replacement.) ReplaceTrigger *string `pulumi:"replaceTrigger"` // The managed object reference ID of the resource pool in which to place the virtual machine. See the Virtual Machine Migration section for more information on modifying this value. // @@ -616,7 +616,7 @@ type VirtualMachineState struct { RebootRequired pulumi.BoolPtrInput // Triggers replacement of resource whenever it changes. // - // For example, `replaceTrigger = sha256(format("%s-%s",data.template_file.cloud_init_metadata.rendered,data.template_file.cloud_init_userdata.rendered))` will fingerprint the changes in cloud-init metadata and userdata templates. This will enable a replacement of the resource whenever the dependant template renders a new configuration. (Forces a replacement.) + // For example, `replaceTrigger = sha256(format("%!s(MISSING)-%!s(MISSING)",data.template_file.cloud_init_metadata.rendered,data.template_file.cloud_init_userdata.rendered))` will fingerprint the changes in cloud-init metadata and userdata templates. This will enable a replacement of the resource whenever the dependant template renders a new configuration. (Forces a replacement.) ReplaceTrigger pulumi.StringPtrInput // The managed object reference ID of the resource pool in which to place the virtual machine. See the Virtual Machine Migration section for more information on modifying this value. // @@ -818,7 +818,7 @@ type virtualMachineArgs struct { PoweronTimeout *int `pulumi:"poweronTimeout"` // Triggers replacement of resource whenever it changes. // - // For example, `replaceTrigger = sha256(format("%s-%s",data.template_file.cloud_init_metadata.rendered,data.template_file.cloud_init_userdata.rendered))` will fingerprint the changes in cloud-init metadata and userdata templates. This will enable a replacement of the resource whenever the dependant template renders a new configuration. (Forces a replacement.) + // For example, `replaceTrigger = sha256(format("%!s(MISSING)-%!s(MISSING)",data.template_file.cloud_init_metadata.rendered,data.template_file.cloud_init_userdata.rendered))` will fingerprint the changes in cloud-init metadata and userdata templates. This will enable a replacement of the resource whenever the dependant template renders a new configuration. (Forces a replacement.) ReplaceTrigger *string `pulumi:"replaceTrigger"` // The managed object reference ID of the resource pool in which to place the virtual machine. See the Virtual Machine Migration section for more information on modifying this value. // @@ -1009,7 +1009,7 @@ type VirtualMachineArgs struct { PoweronTimeout pulumi.IntPtrInput // Triggers replacement of resource whenever it changes. // - // For example, `replaceTrigger = sha256(format("%s-%s",data.template_file.cloud_init_metadata.rendered,data.template_file.cloud_init_userdata.rendered))` will fingerprint the changes in cloud-init metadata and userdata templates. This will enable a replacement of the resource whenever the dependant template renders a new configuration. (Forces a replacement.) + // For example, `replaceTrigger = sha256(format("%!s(MISSING)-%!s(MISSING)",data.template_file.cloud_init_metadata.rendered,data.template_file.cloud_init_userdata.rendered))` will fingerprint the changes in cloud-init metadata and userdata templates. This will enable a replacement of the resource whenever the dependant template renders a new configuration. (Forces a replacement.) ReplaceTrigger pulumi.StringPtrInput // The managed object reference ID of the resource pool in which to place the virtual machine. See the Virtual Machine Migration section for more information on modifying this value. // @@ -1469,7 +1469,7 @@ func (o VirtualMachineOutput) RebootRequired() pulumi.BoolOutput { // Triggers replacement of resource whenever it changes. // -// For example, `replaceTrigger = sha256(format("%s-%s",data.template_file.cloud_init_metadata.rendered,data.template_file.cloud_init_userdata.rendered))` will fingerprint the changes in cloud-init metadata and userdata templates. This will enable a replacement of the resource whenever the dependant template renders a new configuration. (Forces a replacement.) +// For example, `replaceTrigger = sha256(format("%!s(MISSING)-%!s(MISSING)",data.template_file.cloud_init_metadata.rendered,data.template_file.cloud_init_userdata.rendered))` will fingerprint the changes in cloud-init metadata and userdata templates. This will enable a replacement of the resource whenever the dependant template renders a new configuration. (Forces a replacement.) func (o VirtualMachineOutput) ReplaceTrigger() pulumi.StringPtrOutput { return o.ApplyT(func(v *VirtualMachine) pulumi.StringPtrOutput { return v.ReplaceTrigger }).(pulumi.StringPtrOutput) } diff --git a/sdk/go/vsphere/virtualMachineSnapshot.go b/sdk/go/vsphere/virtualMachineSnapshot.go index 4b860de2..eaa397fd 100644 --- a/sdk/go/vsphere/virtualMachineSnapshot.go +++ b/sdk/go/vsphere/virtualMachineSnapshot.go @@ -32,6 +32,7 @@ import ( // // ## Example Usage // +// // ```go // package main // @@ -61,6 +62,7 @@ import ( // } // // ``` +// // // [ext-vm-snapshot-management]: https://docs.vmware.com/en/VMware-vSphere/7.0/com.vmware.vsphere.vm_admin.doc/GUID-CA948C69-7F58-4519-AEB1-739545EA94E5.html // [ext-vm-snap-limitations]: https://docs.vmware.com/en/VMware-vSphere/7.0/com.vmware.vsphere.vm_admin.doc/GUID-53F65726-A23B-4CF0-A7D5-48E584B88613.html diff --git a/sdk/go/vsphere/vmStoragePolicy.go b/sdk/go/vsphere/vmStoragePolicy.go index 3ff0c95f..46c6f8e0 100644 --- a/sdk/go/vsphere/vmStoragePolicy.go +++ b/sdk/go/vsphere/vmStoragePolicy.go @@ -22,6 +22,7 @@ import ( // // In this example, tags are first applied to datastores. // +// // ```go // package main // @@ -133,9 +134,11 @@ import ( // } // // ``` +// // // Next, storage policies are created and `tagRules` are applied. // +// // ```go // package main // @@ -211,9 +214,11 @@ import ( // } // // ``` +// // // Lasttly, when creating a virtual machine resource, a storage policy can be specificed to direct virtual machine placement to a datastore which matches the policy's `tagsRules`. // +// // ```go // package main // @@ -255,6 +260,7 @@ import ( // } // // ``` +// type VmStoragePolicy struct { pulumi.CustomResourceState diff --git a/sdk/go/vsphere/vnic.go b/sdk/go/vsphere/vnic.go index ae3b0163..e5ff0034 100644 --- a/sdk/go/vsphere/vnic.go +++ b/sdk/go/vsphere/vnic.go @@ -17,8 +17,10 @@ import ( // ## Example Usage // // ### S +// // ### Create a vnic attached to a distributed virtual switch using the vmotion TCP/IP stack // +// // ```go // package main // @@ -82,8 +84,11 @@ import ( // } // // ``` +// +// // ### Create a vnic attached to a portgroup using the default TCP/IP stack // +// // ```go // package main // @@ -151,6 +156,8 @@ import ( // } // // ``` +// +// // ## Importing // // An existing vNic can be [imported][docs-import] into this resource @@ -158,6 +165,7 @@ import ( // // [docs-import]: /docs/import/index.html // +// // ```go // package main // @@ -174,6 +182,7 @@ import ( // } // // ``` +// // // The above would import the vnic `vmk2` from host with ID `host-123`. type Vnic struct { diff --git a/sdk/java/src/main/java/com/pulumi/vsphere/ComputeClusterVmAffinityRule.java b/sdk/java/src/main/java/com/pulumi/vsphere/ComputeClusterVmAffinityRule.java index 0da59911..2ded0696 100644 --- a/sdk/java/src/main/java/com/pulumi/vsphere/ComputeClusterVmAffinityRule.java +++ b/sdk/java/src/main/java/com/pulumi/vsphere/ComputeClusterVmAffinityRule.java @@ -41,6 +41,23 @@ * * ## Example Usage * + * The following example creates two virtual machines in a cluster using the + * `vsphere.VirtualMachine` resource, creating the + * virtual machines in the cluster looked up by the + * `vsphere.ComputeCluster` data source. It + * then creates an affinity rule for these two virtual machines, ensuring they + * will run on the same host whenever possible. + * + * <!--Start PulumiCodeChooser --> + * <!--End PulumiCodeChooser --> + * + * The following example creates an affinity rule for a set of virtual machines + * in the cluster by looking up the virtual machine UUIDs from the + * `vsphere.VirtualMachine` data source. + * + * <!--Start PulumiCodeChooser --> + * <!--End PulumiCodeChooser --> + * */ @ResourceType(type="vsphere:index/computeClusterVmAffinityRule:ComputeClusterVmAffinityRule") public class ComputeClusterVmAffinityRule extends com.pulumi.resources.CustomResource { diff --git a/sdk/java/src/main/java/com/pulumi/vsphere/Datacenter.java b/sdk/java/src/main/java/com/pulumi/vsphere/Datacenter.java index df6d580c..757433e1 100644 --- a/sdk/java/src/main/java/com/pulumi/vsphere/Datacenter.java +++ b/sdk/java/src/main/java/com/pulumi/vsphere/Datacenter.java @@ -21,7 +21,10 @@ * container of inventory objects such as hosts and virtual machines. * * ## Example Usage + * * ### Create datacenter on the root folder + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -47,7 +50,11 @@ * } * } * ``` + * <!--End PulumiCodeChooser --> + * * ### Create datacenter on a subfolder + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -76,6 +83,7 @@ * } * } * ``` + * <!--End PulumiCodeChooser --> * */ @ResourceType(type="vsphere:index/datacenter:Datacenter") diff --git a/sdk/java/src/main/java/com/pulumi/vsphere/DatastoreCluster.java b/sdk/java/src/main/java/com/pulumi/vsphere/DatastoreCluster.java index d8964bba..9e74b110 100644 --- a/sdk/java/src/main/java/com/pulumi/vsphere/DatastoreCluster.java +++ b/sdk/java/src/main/java/com/pulumi/vsphere/DatastoreCluster.java @@ -300,7 +300,7 @@ public Output> sdrsIoLoadImbalanceThreshold() { * recommendations to move VMs off of a datastore. Note that this setting should * only be set if `sdrs_io_reservable_percent_threshold` cannot make an accurate * estimate of the capacity of the datastores in your cluster, and should be set - * to roughly 50-60% of the worst case peak performance of the backing LUNs. + * to roughly 50-60%!o(MISSING)f the worst case peak performance of the backing LUNs. * */ @Export(name="sdrsIoReservableIopsThreshold", refs={Integer.class}, tree="[0]") @@ -312,7 +312,7 @@ public Output> sdrsIoLoadImbalanceThreshold() { * recommendations to move VMs off of a datastore. Note that this setting should * only be set if `sdrs_io_reservable_percent_threshold` cannot make an accurate * estimate of the capacity of the datastores in your cluster, and should be set - * to roughly 50-60% of the worst case peak performance of the backing LUNs. + * to roughly 50-60%!o(MISSING)f the worst case peak performance of the backing LUNs. * */ public Output> sdrsIoReservableIopsThreshold() { diff --git a/sdk/java/src/main/java/com/pulumi/vsphere/DatastoreClusterArgs.java b/sdk/java/src/main/java/com/pulumi/vsphere/DatastoreClusterArgs.java index ae878520..0654313c 100644 --- a/sdk/java/src/main/java/com/pulumi/vsphere/DatastoreClusterArgs.java +++ b/sdk/java/src/main/java/com/pulumi/vsphere/DatastoreClusterArgs.java @@ -315,7 +315,7 @@ public Optional> sdrsIoLoadImbalanceThreshold() { * recommendations to move VMs off of a datastore. Note that this setting should * only be set if `sdrs_io_reservable_percent_threshold` cannot make an accurate * estimate of the capacity of the datastores in your cluster, and should be set - * to roughly 50-60% of the worst case peak performance of the backing LUNs. + * to roughly 50-60%!o(MISSING)f the worst case peak performance of the backing LUNs. * */ @Import(name="sdrsIoReservableIopsThreshold") @@ -327,7 +327,7 @@ public Optional> sdrsIoLoadImbalanceThreshold() { * recommendations to move VMs off of a datastore. Note that this setting should * only be set if `sdrs_io_reservable_percent_threshold` cannot make an accurate * estimate of the capacity of the datastores in your cluster, and should be set - * to roughly 50-60% of the worst case peak performance of the backing LUNs. + * to roughly 50-60%!o(MISSING)f the worst case peak performance of the backing LUNs. * */ public Optional> sdrsIoReservableIopsThreshold() { @@ -932,7 +932,7 @@ public Builder sdrsIoLoadImbalanceThreshold(Integer sdrsIoLoadImbalanceThreshold * recommendations to move VMs off of a datastore. Note that this setting should * only be set if `sdrs_io_reservable_percent_threshold` cannot make an accurate * estimate of the capacity of the datastores in your cluster, and should be set - * to roughly 50-60% of the worst case peak performance of the backing LUNs. + * to roughly 50-60%!o(MISSING)f the worst case peak performance of the backing LUNs. * * @return builder * @@ -948,7 +948,7 @@ public Builder sdrsIoReservableIopsThreshold(@Nullable Output sdrsIoRes * recommendations to move VMs off of a datastore. Note that this setting should * only be set if `sdrs_io_reservable_percent_threshold` cannot make an accurate * estimate of the capacity of the datastores in your cluster, and should be set - * to roughly 50-60% of the worst case peak performance of the backing LUNs. + * to roughly 50-60%!o(MISSING)f the worst case peak performance of the backing LUNs. * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/vsphere/DistributedVirtualSwitch.java b/sdk/java/src/main/java/com/pulumi/vsphere/DistributedVirtualSwitch.java index 755126bd..44ad787e 100644 --- a/sdk/java/src/main/java/com/pulumi/vsphere/DistributedVirtualSwitch.java +++ b/sdk/java/src/main/java/com/pulumi/vsphere/DistributedVirtualSwitch.java @@ -985,7 +985,8 @@ public Output> netflowObservationDomainId() { * The ratio of total number of packets to * the number of packets analyzed. The default is `0`, which indicates that the * VDS should analyze all packets. The maximum value is `1000`, which - * indicates an analysis rate of 0.001%. + * indicates an analysis rate of 0.001%! + * (MISSING) * */ @Export(name="netflowSamplingRate", refs={Integer.class}, tree="[0]") @@ -995,7 +996,8 @@ public Output> netflowObservationDomainId() { * @return The ratio of total number of packets to * the number of packets analyzed. The default is `0`, which indicates that the * VDS should analyze all packets. The maximum value is `1000`, which - * indicates an analysis rate of 0.001%. + * indicates an analysis rate of 0.001%! + * (MISSING) * */ public Output> netflowSamplingRate() { @@ -1380,6 +1382,8 @@ public Output vlanId() { * and `max_vlan` sub-arguments to define the tagged VLAN range. Multiple * `vlan_range` definitions are allowed, but they must not overlap. Example * below: + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -1417,6 +1421,7 @@ public Output vlanId() { * } * } * ``` + * <!--End PulumiCodeChooser --> * */ @Export(name="vlanRanges", refs={List.class,DistributedVirtualSwitchVlanRange.class}, tree="[0,1]") @@ -1427,6 +1432,8 @@ public Output vlanId() { * and `max_vlan` sub-arguments to define the tagged VLAN range. Multiple * `vlan_range` definitions are allowed, but they must not overlap. Example * below: + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -1464,6 +1471,7 @@ public Output vlanId() { * } * } * ``` + * <!--End PulumiCodeChooser --> * */ public Output> vlanRanges() { diff --git a/sdk/java/src/main/java/com/pulumi/vsphere/DistributedVirtualSwitchArgs.java b/sdk/java/src/main/java/com/pulumi/vsphere/DistributedVirtualSwitchArgs.java index 2123e33b..a1081738 100644 --- a/sdk/java/src/main/java/com/pulumi/vsphere/DistributedVirtualSwitchArgs.java +++ b/sdk/java/src/main/java/com/pulumi/vsphere/DistributedVirtualSwitchArgs.java @@ -1029,7 +1029,8 @@ public Optional> netflowObservationDomainId() { * The ratio of total number of packets to * the number of packets analyzed. The default is `0`, which indicates that the * VDS should analyze all packets. The maximum value is `1000`, which - * indicates an analysis rate of 0.001%. + * indicates an analysis rate of 0.001%! + * (MISSING) * */ @Import(name="netflowSamplingRate") @@ -1039,7 +1040,8 @@ public Optional> netflowObservationDomainId() { * @return The ratio of total number of packets to * the number of packets analyzed. The default is `0`, which indicates that the * VDS should analyze all packets. The maximum value is `1000`, which - * indicates an analysis rate of 0.001%. + * indicates an analysis rate of 0.001%! + * (MISSING) * */ public Optional> netflowSamplingRate() { @@ -1449,6 +1451,8 @@ public Optional> vlanId() { * and `max_vlan` sub-arguments to define the tagged VLAN range. Multiple * `vlan_range` definitions are allowed, but they must not overlap. Example * below: + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -1486,6 +1490,7 @@ public Optional> vlanId() { * } * } * ``` + * <!--End PulumiCodeChooser --> * */ @Import(name="vlanRanges") @@ -1496,6 +1501,8 @@ public Optional> vlanId() { * and `max_vlan` sub-arguments to define the tagged VLAN range. Multiple * `vlan_range` definitions are allowed, but they must not overlap. Example * below: + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -1533,6 +1540,7 @@ public Optional> vlanId() { * } * } * ``` + * <!--End PulumiCodeChooser --> * */ public Optional>> vlanRanges() { @@ -3166,7 +3174,8 @@ public Builder netflowObservationDomainId(Integer netflowObservationDomainId) { * @param netflowSamplingRate The ratio of total number of packets to * the number of packets analyzed. The default is `0`, which indicates that the * VDS should analyze all packets. The maximum value is `1000`, which - * indicates an analysis rate of 0.001%. + * indicates an analysis rate of 0.001%! + * (MISSING) * * @return builder * @@ -3180,7 +3189,8 @@ public Builder netflowSamplingRate(@Nullable Output netflowSamplingRate * @param netflowSamplingRate The ratio of total number of packets to * the number of packets analyzed. The default is `0`, which indicates that the * VDS should analyze all packets. The maximum value is `1000`, which - * indicates an analysis rate of 0.001%. + * indicates an analysis rate of 0.001%! + * (MISSING) * * @return builder * @@ -3786,6 +3796,8 @@ public Builder vlanId(Integer vlanId) { * and `max_vlan` sub-arguments to define the tagged VLAN range. Multiple * `vlan_range` definitions are allowed, but they must not overlap. Example * below: + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -3823,6 +3835,7 @@ public Builder vlanId(Integer vlanId) { * } * } * ``` + * <!--End PulumiCodeChooser --> * * @return builder * @@ -3837,6 +3850,8 @@ public Builder vlanRanges(@Nullable Output vlanRanges * and `max_vlan` sub-arguments to define the tagged VLAN range. Multiple * `vlan_range` definitions are allowed, but they must not overlap. Example * below: + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -3924,6 +3942,7 @@ public Builder vlanRanges(List vlanRanges * } * } * ``` + * <!--End PulumiCodeChooser --> * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/vsphere/File.java b/sdk/java/src/main/java/com/pulumi/vsphere/File.java index be07ae42..191dc4db 100644 --- a/sdk/java/src/main/java/com/pulumi/vsphere/File.java +++ b/sdk/java/src/main/java/com/pulumi/vsphere/File.java @@ -17,7 +17,10 @@ /** * ## Example Usage + * * ### Uploading a File + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -50,7 +53,11 @@ * } * } * ``` + * <!--End PulumiCodeChooser --> + * * ### Copying a File + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -85,6 +92,7 @@ * } * } * ``` + * <!--End PulumiCodeChooser --> * */ @ResourceType(type="vsphere:index/file:File") diff --git a/sdk/java/src/main/java/com/pulumi/vsphere/GuestOsCustomization.java b/sdk/java/src/main/java/com/pulumi/vsphere/GuestOsCustomization.java index 05f812f7..ff36f47b 100644 --- a/sdk/java/src/main/java/com/pulumi/vsphere/GuestOsCustomization.java +++ b/sdk/java/src/main/java/com/pulumi/vsphere/GuestOsCustomization.java @@ -22,6 +22,7 @@ * * ## Example Usage * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -65,6 +66,7 @@ * } * } * ``` + * <!--End PulumiCodeChooser --> * */ @ResourceType(type="vsphere:index/guestOsCustomization:GuestOsCustomization") diff --git a/sdk/java/src/main/java/com/pulumi/vsphere/Host.java b/sdk/java/src/main/java/com/pulumi/vsphere/Host.java index ad896f2b..8c506447 100644 --- a/sdk/java/src/main/java/com/pulumi/vsphere/Host.java +++ b/sdk/java/src/main/java/com/pulumi/vsphere/Host.java @@ -22,7 +22,10 @@ * can be used either as a member of a cluster or as a standalone host. * * ## Example Usage + * * ### Create a standalone host + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -68,7 +71,11 @@ * } * } * ``` + * <!--End PulumiCodeChooser --> + * * ### Create host in a compute cluster + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -120,12 +127,16 @@ * } * } * ``` + * <!--End PulumiCodeChooser --> + * * ## Importing * * An existing host can be [imported][docs-import] into this resource by supplying * the host's ID. An example is below: * * [docs-import]: /docs/import/index.html + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -148,6 +159,7 @@ * } * } * ``` + * <!--End PulumiCodeChooser --> * * The above would import the host with ID `host-123`. * diff --git a/sdk/java/src/main/java/com/pulumi/vsphere/HostPortGroup.java b/sdk/java/src/main/java/com/pulumi/vsphere/HostPortGroup.java index a775da35..c555869e 100644 --- a/sdk/java/src/main/java/com/pulumi/vsphere/HostPortGroup.java +++ b/sdk/java/src/main/java/com/pulumi/vsphere/HostPortGroup.java @@ -32,6 +32,8 @@ * ## Example Usage * * **Create a Virtual Switch and Bind a Port Group:** + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -84,6 +86,7 @@ * } * } * ``` + * <!--End PulumiCodeChooser --> * * **Create a Port Group with a VLAN and ab Override:** * @@ -92,6 +95,8 @@ * `allow_promiscuous` * to ensure that all traffic is seen on the port. The setting overrides * the implicit default of `false` set on the standard switch. + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -146,10 +151,14 @@ * } * } * ``` + * <!--End PulumiCodeChooser --> + * * ## Importing * * An existing host port group can be imported into this resource * using the host port group's ID. An example is below: + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -172,6 +181,7 @@ * } * } * ``` + * <!--End PulumiCodeChooser --> * * The above would import the `management` host port group from host with ID `host-123`. * diff --git a/sdk/java/src/main/java/com/pulumi/vsphere/License.java b/sdk/java/src/main/java/com/pulumi/vsphere/License.java index d02c0bfb..59bf195f 100644 --- a/sdk/java/src/main/java/com/pulumi/vsphere/License.java +++ b/sdk/java/src/main/java/com/pulumi/vsphere/License.java @@ -20,6 +20,8 @@ * Provides a VMware vSphere license resource. This can be used to add and remove license keys. * * ## Example Usage + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -52,6 +54,7 @@ * } * } * ``` + * <!--End PulumiCodeChooser --> * */ @ResourceType(type="vsphere:index/license:License") diff --git a/sdk/java/src/main/java/com/pulumi/vsphere/ResourcePool.java b/sdk/java/src/main/java/com/pulumi/vsphere/ResourcePool.java index 3de3bc18..45378b37 100644 --- a/sdk/java/src/main/java/com/pulumi/vsphere/ResourcePool.java +++ b/sdk/java/src/main/java/com/pulumi/vsphere/ResourcePool.java @@ -31,6 +31,8 @@ * * The following example sets up a resource pool in an existing compute cluster * with the default settings for CPU and memory reservations, shares, and limits. + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -71,9 +73,12 @@ * } * } * ``` + * <!--End PulumiCodeChooser --> * * A virtual machine resource could be targeted to use the default resource pool * of the cluster using the following: + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -102,10 +107,13 @@ * } * } * ``` + * <!--End PulumiCodeChooser --> * * The following example sets up a parent resource pool in an existing compute cluster * with a child resource pool nested below. Each resource pool is configured with * the default settings for CPU and memory reservations, shares, and limits. + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -150,12 +158,7 @@ * } * } * ``` - * ## Importing - * ### Settings that Require vSphere 7.0 or higher - * - * These settings require vSphere 7.0 or higher: - * - * * `scale_descendants_shares` + * <!--End PulumiCodeChooser --> * */ @ResourceType(type="vsphere:index/resourcePool:ResourcePool") diff --git a/sdk/java/src/main/java/com/pulumi/vsphere/VirtualMachine.java b/sdk/java/src/main/java/com/pulumi/vsphere/VirtualMachine.java index d45c7470..7f88d68c 100644 --- a/sdk/java/src/main/java/com/pulumi/vsphere/VirtualMachine.java +++ b/sdk/java/src/main/java/com/pulumi/vsphere/VirtualMachine.java @@ -885,7 +885,7 @@ public Output rebootRequired() { /** * Triggers replacement of resource whenever it changes. * - * For example, `replace_trigger = sha256(format("%s-%s",data.template_file.cloud_init_metadata.rendered,data.template_file.cloud_init_userdata.rendered))` will fingerprint the changes in cloud-init metadata and userdata templates. This will enable a replacement of the resource whenever the dependant template renders a new configuration. (Forces a replacement.) + * For example, `replace_trigger = sha256(format("%!s(MISSING)-%!s(MISSING)",data.template_file.cloud_init_metadata.rendered,data.template_file.cloud_init_userdata.rendered))` will fingerprint the changes in cloud-init metadata and userdata templates. This will enable a replacement of the resource whenever the dependant template renders a new configuration. (Forces a replacement.) * */ @Export(name="replaceTrigger", refs={String.class}, tree="[0]") @@ -894,7 +894,7 @@ public Output rebootRequired() { /** * @return Triggers replacement of resource whenever it changes. * - * For example, `replace_trigger = sha256(format("%s-%s",data.template_file.cloud_init_metadata.rendered,data.template_file.cloud_init_userdata.rendered))` will fingerprint the changes in cloud-init metadata and userdata templates. This will enable a replacement of the resource whenever the dependant template renders a new configuration. (Forces a replacement.) + * For example, `replace_trigger = sha256(format("%!s(MISSING)-%!s(MISSING)",data.template_file.cloud_init_metadata.rendered,data.template_file.cloud_init_userdata.rendered))` will fingerprint the changes in cloud-init metadata and userdata templates. This will enable a replacement of the resource whenever the dependant template renders a new configuration. (Forces a replacement.) * */ public Output> replaceTrigger() { diff --git a/sdk/java/src/main/java/com/pulumi/vsphere/VirtualMachineArgs.java b/sdk/java/src/main/java/com/pulumi/vsphere/VirtualMachineArgs.java index 2f9f711f..991b9af7 100644 --- a/sdk/java/src/main/java/com/pulumi/vsphere/VirtualMachineArgs.java +++ b/sdk/java/src/main/java/com/pulumi/vsphere/VirtualMachineArgs.java @@ -837,7 +837,7 @@ public Optional> poweronTimeout() { /** * Triggers replacement of resource whenever it changes. * - * For example, `replace_trigger = sha256(format("%s-%s",data.template_file.cloud_init_metadata.rendered,data.template_file.cloud_init_userdata.rendered))` will fingerprint the changes in cloud-init metadata and userdata templates. This will enable a replacement of the resource whenever the dependant template renders a new configuration. (Forces a replacement.) + * For example, `replace_trigger = sha256(format("%!s(MISSING)-%!s(MISSING)",data.template_file.cloud_init_metadata.rendered,data.template_file.cloud_init_userdata.rendered))` will fingerprint the changes in cloud-init metadata and userdata templates. This will enable a replacement of the resource whenever the dependant template renders a new configuration. (Forces a replacement.) * */ @Import(name="replaceTrigger") @@ -846,7 +846,7 @@ public Optional> poweronTimeout() { /** * @return Triggers replacement of resource whenever it changes. * - * For example, `replace_trigger = sha256(format("%s-%s",data.template_file.cloud_init_metadata.rendered,data.template_file.cloud_init_userdata.rendered))` will fingerprint the changes in cloud-init metadata and userdata templates. This will enable a replacement of the resource whenever the dependant template renders a new configuration. (Forces a replacement.) + * For example, `replace_trigger = sha256(format("%!s(MISSING)-%!s(MISSING)",data.template_file.cloud_init_metadata.rendered,data.template_file.cloud_init_userdata.rendered))` will fingerprint the changes in cloud-init metadata and userdata templates. This will enable a replacement of the resource whenever the dependant template renders a new configuration. (Forces a replacement.) * */ public Optional> replaceTrigger() { @@ -2474,7 +2474,7 @@ public Builder poweronTimeout(Integer poweronTimeout) { /** * @param replaceTrigger Triggers replacement of resource whenever it changes. * - * For example, `replace_trigger = sha256(format("%s-%s",data.template_file.cloud_init_metadata.rendered,data.template_file.cloud_init_userdata.rendered))` will fingerprint the changes in cloud-init metadata and userdata templates. This will enable a replacement of the resource whenever the dependant template renders a new configuration. (Forces a replacement.) + * For example, `replace_trigger = sha256(format("%!s(MISSING)-%!s(MISSING)",data.template_file.cloud_init_metadata.rendered,data.template_file.cloud_init_userdata.rendered))` will fingerprint the changes in cloud-init metadata and userdata templates. This will enable a replacement of the resource whenever the dependant template renders a new configuration. (Forces a replacement.) * * @return builder * @@ -2487,7 +2487,7 @@ public Builder replaceTrigger(@Nullable Output replaceTrigger) { /** * @param replaceTrigger Triggers replacement of resource whenever it changes. * - * For example, `replace_trigger = sha256(format("%s-%s",data.template_file.cloud_init_metadata.rendered,data.template_file.cloud_init_userdata.rendered))` will fingerprint the changes in cloud-init metadata and userdata templates. This will enable a replacement of the resource whenever the dependant template renders a new configuration. (Forces a replacement.) + * For example, `replace_trigger = sha256(format("%!s(MISSING)-%!s(MISSING)",data.template_file.cloud_init_metadata.rendered,data.template_file.cloud_init_userdata.rendered))` will fingerprint the changes in cloud-init metadata and userdata templates. This will enable a replacement of the resource whenever the dependant template renders a new configuration. (Forces a replacement.) * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/vsphere/VirtualMachineSnapshot.java b/sdk/java/src/main/java/com/pulumi/vsphere/VirtualMachineSnapshot.java index 3dfc44da..2bc1f0bc 100644 --- a/sdk/java/src/main/java/com/pulumi/vsphere/VirtualMachineSnapshot.java +++ b/sdk/java/src/main/java/com/pulumi/vsphere/VirtualMachineSnapshot.java @@ -39,6 +39,8 @@ * [ext-vm-snap-limitations]: https://docs.vmware.com/en/VMware-vSphere/7.0/com.vmware.vsphere.vm_admin.doc/GUID-53F65726-A23B-4CF0-A7D5-48E584B88613.html * * ## Example Usage + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -73,6 +75,7 @@ * } * } * ``` + * <!--End PulumiCodeChooser --> * */ @ResourceType(type="vsphere:index/virtualMachineSnapshot:VirtualMachineSnapshot") diff --git a/sdk/java/src/main/java/com/pulumi/vsphere/VmStoragePolicy.java b/sdk/java/src/main/java/com/pulumi/vsphere/VmStoragePolicy.java index fece442b..9af4fb61 100644 --- a/sdk/java/src/main/java/com/pulumi/vsphere/VmStoragePolicy.java +++ b/sdk/java/src/main/java/com/pulumi/vsphere/VmStoragePolicy.java @@ -26,6 +26,8 @@ * The following example creates storage policies with `tag_rules` base on sets of environment, service level, and replication attributes. * * In this example, tags are first applied to datastores. + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -121,8 +123,11 @@ * } * } * ``` + * <!--End PulumiCodeChooser --> * * Next, storage policies are created and `tag_rules` are applied. + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -188,8 +193,11 @@ * } * } * ``` + * <!--End PulumiCodeChooser --> * * Lasttly, when creating a virtual machine resource, a storage policy can be specificed to direct virtual machine placement to a datastore which matches the policy's `tags_rules`. + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -232,6 +240,7 @@ * } * } * ``` + * <!--End PulumiCodeChooser --> * */ @ResourceType(type="vsphere:index/vmStoragePolicy:VmStoragePolicy") 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 b2b4b931..7436992d 100644 --- a/sdk/java/src/main/java/com/pulumi/vsphere/Vnic.java +++ b/sdk/java/src/main/java/com/pulumi/vsphere/Vnic.java @@ -24,7 +24,10 @@ * ## Example Usage * * ### S + * * ### Create a vnic attached to a distributed virtual switch using the vmotion TCP/IP stack + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -90,7 +93,11 @@ * } * } * ``` + * <!--End PulumiCodeChooser --> + * * ### Create a vnic attached to a portgroup using the default TCP/IP stack + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -157,12 +164,16 @@ * } * } * ``` + * <!--End PulumiCodeChooser --> + * * ## Importing * * An existing vNic can be [imported][docs-import] into this resource * via supplying the vNic's ID. An example is below: * * [docs-import]: /docs/import/index.html + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -185,6 +196,7 @@ * } * } * ``` + * <!--End PulumiCodeChooser --> * * The above would import the vnic `vmk2` from host with ID `host-123`. * diff --git a/sdk/java/src/main/java/com/pulumi/vsphere/VsphereFunctions.java b/sdk/java/src/main/java/com/pulumi/vsphere/VsphereFunctions.java index 03547784..a729be72 100644 --- a/sdk/java/src/main/java/com/pulumi/vsphere/VsphereFunctions.java +++ b/sdk/java/src/main/java/com/pulumi/vsphere/VsphereFunctions.java @@ -101,6 +101,8 @@ public final class VsphereFunctions { * in this provider. * * ## Example Usage + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -135,6 +137,7 @@ public final class VsphereFunctions { * } * } * ``` + * <!--End PulumiCodeChooser --> * */ public static Output getComputeCluster(GetComputeClusterArgs args) { @@ -152,6 +155,8 @@ public static Output getComputeCluster(GetComputeCluste * in this provider. * * ## Example Usage + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -186,6 +191,7 @@ public static Output getComputeCluster(GetComputeCluste * } * } * ``` + * <!--End PulumiCodeChooser --> * */ public static CompletableFuture getComputeClusterPlain(GetComputeClusterPlainArgs args) { @@ -203,6 +209,8 @@ public static CompletableFuture getComputeClusterPlain( * in this provider. * * ## Example Usage + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -237,6 +245,7 @@ public static CompletableFuture getComputeClusterPlain( * } * } * ``` + * <!--End PulumiCodeChooser --> * */ public static Output getComputeCluster(GetComputeClusterArgs args, InvokeOptions options) { @@ -254,6 +263,8 @@ public static Output getComputeCluster(GetComputeCluste * in this provider. * * ## Example Usage + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -288,6 +299,7 @@ public static Output getComputeCluster(GetComputeCluste * } * } * ``` + * <!--End PulumiCodeChooser --> * */ public static CompletableFuture getComputeClusterPlain(GetComputeClusterPlainArgs args, InvokeOptions options) { @@ -299,6 +311,8 @@ public static CompletableFuture getComputeClusterPlain( * resources. * * ## Example Usage + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -347,6 +361,7 @@ public static CompletableFuture getComputeClusterPlain( * } * } * ``` + * <!--End PulumiCodeChooser --> * */ public static Output getComputeClusterHostGroup(GetComputeClusterHostGroupArgs args) { @@ -358,6 +373,8 @@ public static Output getComputeClusterHostGrou * resources. * * ## Example Usage + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -406,6 +423,7 @@ public static Output getComputeClusterHostGrou * } * } * ``` + * <!--End PulumiCodeChooser --> * */ public static CompletableFuture getComputeClusterHostGroupPlain(GetComputeClusterHostGroupPlainArgs args) { @@ -417,6 +435,8 @@ public static CompletableFuture getComputeClus * resources. * * ## Example Usage + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -465,6 +485,7 @@ public static CompletableFuture getComputeClus * } * } * ``` + * <!--End PulumiCodeChooser --> * */ public static Output getComputeClusterHostGroup(GetComputeClusterHostGroupArgs args, InvokeOptions options) { @@ -476,6 +497,8 @@ public static Output getComputeClusterHostGrou * resources. * * ## Example Usage + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -524,6 +547,7 @@ public static Output getComputeClusterHostGrou * } * } * ``` + * <!--End PulumiCodeChooser --> * */ public static CompletableFuture getComputeClusterHostGroupPlain(GetComputeClusterHostGroupPlainArgs args, InvokeOptions options) { @@ -535,6 +559,8 @@ public static CompletableFuture getComputeClus * > **NOTE:** This resource requires vCenter Server and is not available on direct ESXi host connections. * * ## Example Usage + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -563,6 +589,7 @@ public static CompletableFuture getComputeClus * } * } * ``` + * <!--End PulumiCodeChooser --> * */ public static Output getContentLibrary(GetContentLibraryArgs args) { @@ -574,6 +601,8 @@ public static Output getContentLibrary(GetContentLibrar * > **NOTE:** This resource requires vCenter Server and is not available on direct ESXi host connections. * * ## Example Usage + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -602,6 +631,7 @@ public static Output getContentLibrary(GetContentLibrar * } * } * ``` + * <!--End PulumiCodeChooser --> * */ public static CompletableFuture getContentLibraryPlain(GetContentLibraryPlainArgs args) { @@ -613,6 +643,8 @@ public static CompletableFuture getContentLibraryPlain( * > **NOTE:** This resource requires vCenter Server and is not available on direct ESXi host connections. * * ## Example Usage + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -641,6 +673,7 @@ public static CompletableFuture getContentLibraryPlain( * } * } * ``` + * <!--End PulumiCodeChooser --> * */ public static Output getContentLibrary(GetContentLibraryArgs args, InvokeOptions options) { @@ -652,6 +685,8 @@ public static Output getContentLibrary(GetContentLibrar * > **NOTE:** This resource requires vCenter Server and is not available on direct ESXi host connections. * * ## Example Usage + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -680,6 +715,7 @@ public static Output getContentLibrary(GetContentLibrar * } * } * ``` + * <!--End PulumiCodeChooser --> * */ public static CompletableFuture getContentLibraryPlain(GetContentLibraryPlainArgs args, InvokeOptions options) { @@ -740,6 +776,8 @@ public static CompletableFuture getContentLibraryIt * and require vCenter Server. * * ## Example Usage + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -768,6 +806,7 @@ public static CompletableFuture getContentLibraryIt * } * } * ``` + * <!--End PulumiCodeChooser --> * */ public static Output getCustomAttribute(GetCustomAttributeArgs args) { @@ -784,6 +823,8 @@ public static Output getCustomAttribute(GetCustomAttri * and require vCenter Server. * * ## Example Usage + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -812,6 +853,7 @@ public static Output getCustomAttribute(GetCustomAttri * } * } * ``` + * <!--End PulumiCodeChooser --> * */ public static CompletableFuture getCustomAttributePlain(GetCustomAttributePlainArgs args) { @@ -828,6 +870,8 @@ public static CompletableFuture getCustomAttributePlai * and require vCenter Server. * * ## Example Usage + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -856,6 +900,7 @@ public static CompletableFuture getCustomAttributePlai * } * } * ``` + * <!--End PulumiCodeChooser --> * */ public static Output getCustomAttribute(GetCustomAttributeArgs args, InvokeOptions options) { @@ -872,6 +917,8 @@ public static Output getCustomAttribute(GetCustomAttri * and require vCenter Server. * * ## Example Usage + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -900,6 +947,7 @@ public static Output getCustomAttribute(GetCustomAttri * } * } * ``` + * <!--End PulumiCodeChooser --> * */ public static CompletableFuture getCustomAttributePlain(GetCustomAttributePlainArgs args, InvokeOptions options) { @@ -912,6 +960,8 @@ public static CompletableFuture getCustomAttributePlai * data source. * * ## Example Usage + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -940,6 +990,7 @@ public static CompletableFuture getCustomAttributePlai * } * } * ``` + * <!--End PulumiCodeChooser --> * */ public static Output getDatacenter() { @@ -952,6 +1003,8 @@ public static Output getDatacenter() { * data source. * * ## Example Usage + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -980,6 +1033,7 @@ public static Output getDatacenter() { * } * } * ``` + * <!--End PulumiCodeChooser --> * */ public static CompletableFuture getDatacenterPlain() { @@ -992,6 +1046,8 @@ public static CompletableFuture getDatacenterPlain() { * data source. * * ## Example Usage + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -1020,6 +1076,7 @@ public static CompletableFuture getDatacenterPlain() { * } * } * ``` + * <!--End PulumiCodeChooser --> * */ public static Output getDatacenter(GetDatacenterArgs args) { @@ -1032,6 +1089,8 @@ public static Output getDatacenter(GetDatacenterArgs args) * data source. * * ## Example Usage + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -1060,6 +1119,7 @@ public static Output getDatacenter(GetDatacenterArgs args) * } * } * ``` + * <!--End PulumiCodeChooser --> * */ public static CompletableFuture getDatacenterPlain(GetDatacenterPlainArgs args) { @@ -1072,6 +1132,8 @@ public static CompletableFuture getDatacenterPlain(GetDatac * data source. * * ## Example Usage + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -1100,6 +1162,7 @@ public static CompletableFuture getDatacenterPlain(GetDatac * } * } * ``` + * <!--End PulumiCodeChooser --> * */ public static Output getDatacenter(GetDatacenterArgs args, InvokeOptions options) { @@ -1112,6 +1175,8 @@ public static Output getDatacenter(GetDatacenterArgs args, * data source. * * ## Example Usage + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -1140,6 +1205,7 @@ public static Output getDatacenter(GetDatacenterArgs args, * } * } * ``` + * <!--End PulumiCodeChooser --> * */ public static CompletableFuture getDatacenterPlain(GetDatacenterPlainArgs args, InvokeOptions options) { @@ -1152,6 +1218,8 @@ public static CompletableFuture getDatacenterPlain(GetDatac * `vsphere.VirtualMachine` resource. * * ## Example Usage + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -1186,6 +1254,7 @@ public static CompletableFuture getDatacenterPlain(GetDatac * } * } * ``` + * <!--End PulumiCodeChooser --> * */ public static Output getDatastore(GetDatastoreArgs args) { @@ -1198,6 +1267,8 @@ public static Output getDatastore(GetDatastoreArgs args) { * `vsphere.VirtualMachine` resource. * * ## Example Usage + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -1232,6 +1303,7 @@ public static Output getDatastore(GetDatastoreArgs args) { * } * } * ``` + * <!--End PulumiCodeChooser --> * */ public static CompletableFuture getDatastorePlain(GetDatastorePlainArgs args) { @@ -1244,6 +1316,8 @@ public static CompletableFuture getDatastorePlain(GetDatasto * `vsphere.VirtualMachine` resource. * * ## Example Usage + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -1278,6 +1352,7 @@ public static CompletableFuture getDatastorePlain(GetDatasto * } * } * ``` + * <!--End PulumiCodeChooser --> * */ public static Output getDatastore(GetDatastoreArgs args, InvokeOptions options) { @@ -1290,6 +1365,8 @@ public static Output getDatastore(GetDatastoreArgs args, Inv * `vsphere.VirtualMachine` resource. * * ## Example Usage + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -1324,6 +1401,7 @@ public static Output getDatastore(GetDatastoreArgs args, Inv * } * } * ``` + * <!--End PulumiCodeChooser --> * */ public static CompletableFuture getDatastorePlain(GetDatastorePlainArgs args, InvokeOptions options) { @@ -1336,6 +1414,8 @@ public static CompletableFuture getDatastorePlain(GetDatasto * `vsphere.NasDatastore` or `vsphere.VmfsDatastore` resources, or to create virtual machines in using the `vsphere.VirtualMachine` resource. * * ## Example Usage + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -1370,6 +1450,7 @@ public static CompletableFuture getDatastorePlain(GetDatasto * } * } * ``` + * <!--End PulumiCodeChooser --> * */ public static Output getDatastoreCluster(GetDatastoreClusterArgs args) { @@ -1382,6 +1463,8 @@ public static Output getDatastoreCluster(GetDatastore * `vsphere.NasDatastore` or `vsphere.VmfsDatastore` resources, or to create virtual machines in using the `vsphere.VirtualMachine` resource. * * ## Example Usage + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -1416,6 +1499,7 @@ public static Output getDatastoreCluster(GetDatastore * } * } * ``` + * <!--End PulumiCodeChooser --> * */ public static CompletableFuture getDatastoreClusterPlain(GetDatastoreClusterPlainArgs args) { @@ -1428,6 +1512,8 @@ public static CompletableFuture getDatastoreClusterPl * `vsphere.NasDatastore` or `vsphere.VmfsDatastore` resources, or to create virtual machines in using the `vsphere.VirtualMachine` resource. * * ## Example Usage + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -1462,6 +1548,7 @@ public static CompletableFuture getDatastoreClusterPl * } * } * ``` + * <!--End PulumiCodeChooser --> * */ public static Output getDatastoreCluster(GetDatastoreClusterArgs args, InvokeOptions options) { @@ -1474,6 +1561,8 @@ public static Output getDatastoreCluster(GetDatastore * `vsphere.NasDatastore` or `vsphere.VmfsDatastore` resources, or to create virtual machines in using the `vsphere.VirtualMachine` resource. * * ## Example Usage + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -1508,6 +1597,7 @@ public static Output getDatastoreCluster(GetDatastore * } * } * ``` + * <!--End PulumiCodeChooser --> * */ public static CompletableFuture getDatastoreClusterPlain(GetDatastoreClusterPlainArgs args, InvokeOptions options) { @@ -1529,6 +1619,8 @@ public static CompletableFuture getDatastoreClusterPl * datacenter `dc-01`. It then uses this distributed switch to set up a * `vsphere.DistributedPortGroup` resource that uses the first uplink as a * primary uplink and the second uplink as a secondary. + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -1571,6 +1663,7 @@ public static CompletableFuture getDatastoreClusterPl * } * } * ``` + * <!--End PulumiCodeChooser --> * */ public static Output getDistributedVirtualSwitch(GetDistributedVirtualSwitchArgs args) { @@ -1592,6 +1685,8 @@ public static Output getDistributedVirtualSwi * datacenter `dc-01`. It then uses this distributed switch to set up a * `vsphere.DistributedPortGroup` resource that uses the first uplink as a * primary uplink and the second uplink as a secondary. + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -1634,6 +1729,7 @@ public static Output getDistributedVirtualSwi * } * } * ``` + * <!--End PulumiCodeChooser --> * */ public static CompletableFuture getDistributedVirtualSwitchPlain(GetDistributedVirtualSwitchPlainArgs args) { @@ -1655,6 +1751,8 @@ public static CompletableFuture getDistribute * datacenter `dc-01`. It then uses this distributed switch to set up a * `vsphere.DistributedPortGroup` resource that uses the first uplink as a * primary uplink and the second uplink as a secondary. + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -1697,6 +1795,7 @@ public static CompletableFuture getDistribute * } * } * ``` + * <!--End PulumiCodeChooser --> * */ public static Output getDistributedVirtualSwitch(GetDistributedVirtualSwitchArgs args, InvokeOptions options) { @@ -1718,6 +1817,8 @@ public static Output getDistributedVirtualSwi * datacenter `dc-01`. It then uses this distributed switch to set up a * `vsphere.DistributedPortGroup` resource that uses the first uplink as a * primary uplink and the second uplink as a secondary. + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -1760,6 +1861,7 @@ public static Output getDistributedVirtualSwi * } * } * ``` + * <!--End PulumiCodeChooser --> * */ public static CompletableFuture getDistributedVirtualSwitchPlain(GetDistributedVirtualSwitchPlainArgs args, InvokeOptions options) { @@ -1773,6 +1875,8 @@ public static CompletableFuture getDistribute * and an optional regular expression to filter objects by name. * * ## Example Usage + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -1821,6 +1925,7 @@ public static CompletableFuture getDistribute * } * } * ``` + * <!--End PulumiCodeChooser --> * */ public static Output getDynamic(GetDynamicArgs args) { @@ -1834,6 +1939,8 @@ public static Output getDynamic(GetDynamicArgs args) { * and an optional regular expression to filter objects by name. * * ## Example Usage + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -1882,6 +1989,7 @@ public static Output getDynamic(GetDynamicArgs args) { * } * } * ``` + * <!--End PulumiCodeChooser --> * */ public static CompletableFuture getDynamicPlain(GetDynamicPlainArgs args) { @@ -1895,6 +2003,8 @@ public static CompletableFuture getDynamicPlain(GetDynamicPlai * and an optional regular expression to filter objects by name. * * ## Example Usage + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -1943,6 +2053,7 @@ public static CompletableFuture getDynamicPlain(GetDynamicPlai * } * } * ``` + * <!--End PulumiCodeChooser --> * */ public static Output getDynamic(GetDynamicArgs args, InvokeOptions options) { @@ -1956,6 +2067,8 @@ public static Output getDynamic(GetDynamicArgs args, InvokeOpt * and an optional regular expression to filter objects by name. * * ## Example Usage + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -2004,6 +2117,7 @@ public static Output getDynamic(GetDynamicArgs args, InvokeOpt * } * } * ``` + * <!--End PulumiCodeChooser --> * */ public static CompletableFuture getDynamicPlain(GetDynamicPlainArgs args, InvokeOptions options) { @@ -2014,6 +2128,8 @@ public static CompletableFuture getDynamicPlain(GetDynamicPlai * vSphere inventory folder. Paths are absolute and must include the datacenter. * * ## Example Usage + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -2042,6 +2158,7 @@ public static CompletableFuture getDynamicPlain(GetDynamicPlai * } * } * ``` + * <!--End PulumiCodeChooser --> * */ public static Output getFolder(GetFolderArgs args) { @@ -2052,6 +2169,8 @@ public static Output getFolder(GetFolderArgs args) { * vSphere inventory folder. Paths are absolute and must include the datacenter. * * ## Example Usage + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -2080,6 +2199,7 @@ public static Output getFolder(GetFolderArgs args) { * } * } * ``` + * <!--End PulumiCodeChooser --> * */ public static CompletableFuture getFolderPlain(GetFolderPlainArgs args) { @@ -2090,6 +2210,8 @@ public static CompletableFuture getFolderPlain(GetFolderPlainAr * vSphere inventory folder. Paths are absolute and must include the datacenter. * * ## Example Usage + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -2118,6 +2240,7 @@ public static CompletableFuture getFolderPlain(GetFolderPlainAr * } * } * ``` + * <!--End PulumiCodeChooser --> * */ public static Output getFolder(GetFolderArgs args, InvokeOptions options) { @@ -2128,6 +2251,8 @@ public static Output getFolder(GetFolderArgs args, InvokeOption * vSphere inventory folder. Paths are absolute and must include the datacenter. * * ## Example Usage + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -2156,6 +2281,7 @@ public static Output getFolder(GetFolderArgs args, InvokeOption * } * } * ``` + * <!--End PulumiCodeChooser --> * */ public static CompletableFuture getFolderPlain(GetFolderPlainArgs args, InvokeOptions options) { @@ -2168,6 +2294,8 @@ public static CompletableFuture getFolderPlain(GetFolderPlainAr * > **NOTE:** The name attribute is the unique identifier for the customization specification per vCenter Server instance. * * ## Example Usage + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -2196,6 +2324,7 @@ public static CompletableFuture getFolderPlain(GetFolderPlainAr * } * } * ``` + * <!--End PulumiCodeChooser --> * */ public static Output getGuestOsCustomization(GetGuestOsCustomizationArgs args) { @@ -2208,6 +2337,8 @@ public static Output getGuestOsCustomization(GetG * > **NOTE:** The name attribute is the unique identifier for the customization specification per vCenter Server instance. * * ## Example Usage + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -2236,6 +2367,7 @@ public static Output getGuestOsCustomization(GetG * } * } * ``` + * <!--End PulumiCodeChooser --> * */ public static CompletableFuture getGuestOsCustomizationPlain(GetGuestOsCustomizationPlainArgs args) { @@ -2248,6 +2380,8 @@ public static CompletableFuture getGuestOsCustomi * > **NOTE:** The name attribute is the unique identifier for the customization specification per vCenter Server instance. * * ## Example Usage + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -2276,6 +2410,7 @@ public static CompletableFuture getGuestOsCustomi * } * } * ``` + * <!--End PulumiCodeChooser --> * */ public static Output getGuestOsCustomization(GetGuestOsCustomizationArgs args, InvokeOptions options) { @@ -2288,6 +2423,8 @@ public static Output getGuestOsCustomization(GetG * > **NOTE:** The name attribute is the unique identifier for the customization specification per vCenter Server instance. * * ## Example Usage + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -2316,6 +2453,7 @@ public static Output getGuestOsCustomization(GetG * } * } * ``` + * <!--End PulumiCodeChooser --> * */ public static CompletableFuture getGuestOsCustomizationPlain(GetGuestOsCustomizationPlainArgs args, InvokeOptions options) { @@ -2327,6 +2465,8 @@ public static CompletableFuture getGuestOsCustomi * host's managed object reference ID. * * ## Example Usage + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -2361,6 +2501,7 @@ public static CompletableFuture getGuestOsCustomi * } * } * ``` + * <!--End PulumiCodeChooser --> * */ public static Output getHost(GetHostArgs args) { @@ -2372,6 +2513,8 @@ public static Output getHost(GetHostArgs args) { * host's managed object reference ID. * * ## Example Usage + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -2406,6 +2549,7 @@ public static Output getHost(GetHostArgs args) { * } * } * ``` + * <!--End PulumiCodeChooser --> * */ public static CompletableFuture getHostPlain(GetHostPlainArgs args) { @@ -2417,6 +2561,8 @@ public static CompletableFuture getHostPlain(GetHostPlainArgs arg * host's managed object reference ID. * * ## Example Usage + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -2451,6 +2597,7 @@ public static CompletableFuture getHostPlain(GetHostPlainArgs arg * } * } * ``` + * <!--End PulumiCodeChooser --> * */ public static Output getHost(GetHostArgs args, InvokeOptions options) { @@ -2462,6 +2609,8 @@ public static Output getHost(GetHostArgs args, InvokeOptions opti * host's managed object reference ID. * * ## Example Usage + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -2496,6 +2645,7 @@ public static Output getHost(GetHostArgs args, InvokeOptions opti * } * } * ``` + * <!--End PulumiCodeChooser --> * */ public static CompletableFuture getHostPlain(GetHostPlainArgs args, InvokeOptions options) { @@ -2507,7 +2657,10 @@ public static CompletableFuture getHostPlain(GetHostPlainArgs arg * `vsphere.VirtualMachine`'s `pci_device_id`. * * ## Example Usage + * * ### With Vendor ID And Class ID + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -2549,8 +2702,53 @@ public static CompletableFuture getHostPlain(GetHostPlainArgs arg * } * } * ``` + * <!--End PulumiCodeChooser --> + * * ### With Name Regular Expression * + * <!--Start PulumiCodeChooser --> + * ```java + * package generated_program; + * + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.vsphere.VsphereFunctions; + * import com.pulumi.vsphere.inputs.GetDatacenterArgs; + * import com.pulumi.vsphere.inputs.GetHostArgs; + * import com.pulumi.vsphere.inputs.GetHostPciDeviceArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; + * + * public class App { + * public static void main(String[] args) { + * Pulumi.run(App::stack); + * } + * + * public static void stack(Context ctx) { + * final var datacenter = VsphereFunctions.getDatacenter(GetDatacenterArgs.builder() + * .name("dc-01") + * .build()); + * + * final var host = VsphereFunctions.getHost(GetHostArgs.builder() + * .name("esxi-01.example.com") + * .datacenterId(datacenter.applyValue(getDatacenterResult -> getDatacenterResult.id())) + * .build()); + * + * final var dev = VsphereFunctions.getHostPciDevice(GetHostPciDeviceArgs.builder() + * .hostId(host.applyValue(getHostResult -> getHostResult.id())) + * .nameRegex("MMC") + * .build()); + * + * } + * } + * ``` + * <!--End PulumiCodeChooser --> + * */ public static Output getHostPciDevice(GetHostPciDeviceArgs args) { return getHostPciDevice(args, InvokeOptions.Empty); @@ -2561,7 +2759,10 @@ public static Output getHostPciDevice(GetHostPciDeviceAr * `vsphere.VirtualMachine`'s `pci_device_id`. * * ## Example Usage + * * ### With Vendor ID And Class ID + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -2603,8 +2804,53 @@ public static Output getHostPciDevice(GetHostPciDeviceAr * } * } * ``` + * <!--End PulumiCodeChooser --> + * * ### With Name Regular Expression * + * <!--Start PulumiCodeChooser --> + * ```java + * package generated_program; + * + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.vsphere.VsphereFunctions; + * import com.pulumi.vsphere.inputs.GetDatacenterArgs; + * import com.pulumi.vsphere.inputs.GetHostArgs; + * import com.pulumi.vsphere.inputs.GetHostPciDeviceArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; + * + * public class App { + * public static void main(String[] args) { + * Pulumi.run(App::stack); + * } + * + * public static void stack(Context ctx) { + * final var datacenter = VsphereFunctions.getDatacenter(GetDatacenterArgs.builder() + * .name("dc-01") + * .build()); + * + * final var host = VsphereFunctions.getHost(GetHostArgs.builder() + * .name("esxi-01.example.com") + * .datacenterId(datacenter.applyValue(getDatacenterResult -> getDatacenterResult.id())) + * .build()); + * + * final var dev = VsphereFunctions.getHostPciDevice(GetHostPciDeviceArgs.builder() + * .hostId(host.applyValue(getHostResult -> getHostResult.id())) + * .nameRegex("MMC") + * .build()); + * + * } + * } + * ``` + * <!--End PulumiCodeChooser --> + * */ public static CompletableFuture getHostPciDevicePlain(GetHostPciDevicePlainArgs args) { return getHostPciDevicePlain(args, InvokeOptions.Empty); @@ -2615,7 +2861,10 @@ public static CompletableFuture getHostPciDevicePlain(Ge * `vsphere.VirtualMachine`'s `pci_device_id`. * * ## Example Usage + * * ### With Vendor ID And Class ID + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -2657,8 +2906,53 @@ public static CompletableFuture getHostPciDevicePlain(Ge * } * } * ``` + * <!--End PulumiCodeChooser --> + * * ### With Name Regular Expression * + * <!--Start PulumiCodeChooser --> + * ```java + * package generated_program; + * + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.vsphere.VsphereFunctions; + * import com.pulumi.vsphere.inputs.GetDatacenterArgs; + * import com.pulumi.vsphere.inputs.GetHostArgs; + * import com.pulumi.vsphere.inputs.GetHostPciDeviceArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; + * + * public class App { + * public static void main(String[] args) { + * Pulumi.run(App::stack); + * } + * + * public static void stack(Context ctx) { + * final var datacenter = VsphereFunctions.getDatacenter(GetDatacenterArgs.builder() + * .name("dc-01") + * .build()); + * + * final var host = VsphereFunctions.getHost(GetHostArgs.builder() + * .name("esxi-01.example.com") + * .datacenterId(datacenter.applyValue(getDatacenterResult -> getDatacenterResult.id())) + * .build()); + * + * final var dev = VsphereFunctions.getHostPciDevice(GetHostPciDeviceArgs.builder() + * .hostId(host.applyValue(getHostResult -> getHostResult.id())) + * .nameRegex("MMC") + * .build()); + * + * } + * } + * ``` + * <!--End PulumiCodeChooser --> + * */ public static Output getHostPciDevice(GetHostPciDeviceArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("vsphere:index/getHostPciDevice:getHostPciDevice", TypeShape.of(GetHostPciDeviceResult.class), args, Utilities.withVersion(options)); @@ -2669,7 +2963,10 @@ public static Output getHostPciDevice(GetHostPciDeviceAr * `vsphere.VirtualMachine`'s `pci_device_id`. * * ## Example Usage + * * ### With Vendor ID And Class ID + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -2711,8 +3008,53 @@ public static Output getHostPciDevice(GetHostPciDeviceAr * } * } * ``` + * <!--End PulumiCodeChooser --> + * * ### With Name Regular Expression * + * <!--Start PulumiCodeChooser --> + * ```java + * package generated_program; + * + * import com.pulumi.Context; + * import com.pulumi.Pulumi; + * import com.pulumi.core.Output; + * import com.pulumi.vsphere.VsphereFunctions; + * import com.pulumi.vsphere.inputs.GetDatacenterArgs; + * import com.pulumi.vsphere.inputs.GetHostArgs; + * import com.pulumi.vsphere.inputs.GetHostPciDeviceArgs; + * import java.util.List; + * import java.util.ArrayList; + * import java.util.Map; + * import java.io.File; + * import java.nio.file.Files; + * import java.nio.file.Paths; + * + * public class App { + * public static void main(String[] args) { + * Pulumi.run(App::stack); + * } + * + * public static void stack(Context ctx) { + * final var datacenter = VsphereFunctions.getDatacenter(GetDatacenterArgs.builder() + * .name("dc-01") + * .build()); + * + * final var host = VsphereFunctions.getHost(GetHostArgs.builder() + * .name("esxi-01.example.com") + * .datacenterId(datacenter.applyValue(getDatacenterResult -> getDatacenterResult.id())) + * .build()); + * + * final var dev = VsphereFunctions.getHostPciDevice(GetHostPciDeviceArgs.builder() + * .hostId(host.applyValue(getHostResult -> getHostResult.id())) + * .nameRegex("MMC") + * .build()); + * + * } + * } + * ``` + * <!--End PulumiCodeChooser --> + * */ public static CompletableFuture getHostPciDevicePlain(GetHostPciDevicePlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("vsphere:index/getHostPciDevice:getHostPciDevice", TypeShape.of(GetHostPciDeviceResult.class), args, Utilities.withVersion(options)); @@ -2724,6 +3066,8 @@ public static CompletableFuture getHostPciDevicePlain(Ge * will be used to generate the thumbprint. * * ## Example Usage + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -2752,6 +3096,7 @@ public static CompletableFuture getHostPciDevicePlain(Ge * } * } * ``` + * <!--End PulumiCodeChooser --> * */ public static Output getHostThumbprint(GetHostThumbprintArgs args) { @@ -2764,6 +3109,8 @@ public static Output getHostThumbprint(GetHostThumbprin * will be used to generate the thumbprint. * * ## Example Usage + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -2792,6 +3139,7 @@ public static Output getHostThumbprint(GetHostThumbprin * } * } * ``` + * <!--End PulumiCodeChooser --> * */ public static CompletableFuture getHostThumbprintPlain(GetHostThumbprintPlainArgs args) { @@ -2804,6 +3152,8 @@ public static CompletableFuture getHostThumbprintPlain( * will be used to generate the thumbprint. * * ## Example Usage + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -2832,6 +3182,7 @@ public static CompletableFuture getHostThumbprintPlain( * } * } * ``` + * <!--End PulumiCodeChooser --> * */ public static Output getHostThumbprint(GetHostThumbprintArgs args, InvokeOptions options) { @@ -2844,6 +3195,8 @@ public static Output getHostThumbprint(GetHostThumbprin * will be used to generate the thumbprint. * * ## Example Usage + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -2872,6 +3225,7 @@ public static Output getHostThumbprint(GetHostThumbprin * } * } * ``` + * <!--End PulumiCodeChooser --> * */ public static CompletableFuture getHostThumbprintPlain(GetHostThumbprintPlainArgs args, InvokeOptions options) { @@ -2882,6 +3236,8 @@ public static CompletableFuture getHostThumbprintPlain( * a license keys from a vCenter Server instance. * * ## Example Usage + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -2910,6 +3266,7 @@ public static CompletableFuture getHostThumbprintPlain( * } * } * ``` + * <!--End PulumiCodeChooser --> * */ public static Output getLicense(GetLicenseArgs args) { @@ -2920,6 +3277,8 @@ public static Output getLicense(GetLicenseArgs args) { * a license keys from a vCenter Server instance. * * ## Example Usage + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -2948,6 +3307,7 @@ public static Output getLicense(GetLicenseArgs args) { * } * } * ``` + * <!--End PulumiCodeChooser --> * */ public static CompletableFuture getLicensePlain(GetLicensePlainArgs args) { @@ -2958,6 +3318,8 @@ public static CompletableFuture getLicensePlain(GetLicensePlai * a license keys from a vCenter Server instance. * * ## Example Usage + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -2986,6 +3348,7 @@ public static CompletableFuture getLicensePlain(GetLicensePlai * } * } * ``` + * <!--End PulumiCodeChooser --> * */ public static Output getLicense(GetLicenseArgs args, InvokeOptions options) { @@ -2996,6 +3359,8 @@ public static Output getLicense(GetLicenseArgs args, InvokeOpt * a license keys from a vCenter Server instance. * * ## Example Usage + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -3024,6 +3389,7 @@ public static Output getLicense(GetLicenseArgs args, InvokeOpt * } * } * ``` + * <!--End PulumiCodeChooser --> * */ public static CompletableFuture getLicensePlain(GetLicensePlainArgs args, InvokeOptions options) { @@ -3037,6 +3403,8 @@ public static CompletableFuture getLicensePlain(GetLicensePlai * distributed port groups, or opaque networks such as those managed by NSX. * * ## Example Usage + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -3071,6 +3439,7 @@ public static CompletableFuture getLicensePlain(GetLicensePlai * } * } * ``` + * <!--End PulumiCodeChooser --> * */ public static Output getNetwork(GetNetworkArgs args) { @@ -3084,6 +3453,8 @@ public static Output getNetwork(GetNetworkArgs args) { * distributed port groups, or opaque networks such as those managed by NSX. * * ## Example Usage + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -3118,6 +3489,7 @@ public static Output getNetwork(GetNetworkArgs args) { * } * } * ``` + * <!--End PulumiCodeChooser --> * */ public static CompletableFuture getNetworkPlain(GetNetworkPlainArgs args) { @@ -3131,6 +3503,8 @@ public static CompletableFuture getNetworkPlain(GetNetworkPlai * distributed port groups, or opaque networks such as those managed by NSX. * * ## Example Usage + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -3165,6 +3539,7 @@ public static CompletableFuture getNetworkPlain(GetNetworkPlai * } * } * ``` + * <!--End PulumiCodeChooser --> * */ public static Output getNetwork(GetNetworkArgs args, InvokeOptions options) { @@ -3178,6 +3553,8 @@ public static Output getNetwork(GetNetworkArgs args, InvokeOpt * distributed port groups, or opaque networks such as those managed by NSX. * * ## Example Usage + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -3212,6 +3589,7 @@ public static Output getNetwork(GetNetworkArgs args, InvokeOpt * } * } * ``` + * <!--End PulumiCodeChooser --> * */ public static CompletableFuture getNetworkPlain(GetNetworkPlainArgs args, InvokeOptions options) { @@ -3222,90 +3600,6 @@ public static CompletableFuture getNetworkPlain(GetNetworkPlai * vSphere and extract its hardware settings in a form that can be then used as * inputs for a `vsphere.VirtualMachine` resource. * - * ## Remote OVF/OVA Source - * - * data "vsphere_ovf_vm_template" "ovfRemote" { - * name = "Nested-ESXi-7.0-Terraform-Deploy-1" - * disk_provisioning = "thin" - * resource_pool_id = data.vsphere_resource_pool.default.id - * datastore_id = data.vsphere_datastore.datastore.id - * host_system_id = data.vsphere_host.host.id - * remote_ovf_url = "https://download3.vmware.com/software/vmw-tools/nested-esxi/Nested_ESXi7.0u3_Appliance_Template_v1.ova" - * ovf_network_map = { - * "VM Network" : data.vsphere_network.network.id - * } - * } - * - * ## Local OVF/OVA Source - * - * data "vsphere_ovf_vm_template" "ovfLocal" { - * name = "Nested-ESXi-7.0-Terraform-Deploy-2" - * disk_provisioning = "thin" - * resource_pool_id = data.vsphere_resource_pool.default.id - * datastore_id = data.vsphere_datastore.datastore.id - * host_system_id = data.vsphere_host.host.id - * local_ovf_path = "/Volume/Storage/OVA/Nested_ESXi7.0u3_Appliance_Template_v1.ova" - * ovf_network_map = { - * "VM Network" : data.vsphere_network.network.id - * } - * } - * - * ## Deployment of VM from Remote OVF - * - * resource "vsphere_virtual_machine" "vmFromRemoteOvf" { - * name = "Nested-ESXi-7.0-Terraform-Deploy-1" - * datacenter_id = data.vsphere_datacenter.datacenter.id - * datastore_id = data.vsphere_datastore.datastore.id - * host_system_id = data.vsphere_host.host.id - * resource_pool_id = data.vsphere_resource_pool.default.id - * num_cpus = data.vsphere_ovf_vm_template.ovfRemote.num_cpus - * num_cores_per_socket = data.vsphere_ovf_vm_template.ovfRemote.num_cores_per_socket - * memory = data.vsphere_ovf_vm_template.ovfRemote.memory - * guest_id = data.vsphere_ovf_vm_template.ovfRemote.guest_id - * firmware = data.vsphere_ovf_vm_template.ovfRemote.firmware - * scsi_type = data.vsphere_ovf_vm_template.ovfRemote.scsi_type - * nested_hv_enabled = data.vsphere_ovf_vm_template.ovfRemote.nested_hv_enabled - * dynamic "network_interface" { - * for_each = data.vsphere_ovf_vm_template.ovfRemote.ovf_network_map - * content { - * network_id = network_interface.value - * } - * } - * wait_for_guest_net_timeout = 0 - * wait_for_guest_ip_timeout = 0 - * - * ovf_deploy { - * allow_unverified_ssl_cert = false - * remote_ovf_url = data.vsphere_ovf_vm_template.ovfRemote.remote_ovf_url - * disk_provisioning = data.vsphere_ovf_vm_template.ovfRemote.disk_provisioning - * ovf_network_map = data.vsphere_ovf_vm_template.ovfRemote.ovf_network_map - * } - * - * vapp { - * properties = { - * "guestinfo.hostname" = "nested-esxi-01.example.com", - * "guestinfo.ipaddress" = "172.16.11.101", - * "guestinfo.netmask" = "255.255.255.0", - * "guestinfo.gateway" = "172.16.11.1", - * "guestinfo.dns" = "172.16.11.4", - * "guestinfo.domain" = "example.com", - * "guestinfo.ntp" = "ntp.example.com", - * "guestinfo.password" = "VMware1!", - * "guestinfo.ssh" = "True" - * } - * } - * - * lifecycle { - * ignore_changes = [ - * annotation, - * disk[0].io_share_count, - * disk[1].io_share_count, - * disk[2].io_share_count, - * vapp[0].properties, - * ] - * } - * } - * */ public static Output getOvfVmTemplate(GetOvfVmTemplateArgs args) { return getOvfVmTemplate(args, InvokeOptions.Empty); @@ -3315,90 +3609,6 @@ public static Output getOvfVmTemplate(GetOvfVmTemplateAr * vSphere and extract its hardware settings in a form that can be then used as * inputs for a `vsphere.VirtualMachine` resource. * - * ## Remote OVF/OVA Source - * - * data "vsphere_ovf_vm_template" "ovfRemote" { - * name = "Nested-ESXi-7.0-Terraform-Deploy-1" - * disk_provisioning = "thin" - * resource_pool_id = data.vsphere_resource_pool.default.id - * datastore_id = data.vsphere_datastore.datastore.id - * host_system_id = data.vsphere_host.host.id - * remote_ovf_url = "https://download3.vmware.com/software/vmw-tools/nested-esxi/Nested_ESXi7.0u3_Appliance_Template_v1.ova" - * ovf_network_map = { - * "VM Network" : data.vsphere_network.network.id - * } - * } - * - * ## Local OVF/OVA Source - * - * data "vsphere_ovf_vm_template" "ovfLocal" { - * name = "Nested-ESXi-7.0-Terraform-Deploy-2" - * disk_provisioning = "thin" - * resource_pool_id = data.vsphere_resource_pool.default.id - * datastore_id = data.vsphere_datastore.datastore.id - * host_system_id = data.vsphere_host.host.id - * local_ovf_path = "/Volume/Storage/OVA/Nested_ESXi7.0u3_Appliance_Template_v1.ova" - * ovf_network_map = { - * "VM Network" : data.vsphere_network.network.id - * } - * } - * - * ## Deployment of VM from Remote OVF - * - * resource "vsphere_virtual_machine" "vmFromRemoteOvf" { - * name = "Nested-ESXi-7.0-Terraform-Deploy-1" - * datacenter_id = data.vsphere_datacenter.datacenter.id - * datastore_id = data.vsphere_datastore.datastore.id - * host_system_id = data.vsphere_host.host.id - * resource_pool_id = data.vsphere_resource_pool.default.id - * num_cpus = data.vsphere_ovf_vm_template.ovfRemote.num_cpus - * num_cores_per_socket = data.vsphere_ovf_vm_template.ovfRemote.num_cores_per_socket - * memory = data.vsphere_ovf_vm_template.ovfRemote.memory - * guest_id = data.vsphere_ovf_vm_template.ovfRemote.guest_id - * firmware = data.vsphere_ovf_vm_template.ovfRemote.firmware - * scsi_type = data.vsphere_ovf_vm_template.ovfRemote.scsi_type - * nested_hv_enabled = data.vsphere_ovf_vm_template.ovfRemote.nested_hv_enabled - * dynamic "network_interface" { - * for_each = data.vsphere_ovf_vm_template.ovfRemote.ovf_network_map - * content { - * network_id = network_interface.value - * } - * } - * wait_for_guest_net_timeout = 0 - * wait_for_guest_ip_timeout = 0 - * - * ovf_deploy { - * allow_unverified_ssl_cert = false - * remote_ovf_url = data.vsphere_ovf_vm_template.ovfRemote.remote_ovf_url - * disk_provisioning = data.vsphere_ovf_vm_template.ovfRemote.disk_provisioning - * ovf_network_map = data.vsphere_ovf_vm_template.ovfRemote.ovf_network_map - * } - * - * vapp { - * properties = { - * "guestinfo.hostname" = "nested-esxi-01.example.com", - * "guestinfo.ipaddress" = "172.16.11.101", - * "guestinfo.netmask" = "255.255.255.0", - * "guestinfo.gateway" = "172.16.11.1", - * "guestinfo.dns" = "172.16.11.4", - * "guestinfo.domain" = "example.com", - * "guestinfo.ntp" = "ntp.example.com", - * "guestinfo.password" = "VMware1!", - * "guestinfo.ssh" = "True" - * } - * } - * - * lifecycle { - * ignore_changes = [ - * annotation, - * disk[0].io_share_count, - * disk[1].io_share_count, - * disk[2].io_share_count, - * vapp[0].properties, - * ] - * } - * } - * */ public static CompletableFuture getOvfVmTemplatePlain(GetOvfVmTemplatePlainArgs args) { return getOvfVmTemplatePlain(args, InvokeOptions.Empty); @@ -3408,90 +3618,6 @@ public static CompletableFuture getOvfVmTemplatePlain(Ge * vSphere and extract its hardware settings in a form that can be then used as * inputs for a `vsphere.VirtualMachine` resource. * - * ## Remote OVF/OVA Source - * - * data "vsphere_ovf_vm_template" "ovfRemote" { - * name = "Nested-ESXi-7.0-Terraform-Deploy-1" - * disk_provisioning = "thin" - * resource_pool_id = data.vsphere_resource_pool.default.id - * datastore_id = data.vsphere_datastore.datastore.id - * host_system_id = data.vsphere_host.host.id - * remote_ovf_url = "https://download3.vmware.com/software/vmw-tools/nested-esxi/Nested_ESXi7.0u3_Appliance_Template_v1.ova" - * ovf_network_map = { - * "VM Network" : data.vsphere_network.network.id - * } - * } - * - * ## Local OVF/OVA Source - * - * data "vsphere_ovf_vm_template" "ovfLocal" { - * name = "Nested-ESXi-7.0-Terraform-Deploy-2" - * disk_provisioning = "thin" - * resource_pool_id = data.vsphere_resource_pool.default.id - * datastore_id = data.vsphere_datastore.datastore.id - * host_system_id = data.vsphere_host.host.id - * local_ovf_path = "/Volume/Storage/OVA/Nested_ESXi7.0u3_Appliance_Template_v1.ova" - * ovf_network_map = { - * "VM Network" : data.vsphere_network.network.id - * } - * } - * - * ## Deployment of VM from Remote OVF - * - * resource "vsphere_virtual_machine" "vmFromRemoteOvf" { - * name = "Nested-ESXi-7.0-Terraform-Deploy-1" - * datacenter_id = data.vsphere_datacenter.datacenter.id - * datastore_id = data.vsphere_datastore.datastore.id - * host_system_id = data.vsphere_host.host.id - * resource_pool_id = data.vsphere_resource_pool.default.id - * num_cpus = data.vsphere_ovf_vm_template.ovfRemote.num_cpus - * num_cores_per_socket = data.vsphere_ovf_vm_template.ovfRemote.num_cores_per_socket - * memory = data.vsphere_ovf_vm_template.ovfRemote.memory - * guest_id = data.vsphere_ovf_vm_template.ovfRemote.guest_id - * firmware = data.vsphere_ovf_vm_template.ovfRemote.firmware - * scsi_type = data.vsphere_ovf_vm_template.ovfRemote.scsi_type - * nested_hv_enabled = data.vsphere_ovf_vm_template.ovfRemote.nested_hv_enabled - * dynamic "network_interface" { - * for_each = data.vsphere_ovf_vm_template.ovfRemote.ovf_network_map - * content { - * network_id = network_interface.value - * } - * } - * wait_for_guest_net_timeout = 0 - * wait_for_guest_ip_timeout = 0 - * - * ovf_deploy { - * allow_unverified_ssl_cert = false - * remote_ovf_url = data.vsphere_ovf_vm_template.ovfRemote.remote_ovf_url - * disk_provisioning = data.vsphere_ovf_vm_template.ovfRemote.disk_provisioning - * ovf_network_map = data.vsphere_ovf_vm_template.ovfRemote.ovf_network_map - * } - * - * vapp { - * properties = { - * "guestinfo.hostname" = "nested-esxi-01.example.com", - * "guestinfo.ipaddress" = "172.16.11.101", - * "guestinfo.netmask" = "255.255.255.0", - * "guestinfo.gateway" = "172.16.11.1", - * "guestinfo.dns" = "172.16.11.4", - * "guestinfo.domain" = "example.com", - * "guestinfo.ntp" = "ntp.example.com", - * "guestinfo.password" = "VMware1!", - * "guestinfo.ssh" = "True" - * } - * } - * - * lifecycle { - * ignore_changes = [ - * annotation, - * disk[0].io_share_count, - * disk[1].io_share_count, - * disk[2].io_share_count, - * vapp[0].properties, - * ] - * } - * } - * */ public static Output getOvfVmTemplate(GetOvfVmTemplateArgs args, InvokeOptions options) { return Deployment.getInstance().invoke("vsphere:index/getOvfVmTemplate:getOvfVmTemplate", TypeShape.of(GetOvfVmTemplateResult.class), args, Utilities.withVersion(options)); @@ -3501,90 +3627,6 @@ public static Output getOvfVmTemplate(GetOvfVmTemplateAr * vSphere and extract its hardware settings in a form that can be then used as * inputs for a `vsphere.VirtualMachine` resource. * - * ## Remote OVF/OVA Source - * - * data "vsphere_ovf_vm_template" "ovfRemote" { - * name = "Nested-ESXi-7.0-Terraform-Deploy-1" - * disk_provisioning = "thin" - * resource_pool_id = data.vsphere_resource_pool.default.id - * datastore_id = data.vsphere_datastore.datastore.id - * host_system_id = data.vsphere_host.host.id - * remote_ovf_url = "https://download3.vmware.com/software/vmw-tools/nested-esxi/Nested_ESXi7.0u3_Appliance_Template_v1.ova" - * ovf_network_map = { - * "VM Network" : data.vsphere_network.network.id - * } - * } - * - * ## Local OVF/OVA Source - * - * data "vsphere_ovf_vm_template" "ovfLocal" { - * name = "Nested-ESXi-7.0-Terraform-Deploy-2" - * disk_provisioning = "thin" - * resource_pool_id = data.vsphere_resource_pool.default.id - * datastore_id = data.vsphere_datastore.datastore.id - * host_system_id = data.vsphere_host.host.id - * local_ovf_path = "/Volume/Storage/OVA/Nested_ESXi7.0u3_Appliance_Template_v1.ova" - * ovf_network_map = { - * "VM Network" : data.vsphere_network.network.id - * } - * } - * - * ## Deployment of VM from Remote OVF - * - * resource "vsphere_virtual_machine" "vmFromRemoteOvf" { - * name = "Nested-ESXi-7.0-Terraform-Deploy-1" - * datacenter_id = data.vsphere_datacenter.datacenter.id - * datastore_id = data.vsphere_datastore.datastore.id - * host_system_id = data.vsphere_host.host.id - * resource_pool_id = data.vsphere_resource_pool.default.id - * num_cpus = data.vsphere_ovf_vm_template.ovfRemote.num_cpus - * num_cores_per_socket = data.vsphere_ovf_vm_template.ovfRemote.num_cores_per_socket - * memory = data.vsphere_ovf_vm_template.ovfRemote.memory - * guest_id = data.vsphere_ovf_vm_template.ovfRemote.guest_id - * firmware = data.vsphere_ovf_vm_template.ovfRemote.firmware - * scsi_type = data.vsphere_ovf_vm_template.ovfRemote.scsi_type - * nested_hv_enabled = data.vsphere_ovf_vm_template.ovfRemote.nested_hv_enabled - * dynamic "network_interface" { - * for_each = data.vsphere_ovf_vm_template.ovfRemote.ovf_network_map - * content { - * network_id = network_interface.value - * } - * } - * wait_for_guest_net_timeout = 0 - * wait_for_guest_ip_timeout = 0 - * - * ovf_deploy { - * allow_unverified_ssl_cert = false - * remote_ovf_url = data.vsphere_ovf_vm_template.ovfRemote.remote_ovf_url - * disk_provisioning = data.vsphere_ovf_vm_template.ovfRemote.disk_provisioning - * ovf_network_map = data.vsphere_ovf_vm_template.ovfRemote.ovf_network_map - * } - * - * vapp { - * properties = { - * "guestinfo.hostname" = "nested-esxi-01.example.com", - * "guestinfo.ipaddress" = "172.16.11.101", - * "guestinfo.netmask" = "255.255.255.0", - * "guestinfo.gateway" = "172.16.11.1", - * "guestinfo.dns" = "172.16.11.4", - * "guestinfo.domain" = "example.com", - * "guestinfo.ntp" = "ntp.example.com", - * "guestinfo.password" = "VMware1!", - * "guestinfo.ssh" = "True" - * } - * } - * - * lifecycle { - * ignore_changes = [ - * annotation, - * disk[0].io_share_count, - * disk[1].io_share_count, - * disk[2].io_share_count, - * vapp[0].properties, - * ] - * } - * } - * */ public static CompletableFuture getOvfVmTemplatePlain(GetOvfVmTemplatePlainArgs args, InvokeOptions options) { return Deployment.getInstance().invokeAsync("vsphere:index/getOvfVmTemplate:getOvfVmTemplate", TypeShape.of(GetOvfVmTemplateResult.class), args, Utilities.withVersion(options)); @@ -3598,6 +3640,8 @@ public static CompletableFuture getOvfVmTemplatePlain(Ge * requires vCenter Server. * * ## Example Usage + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -3630,6 +3674,7 @@ public static CompletableFuture getOvfVmTemplatePlain(Ge * } * } * ``` + * <!--End PulumiCodeChooser --> * */ public static Output getPolicy(GetPolicyArgs args) { @@ -3644,6 +3689,8 @@ public static Output getPolicy(GetPolicyArgs args) { * requires vCenter Server. * * ## Example Usage + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -3676,6 +3723,7 @@ public static Output getPolicy(GetPolicyArgs args) { * } * } * ``` + * <!--End PulumiCodeChooser --> * */ public static CompletableFuture getPolicyPlain(GetPolicyPlainArgs args) { @@ -3690,6 +3738,8 @@ public static CompletableFuture getPolicyPlain(GetPolicyPlainAr * requires vCenter Server. * * ## Example Usage + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -3722,6 +3772,7 @@ public static CompletableFuture getPolicyPlain(GetPolicyPlainAr * } * } * ``` + * <!--End PulumiCodeChooser --> * */ public static Output getPolicy(GetPolicyArgs args, InvokeOptions options) { @@ -3736,6 +3787,8 @@ public static Output getPolicy(GetPolicyArgs args, InvokeOption * requires vCenter Server. * * ## Example Usage + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -3768,6 +3821,7 @@ public static Output getPolicy(GetPolicyArgs args, InvokeOption * } * } * ``` + * <!--End PulumiCodeChooser --> * */ public static CompletableFuture getPolicyPlain(GetPolicyPlainArgs args, InvokeOptions options) { @@ -3780,6 +3834,8 @@ public static CompletableFuture getPolicyPlain(GetPolicyPlainAr * `vsphere.VirtualMachine` resource. * * ## Example Usage + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -3814,6 +3870,8 @@ public static CompletableFuture getPolicyPlain(GetPolicyPlainAr * } * } * ``` + * <!--End PulumiCodeChooser --> + * * ### Specifying the Root Resource Pool for a Standalone ESXi Host * * > **NOTE:** Returning the root resource pool for a cluster can be done @@ -3823,6 +3881,8 @@ public static CompletableFuture getPolicyPlain(GetPolicyPlainAr * All compute resources in vSphere have a resource pool, even if one has not been * explicitly created. This resource pool is referred to as the * _root resource pool_ and can be looked up by specifying the path. + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -3852,6 +3912,7 @@ public static CompletableFuture getPolicyPlain(GetPolicyPlainAr * } * } * ``` + * <!--End PulumiCodeChooser --> * * For more information on the root resource pool, see [Managing Resource Pools][vmware-docs-resource-pools] in the vSphere documentation. * @@ -3868,6 +3929,8 @@ public static Output getResourcePool() { * `vsphere.VirtualMachine` resource. * * ## Example Usage + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -3902,6 +3965,8 @@ public static Output getResourcePool() { * } * } * ``` + * <!--End PulumiCodeChooser --> + * * ### Specifying the Root Resource Pool for a Standalone ESXi Host * * > **NOTE:** Returning the root resource pool for a cluster can be done @@ -3911,6 +3976,8 @@ public static Output getResourcePool() { * All compute resources in vSphere have a resource pool, even if one has not been * explicitly created. This resource pool is referred to as the * _root resource pool_ and can be looked up by specifying the path. + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -3940,6 +4007,7 @@ public static Output getResourcePool() { * } * } * ``` + * <!--End PulumiCodeChooser --> * * For more information on the root resource pool, see [Managing Resource Pools][vmware-docs-resource-pools] in the vSphere documentation. * @@ -3956,6 +4024,8 @@ public static CompletableFuture getResourcePoolPlain() { * `vsphere.VirtualMachine` resource. * * ## Example Usage + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -3990,6 +4060,8 @@ public static CompletableFuture getResourcePoolPlain() { * } * } * ``` + * <!--End PulumiCodeChooser --> + * * ### Specifying the Root Resource Pool for a Standalone ESXi Host * * > **NOTE:** Returning the root resource pool for a cluster can be done @@ -3999,6 +4071,8 @@ public static CompletableFuture getResourcePoolPlain() { * All compute resources in vSphere have a resource pool, even if one has not been * explicitly created. This resource pool is referred to as the * _root resource pool_ and can be looked up by specifying the path. + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -4028,6 +4102,7 @@ public static CompletableFuture getResourcePoolPlain() { * } * } * ``` + * <!--End PulumiCodeChooser --> * * For more information on the root resource pool, see [Managing Resource Pools][vmware-docs-resource-pools] in the vSphere documentation. * @@ -4044,6 +4119,8 @@ public static Output getResourcePool(GetResourcePoolArgs * `vsphere.VirtualMachine` resource. * * ## Example Usage + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -4078,6 +4155,8 @@ public static Output getResourcePool(GetResourcePoolArgs * } * } * ``` + * <!--End PulumiCodeChooser --> + * * ### Specifying the Root Resource Pool for a Standalone ESXi Host * * > **NOTE:** Returning the root resource pool for a cluster can be done @@ -4087,6 +4166,8 @@ public static Output getResourcePool(GetResourcePoolArgs * All compute resources in vSphere have a resource pool, even if one has not been * explicitly created. This resource pool is referred to as the * _root resource pool_ and can be looked up by specifying the path. + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -4116,6 +4197,7 @@ public static Output getResourcePool(GetResourcePoolArgs * } * } * ``` + * <!--End PulumiCodeChooser --> * * For more information on the root resource pool, see [Managing Resource Pools][vmware-docs-resource-pools] in the vSphere documentation. * @@ -4132,6 +4214,8 @@ public static CompletableFuture getResourcePoolPlain(GetR * `vsphere.VirtualMachine` resource. * * ## Example Usage + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -4166,6 +4250,8 @@ public static CompletableFuture getResourcePoolPlain(GetR * } * } * ``` + * <!--End PulumiCodeChooser --> + * * ### Specifying the Root Resource Pool for a Standalone ESXi Host * * > **NOTE:** Returning the root resource pool for a cluster can be done @@ -4175,6 +4261,8 @@ public static CompletableFuture getResourcePoolPlain(GetR * All compute resources in vSphere have a resource pool, even if one has not been * explicitly created. This resource pool is referred to as the * _root resource pool_ and can be looked up by specifying the path. + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -4204,6 +4292,7 @@ public static CompletableFuture getResourcePoolPlain(GetR * } * } * ``` + * <!--End PulumiCodeChooser --> * * For more information on the root resource pool, see [Managing Resource Pools][vmware-docs-resource-pools] in the vSphere documentation. * @@ -4220,6 +4309,8 @@ public static Output getResourcePool(GetResourcePoolArgs * `vsphere.VirtualMachine` resource. * * ## Example Usage + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -4254,6 +4345,8 @@ public static Output getResourcePool(GetResourcePoolArgs * } * } * ``` + * <!--End PulumiCodeChooser --> + * * ### Specifying the Root Resource Pool for a Standalone ESXi Host * * > **NOTE:** Returning the root resource pool for a cluster can be done @@ -4263,6 +4356,8 @@ public static Output getResourcePool(GetResourcePoolArgs * All compute resources in vSphere have a resource pool, even if one has not been * explicitly created. This resource pool is referred to as the * _root resource pool_ and can be looked up by specifying the path. + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -4292,6 +4387,7 @@ public static Output getResourcePool(GetResourcePoolArgs * } * } * ``` + * <!--End PulumiCodeChooser --> * * For more information on the root resource pool, see [Managing Resource Pools][vmware-docs-resource-pools] in the vSphere documentation. * @@ -4306,6 +4402,8 @@ public static CompletableFuture getResourcePoolPlain(GetR * with a role given its name or display label. * * ## Example Usage + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -4334,6 +4432,7 @@ public static CompletableFuture getResourcePoolPlain(GetR * } * } * ``` + * <!--End PulumiCodeChooser --> * */ public static Output getRole(GetRoleArgs args) { @@ -4344,6 +4443,8 @@ public static Output getRole(GetRoleArgs args) { * with a role given its name or display label. * * ## Example Usage + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -4372,6 +4473,7 @@ public static Output getRole(GetRoleArgs args) { * } * } * ``` + * <!--End PulumiCodeChooser --> * */ public static CompletableFuture getRolePlain(GetRolePlainArgs args) { @@ -4382,6 +4484,8 @@ public static CompletableFuture getRolePlain(GetRolePlainArgs arg * with a role given its name or display label. * * ## Example Usage + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -4410,6 +4514,7 @@ public static CompletableFuture getRolePlain(GetRolePlainArgs arg * } * } * ``` + * <!--End PulumiCodeChooser --> * */ public static Output getRole(GetRoleArgs args, InvokeOptions options) { @@ -4420,6 +4525,8 @@ public static Output getRole(GetRoleArgs args, InvokeOptions opti * with a role given its name or display label. * * ## Example Usage + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -4448,6 +4555,7 @@ public static Output getRole(GetRoleArgs args, InvokeOptions opti * } * } * ``` + * <!--End PulumiCodeChooser --> * */ public static CompletableFuture getRolePlain(GetRolePlainArgs args, InvokeOptions options) { @@ -4464,6 +4572,8 @@ public static CompletableFuture getRolePlain(GetRolePlainArgs arg * requires vCenter Server. * * ## Example Usage + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -4498,6 +4608,7 @@ public static CompletableFuture getRolePlain(GetRolePlainArgs arg * } * } * ``` + * <!--End PulumiCodeChooser --> * */ public static Output getTag(GetTagArgs args) { @@ -4514,6 +4625,8 @@ public static Output getTag(GetTagArgs args) { * requires vCenter Server. * * ## Example Usage + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -4548,6 +4661,7 @@ public static Output getTag(GetTagArgs args) { * } * } * ``` + * <!--End PulumiCodeChooser --> * */ public static CompletableFuture getTagPlain(GetTagPlainArgs args) { @@ -4564,6 +4678,8 @@ public static CompletableFuture getTagPlain(GetTagPlainArgs args) * requires vCenter Server. * * ## Example Usage + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -4598,6 +4714,7 @@ public static CompletableFuture getTagPlain(GetTagPlainArgs args) * } * } * ``` + * <!--End PulumiCodeChooser --> * */ public static Output getTag(GetTagArgs args, InvokeOptions options) { @@ -4614,6 +4731,8 @@ public static Output getTag(GetTagArgs args, InvokeOptions options * requires vCenter Server. * * ## Example Usage + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -4648,6 +4767,7 @@ public static Output getTag(GetTagArgs args, InvokeOptions options * } * } * ``` + * <!--End PulumiCodeChooser --> * */ public static CompletableFuture getTagPlain(GetTagPlainArgs args, InvokeOptions options) { @@ -4664,6 +4784,8 @@ public static CompletableFuture getTagPlain(GetTagPlainArgs args, * requires vCenter Server. * * ## Example Usage + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -4692,6 +4814,7 @@ public static CompletableFuture getTagPlain(GetTagPlainArgs args, * } * } * ``` + * <!--End PulumiCodeChooser --> * */ public static Output getTagCategory(GetTagCategoryArgs args) { @@ -4708,6 +4831,8 @@ public static Output getTagCategory(GetTagCategoryArgs arg * requires vCenter Server. * * ## Example Usage + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -4736,6 +4861,7 @@ public static Output getTagCategory(GetTagCategoryArgs arg * } * } * ``` + * <!--End PulumiCodeChooser --> * */ public static CompletableFuture getTagCategoryPlain(GetTagCategoryPlainArgs args) { @@ -4752,6 +4878,8 @@ public static CompletableFuture getTagCategoryPlain(GetTag * requires vCenter Server. * * ## Example Usage + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -4780,6 +4908,7 @@ public static CompletableFuture getTagCategoryPlain(GetTag * } * } * ``` + * <!--End PulumiCodeChooser --> * */ public static Output getTagCategory(GetTagCategoryArgs args, InvokeOptions options) { @@ -4796,6 +4925,8 @@ public static Output getTagCategory(GetTagCategoryArgs arg * requires vCenter Server. * * ## Example Usage + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -4824,6 +4955,7 @@ public static Output getTagCategory(GetTagCategoryArgs arg * } * } * ``` + * <!--End PulumiCodeChooser --> * */ public static CompletableFuture getTagCategoryPlain(GetTagCategoryPlainArgs args, InvokeOptions options) { @@ -4836,6 +4968,8 @@ public static CompletableFuture getTagCategoryPlain(GetTag * `vsphere.VirtualMachine` resource. * * ## Example Usage + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -4870,6 +5004,7 @@ public static CompletableFuture getTagCategoryPlain(GetTag * } * } * ``` + * <!--End PulumiCodeChooser --> * */ public static Output getVappContainer(GetVappContainerArgs args) { @@ -4882,6 +5017,8 @@ public static Output getVappContainer(GetVappContainerAr * `vsphere.VirtualMachine` resource. * * ## Example Usage + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -4916,6 +5053,7 @@ public static Output getVappContainer(GetVappContainerAr * } * } * ``` + * <!--End PulumiCodeChooser --> * */ public static CompletableFuture getVappContainerPlain(GetVappContainerPlainArgs args) { @@ -4928,6 +5066,8 @@ public static CompletableFuture getVappContainerPlain(Ge * `vsphere.VirtualMachine` resource. * * ## Example Usage + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -4962,6 +5102,7 @@ public static CompletableFuture getVappContainerPlain(Ge * } * } * ``` + * <!--End PulumiCodeChooser --> * */ public static Output getVappContainer(GetVappContainerArgs args, InvokeOptions options) { @@ -4974,6 +5115,8 @@ public static Output getVappContainer(GetVappContainerAr * `vsphere.VirtualMachine` resource. * * ## Example Usage + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -5008,6 +5151,7 @@ public static Output getVappContainer(GetVappContainerAr * } * } * ``` + * <!--End PulumiCodeChooser --> * */ public static CompletableFuture getVappContainerPlain(GetVappContainerPlainArgs args, InvokeOptions options) { @@ -5024,6 +5168,8 @@ public static CompletableFuture getVappContainerPlain(Ge * * In the following example, a virtual machine template is returned by its * unique name within the `vsphere.Datacenter`. + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -5058,8 +5204,11 @@ public static CompletableFuture getVappContainerPlain(Ge * } * } * ``` + * <!--End PulumiCodeChooser --> * In the following example, each virtual machine template is returned by its * unique full path within the `vsphere.Datacenter`. + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -5099,6 +5248,7 @@ public static CompletableFuture getVappContainerPlain(Ge * } * } * ``` + * <!--End PulumiCodeChooser --> * */ public static Output getVirtualMachine() { @@ -5115,6 +5265,8 @@ public static Output getVirtualMachine() { * * In the following example, a virtual machine template is returned by its * unique name within the `vsphere.Datacenter`. + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -5149,8 +5301,11 @@ public static Output getVirtualMachine() { * } * } * ``` + * <!--End PulumiCodeChooser --> * In the following example, each virtual machine template is returned by its * unique full path within the `vsphere.Datacenter`. + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -5190,6 +5345,7 @@ public static Output getVirtualMachine() { * } * } * ``` + * <!--End PulumiCodeChooser --> * */ public static CompletableFuture getVirtualMachinePlain() { @@ -5206,6 +5362,8 @@ public static CompletableFuture getVirtualMachinePlain( * * In the following example, a virtual machine template is returned by its * unique name within the `vsphere.Datacenter`. + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -5240,8 +5398,11 @@ public static CompletableFuture getVirtualMachinePlain( * } * } * ``` + * <!--End PulumiCodeChooser --> * In the following example, each virtual machine template is returned by its * unique full path within the `vsphere.Datacenter`. + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -5281,6 +5442,7 @@ public static CompletableFuture getVirtualMachinePlain( * } * } * ``` + * <!--End PulumiCodeChooser --> * */ public static Output getVirtualMachine(GetVirtualMachineArgs args) { @@ -5297,6 +5459,8 @@ public static Output getVirtualMachine(GetVirtualMachin * * In the following example, a virtual machine template is returned by its * unique name within the `vsphere.Datacenter`. + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -5331,8 +5495,11 @@ public static Output getVirtualMachine(GetVirtualMachin * } * } * ``` + * <!--End PulumiCodeChooser --> * In the following example, each virtual machine template is returned by its * unique full path within the `vsphere.Datacenter`. + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -5372,6 +5539,7 @@ public static Output getVirtualMachine(GetVirtualMachin * } * } * ``` + * <!--End PulumiCodeChooser --> * */ public static CompletableFuture getVirtualMachinePlain(GetVirtualMachinePlainArgs args) { @@ -5388,6 +5556,8 @@ public static CompletableFuture getVirtualMachinePlain( * * In the following example, a virtual machine template is returned by its * unique name within the `vsphere.Datacenter`. + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -5422,8 +5592,11 @@ public static CompletableFuture getVirtualMachinePlain( * } * } * ``` + * <!--End PulumiCodeChooser --> * In the following example, each virtual machine template is returned by its * unique full path within the `vsphere.Datacenter`. + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -5463,6 +5636,7 @@ public static CompletableFuture getVirtualMachinePlain( * } * } * ``` + * <!--End PulumiCodeChooser --> * */ public static Output getVirtualMachine(GetVirtualMachineArgs args, InvokeOptions options) { @@ -5479,6 +5653,8 @@ public static Output getVirtualMachine(GetVirtualMachin * * In the following example, a virtual machine template is returned by its * unique name within the `vsphere.Datacenter`. + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -5513,8 +5689,11 @@ public static Output getVirtualMachine(GetVirtualMachin * } * } * ``` + * <!--End PulumiCodeChooser --> * In the following example, each virtual machine template is returned by its * unique full path within the `vsphere.Datacenter`. + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -5554,6 +5733,7 @@ public static Output getVirtualMachine(GetVirtualMachin * } * } * ``` + * <!--End PulumiCodeChooser --> * */ public static CompletableFuture getVirtualMachinePlain(GetVirtualMachinePlainArgs args, InvokeOptions options) { @@ -5566,6 +5746,8 @@ public static CompletableFuture getVirtualMachinePlain( * datastores based off a set of discovered disks. * * ## Example Usage + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -5607,6 +5789,7 @@ public static CompletableFuture getVirtualMachinePlain( * } * } * ``` + * <!--End PulumiCodeChooser --> * */ public static Output getVmfsDisks(GetVmfsDisksArgs args) { @@ -5619,6 +5802,8 @@ public static Output getVmfsDisks(GetVmfsDisksArgs args) { * datastores based off a set of discovered disks. * * ## Example Usage + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -5660,6 +5845,7 @@ public static Output getVmfsDisks(GetVmfsDisksArgs args) { * } * } * ``` + * <!--End PulumiCodeChooser --> * */ public static CompletableFuture getVmfsDisksPlain(GetVmfsDisksPlainArgs args) { @@ -5672,6 +5858,8 @@ public static CompletableFuture getVmfsDisksPlain(GetVmfsDis * datastores based off a set of discovered disks. * * ## Example Usage + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -5713,6 +5901,7 @@ public static CompletableFuture getVmfsDisksPlain(GetVmfsDis * } * } * ``` + * <!--End PulumiCodeChooser --> * */ public static Output getVmfsDisks(GetVmfsDisksArgs args, InvokeOptions options) { @@ -5725,6 +5914,8 @@ public static Output getVmfsDisks(GetVmfsDisksArgs args, Inv * datastores based off a set of discovered disks. * * ## Example Usage + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -5766,6 +5957,7 @@ public static Output getVmfsDisks(GetVmfsDisksArgs args, Inv * } * } * ``` + * <!--End PulumiCodeChooser --> * */ public static CompletableFuture getVmfsDisksPlain(GetVmfsDisksPlainArgs args, InvokeOptions options) { diff --git a/sdk/java/src/main/java/com/pulumi/vsphere/inputs/ComputeClusterVsanStretchedClusterArgs.java b/sdk/java/src/main/java/com/pulumi/vsphere/inputs/ComputeClusterVsanStretchedClusterArgs.java index 6a57cf87..e9d9cb15 100644 --- a/sdk/java/src/main/java/com/pulumi/vsphere/inputs/ComputeClusterVsanStretchedClusterArgs.java +++ b/sdk/java/src/main/java/com/pulumi/vsphere/inputs/ComputeClusterVsanStretchedClusterArgs.java @@ -67,6 +67,8 @@ public Output> secondaryFaultDomainHostIds() { * * > **NOTE:** You must disable vSphere HA before you enable vSAN on the cluster. * You can enable or re-enable vSphere HA after vSAN is configured. + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -132,6 +134,7 @@ public Output> secondaryFaultDomainHostIds() { * } * } * ``` + * <!--End PulumiCodeChooser --> * */ @Import(name="secondaryFaultDomainName") @@ -142,6 +145,8 @@ public Output> secondaryFaultDomainHostIds() { * * > **NOTE:** You must disable vSphere HA before you enable vSAN on the cluster. * You can enable or re-enable vSphere HA after vSAN is configured. + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -207,6 +212,7 @@ public Output> secondaryFaultDomainHostIds() { * } * } * ``` + * <!--End PulumiCodeChooser --> * */ public Optional> secondaryFaultDomainName() { @@ -344,6 +350,8 @@ public Builder secondaryFaultDomainHostIds(String... secondaryFaultDomainHostIds * * > **NOTE:** You must disable vSphere HA before you enable vSAN on the cluster. * You can enable or re-enable vSphere HA after vSAN is configured. + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -409,6 +417,7 @@ public Builder secondaryFaultDomainHostIds(String... secondaryFaultDomainHostIds * } * } * ``` + * <!--End PulumiCodeChooser --> * * @return builder * @@ -423,6 +432,8 @@ public Builder secondaryFaultDomainName(@Nullable Output secondaryFaultD * * > **NOTE:** You must disable vSphere HA before you enable vSAN on the cluster. * You can enable or re-enable vSphere HA after vSAN is configured. + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -488,6 +499,7 @@ public Builder secondaryFaultDomainName(@Nullable Output secondaryFaultD * } * } * ``` + * <!--End PulumiCodeChooser --> * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/vsphere/inputs/DatastoreClusterState.java b/sdk/java/src/main/java/com/pulumi/vsphere/inputs/DatastoreClusterState.java index 957801dd..e508d65e 100644 --- a/sdk/java/src/main/java/com/pulumi/vsphere/inputs/DatastoreClusterState.java +++ b/sdk/java/src/main/java/com/pulumi/vsphere/inputs/DatastoreClusterState.java @@ -314,7 +314,7 @@ public Optional> sdrsIoLoadImbalanceThreshold() { * recommendations to move VMs off of a datastore. Note that this setting should * only be set if `sdrs_io_reservable_percent_threshold` cannot make an accurate * estimate of the capacity of the datastores in your cluster, and should be set - * to roughly 50-60% of the worst case peak performance of the backing LUNs. + * to roughly 50-60%!o(MISSING)f the worst case peak performance of the backing LUNs. * */ @Import(name="sdrsIoReservableIopsThreshold") @@ -326,7 +326,7 @@ public Optional> sdrsIoLoadImbalanceThreshold() { * recommendations to move VMs off of a datastore. Note that this setting should * only be set if `sdrs_io_reservable_percent_threshold` cannot make an accurate * estimate of the capacity of the datastores in your cluster, and should be set - * to roughly 50-60% of the worst case peak performance of the backing LUNs. + * to roughly 50-60%!o(MISSING)f the worst case peak performance of the backing LUNs. * */ public Optional> sdrsIoReservableIopsThreshold() { @@ -931,7 +931,7 @@ public Builder sdrsIoLoadImbalanceThreshold(Integer sdrsIoLoadImbalanceThreshold * recommendations to move VMs off of a datastore. Note that this setting should * only be set if `sdrs_io_reservable_percent_threshold` cannot make an accurate * estimate of the capacity of the datastores in your cluster, and should be set - * to roughly 50-60% of the worst case peak performance of the backing LUNs. + * to roughly 50-60%!o(MISSING)f the worst case peak performance of the backing LUNs. * * @return builder * @@ -947,7 +947,7 @@ public Builder sdrsIoReservableIopsThreshold(@Nullable Output sdrsIoRes * recommendations to move VMs off of a datastore. Note that this setting should * only be set if `sdrs_io_reservable_percent_threshold` cannot make an accurate * estimate of the capacity of the datastores in your cluster, and should be set - * to roughly 50-60% of the worst case peak performance of the backing LUNs. + * to roughly 50-60%!o(MISSING)f the worst case peak performance of the backing LUNs. * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/vsphere/inputs/DistributedVirtualSwitchState.java b/sdk/java/src/main/java/com/pulumi/vsphere/inputs/DistributedVirtualSwitchState.java index 39bb00e0..ce6cbfec 100644 --- a/sdk/java/src/main/java/com/pulumi/vsphere/inputs/DistributedVirtualSwitchState.java +++ b/sdk/java/src/main/java/com/pulumi/vsphere/inputs/DistributedVirtualSwitchState.java @@ -1045,7 +1045,8 @@ public Optional> netflowObservationDomainId() { * The ratio of total number of packets to * the number of packets analyzed. The default is `0`, which indicates that the * VDS should analyze all packets. The maximum value is `1000`, which - * indicates an analysis rate of 0.001%. + * indicates an analysis rate of 0.001%! + * (MISSING) * */ @Import(name="netflowSamplingRate") @@ -1055,7 +1056,8 @@ public Optional> netflowObservationDomainId() { * @return The ratio of total number of packets to * the number of packets analyzed. The default is `0`, which indicates that the * VDS should analyze all packets. The maximum value is `1000`, which - * indicates an analysis rate of 0.001%. + * indicates an analysis rate of 0.001%! + * (MISSING) * */ public Optional> netflowSamplingRate() { @@ -1465,6 +1467,8 @@ public Optional> vlanId() { * and `max_vlan` sub-arguments to define the tagged VLAN range. Multiple * `vlan_range` definitions are allowed, but they must not overlap. Example * below: + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -1502,6 +1506,7 @@ public Optional> vlanId() { * } * } * ``` + * <!--End PulumiCodeChooser --> * */ @Import(name="vlanRanges") @@ -1512,6 +1517,8 @@ public Optional> vlanId() { * and `max_vlan` sub-arguments to define the tagged VLAN range. Multiple * `vlan_range` definitions are allowed, but they must not overlap. Example * below: + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -1549,6 +1556,7 @@ public Optional> vlanId() { * } * } * ``` + * <!--End PulumiCodeChooser --> * */ public Optional>> vlanRanges() { @@ -3206,7 +3214,8 @@ public Builder netflowObservationDomainId(Integer netflowObservationDomainId) { * @param netflowSamplingRate The ratio of total number of packets to * the number of packets analyzed. The default is `0`, which indicates that the * VDS should analyze all packets. The maximum value is `1000`, which - * indicates an analysis rate of 0.001%. + * indicates an analysis rate of 0.001%! + * (MISSING) * * @return builder * @@ -3220,7 +3229,8 @@ public Builder netflowSamplingRate(@Nullable Output netflowSamplingRate * @param netflowSamplingRate The ratio of total number of packets to * the number of packets analyzed. The default is `0`, which indicates that the * VDS should analyze all packets. The maximum value is `1000`, which - * indicates an analysis rate of 0.001%. + * indicates an analysis rate of 0.001%! + * (MISSING) * * @return builder * @@ -3826,6 +3836,8 @@ public Builder vlanId(Integer vlanId) { * and `max_vlan` sub-arguments to define the tagged VLAN range. Multiple * `vlan_range` definitions are allowed, but they must not overlap. Example * below: + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -3863,6 +3875,7 @@ public Builder vlanId(Integer vlanId) { * } * } * ``` + * <!--End PulumiCodeChooser --> * * @return builder * @@ -3877,6 +3890,8 @@ public Builder vlanRanges(@Nullable Output vlanRanges * and `max_vlan` sub-arguments to define the tagged VLAN range. Multiple * `vlan_range` definitions are allowed, but they must not overlap. Example * below: + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -3964,6 +3982,7 @@ public Builder vlanRanges(List vlanRanges * } * } * ``` + * <!--End PulumiCodeChooser --> * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/vsphere/inputs/VirtualMachineState.java b/sdk/java/src/main/java/com/pulumi/vsphere/inputs/VirtualMachineState.java index d5fc1fc4..7a093b07 100644 --- a/sdk/java/src/main/java/com/pulumi/vsphere/inputs/VirtualMachineState.java +++ b/sdk/java/src/main/java/com/pulumi/vsphere/inputs/VirtualMachineState.java @@ -941,7 +941,7 @@ public Optional> rebootRequired() { /** * Triggers replacement of resource whenever it changes. * - * For example, `replace_trigger = sha256(format("%s-%s",data.template_file.cloud_init_metadata.rendered,data.template_file.cloud_init_userdata.rendered))` will fingerprint the changes in cloud-init metadata and userdata templates. This will enable a replacement of the resource whenever the dependant template renders a new configuration. (Forces a replacement.) + * For example, `replace_trigger = sha256(format("%!s(MISSING)-%!s(MISSING)",data.template_file.cloud_init_metadata.rendered,data.template_file.cloud_init_userdata.rendered))` will fingerprint the changes in cloud-init metadata and userdata templates. This will enable a replacement of the resource whenever the dependant template renders a new configuration. (Forces a replacement.) * */ @Import(name="replaceTrigger") @@ -950,7 +950,7 @@ public Optional> rebootRequired() { /** * @return Triggers replacement of resource whenever it changes. * - * For example, `replace_trigger = sha256(format("%s-%s",data.template_file.cloud_init_metadata.rendered,data.template_file.cloud_init_userdata.rendered))` will fingerprint the changes in cloud-init metadata and userdata templates. This will enable a replacement of the resource whenever the dependant template renders a new configuration. (Forces a replacement.) + * For example, `replace_trigger = sha256(format("%!s(MISSING)-%!s(MISSING)",data.template_file.cloud_init_metadata.rendered,data.template_file.cloud_init_userdata.rendered))` will fingerprint the changes in cloud-init metadata and userdata templates. This will enable a replacement of the resource whenever the dependant template renders a new configuration. (Forces a replacement.) * */ public Optional> replaceTrigger() { @@ -2806,7 +2806,7 @@ public Builder rebootRequired(Boolean rebootRequired) { /** * @param replaceTrigger Triggers replacement of resource whenever it changes. * - * For example, `replace_trigger = sha256(format("%s-%s",data.template_file.cloud_init_metadata.rendered,data.template_file.cloud_init_userdata.rendered))` will fingerprint the changes in cloud-init metadata and userdata templates. This will enable a replacement of the resource whenever the dependant template renders a new configuration. (Forces a replacement.) + * For example, `replace_trigger = sha256(format("%!s(MISSING)-%!s(MISSING)",data.template_file.cloud_init_metadata.rendered,data.template_file.cloud_init_userdata.rendered))` will fingerprint the changes in cloud-init metadata and userdata templates. This will enable a replacement of the resource whenever the dependant template renders a new configuration. (Forces a replacement.) * * @return builder * @@ -2819,7 +2819,7 @@ public Builder replaceTrigger(@Nullable Output replaceTrigger) { /** * @param replaceTrigger Triggers replacement of resource whenever it changes. * - * For example, `replace_trigger = sha256(format("%s-%s",data.template_file.cloud_init_metadata.rendered,data.template_file.cloud_init_userdata.rendered))` will fingerprint the changes in cloud-init metadata and userdata templates. This will enable a replacement of the resource whenever the dependant template renders a new configuration. (Forces a replacement.) + * For example, `replace_trigger = sha256(format("%!s(MISSING)-%!s(MISSING)",data.template_file.cloud_init_metadata.rendered,data.template_file.cloud_init_userdata.rendered))` will fingerprint the changes in cloud-init metadata and userdata templates. This will enable a replacement of the resource whenever the dependant template renders a new configuration. (Forces a replacement.) * * @return builder * diff --git a/sdk/java/src/main/java/com/pulumi/vsphere/outputs/ComputeClusterVsanStretchedCluster.java b/sdk/java/src/main/java/com/pulumi/vsphere/outputs/ComputeClusterVsanStretchedCluster.java index ab01c81b..cefff469 100644 --- a/sdk/java/src/main/java/com/pulumi/vsphere/outputs/ComputeClusterVsanStretchedCluster.java +++ b/sdk/java/src/main/java/com/pulumi/vsphere/outputs/ComputeClusterVsanStretchedCluster.java @@ -33,6 +33,8 @@ public final class ComputeClusterVsanStretchedCluster { * * > **NOTE:** You must disable vSphere HA before you enable vSAN on the cluster. * You can enable or re-enable vSphere HA after vSAN is configured. + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -98,6 +100,7 @@ public final class ComputeClusterVsanStretchedCluster { * } * } * ``` + * <!--End PulumiCodeChooser --> * */ private @Nullable String secondaryFaultDomainName; @@ -134,6 +137,8 @@ public List secondaryFaultDomainHostIds() { * * > **NOTE:** You must disable vSphere HA before you enable vSAN on the cluster. * You can enable or re-enable vSphere HA after vSAN is configured. + * + * <!--Start PulumiCodeChooser --> * ```java * package generated_program; * @@ -199,6 +204,7 @@ public List secondaryFaultDomainHostIds() { * } * } * ``` + * <!--End PulumiCodeChooser --> * */ public Optional secondaryFaultDomainName() { diff --git a/sdk/nodejs/computeClusterVmAffinityRule.ts b/sdk/nodejs/computeClusterVmAffinityRule.ts index a964066c..7944a423 100644 --- a/sdk/nodejs/computeClusterVmAffinityRule.ts +++ b/sdk/nodejs/computeClusterVmAffinityRule.ts @@ -36,6 +36,7 @@ import * as utilities from "./utilities"; * then creates an affinity rule for these two virtual machines, ensuring they * will run on the same host whenever possible. * + * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as vsphere from "@pulumi/vsphere"; @@ -77,11 +78,13 @@ import * as utilities from "./utilities"; * virtualMachineIds: vm.map((v, k) => [k, v]).map(([, ]) => (v.id)), * }); * ``` + * * * The following example creates an affinity rule for a set of virtual machines * in the cluster by looking up the virtual machine UUIDs from the * `vsphere.VirtualMachine` data source. * + * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as vsphere from "@pulumi/vsphere"; @@ -107,6 +110,7 @@ import * as utilities from "./utilities"; * virtualMachineIds: vmsVirtualMachine.map(__item => __item.id), * }); * ``` + * */ export class ComputeClusterVmAffinityRule extends pulumi.CustomResource { /** diff --git a/sdk/nodejs/datacenter.ts b/sdk/nodejs/datacenter.ts index a318112c..4ff9225e 100644 --- a/sdk/nodejs/datacenter.ts +++ b/sdk/nodejs/datacenter.ts @@ -9,22 +9,28 @@ import * as utilities from "./utilities"; * container of inventory objects such as hosts and virtual machines. * * ## Example Usage + * * ### Create datacenter on the root folder * + * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as vsphere from "@pulumi/vsphere"; * * const prodDatacenter = new vsphere.Datacenter("prodDatacenter", {}); * ``` + * + * * ### Create datacenter on a subfolder * + * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as vsphere from "@pulumi/vsphere"; * * const researchDatacenter = new vsphere.Datacenter("researchDatacenter", {folder: "/research/"}); * ``` + * */ export class Datacenter extends pulumi.CustomResource { /** diff --git a/sdk/nodejs/datastoreCluster.ts b/sdk/nodejs/datastoreCluster.ts index 1bd8eabe..531cb05a 100644 --- a/sdk/nodejs/datastoreCluster.ts +++ b/sdk/nodejs/datastoreCluster.ts @@ -130,7 +130,7 @@ export class DatastoreCluster extends pulumi.CustomResource { * recommendations to move VMs off of a datastore. Note that this setting should * only be set if `sdrsIoReservablePercentThreshold` cannot make an accurate * estimate of the capacity of the datastores in your cluster, and should be set - * to roughly 50-60% of the worst case peak performance of the backing LUNs. + * to roughly 50-60%!o(MISSING)f the worst case peak performance of the backing LUNs. */ public readonly sdrsIoReservableIopsThreshold!: pulumi.Output; /** @@ -361,7 +361,7 @@ export interface DatastoreClusterState { * recommendations to move VMs off of a datastore. Note that this setting should * only be set if `sdrsIoReservablePercentThreshold` cannot make an accurate * estimate of the capacity of the datastores in your cluster, and should be set - * to roughly 50-60% of the worst case peak performance of the backing LUNs. + * to roughly 50-60%!o(MISSING)f the worst case peak performance of the backing LUNs. */ sdrsIoReservableIopsThreshold?: pulumi.Input; /** @@ -519,7 +519,7 @@ export interface DatastoreClusterArgs { * recommendations to move VMs off of a datastore. Note that this setting should * only be set if `sdrsIoReservablePercentThreshold` cannot make an accurate * estimate of the capacity of the datastores in your cluster, and should be set - * to roughly 50-60% of the worst case peak performance of the backing LUNs. + * to roughly 50-60%!o(MISSING)f the worst case peak performance of the backing LUNs. */ sdrsIoReservableIopsThreshold?: pulumi.Input; /** diff --git a/sdk/nodejs/distributedVirtualSwitch.ts b/sdk/nodejs/distributedVirtualSwitch.ts index 16594119..7e659d52 100644 --- a/sdk/nodejs/distributedVirtualSwitch.ts +++ b/sdk/nodejs/distributedVirtualSwitch.ts @@ -334,7 +334,8 @@ export class DistributedVirtualSwitch extends pulumi.CustomResource { * The ratio of total number of packets to * the number of packets analyzed. The default is `0`, which indicates that the * VDS should analyze all packets. The maximum value is `1000`, which - * indicates an analysis rate of 0.001%. + * indicates an analysis rate of 0.001%! + * (MISSING) */ public readonly netflowSamplingRate!: pulumi.Output; /** @@ -458,6 +459,7 @@ export class DistributedVirtualSwitch extends pulumi.CustomResource { * `vlanRange` definitions are allowed, but they must not overlap. Example * below: * + * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as vsphere from "@pulumi/vsphere"; @@ -473,6 +475,7 @@ export class DistributedVirtualSwitch extends pulumi.CustomResource { * }, * ]}); * ``` + * */ public readonly vlanRanges!: pulumi.Output; /** @@ -1026,7 +1029,8 @@ export interface DistributedVirtualSwitchState { * The ratio of total number of packets to * the number of packets analyzed. The default is `0`, which indicates that the * VDS should analyze all packets. The maximum value is `1000`, which - * indicates an analysis rate of 0.001%. + * indicates an analysis rate of 0.001%! + * (MISSING) */ netflowSamplingRate?: pulumi.Input; /** @@ -1150,6 +1154,7 @@ export interface DistributedVirtualSwitchState { * `vlanRange` definitions are allowed, but they must not overlap. Example * below: * + * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as vsphere from "@pulumi/vsphere"; @@ -1165,6 +1170,7 @@ export interface DistributedVirtualSwitchState { * }, * ]}); * ``` + * */ vlanRanges?: pulumi.Input[]>; /** @@ -1500,7 +1506,8 @@ export interface DistributedVirtualSwitchArgs { * The ratio of total number of packets to * the number of packets analyzed. The default is `0`, which indicates that the * VDS should analyze all packets. The maximum value is `1000`, which - * indicates an analysis rate of 0.001%. + * indicates an analysis rate of 0.001%! + * (MISSING) */ netflowSamplingRate?: pulumi.Input; /** @@ -1624,6 +1631,7 @@ export interface DistributedVirtualSwitchArgs { * `vlanRange` definitions are allowed, but they must not overlap. Example * below: * + * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as vsphere from "@pulumi/vsphere"; @@ -1639,6 +1647,7 @@ export interface DistributedVirtualSwitchArgs { * }, * ]}); * ``` + * */ vlanRanges?: pulumi.Input[]>; /** diff --git a/sdk/nodejs/file.ts b/sdk/nodejs/file.ts index eb2ac734..b158dbd6 100644 --- a/sdk/nodejs/file.ts +++ b/sdk/nodejs/file.ts @@ -6,8 +6,10 @@ import * as utilities from "./utilities"; /** * ## Example Usage + * * ### Uploading a File * + * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as vsphere from "@pulumi/vsphere"; @@ -20,8 +22,11 @@ import * as utilities from "./utilities"; * sourceFile: "/my/src/path/custom_ubuntu.vmdk", * }); * ``` + * + * * ### Copying a File * + * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as vsphere from "@pulumi/vsphere"; @@ -36,6 +41,7 @@ import * as utilities from "./utilities"; * sourceFile: "/my/src/path/custom_ubuntu.vmdk", * }); * ``` + * */ export class File extends pulumi.CustomResource { /** diff --git a/sdk/nodejs/getComputeCluster.ts b/sdk/nodejs/getComputeCluster.ts index 531521da..3407822f 100644 --- a/sdk/nodejs/getComputeCluster.ts +++ b/sdk/nodejs/getComputeCluster.ts @@ -17,6 +17,7 @@ import * as utilities from "./utilities"; * * ## Example Usage * + * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as vsphere from "@pulumi/vsphere"; @@ -29,6 +30,7 @@ import * as utilities from "./utilities"; * datacenterId: datacenter.id, * })); * ``` + * */ export function getComputeCluster(args: GetComputeClusterArgs, opts?: pulumi.InvokeOptions): Promise { @@ -85,6 +87,7 @@ export interface GetComputeClusterResult { * * ## Example Usage * + * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as vsphere from "@pulumi/vsphere"; @@ -97,6 +100,7 @@ export interface GetComputeClusterResult { * datacenterId: datacenter.id, * })); * ``` + * */ export function getComputeClusterOutput(args: GetComputeClusterOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { return pulumi.output(args).apply((a: any) => getComputeCluster(a, opts)) diff --git a/sdk/nodejs/getComputeClusterHostGroup.ts b/sdk/nodejs/getComputeClusterHostGroup.ts index db797c21..5f22ba9e 100644 --- a/sdk/nodejs/getComputeClusterHostGroup.ts +++ b/sdk/nodejs/getComputeClusterHostGroup.ts @@ -11,6 +11,7 @@ import * as utilities from "./utilities"; * * ## Example Usage * + * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as vsphere from "@pulumi/vsphere"; @@ -32,6 +33,7 @@ import * as utilities from "./utilities"; * affinityHostGroupName: hostGroup1.then(hostGroup1 => hostGroup1.name), * }); * ``` + * */ export function getComputeClusterHostGroup(args: GetComputeClusterHostGroupArgs, opts?: pulumi.InvokeOptions): Promise { @@ -82,6 +84,7 @@ export interface GetComputeClusterHostGroupResult { * * ## Example Usage * + * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as vsphere from "@pulumi/vsphere"; @@ -103,6 +106,7 @@ export interface GetComputeClusterHostGroupResult { * affinityHostGroupName: hostGroup1.then(hostGroup1 => hostGroup1.name), * }); * ``` + * */ export function getComputeClusterHostGroupOutput(args: GetComputeClusterHostGroupOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { return pulumi.output(args).apply((a: any) => getComputeClusterHostGroup(a, opts)) diff --git a/sdk/nodejs/getContentLibrary.ts b/sdk/nodejs/getContentLibrary.ts index 53b4230b..0d491d36 100644 --- a/sdk/nodejs/getContentLibrary.ts +++ b/sdk/nodejs/getContentLibrary.ts @@ -11,6 +11,7 @@ import * as utilities from "./utilities"; * * ## Example Usage * + * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as vsphere from "@pulumi/vsphere"; @@ -19,6 +20,7 @@ import * as utilities from "./utilities"; * name: "Content Library", * }); * ``` + * */ export function getContentLibrary(args: GetContentLibraryArgs, opts?: pulumi.InvokeOptions): Promise { @@ -55,6 +57,7 @@ export interface GetContentLibraryResult { * * ## Example Usage * + * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as vsphere from "@pulumi/vsphere"; @@ -63,6 +66,7 @@ export interface GetContentLibraryResult { * name: "Content Library", * }); * ``` + * */ export function getContentLibraryOutput(args: GetContentLibraryOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { return pulumi.output(args).apply((a: any) => getContentLibrary(a, opts)) diff --git a/sdk/nodejs/getCustomAttribute.ts b/sdk/nodejs/getCustomAttribute.ts index abea3b10..aeecd061 100644 --- a/sdk/nodejs/getCustomAttribute.ts +++ b/sdk/nodejs/getCustomAttribute.ts @@ -16,6 +16,7 @@ import * as utilities from "./utilities"; * * ## Example Usage * + * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as vsphere from "@pulumi/vsphere"; @@ -24,6 +25,7 @@ import * as utilities from "./utilities"; * name: "test-attribute", * }); * ``` + * */ export function getCustomAttribute(args: GetCustomAttributeArgs, opts?: pulumi.InvokeOptions): Promise { @@ -66,6 +68,7 @@ export interface GetCustomAttributeResult { * * ## Example Usage * + * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as vsphere from "@pulumi/vsphere"; @@ -74,6 +77,7 @@ export interface GetCustomAttributeResult { * name: "test-attribute", * }); * ``` + * */ export function getCustomAttributeOutput(args: GetCustomAttributeOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { return pulumi.output(args).apply((a: any) => getCustomAttribute(a, opts)) diff --git a/sdk/nodejs/getDatacenter.ts b/sdk/nodejs/getDatacenter.ts index 68523667..5cbd8f57 100644 --- a/sdk/nodejs/getDatacenter.ts +++ b/sdk/nodejs/getDatacenter.ts @@ -12,6 +12,7 @@ import * as utilities from "./utilities"; * * ## Example Usage * + * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as vsphere from "@pulumi/vsphere"; @@ -20,6 +21,7 @@ import * as utilities from "./utilities"; * name: "dc-01", * }); * ``` + * */ export function getDatacenter(args?: GetDatacenterArgs, opts?: pulumi.InvokeOptions): Promise { args = args || {}; @@ -64,6 +66,7 @@ export interface GetDatacenterResult { * * ## Example Usage * + * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as vsphere from "@pulumi/vsphere"; @@ -72,6 +75,7 @@ export interface GetDatacenterResult { * name: "dc-01", * }); * ``` + * */ export function getDatacenterOutput(args?: GetDatacenterOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { return pulumi.output(args).apply((a: any) => getDatacenter(a, opts)) diff --git a/sdk/nodejs/getDatastore.ts b/sdk/nodejs/getDatastore.ts index d6bcb724..cd9a1a73 100644 --- a/sdk/nodejs/getDatastore.ts +++ b/sdk/nodejs/getDatastore.ts @@ -12,6 +12,7 @@ import * as utilities from "./utilities"; * * ## Example Usage * + * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as vsphere from "@pulumi/vsphere"; @@ -24,6 +25,7 @@ import * as utilities from "./utilities"; * datacenterId: datacenter.id, * })); * ``` + * */ export function getDatastore(args: GetDatastoreArgs, opts?: pulumi.InvokeOptions): Promise { @@ -70,6 +72,7 @@ export interface GetDatastoreResult { * * ## Example Usage * + * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as vsphere from "@pulumi/vsphere"; @@ -82,6 +85,7 @@ export interface GetDatastoreResult { * datacenterId: datacenter.id, * })); * ``` + * */ export function getDatastoreOutput(args: GetDatastoreOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { return pulumi.output(args).apply((a: any) => getDatastore(a, opts)) diff --git a/sdk/nodejs/getDatastoreCluster.ts b/sdk/nodejs/getDatastoreCluster.ts index e09b484d..7f116972 100644 --- a/sdk/nodejs/getDatastoreCluster.ts +++ b/sdk/nodejs/getDatastoreCluster.ts @@ -12,6 +12,7 @@ import * as utilities from "./utilities"; * * ## Example Usage * + * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as vsphere from "@pulumi/vsphere"; @@ -24,6 +25,7 @@ import * as utilities from "./utilities"; * datacenterId: datacenter.id, * })); * ``` + * */ export function getDatastoreCluster(args: GetDatastoreClusterArgs, opts?: pulumi.InvokeOptions): Promise { @@ -71,6 +73,7 @@ export interface GetDatastoreClusterResult { * * ## Example Usage * + * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as vsphere from "@pulumi/vsphere"; @@ -83,6 +86,7 @@ export interface GetDatastoreClusterResult { * datacenterId: datacenter.id, * })); * ``` + * */ export function getDatastoreClusterOutput(args: GetDatastoreClusterOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { return pulumi.output(args).apply((a: any) => getDatastoreCluster(a, opts)) diff --git a/sdk/nodejs/getDistributedVirtualSwitch.ts b/sdk/nodejs/getDistributedVirtualSwitch.ts index 48b8b694..e1deb089 100644 --- a/sdk/nodejs/getDistributedVirtualSwitch.ts +++ b/sdk/nodejs/getDistributedVirtualSwitch.ts @@ -21,6 +21,7 @@ import * as utilities from "./utilities"; * `vsphere.DistributedPortGroup` resource that uses the first uplink as a * primary uplink and the second uplink as a secondary. * + * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as vsphere from "@pulumi/vsphere"; @@ -38,6 +39,7 @@ import * as utilities from "./utilities"; * standbyUplinks: [vds.then(vds => vds.uplinks?.[1])], * }); * ``` + * */ export function getDistributedVirtualSwitch(args: GetDistributedVirtualSwitchArgs, opts?: pulumi.InvokeOptions): Promise { @@ -100,6 +102,7 @@ export interface GetDistributedVirtualSwitchResult { * `vsphere.DistributedPortGroup` resource that uses the first uplink as a * primary uplink and the second uplink as a secondary. * + * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as vsphere from "@pulumi/vsphere"; @@ -117,6 +120,7 @@ export interface GetDistributedVirtualSwitchResult { * standbyUplinks: [vds.then(vds => vds.uplinks?.[1])], * }); * ``` + * */ export function getDistributedVirtualSwitchOutput(args: GetDistributedVirtualSwitchOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { return pulumi.output(args).apply((a: any) => getDistributedVirtualSwitch(a, opts)) diff --git a/sdk/nodejs/getDynamic.ts b/sdk/nodejs/getDynamic.ts index 4fadb1ca..d0311f54 100644 --- a/sdk/nodejs/getDynamic.ts +++ b/sdk/nodejs/getDynamic.ts @@ -13,6 +13,7 @@ import * as utilities from "./utilities"; * * ## Example Usage * + * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as vsphere from "@pulumi/vsphere"; @@ -37,6 +38,7 @@ import * as utilities from "./utilities"; * type: "Datacenter", * })); * ``` + * */ export function getDynamic(args: GetDynamicArgs, opts?: pulumi.InvokeOptions): Promise { @@ -91,6 +93,7 @@ export interface GetDynamicResult { * * ## Example Usage * + * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as vsphere from "@pulumi/vsphere"; @@ -115,6 +118,7 @@ export interface GetDynamicResult { * type: "Datacenter", * })); * ``` + * */ export function getDynamicOutput(args: GetDynamicOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { return pulumi.output(args).apply((a: any) => getDynamic(a, opts)) diff --git a/sdk/nodejs/getFolder.ts b/sdk/nodejs/getFolder.ts index b0a444c3..10520147 100644 --- a/sdk/nodejs/getFolder.ts +++ b/sdk/nodejs/getFolder.ts @@ -10,6 +10,7 @@ import * as utilities from "./utilities"; * * ## Example Usage * + * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as vsphere from "@pulumi/vsphere"; @@ -18,6 +19,7 @@ import * as utilities from "./utilities"; * path: "/dc-01/datastore-01/folder-01", * }); * ``` + * */ export function getFolder(args: GetFolderArgs, opts?: pulumi.InvokeOptions): Promise { @@ -57,6 +59,7 @@ export interface GetFolderResult { * * ## Example Usage * + * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as vsphere from "@pulumi/vsphere"; @@ -65,6 +68,7 @@ export interface GetFolderResult { * path: "/dc-01/datastore-01/folder-01", * }); * ``` + * */ export function getFolderOutput(args: GetFolderOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { return pulumi.output(args).apply((a: any) => getFolder(a, opts)) diff --git a/sdk/nodejs/getGuestOsCustomization.ts b/sdk/nodejs/getGuestOsCustomization.ts index 448df43f..f39f0d12 100644 --- a/sdk/nodejs/getGuestOsCustomization.ts +++ b/sdk/nodejs/getGuestOsCustomization.ts @@ -14,6 +14,7 @@ import * as utilities from "./utilities"; * * ## Example Usage * + * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as vsphere from "@pulumi/vsphere"; @@ -22,6 +23,7 @@ import * as utilities from "./utilities"; * name: "linux-spec", * }); * ``` + * */ export function getGuestOsCustomization(args: GetGuestOsCustomizationArgs, opts?: pulumi.InvokeOptions): Promise { @@ -79,6 +81,7 @@ export interface GetGuestOsCustomizationResult { * * ## Example Usage * + * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as vsphere from "@pulumi/vsphere"; @@ -87,6 +90,7 @@ export interface GetGuestOsCustomizationResult { * name: "linux-spec", * }); * ``` + * */ export function getGuestOsCustomizationOutput(args: GetGuestOsCustomizationOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { return pulumi.output(args).apply((a: any) => getGuestOsCustomization(a, opts)) diff --git a/sdk/nodejs/getHost.ts b/sdk/nodejs/getHost.ts index 297677d4..3a0bd990 100644 --- a/sdk/nodejs/getHost.ts +++ b/sdk/nodejs/getHost.ts @@ -11,6 +11,7 @@ import * as utilities from "./utilities"; * * ## Example Usage * + * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as vsphere from "@pulumi/vsphere"; @@ -23,6 +24,7 @@ import * as utilities from "./utilities"; * datacenterId: datacenter.id, * })); * ``` + * */ export function getHost(args: GetHostArgs, opts?: pulumi.InvokeOptions): Promise { @@ -75,6 +77,7 @@ export interface GetHostResult { * * ## Example Usage * + * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as vsphere from "@pulumi/vsphere"; @@ -87,6 +90,7 @@ export interface GetHostResult { * datacenterId: datacenter.id, * })); * ``` + * */ export function getHostOutput(args: GetHostOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { return pulumi.output(args).apply((a: any) => getHost(a, opts)) diff --git a/sdk/nodejs/getHostPciDevice.ts b/sdk/nodejs/getHostPciDevice.ts index e4ca1a23..5fe867b4 100644 --- a/sdk/nodejs/getHostPciDevice.ts +++ b/sdk/nodejs/getHostPciDevice.ts @@ -10,8 +10,10 @@ import * as utilities from "./utilities"; * `vsphere.VirtualMachine`'s `pciDeviceId`. * * ## Example Usage + * * ### With Vendor ID And Class ID * + * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as vsphere from "@pulumi/vsphere"; @@ -29,7 +31,28 @@ import * as utilities from "./utilities"; * vendorId: "456", * })); * ``` + * + * * ### With Name Regular Expression + * + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as vsphere from "@pulumi/vsphere"; + * + * const datacenter = vsphere.getDatacenter({ + * name: "dc-01", + * }); + * const host = datacenter.then(datacenter => vsphere.getHost({ + * name: "esxi-01.example.com", + * datacenterId: datacenter.id, + * })); + * const dev = host.then(host => vsphere.getHostPciDevice({ + * hostId: host.id, + * nameRegex: "MMC", + * })); + * ``` + * */ export function getHostPciDevice(args: GetHostPciDeviceArgs, opts?: pulumi.InvokeOptions): Promise { @@ -92,8 +115,10 @@ export interface GetHostPciDeviceResult { * `vsphere.VirtualMachine`'s `pciDeviceId`. * * ## Example Usage + * * ### With Vendor ID And Class ID * + * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as vsphere from "@pulumi/vsphere"; @@ -111,7 +136,28 @@ export interface GetHostPciDeviceResult { * vendorId: "456", * })); * ``` + * + * * ### With Name Regular Expression + * + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as vsphere from "@pulumi/vsphere"; + * + * const datacenter = vsphere.getDatacenter({ + * name: "dc-01", + * }); + * const host = datacenter.then(datacenter => vsphere.getHost({ + * name: "esxi-01.example.com", + * datacenterId: datacenter.id, + * })); + * const dev = host.then(host => vsphere.getHostPciDevice({ + * hostId: host.id, + * nameRegex: "MMC", + * })); + * ``` + * */ export function getHostPciDeviceOutput(args: GetHostPciDeviceOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { return pulumi.output(args).apply((a: any) => getHostPciDevice(a, opts)) diff --git a/sdk/nodejs/getHostThumbprint.ts b/sdk/nodejs/getHostThumbprint.ts index 588813c6..b4d3112c 100644 --- a/sdk/nodejs/getHostThumbprint.ts +++ b/sdk/nodejs/getHostThumbprint.ts @@ -12,6 +12,7 @@ import * as utilities from "./utilities"; * * ## Example Usage * + * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as vsphere from "@pulumi/vsphere"; @@ -20,6 +21,7 @@ import * as utilities from "./utilities"; * address: "esxi-01.example.com", * }); * ``` + * */ export function getHostThumbprint(args: GetHostThumbprintArgs, opts?: pulumi.InvokeOptions): Promise { @@ -71,6 +73,7 @@ export interface GetHostThumbprintResult { * * ## Example Usage * + * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as vsphere from "@pulumi/vsphere"; @@ -79,6 +82,7 @@ export interface GetHostThumbprintResult { * address: "esxi-01.example.com", * }); * ``` + * */ export function getHostThumbprintOutput(args: GetHostThumbprintOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { return pulumi.output(args).apply((a: any) => getHostThumbprint(a, opts)) diff --git a/sdk/nodejs/getLicense.ts b/sdk/nodejs/getLicense.ts index fa862109..f3392141 100644 --- a/sdk/nodejs/getLicense.ts +++ b/sdk/nodejs/getLicense.ts @@ -10,6 +10,7 @@ import * as utilities from "./utilities"; * * ## Example Usage * + * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as vsphere from "@pulumi/vsphere"; @@ -18,6 +19,7 @@ import * as utilities from "./utilities"; * licenseKey: "00000-00000-00000-00000-00000", * }); * ``` + * */ export function getLicense(args: GetLicenseArgs, opts?: pulumi.InvokeOptions): Promise { @@ -70,6 +72,7 @@ export interface GetLicenseResult { * * ## Example Usage * + * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as vsphere from "@pulumi/vsphere"; @@ -78,6 +81,7 @@ export interface GetLicenseResult { * licenseKey: "00000-00000-00000-00000-00000", * }); * ``` + * */ export function getLicenseOutput(args: GetLicenseOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { return pulumi.output(args).apply((a: any) => getLicense(a, opts)) diff --git a/sdk/nodejs/getNetwork.ts b/sdk/nodejs/getNetwork.ts index 72c3e48e..adae3ee8 100644 --- a/sdk/nodejs/getNetwork.ts +++ b/sdk/nodejs/getNetwork.ts @@ -13,6 +13,7 @@ import * as utilities from "./utilities"; * * ## Example Usage * + * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as vsphere from "@pulumi/vsphere"; @@ -25,6 +26,7 @@ import * as utilities from "./utilities"; * datacenterId: datacenter.id, * })); * ``` + * */ export function getNetwork(args: GetNetworkArgs, opts?: pulumi.InvokeOptions): Promise { @@ -88,6 +90,7 @@ export interface GetNetworkResult { * * ## Example Usage * + * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as vsphere from "@pulumi/vsphere"; @@ -100,6 +103,7 @@ export interface GetNetworkResult { * datacenterId: datacenter.id, * })); * ``` + * */ export function getNetworkOutput(args: GetNetworkOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { return pulumi.output(args).apply((a: any) => getNetwork(a, opts)) diff --git a/sdk/nodejs/getOvfVmTemplate.ts b/sdk/nodejs/getOvfVmTemplate.ts index 55cf83f4..1c1238d0 100644 --- a/sdk/nodejs/getOvfVmTemplate.ts +++ b/sdk/nodejs/getOvfVmTemplate.ts @@ -8,90 +8,6 @@ import * as utilities from "./utilities"; * The `vsphere.getOvfVmTemplate` data source can be used to submit an OVF to * vSphere and extract its hardware settings in a form that can be then used as * inputs for a `vsphere.VirtualMachine` resource. - * - * ## Remote OVF/OVA Source - * - * data "vsphere_ovf_vm_template" "ovfRemote" { - * name = "Nested-ESXi-7.0-Terraform-Deploy-1" - * disk_provisioning = "thin" - * resource_pool_id = data.vsphere_resource_pool.default.id - * datastore_id = data.vsphere_datastore.datastore.id - * host_system_id = data.vsphere_host.host.id - * remote_ovf_url = "https://download3.vmware.com/software/vmw-tools/nested-esxi/Nested_ESXi7.0u3_Appliance_Template_v1.ova" - * ovf_network_map = { - * "VM Network" : data.vsphere_network.network.id - * } - * } - * - * ## Local OVF/OVA Source - * - * data "vsphere_ovf_vm_template" "ovfLocal" { - * name = "Nested-ESXi-7.0-Terraform-Deploy-2" - * disk_provisioning = "thin" - * resource_pool_id = data.vsphere_resource_pool.default.id - * datastore_id = data.vsphere_datastore.datastore.id - * host_system_id = data.vsphere_host.host.id - * local_ovf_path = "/Volume/Storage/OVA/Nested_ESXi7.0u3_Appliance_Template_v1.ova" - * ovf_network_map = { - * "VM Network" : data.vsphere_network.network.id - * } - * } - * - * ## Deployment of VM from Remote OVF - * - * resource "vsphere_virtual_machine" "vmFromRemoteOvf" { - * name = "Nested-ESXi-7.0-Terraform-Deploy-1" - * datacenter_id = data.vsphere_datacenter.datacenter.id - * datastore_id = data.vsphere_datastore.datastore.id - * host_system_id = data.vsphere_host.host.id - * resource_pool_id = data.vsphere_resource_pool.default.id - * num_cpus = data.vsphere_ovf_vm_template.ovfRemote.num_cpus - * num_cores_per_socket = data.vsphere_ovf_vm_template.ovfRemote.num_cores_per_socket - * memory = data.vsphere_ovf_vm_template.ovfRemote.memory - * guest_id = data.vsphere_ovf_vm_template.ovfRemote.guest_id - * firmware = data.vsphere_ovf_vm_template.ovfRemote.firmware - * scsi_type = data.vsphere_ovf_vm_template.ovfRemote.scsi_type - * nested_hv_enabled = data.vsphere_ovf_vm_template.ovfRemote.nested_hv_enabled - * dynamic "network_interface" { - * for_each = data.vsphere_ovf_vm_template.ovfRemote.ovf_network_map - * content { - * network_id = network_interface.value - * } - * } - * wait_for_guest_net_timeout = 0 - * wait_for_guest_ip_timeout = 0 - * - * ovf_deploy { - * allow_unverified_ssl_cert = false - * remote_ovf_url = data.vsphere_ovf_vm_template.ovfRemote.remote_ovf_url - * disk_provisioning = data.vsphere_ovf_vm_template.ovfRemote.disk_provisioning - * ovf_network_map = data.vsphere_ovf_vm_template.ovfRemote.ovf_network_map - * } - * - * vapp { - * properties = { - * "guestinfo.hostname" = "nested-esxi-01.example.com", - * "guestinfo.ipaddress" = "172.16.11.101", - * "guestinfo.netmask" = "255.255.255.0", - * "guestinfo.gateway" = "172.16.11.1", - * "guestinfo.dns" = "172.16.11.4", - * "guestinfo.domain" = "example.com", - * "guestinfo.ntp" = "ntp.example.com", - * "guestinfo.password" = "VMware1!", - * "guestinfo.ssh" = "True" - * } - * } - * - * lifecycle { - * ignore_changes = [ - * annotation, - * disk[0].io_share_count, - * disk[1].io_share_count, - * disk[2].io_share_count, - * vapp[0].properties, - * ] - * } - * } */ export function getOvfVmTemplate(args: GetOvfVmTemplateArgs, opts?: pulumi.InvokeOptions): Promise { @@ -278,90 +194,6 @@ export interface GetOvfVmTemplateResult { * The `vsphere.getOvfVmTemplate` data source can be used to submit an OVF to * vSphere and extract its hardware settings in a form that can be then used as * inputs for a `vsphere.VirtualMachine` resource. - * - * ## Remote OVF/OVA Source - * - * data "vsphere_ovf_vm_template" "ovfRemote" { - * name = "Nested-ESXi-7.0-Terraform-Deploy-1" - * disk_provisioning = "thin" - * resource_pool_id = data.vsphere_resource_pool.default.id - * datastore_id = data.vsphere_datastore.datastore.id - * host_system_id = data.vsphere_host.host.id - * remote_ovf_url = "https://download3.vmware.com/software/vmw-tools/nested-esxi/Nested_ESXi7.0u3_Appliance_Template_v1.ova" - * ovf_network_map = { - * "VM Network" : data.vsphere_network.network.id - * } - * } - * - * ## Local OVF/OVA Source - * - * data "vsphere_ovf_vm_template" "ovfLocal" { - * name = "Nested-ESXi-7.0-Terraform-Deploy-2" - * disk_provisioning = "thin" - * resource_pool_id = data.vsphere_resource_pool.default.id - * datastore_id = data.vsphere_datastore.datastore.id - * host_system_id = data.vsphere_host.host.id - * local_ovf_path = "/Volume/Storage/OVA/Nested_ESXi7.0u3_Appliance_Template_v1.ova" - * ovf_network_map = { - * "VM Network" : data.vsphere_network.network.id - * } - * } - * - * ## Deployment of VM from Remote OVF - * - * resource "vsphere_virtual_machine" "vmFromRemoteOvf" { - * name = "Nested-ESXi-7.0-Terraform-Deploy-1" - * datacenter_id = data.vsphere_datacenter.datacenter.id - * datastore_id = data.vsphere_datastore.datastore.id - * host_system_id = data.vsphere_host.host.id - * resource_pool_id = data.vsphere_resource_pool.default.id - * num_cpus = data.vsphere_ovf_vm_template.ovfRemote.num_cpus - * num_cores_per_socket = data.vsphere_ovf_vm_template.ovfRemote.num_cores_per_socket - * memory = data.vsphere_ovf_vm_template.ovfRemote.memory - * guest_id = data.vsphere_ovf_vm_template.ovfRemote.guest_id - * firmware = data.vsphere_ovf_vm_template.ovfRemote.firmware - * scsi_type = data.vsphere_ovf_vm_template.ovfRemote.scsi_type - * nested_hv_enabled = data.vsphere_ovf_vm_template.ovfRemote.nested_hv_enabled - * dynamic "network_interface" { - * for_each = data.vsphere_ovf_vm_template.ovfRemote.ovf_network_map - * content { - * network_id = network_interface.value - * } - * } - * wait_for_guest_net_timeout = 0 - * wait_for_guest_ip_timeout = 0 - * - * ovf_deploy { - * allow_unverified_ssl_cert = false - * remote_ovf_url = data.vsphere_ovf_vm_template.ovfRemote.remote_ovf_url - * disk_provisioning = data.vsphere_ovf_vm_template.ovfRemote.disk_provisioning - * ovf_network_map = data.vsphere_ovf_vm_template.ovfRemote.ovf_network_map - * } - * - * vapp { - * properties = { - * "guestinfo.hostname" = "nested-esxi-01.example.com", - * "guestinfo.ipaddress" = "172.16.11.101", - * "guestinfo.netmask" = "255.255.255.0", - * "guestinfo.gateway" = "172.16.11.1", - * "guestinfo.dns" = "172.16.11.4", - * "guestinfo.domain" = "example.com", - * "guestinfo.ntp" = "ntp.example.com", - * "guestinfo.password" = "VMware1!", - * "guestinfo.ssh" = "True" - * } - * } - * - * lifecycle { - * ignore_changes = [ - * annotation, - * disk[0].io_share_count, - * disk[1].io_share_count, - * disk[2].io_share_count, - * vapp[0].properties, - * ] - * } - * } */ export function getOvfVmTemplateOutput(args: GetOvfVmTemplateOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { return pulumi.output(args).apply((a: any) => getOvfVmTemplate(a, opts)) diff --git a/sdk/nodejs/getPolicy.ts b/sdk/nodejs/getPolicy.ts index 80c3330b..6b465d36 100644 --- a/sdk/nodejs/getPolicy.ts +++ b/sdk/nodejs/getPolicy.ts @@ -14,6 +14,7 @@ import * as utilities from "./utilities"; * * ## Example Usage * + * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as vsphere from "@pulumi/vsphere"; @@ -25,6 +26,7 @@ import * as utilities from "./utilities"; * name: "dev_silver_nonreplicated", * }); * ``` + * */ export function getPolicy(args: GetPolicyArgs, opts?: pulumi.InvokeOptions): Promise { @@ -64,6 +66,7 @@ export interface GetPolicyResult { * * ## Example Usage * + * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as vsphere from "@pulumi/vsphere"; @@ -75,6 +78,7 @@ export interface GetPolicyResult { * name: "dev_silver_nonreplicated", * }); * ``` + * */ export function getPolicyOutput(args: GetPolicyOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { return pulumi.output(args).apply((a: any) => getPolicy(a, opts)) diff --git a/sdk/nodejs/getResourcePool.ts b/sdk/nodejs/getResourcePool.ts index 8ae929d5..ffd2fdb5 100644 --- a/sdk/nodejs/getResourcePool.ts +++ b/sdk/nodejs/getResourcePool.ts @@ -12,6 +12,7 @@ import * as utilities from "./utilities"; * * ## Example Usage * + * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as vsphere from "@pulumi/vsphere"; @@ -24,6 +25,8 @@ import * as utilities from "./utilities"; * datacenterId: datacenter.id, * })); * ``` + * + * * ### Specifying the Root Resource Pool for a Standalone ESXi Host * * > **NOTE:** Returning the root resource pool for a cluster can be done @@ -34,6 +37,7 @@ import * as utilities from "./utilities"; * explicitly created. This resource pool is referred to as the * _root resource pool_ and can be looked up by specifying the path. * + * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as vsphere from "@pulumi/vsphere"; @@ -43,6 +47,7 @@ import * as utilities from "./utilities"; * datacenterId: data.vsphere_datacenter.datacenter.id, * }); * ``` + * * * For more information on the root resource pool, see [Managing Resource Pools][vmware-docs-resource-pools] in the vSphere documentation. * @@ -100,6 +105,7 @@ export interface GetResourcePoolResult { * * ## Example Usage * + * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as vsphere from "@pulumi/vsphere"; @@ -112,6 +118,8 @@ export interface GetResourcePoolResult { * datacenterId: datacenter.id, * })); * ``` + * + * * ### Specifying the Root Resource Pool for a Standalone ESXi Host * * > **NOTE:** Returning the root resource pool for a cluster can be done @@ -122,6 +130,7 @@ export interface GetResourcePoolResult { * explicitly created. This resource pool is referred to as the * _root resource pool_ and can be looked up by specifying the path. * + * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as vsphere from "@pulumi/vsphere"; @@ -131,6 +140,7 @@ export interface GetResourcePoolResult { * datacenterId: data.vsphere_datacenter.datacenter.id, * }); * ``` + * * * For more information on the root resource pool, see [Managing Resource Pools][vmware-docs-resource-pools] in the vSphere documentation. * diff --git a/sdk/nodejs/getRole.ts b/sdk/nodejs/getRole.ts index b300463f..0add6bac 100644 --- a/sdk/nodejs/getRole.ts +++ b/sdk/nodejs/getRole.ts @@ -10,6 +10,7 @@ import * as utilities from "./utilities"; * * ## Example Usage * + * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as vsphere from "@pulumi/vsphere"; @@ -18,6 +19,7 @@ import * as utilities from "./utilities"; * label: "Terraform to vSphere Integration Role", * }); * ``` + * */ export function getRole(args: GetRoleArgs, opts?: pulumi.InvokeOptions): Promise { @@ -77,6 +79,7 @@ export interface GetRoleResult { * * ## Example Usage * + * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as vsphere from "@pulumi/vsphere"; @@ -85,6 +88,7 @@ export interface GetRoleResult { * label: "Terraform to vSphere Integration Role", * }); * ``` + * */ export function getRoleOutput(args: GetRoleOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { return pulumi.output(args).apply((a: any) => getRole(a, opts)) diff --git a/sdk/nodejs/getTag.ts b/sdk/nodejs/getTag.ts index 0a054df7..5226ddad 100644 --- a/sdk/nodejs/getTag.ts +++ b/sdk/nodejs/getTag.ts @@ -16,6 +16,7 @@ import * as utilities from "./utilities"; * * ## Example Usage * + * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as vsphere from "@pulumi/vsphere"; @@ -28,6 +29,7 @@ import * as utilities from "./utilities"; * categoryId: category.id, * })); * ``` + * */ export function getTag(args: GetTagArgs, opts?: pulumi.InvokeOptions): Promise { @@ -77,6 +79,7 @@ export interface GetTagResult { * * ## Example Usage * + * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as vsphere from "@pulumi/vsphere"; @@ -89,6 +92,7 @@ export interface GetTagResult { * categoryId: category.id, * })); * ``` + * */ export function getTagOutput(args: GetTagOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { return pulumi.output(args).apply((a: any) => getTag(a, opts)) diff --git a/sdk/nodejs/getTagCategory.ts b/sdk/nodejs/getTagCategory.ts index 47fbc3a8..2a03c14a 100644 --- a/sdk/nodejs/getTagCategory.ts +++ b/sdk/nodejs/getTagCategory.ts @@ -16,6 +16,7 @@ import * as utilities from "./utilities"; * * ## Example Usage * + * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as vsphere from "@pulumi/vsphere"; @@ -24,6 +25,7 @@ import * as utilities from "./utilities"; * name: "example-category", * }); * ``` + * */ export function getTagCategory(args: GetTagCategoryArgs, opts?: pulumi.InvokeOptions): Promise { @@ -68,6 +70,7 @@ export interface GetTagCategoryResult { * * ## Example Usage * + * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as vsphere from "@pulumi/vsphere"; @@ -76,6 +79,7 @@ export interface GetTagCategoryResult { * name: "example-category", * }); * ``` + * */ export function getTagCategoryOutput(args: GetTagCategoryOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { return pulumi.output(args).apply((a: any) => getTagCategory(a, opts)) diff --git a/sdk/nodejs/getVappContainer.ts b/sdk/nodejs/getVappContainer.ts index 6a3f6309..8f620f92 100644 --- a/sdk/nodejs/getVappContainer.ts +++ b/sdk/nodejs/getVappContainer.ts @@ -12,6 +12,7 @@ import * as utilities from "./utilities"; * * ## Example Usage * + * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as vsphere from "@pulumi/vsphere"; @@ -24,6 +25,7 @@ import * as utilities from "./utilities"; * datacenterId: datacenter.id, * })); * ``` + * */ export function getVappContainer(args: GetVappContainerArgs, opts?: pulumi.InvokeOptions): Promise { @@ -69,6 +71,7 @@ export interface GetVappContainerResult { * * ## Example Usage * + * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as vsphere from "@pulumi/vsphere"; @@ -81,6 +84,7 @@ export interface GetVappContainerResult { * datacenterId: datacenter.id, * })); * ``` + * */ export function getVappContainerOutput(args: GetVappContainerOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { return pulumi.output(args).apply((a: any) => getVappContainer(a, opts)) diff --git a/sdk/nodejs/getVirtualMachine.ts b/sdk/nodejs/getVirtualMachine.ts index bc38eae6..e6bbe4d6 100644 --- a/sdk/nodejs/getVirtualMachine.ts +++ b/sdk/nodejs/getVirtualMachine.ts @@ -18,6 +18,7 @@ import * as utilities from "./utilities"; * In the following example, a virtual machine template is returned by its * unique name within the `vsphere.Datacenter`. * + * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as vsphere from "@pulumi/vsphere"; @@ -30,9 +31,11 @@ import * as utilities from "./utilities"; * datacenterId: datacenter.id, * })); * ``` + * * In the following example, each virtual machine template is returned by its * unique full path within the `vsphere.Datacenter`. * + * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as vsphere from "@pulumi/vsphere"; @@ -49,6 +52,7 @@ import * as utilities from "./utilities"; * datacenterId: datacenter.id, * })); * ``` + * */ export function getVirtualMachine(args?: GetVirtualMachineArgs, opts?: pulumi.InvokeOptions): Promise { args = args || {}; @@ -377,6 +381,7 @@ export interface GetVirtualMachineResult { * In the following example, a virtual machine template is returned by its * unique name within the `vsphere.Datacenter`. * + * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as vsphere from "@pulumi/vsphere"; @@ -389,9 +394,11 @@ export interface GetVirtualMachineResult { * datacenterId: datacenter.id, * })); * ``` + * * In the following example, each virtual machine template is returned by its * unique full path within the `vsphere.Datacenter`. * + * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as vsphere from "@pulumi/vsphere"; @@ -408,6 +415,7 @@ export interface GetVirtualMachineResult { * datacenterId: datacenter.id, * })); * ``` + * */ export function getVirtualMachineOutput(args?: GetVirtualMachineOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { return pulumi.output(args).apply((a: any) => getVirtualMachine(a, opts)) diff --git a/sdk/nodejs/getVmfsDisks.ts b/sdk/nodejs/getVmfsDisks.ts index 9a3e53c5..136710fc 100644 --- a/sdk/nodejs/getVmfsDisks.ts +++ b/sdk/nodejs/getVmfsDisks.ts @@ -12,6 +12,7 @@ import * as utilities from "./utilities"; * * ## Example Usage * + * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as vsphere from "@pulumi/vsphere"; @@ -29,6 +30,7 @@ import * as utilities from "./utilities"; * filter: "mpx.vmhba1:C0:T[12]:L0", * })); * ``` + * */ export function getVmfsDisks(args: GetVmfsDisksArgs, opts?: pulumi.InvokeOptions): Promise { @@ -91,6 +93,7 @@ export interface GetVmfsDisksResult { * * ## Example Usage * + * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as vsphere from "@pulumi/vsphere"; @@ -108,6 +111,7 @@ export interface GetVmfsDisksResult { * filter: "mpx.vmhba1:C0:T[12]:L0", * })); * ``` + * */ export function getVmfsDisksOutput(args: GetVmfsDisksOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output { return pulumi.output(args).apply((a: any) => getVmfsDisks(a, opts)) diff --git a/sdk/nodejs/host.ts b/sdk/nodejs/host.ts index b201af82..e6b93005 100644 --- a/sdk/nodejs/host.ts +++ b/sdk/nodejs/host.ts @@ -9,8 +9,10 @@ import * as utilities from "./utilities"; * can be used either as a member of a cluster or as a standalone host. * * ## Example Usage + * * ### Create a standalone host * + * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as vsphere from "@pulumi/vsphere"; @@ -31,8 +33,11 @@ import * as utilities from "./utilities"; * datacenter: datacenter.then(datacenter => datacenter.id), * }); * ``` + * + * * ### Create host in a compute cluster * + * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as vsphere from "@pulumi/vsphere"; @@ -57,6 +62,8 @@ import * as utilities from "./utilities"; * cluster: cluster.then(cluster => cluster.id), * }); * ``` + * + * * ## Importing * * An existing host can be [imported][docs-import] into this resource by supplying @@ -64,9 +71,11 @@ import * as utilities from "./utilities"; * * [docs-import]: /docs/import/index.html * + * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * ``` + * * * The above would import the host with ID `host-123`. */ diff --git a/sdk/nodejs/hostPortGroup.ts b/sdk/nodejs/hostPortGroup.ts index dd8ff58d..ff3c4533 100644 --- a/sdk/nodejs/hostPortGroup.ts +++ b/sdk/nodejs/hostPortGroup.ts @@ -20,6 +20,7 @@ import * as utilities from "./utilities"; * * **Create a Virtual Switch and Bind a Port Group:** * + * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as vsphere from "@pulumi/vsphere"; @@ -45,6 +46,7 @@ import * as utilities from "./utilities"; * virtualSwitchName: hostVirtualSwitch.name, * }); * ``` + * * * **Create a Port Group with a VLAN and ab Override:** * @@ -54,6 +56,7 @@ import * as utilities from "./utilities"; * to ensure that all traffic is seen on the port. The setting overrides * the implicit default of `false` set on the standard switch. * + * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as vsphere from "@pulumi/vsphere"; @@ -81,14 +84,18 @@ import * as utilities from "./utilities"; * allowPromiscuous: true, * }); * ``` + * + * * ## Importing * * An existing host port group can be imported into this resource * using the host port group's ID. An example is below: * + * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * ``` + * * * The above would import the `management` host port group from host with ID `host-123`. */ diff --git a/sdk/nodejs/license.ts b/sdk/nodejs/license.ts index 4d923a95..cbd0c37c 100644 --- a/sdk/nodejs/license.ts +++ b/sdk/nodejs/license.ts @@ -9,6 +9,7 @@ import * as utilities from "./utilities"; * * ## Example Usage * + * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as vsphere from "@pulumi/vsphere"; @@ -21,6 +22,7 @@ import * as utilities from "./utilities"; * licenseKey: "452CQ-2EK54-K8742-00000-00000", * }); * ``` + * */ export class License extends pulumi.CustomResource { /** diff --git a/sdk/nodejs/resourcePool.ts b/sdk/nodejs/resourcePool.ts index 61e9edf4..b5aa04f3 100644 --- a/sdk/nodejs/resourcePool.ts +++ b/sdk/nodejs/resourcePool.ts @@ -18,6 +18,7 @@ import * as utilities from "./utilities"; * The following example sets up a resource pool in an existing compute cluster * with the default settings for CPU and memory reservations, shares, and limits. * + * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as vsphere from "@pulumi/vsphere"; @@ -31,10 +32,12 @@ import * as utilities from "./utilities"; * })); * const resourcePool = new vsphere.ResourcePool("resourcePool", {parentResourcePoolId: computeCluster.then(computeCluster => computeCluster.resourcePoolId)}); * ``` + * * * A virtual machine resource could be targeted to use the default resource pool * of the cluster using the following: * + * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as vsphere from "@pulumi/vsphere"; @@ -42,11 +45,13 @@ import * as utilities from "./utilities"; * const vm = new vsphere.VirtualMachine("vm", {resourcePoolId: data.vsphere_compute_cluster.cluster.resource_pool_id}); * // ... other configuration ... * ``` + * * * The following example sets up a parent resource pool in an existing compute cluster * with a child resource pool nested below. Each resource pool is configured with * the default settings for CPU and memory reservations, shares, and limits. * + * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as vsphere from "@pulumi/vsphere"; @@ -61,12 +66,7 @@ import * as utilities from "./utilities"; * const resourcePoolParent = new vsphere.ResourcePool("resourcePoolParent", {parentResourcePoolId: computeCluster.then(computeCluster => computeCluster.resourcePoolId)}); * const resourcePoolChild = new vsphere.ResourcePool("resourcePoolChild", {parentResourcePoolId: resourcePoolParent.id}); * ``` - * ## Importing - * ### Settings that Require vSphere 7.0 or higher - * - * These settings require vSphere 7.0 or higher: - * - * * `scaleDescendantsShares` + * */ export class ResourcePool extends pulumi.CustomResource { /** diff --git a/sdk/nodejs/types/input.ts b/sdk/nodejs/types/input.ts index 96757f83..55ce2910 100644 --- a/sdk/nodejs/types/input.ts +++ b/sdk/nodejs/types/input.ts @@ -53,6 +53,7 @@ export interface ComputeClusterVsanStretchedCluster { * > **NOTE:** You must disable vSphere HA before you enable vSAN on the cluster. * You can enable or re-enable vSphere HA after vSAN is configured. * + * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as vsphere from "@pulumi/vsphere"; @@ -96,6 +97,7 @@ export interface ComputeClusterVsanStretchedCluster { * }, * }); * ``` + * */ secondaryFaultDomainName?: pulumi.Input; /** diff --git a/sdk/nodejs/types/output.ts b/sdk/nodejs/types/output.ts index 7c3e7d93..8dd566ba 100644 --- a/sdk/nodejs/types/output.ts +++ b/sdk/nodejs/types/output.ts @@ -53,6 +53,7 @@ export interface ComputeClusterVsanStretchedCluster { * > **NOTE:** You must disable vSphere HA before you enable vSAN on the cluster. * You can enable or re-enable vSphere HA after vSAN is configured. * + * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as vsphere from "@pulumi/vsphere"; @@ -96,6 +97,7 @@ export interface ComputeClusterVsanStretchedCluster { * }, * }); * ``` + * */ secondaryFaultDomainName?: string; /** diff --git a/sdk/nodejs/virtualMachine.ts b/sdk/nodejs/virtualMachine.ts index 0e321765..e78eb0aa 100644 --- a/sdk/nodejs/virtualMachine.ts +++ b/sdk/nodejs/virtualMachine.ts @@ -294,7 +294,7 @@ export class VirtualMachine extends pulumi.CustomResource { /** * Triggers replacement of resource whenever it changes. * - * For example, `replaceTrigger = sha256(format("%s-%s",data.template_file.cloud_init_metadata.rendered,data.template_file.cloud_init_userdata.rendered))` will fingerprint the changes in cloud-init metadata and userdata templates. This will enable a replacement of the resource whenever the dependant template renders a new configuration. (Forces a replacement.) + * For example, `replaceTrigger = sha256(format("%!s(MISSING)-%!s(MISSING)",data.template_file.cloud_init_metadata.rendered,data.template_file.cloud_init_userdata.rendered))` will fingerprint the changes in cloud-init metadata and userdata templates. This will enable a replacement of the resource whenever the dependant template renders a new configuration. (Forces a replacement.) */ public readonly replaceTrigger!: pulumi.Output; /** @@ -872,7 +872,7 @@ export interface VirtualMachineState { /** * Triggers replacement of resource whenever it changes. * - * For example, `replaceTrigger = sha256(format("%s-%s",data.template_file.cloud_init_metadata.rendered,data.template_file.cloud_init_userdata.rendered))` will fingerprint the changes in cloud-init metadata and userdata templates. This will enable a replacement of the resource whenever the dependant template renders a new configuration. (Forces a replacement.) + * For example, `replaceTrigger = sha256(format("%!s(MISSING)-%!s(MISSING)",data.template_file.cloud_init_metadata.rendered,data.template_file.cloud_init_userdata.rendered))` will fingerprint the changes in cloud-init metadata and userdata templates. This will enable a replacement of the resource whenever the dependant template renders a new configuration. (Forces a replacement.) */ replaceTrigger?: pulumi.Input; /** @@ -1229,7 +1229,7 @@ export interface VirtualMachineArgs { /** * Triggers replacement of resource whenever it changes. * - * For example, `replaceTrigger = sha256(format("%s-%s",data.template_file.cloud_init_metadata.rendered,data.template_file.cloud_init_userdata.rendered))` will fingerprint the changes in cloud-init metadata and userdata templates. This will enable a replacement of the resource whenever the dependant template renders a new configuration. (Forces a replacement.) + * For example, `replaceTrigger = sha256(format("%!s(MISSING)-%!s(MISSING)",data.template_file.cloud_init_metadata.rendered,data.template_file.cloud_init_userdata.rendered))` will fingerprint the changes in cloud-init metadata and userdata templates. This will enable a replacement of the resource whenever the dependant template renders a new configuration. (Forces a replacement.) */ replaceTrigger?: pulumi.Input; /** diff --git a/sdk/nodejs/virtualMachineSnapshot.ts b/sdk/nodejs/virtualMachineSnapshot.ts index 2935a118..4fd02320 100644 --- a/sdk/nodejs/virtualMachineSnapshot.ts +++ b/sdk/nodejs/virtualMachineSnapshot.ts @@ -29,6 +29,7 @@ import * as utilities from "./utilities"; * * ## Example Usage * + * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as vsphere from "@pulumi/vsphere"; @@ -43,6 +44,7 @@ import * as utilities from "./utilities"; * virtualMachineUuid: "9aac5551-a351-4158-8c5c-15a71e8ec5c9", * }); * ``` + * */ export class VirtualMachineSnapshot extends pulumi.CustomResource { /** diff --git a/sdk/nodejs/vmStoragePolicy.ts b/sdk/nodejs/vmStoragePolicy.ts index 0d5c4adf..1ba930d7 100644 --- a/sdk/nodejs/vmStoragePolicy.ts +++ b/sdk/nodejs/vmStoragePolicy.ts @@ -17,6 +17,7 @@ import * as utilities from "./utilities"; * * In this example, tags are first applied to datastores. * + * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as vsphere from "@pulumi/vsphere"; @@ -73,9 +74,11 @@ import * as utilities from "./utilities"; * "data.vsphere_tag.non_replicated.id", * ]}); * ``` + * * * Next, storage policies are created and `tagRules` are applied. * + * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as vsphere from "@pulumi/vsphere"; @@ -121,9 +124,11 @@ import * as utilities from "./utilities"; * ], * }); * ``` + * * * Lasttly, when creating a virtual machine resource, a storage policy can be specificed to direct virtual machine placement to a datastore which matches the policy's `tagsRules`. * + * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as vsphere from "@pulumi/vsphere"; @@ -139,6 +144,7 @@ import * as utilities from "./utilities"; * const devVm = new vsphere.VirtualMachine("devVm", {storagePolicyId: data.vsphere_storage_policy.storage_policy.dev_silver_nonreplicated.id}); * // ... other configuration ... * ``` + * */ export class VmStoragePolicy extends pulumi.CustomResource { /** diff --git a/sdk/nodejs/vnic.ts b/sdk/nodejs/vnic.ts index fc32ffb5..4a180418 100644 --- a/sdk/nodejs/vnic.ts +++ b/sdk/nodejs/vnic.ts @@ -12,8 +12,10 @@ import * as utilities from "./utilities"; * ## Example Usage * * ### S + * * ### Create a vnic attached to a distributed virtual switch using the vmotion TCP/IP stack * + * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as vsphere from "@pulumi/vsphere"; @@ -46,8 +48,11 @@ 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"; @@ -84,6 +89,8 @@ import * as utilities from "./utilities"; * ], * }); * ``` + * + * * ## Importing * * An existing vNic can be [imported][docs-import] into this resource @@ -91,9 +98,11 @@ import * as utilities from "./utilities"; * * [docs-import]: /docs/import/index.html * + * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * ``` + * * * The above would import the vnic `vmk2` from host with ID `host-123`. */ diff --git a/sdk/python/pulumi_vsphere/_inputs.py b/sdk/python/pulumi_vsphere/_inputs.py index 4ed26bc5..ebdfa8fd 100644 --- a/sdk/python/pulumi_vsphere/_inputs.py +++ b/sdk/python/pulumi_vsphere/_inputs.py @@ -160,6 +160,7 @@ def __init__(__self__, *, > **NOTE:** You must disable vSphere HA before you enable vSAN on the cluster. You can enable or re-enable vSphere HA after vSAN is configured. + ```python import pulumi import pulumi_vsphere as vsphere @@ -202,6 +203,7 @@ def __init__(__self__, *, witness_node=data["vsphere_host"]["witness_host"]["id"], )) ``` + """ pulumi.set(__self__, "preferred_fault_domain_host_ids", preferred_fault_domain_host_ids) pulumi.set(__self__, "secondary_fault_domain_host_ids", secondary_fault_domain_host_ids) @@ -268,6 +270,7 @@ def secondary_fault_domain_name(self) -> Optional[pulumi.Input[str]]: > **NOTE:** You must disable vSphere HA before you enable vSAN on the cluster. You can enable or re-enable vSphere HA after vSAN is configured. + ```python import pulumi import pulumi_vsphere as vsphere @@ -310,6 +313,7 @@ def secondary_fault_domain_name(self) -> Optional[pulumi.Input[str]]: witness_node=data["vsphere_host"]["witness_host"]["id"], )) ``` + """ return pulumi.get(self, "secondary_fault_domain_name") diff --git a/sdk/python/pulumi_vsphere/compute_cluster_vm_affinity_rule.py b/sdk/python/pulumi_vsphere/compute_cluster_vm_affinity_rule.py index 3d067826..b0666044 100644 --- a/sdk/python/pulumi_vsphere/compute_cluster_vm_affinity_rule.py +++ b/sdk/python/pulumi_vsphere/compute_cluster_vm_affinity_rule.py @@ -260,6 +260,7 @@ def __init__(__self__, then creates an affinity rule for these two virtual machines, ensuring they will run on the same host whenever possible. + ```python import pulumi import pulumi_vsphere as vsphere @@ -290,11 +291,13 @@ def __init__(__self__, compute_cluster_id=cluster.id, virtual_machine_ids=[v.id for k, v in vm]) ``` + The following example creates an affinity rule for a set of virtual machines in the cluster by looking up the virtual machine UUIDs from the `VirtualMachine` data source. + ```python import pulumi import pulumi_vsphere as vsphere @@ -313,6 +316,7 @@ def __init__(__self__, compute_cluster_id=cluster.id, virtual_machine_ids=[__item.id for __item in vms_virtual_machine]) ``` + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. @@ -368,6 +372,7 @@ def __init__(__self__, then creates an affinity rule for these two virtual machines, ensuring they will run on the same host whenever possible. + ```python import pulumi import pulumi_vsphere as vsphere @@ -398,11 +403,13 @@ def __init__(__self__, compute_cluster_id=cluster.id, virtual_machine_ids=[v.id for k, v in vm]) ``` + The following example creates an affinity rule for a set of virtual machines in the cluster by looking up the virtual machine UUIDs from the `VirtualMachine` data source. + ```python import pulumi import pulumi_vsphere as vsphere @@ -421,6 +428,7 @@ def __init__(__self__, compute_cluster_id=cluster.id, virtual_machine_ids=[__item.id for __item in vms_virtual_machine]) ``` + :param str resource_name: The name of the resource. :param ComputeClusterVmAffinityRuleArgs args: The arguments to use to populate this resource's properties. diff --git a/sdk/python/pulumi_vsphere/datacenter.py b/sdk/python/pulumi_vsphere/datacenter.py index 7e6afb74..938b96ef 100644 --- a/sdk/python/pulumi_vsphere/datacenter.py +++ b/sdk/python/pulumi_vsphere/datacenter.py @@ -238,22 +238,28 @@ def __init__(__self__, container of inventory objects such as hosts and virtual machines. ## Example Usage + ### Create datacenter on the root folder + ```python import pulumi import pulumi_vsphere as vsphere prod_datacenter = vsphere.Datacenter("prodDatacenter") ``` + + ### Create datacenter on a subfolder + ```python import pulumi import pulumi_vsphere as vsphere research_datacenter = vsphere.Datacenter("researchDatacenter", folder="/research/") ``` + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. @@ -286,22 +292,28 @@ def __init__(__self__, container of inventory objects such as hosts and virtual machines. ## Example Usage + ### Create datacenter on the root folder + ```python import pulumi import pulumi_vsphere as vsphere prod_datacenter = vsphere.Datacenter("prodDatacenter") ``` + + ### Create datacenter on a subfolder + ```python import pulumi import pulumi_vsphere as vsphere research_datacenter = vsphere.Datacenter("researchDatacenter", folder="/research/") ``` + :param str resource_name: The name of the resource. :param DatacenterArgs args: The arguments to use to populate this resource's properties. diff --git a/sdk/python/pulumi_vsphere/datastore_cluster.py b/sdk/python/pulumi_vsphere/datastore_cluster.py index 9dc37aaf..04f0dcca 100644 --- a/sdk/python/pulumi_vsphere/datastore_cluster.py +++ b/sdk/python/pulumi_vsphere/datastore_cluster.py @@ -93,7 +93,7 @@ def __init__(__self__, *, recommendations to move VMs off of a datastore. Note that this setting should only be set if `sdrs_io_reservable_percent_threshold` cannot make an accurate estimate of the capacity of the datastores in your cluster, and should be set - to roughly 50-60% of the worst case peak performance of the backing LUNs. + to roughly 50-60%!o(MISSING)f the worst case peak performance of the backing LUNs. :param pulumi.Input[int] sdrs_io_reservable_percent_threshold: The threshold, in percent, of actual estimated performance of the datastore (in IOPS) that storage DRS uses to make recommendations to move VMs off of a datastore when @@ -390,7 +390,7 @@ def sdrs_io_reservable_iops_threshold(self) -> Optional[pulumi.Input[int]]: recommendations to move VMs off of a datastore. Note that this setting should only be set if `sdrs_io_reservable_percent_threshold` cannot make an accurate estimate of the capacity of the datastores in your cluster, and should be set - to roughly 50-60% of the worst case peak performance of the backing LUNs. + to roughly 50-60%!o(MISSING)f the worst case peak performance of the backing LUNs. """ return pulumi.get(self, "sdrs_io_reservable_iops_threshold") @@ -604,7 +604,7 @@ def __init__(__self__, *, recommendations to move VMs off of a datastore. Note that this setting should only be set if `sdrs_io_reservable_percent_threshold` cannot make an accurate estimate of the capacity of the datastores in your cluster, and should be set - to roughly 50-60% of the worst case peak performance of the backing LUNs. + to roughly 50-60%!o(MISSING)f the worst case peak performance of the backing LUNs. :param pulumi.Input[int] sdrs_io_reservable_percent_threshold: The threshold, in percent, of actual estimated performance of the datastore (in IOPS) that storage DRS uses to make recommendations to move VMs off of a datastore when @@ -902,7 +902,7 @@ def sdrs_io_reservable_iops_threshold(self) -> Optional[pulumi.Input[int]]: recommendations to move VMs off of a datastore. Note that this setting should only be set if `sdrs_io_reservable_percent_threshold` cannot make an accurate estimate of the capacity of the datastores in your cluster, and should be set - to roughly 50-60% of the worst case peak performance of the backing LUNs. + to roughly 50-60%!o(MISSING)f the worst case peak performance of the backing LUNs. """ return pulumi.get(self, "sdrs_io_reservable_iops_threshold") @@ -1121,7 +1121,7 @@ def __init__(__self__, recommendations to move VMs off of a datastore. Note that this setting should only be set if `sdrs_io_reservable_percent_threshold` cannot make an accurate estimate of the capacity of the datastores in your cluster, and should be set - to roughly 50-60% of the worst case peak performance of the backing LUNs. + to roughly 50-60%!o(MISSING)f the worst case peak performance of the backing LUNs. :param pulumi.Input[int] sdrs_io_reservable_percent_threshold: The threshold, in percent, of actual estimated performance of the datastore (in IOPS) that storage DRS uses to make recommendations to move VMs off of a datastore when @@ -1325,7 +1325,7 @@ def get(resource_name: str, recommendations to move VMs off of a datastore. Note that this setting should only be set if `sdrs_io_reservable_percent_threshold` cannot make an accurate estimate of the capacity of the datastores in your cluster, and should be set - to roughly 50-60% of the worst case peak performance of the backing LUNs. + to roughly 50-60%!o(MISSING)f the worst case peak performance of the backing LUNs. :param pulumi.Input[int] sdrs_io_reservable_percent_threshold: The threshold, in percent, of actual estimated performance of the datastore (in IOPS) that storage DRS uses to make recommendations to move VMs off of a datastore when @@ -1543,7 +1543,7 @@ def sdrs_io_reservable_iops_threshold(self) -> pulumi.Output[Optional[int]]: recommendations to move VMs off of a datastore. Note that this setting should only be set if `sdrs_io_reservable_percent_threshold` cannot make an accurate estimate of the capacity of the datastores in your cluster, and should be set - to roughly 50-60% of the worst case peak performance of the backing LUNs. + to roughly 50-60%!o(MISSING)f the worst case peak performance of the backing LUNs. """ return pulumi.get(self, "sdrs_io_reservable_iops_threshold") diff --git a/sdk/python/pulumi_vsphere/distributed_virtual_switch.py b/sdk/python/pulumi_vsphere/distributed_virtual_switch.py index 12b7d331..32dacfc8 100644 --- a/sdk/python/pulumi_vsphere/distributed_virtual_switch.py +++ b/sdk/python/pulumi_vsphere/distributed_virtual_switch.py @@ -226,7 +226,8 @@ def __init__(__self__, *, :param pulumi.Input[int] netflow_sampling_rate: The ratio of total number of packets to the number of packets analyzed. The default is `0`, which indicates that the VDS should analyze all packets. The maximum value is `1000`, which - indicates an analysis rate of 0.001%. + indicates an analysis rate of 0.001%! + (MISSING) :param pulumi.Input[bool] network_resource_control_enabled: Set to `true` to enable network I/O control. Default: `false`. :param pulumi.Input[str] network_resource_control_version: The version of network I/O @@ -275,6 +276,7 @@ def __init__(__self__, *, `vlan_range` definitions are allowed, but they must not overlap. Example below: + ```python import pulumi import pulumi_vsphere as vsphere @@ -290,6 +292,7 @@ def __init__(__self__, *, ), ]) ``` + :param pulumi.Input[int] vmotion_maximum_mbit: The maximum allowed usage for the vmotion traffic class, in Mbits/sec. :param pulumi.Input[int] vmotion_reservation_mbit: The amount of guaranteed bandwidth for the vmotion traffic class, in Mbits/sec. :param pulumi.Input[int] vmotion_share_count: The amount of shares to allocate to the vmotion traffic class for a custom share level. @@ -1265,7 +1268,8 @@ def netflow_sampling_rate(self) -> Optional[pulumi.Input[int]]: The ratio of total number of packets to the number of packets analyzed. The default is `0`, which indicates that the VDS should analyze all packets. The maximum value is `1000`, which - indicates an analysis rate of 0.001%. + indicates an analysis rate of 0.001%! + (MISSING) """ return pulumi.get(self, "netflow_sampling_rate") @@ -1589,6 +1593,7 @@ def vlan_ranges(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['Distribute `vlan_range` definitions are allowed, but they must not overlap. Example below: + ```python import pulumi import pulumi_vsphere as vsphere @@ -1604,6 +1609,7 @@ def vlan_ranges(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['Distribute ), ]) ``` + """ return pulumi.get(self, "vlan_ranges") @@ -1924,7 +1930,8 @@ def __init__(__self__, *, :param pulumi.Input[int] netflow_sampling_rate: The ratio of total number of packets to the number of packets analyzed. The default is `0`, which indicates that the VDS should analyze all packets. The maximum value is `1000`, which - indicates an analysis rate of 0.001%. + indicates an analysis rate of 0.001%! + (MISSING) :param pulumi.Input[bool] network_resource_control_enabled: Set to `true` to enable network I/O control. Default: `false`. :param pulumi.Input[str] network_resource_control_version: The version of network I/O @@ -1973,6 +1980,7 @@ def __init__(__self__, *, `vlan_range` definitions are allowed, but they must not overlap. Example below: + ```python import pulumi import pulumi_vsphere as vsphere @@ -1988,6 +1996,7 @@ def __init__(__self__, *, ), ]) ``` + :param pulumi.Input[int] vmotion_maximum_mbit: The maximum allowed usage for the vmotion traffic class, in Mbits/sec. :param pulumi.Input[int] vmotion_reservation_mbit: The amount of guaranteed bandwidth for the vmotion traffic class, in Mbits/sec. :param pulumi.Input[int] vmotion_share_count: The amount of shares to allocate to the vmotion traffic class for a custom share level. @@ -2979,7 +2988,8 @@ def netflow_sampling_rate(self) -> Optional[pulumi.Input[int]]: The ratio of total number of packets to the number of packets analyzed. The default is `0`, which indicates that the VDS should analyze all packets. The maximum value is `1000`, which - indicates an analysis rate of 0.001%. + indicates an analysis rate of 0.001%! + (MISSING) """ return pulumi.get(self, "netflow_sampling_rate") @@ -3303,6 +3313,7 @@ def vlan_ranges(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['Distribute `vlan_range` definitions are allowed, but they must not overlap. Example below: + ```python import pulumi import pulumi_vsphere as vsphere @@ -3318,6 +3329,7 @@ def vlan_ranges(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['Distribute ), ]) ``` + """ return pulumi.get(self, "vlan_ranges") @@ -3640,7 +3652,8 @@ def __init__(__self__, :param pulumi.Input[int] netflow_sampling_rate: The ratio of total number of packets to the number of packets analyzed. The default is `0`, which indicates that the VDS should analyze all packets. The maximum value is `1000`, which - indicates an analysis rate of 0.001%. + indicates an analysis rate of 0.001%! + (MISSING) :param pulumi.Input[bool] network_resource_control_enabled: Set to `true` to enable network I/O control. Default: `false`. :param pulumi.Input[str] network_resource_control_version: The version of network I/O @@ -3689,6 +3702,7 @@ def __init__(__self__, `vlan_range` definitions are allowed, but they must not overlap. Example below: + ```python import pulumi import pulumi_vsphere as vsphere @@ -3704,6 +3718,7 @@ def __init__(__self__, ), ]) ``` + :param pulumi.Input[int] vmotion_maximum_mbit: The maximum allowed usage for the vmotion traffic class, in Mbits/sec. :param pulumi.Input[int] vmotion_reservation_mbit: The amount of guaranteed bandwidth for the vmotion traffic class, in Mbits/sec. :param pulumi.Input[int] vmotion_share_count: The amount of shares to allocate to the vmotion traffic class for a custom share level. @@ -4164,7 +4179,8 @@ def get(resource_name: str, :param pulumi.Input[int] netflow_sampling_rate: The ratio of total number of packets to the number of packets analyzed. The default is `0`, which indicates that the VDS should analyze all packets. The maximum value is `1000`, which - indicates an analysis rate of 0.001%. + indicates an analysis rate of 0.001%! + (MISSING) :param pulumi.Input[bool] network_resource_control_enabled: Set to `true` to enable network I/O control. Default: `false`. :param pulumi.Input[str] network_resource_control_version: The version of network I/O @@ -4213,6 +4229,7 @@ def get(resource_name: str, `vlan_range` definitions are allowed, but they must not overlap. Example below: + ```python import pulumi import pulumi_vsphere as vsphere @@ -4228,6 +4245,7 @@ def get(resource_name: str, ), ]) ``` + :param pulumi.Input[int] vmotion_maximum_mbit: The maximum allowed usage for the vmotion traffic class, in Mbits/sec. :param pulumi.Input[int] vmotion_reservation_mbit: The amount of guaranteed bandwidth for the vmotion traffic class, in Mbits/sec. :param pulumi.Input[int] vmotion_share_count: The amount of shares to allocate to the vmotion traffic class for a custom share level. @@ -4885,7 +4903,8 @@ def netflow_sampling_rate(self) -> pulumi.Output[Optional[int]]: The ratio of total number of packets to the number of packets analyzed. The default is `0`, which indicates that the VDS should analyze all packets. The maximum value is `1000`, which - indicates an analysis rate of 0.001%. + indicates an analysis rate of 0.001%! + (MISSING) """ return pulumi.get(self, "netflow_sampling_rate") @@ -5109,6 +5128,7 @@ def vlan_ranges(self) -> pulumi.Output[Sequence['outputs.DistributedVirtualSwitc `vlan_range` definitions are allowed, but they must not overlap. Example below: + ```python import pulumi import pulumi_vsphere as vsphere @@ -5124,6 +5144,7 @@ def vlan_ranges(self) -> pulumi.Output[Sequence['outputs.DistributedVirtualSwitc ), ]) ``` + """ return pulumi.get(self, "vlan_ranges") diff --git a/sdk/python/pulumi_vsphere/file.py b/sdk/python/pulumi_vsphere/file.py index 1339ac7f..76c75ea5 100644 --- a/sdk/python/pulumi_vsphere/file.py +++ b/sdk/python/pulumi_vsphere/file.py @@ -295,8 +295,10 @@ def __init__(__self__, __props__=None): """ ## Example Usage + ### Uploading a File + ```python import pulumi import pulumi_vsphere as vsphere @@ -308,8 +310,11 @@ def __init__(__self__, destination_file="/my/dst/path/custom_ubuntu.vmdk", source_file="/my/src/path/custom_ubuntu.vmdk") ``` + + ### Copying a File + ```python import pulumi import pulumi_vsphere as vsphere @@ -323,6 +328,7 @@ def __init__(__self__, source_datastore="datastore-01", source_file="/my/src/path/custom_ubuntu.vmdk") ``` + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. @@ -351,8 +357,10 @@ def __init__(__self__, opts: Optional[pulumi.ResourceOptions] = None): """ ## Example Usage + ### Uploading a File + ```python import pulumi import pulumi_vsphere as vsphere @@ -364,8 +372,11 @@ def __init__(__self__, destination_file="/my/dst/path/custom_ubuntu.vmdk", source_file="/my/src/path/custom_ubuntu.vmdk") ``` + + ### Copying a File + ```python import pulumi import pulumi_vsphere as vsphere @@ -379,6 +390,7 @@ def __init__(__self__, source_datastore="datastore-01", source_file="/my/src/path/custom_ubuntu.vmdk") ``` + :param str resource_name: The name of the resource. :param FileArgs args: The arguments to use to populate this resource's properties. diff --git a/sdk/python/pulumi_vsphere/get_compute_cluster.py b/sdk/python/pulumi_vsphere/get_compute_cluster.py index 7add99a1..b64f6457 100644 --- a/sdk/python/pulumi_vsphere/get_compute_cluster.py +++ b/sdk/python/pulumi_vsphere/get_compute_cluster.py @@ -91,6 +91,7 @@ def get_compute_cluster(datacenter_id: Optional[str] = None, ## Example Usage + ```python import pulumi import pulumi_vsphere as vsphere @@ -99,6 +100,7 @@ def get_compute_cluster(datacenter_id: Optional[str] = None, compute_cluster = vsphere.get_compute_cluster(name="cluster-01", datacenter_id=datacenter.id) ``` + :param str datacenter_id: The managed object reference ID @@ -137,6 +139,7 @@ def get_compute_cluster_output(datacenter_id: Optional[pulumi.Input[Optional[str ## Example Usage + ```python import pulumi import pulumi_vsphere as vsphere @@ -145,6 +148,7 @@ def get_compute_cluster_output(datacenter_id: Optional[pulumi.Input[Optional[str compute_cluster = vsphere.get_compute_cluster(name="cluster-01", datacenter_id=datacenter.id) ``` + :param str datacenter_id: The managed object reference ID diff --git a/sdk/python/pulumi_vsphere/get_compute_cluster_host_group.py b/sdk/python/pulumi_vsphere/get_compute_cluster_host_group.py index 7002a08a..77e66faa 100644 --- a/sdk/python/pulumi_vsphere/get_compute_cluster_host_group.py +++ b/sdk/python/pulumi_vsphere/get_compute_cluster_host_group.py @@ -85,6 +85,7 @@ def get_compute_cluster_host_group(compute_cluster_id: Optional[str] = None, ## Example Usage + ```python import pulumi import pulumi_vsphere as vsphere @@ -99,6 +100,7 @@ def get_compute_cluster_host_group(compute_cluster_id: Optional[str] = None, vm_group_name="vm_group1", affinity_host_group_name=host_group1.name) ``` + :param str compute_cluster_id: The [managed object reference ID][docs-about-morefs] @@ -131,6 +133,7 @@ def get_compute_cluster_host_group_output(compute_cluster_id: Optional[pulumi.In ## Example Usage + ```python import pulumi import pulumi_vsphere as vsphere @@ -145,6 +148,7 @@ def get_compute_cluster_host_group_output(compute_cluster_id: Optional[pulumi.In vm_group_name="vm_group1", affinity_host_group_name=host_group1.name) ``` + :param str compute_cluster_id: The [managed object reference ID][docs-about-morefs] diff --git a/sdk/python/pulumi_vsphere/get_content_library.py b/sdk/python/pulumi_vsphere/get_content_library.py index 697b9dff..e286db61 100644 --- a/sdk/python/pulumi_vsphere/get_content_library.py +++ b/sdk/python/pulumi_vsphere/get_content_library.py @@ -62,12 +62,14 @@ def get_content_library(name: Optional[str] = None, ## Example Usage + ```python import pulumi import pulumi_vsphere as vsphere library = vsphere.get_content_library(name="Content Library") ``` + :param str name: The name of the content library. @@ -92,12 +94,14 @@ def get_content_library_output(name: Optional[pulumi.Input[str]] = None, ## Example Usage + ```python import pulumi import pulumi_vsphere as vsphere library = vsphere.get_content_library(name="Content Library") ``` + :param str name: The name of the content library. diff --git a/sdk/python/pulumi_vsphere/get_custom_attribute.py b/sdk/python/pulumi_vsphere/get_custom_attribute.py index eb738aaa..8301c69c 100644 --- a/sdk/python/pulumi_vsphere/get_custom_attribute.py +++ b/sdk/python/pulumi_vsphere/get_custom_attribute.py @@ -76,12 +76,14 @@ def get_custom_attribute(name: Optional[str] = None, ## Example Usage + ```python import pulumi import pulumi_vsphere as vsphere attribute = vsphere.get_custom_attribute(name="test-attribute") ``` + :param str name: The name of the custom attribute. @@ -112,12 +114,14 @@ def get_custom_attribute_output(name: Optional[pulumi.Input[str]] = None, ## Example Usage + ```python import pulumi import pulumi_vsphere as vsphere attribute = vsphere.get_custom_attribute(name="test-attribute") ``` + :param str name: The name of the custom attribute. diff --git a/sdk/python/pulumi_vsphere/get_datacenter.py b/sdk/python/pulumi_vsphere/get_datacenter.py index 42e67534..4ca0b3fe 100644 --- a/sdk/python/pulumi_vsphere/get_datacenter.py +++ b/sdk/python/pulumi_vsphere/get_datacenter.py @@ -63,12 +63,14 @@ def get_datacenter(name: Optional[str] = None, ## Example Usage + ```python import pulumi import pulumi_vsphere as vsphere datacenter = vsphere.get_datacenter(name="dc-01") ``` + :param str name: The name of the datacenter. This can be a name or path. @@ -100,12 +102,14 @@ def get_datacenter_output(name: Optional[pulumi.Input[Optional[str]]] = None, ## Example Usage + ```python import pulumi import pulumi_vsphere as vsphere datacenter = vsphere.get_datacenter(name="dc-01") ``` + :param str name: The name of the datacenter. This can be a name or path. diff --git a/sdk/python/pulumi_vsphere/get_datastore.py b/sdk/python/pulumi_vsphere/get_datastore.py index 44a7afaf..39d7375d 100644 --- a/sdk/python/pulumi_vsphere/get_datastore.py +++ b/sdk/python/pulumi_vsphere/get_datastore.py @@ -73,6 +73,7 @@ def get_datastore(datacenter_id: Optional[str] = None, ## Example Usage + ```python import pulumi import pulumi_vsphere as vsphere @@ -81,6 +82,7 @@ def get_datastore(datacenter_id: Optional[str] = None, datastore = vsphere.get_datastore(name="datastore-01", datacenter_id=datacenter.id) ``` + :param str datacenter_id: The managed object reference ID @@ -113,6 +115,7 @@ def get_datastore_output(datacenter_id: Optional[pulumi.Input[Optional[str]]] = ## Example Usage + ```python import pulumi import pulumi_vsphere as vsphere @@ -121,6 +124,7 @@ def get_datastore_output(datacenter_id: Optional[pulumi.Input[Optional[str]]] = datastore = vsphere.get_datastore(name="datastore-01", datacenter_id=datacenter.id) ``` + :param str datacenter_id: The managed object reference ID diff --git a/sdk/python/pulumi_vsphere/get_datastore_cluster.py b/sdk/python/pulumi_vsphere/get_datastore_cluster.py index 82bd9c81..43a9f6a2 100644 --- a/sdk/python/pulumi_vsphere/get_datastore_cluster.py +++ b/sdk/python/pulumi_vsphere/get_datastore_cluster.py @@ -73,6 +73,7 @@ def get_datastore_cluster(datacenter_id: Optional[str] = None, ## Example Usage + ```python import pulumi import pulumi_vsphere as vsphere @@ -81,6 +82,7 @@ def get_datastore_cluster(datacenter_id: Optional[str] = None, datastore_cluster = vsphere.get_datastore_cluster(name="datastore-cluster-01", datacenter_id=datacenter.id) ``` + :param str datacenter_id: The managed object reference @@ -114,6 +116,7 @@ def get_datastore_cluster_output(datacenter_id: Optional[pulumi.Input[Optional[s ## Example Usage + ```python import pulumi import pulumi_vsphere as vsphere @@ -122,6 +125,7 @@ def get_datastore_cluster_output(datacenter_id: Optional[pulumi.Input[Optional[s datastore_cluster = vsphere.get_datastore_cluster(name="datastore-cluster-01", datacenter_id=datacenter.id) ``` + :param str datacenter_id: The managed object reference diff --git a/sdk/python/pulumi_vsphere/get_distributed_virtual_switch.py b/sdk/python/pulumi_vsphere/get_distributed_virtual_switch.py index d67e206f..8b9a281c 100644 --- a/sdk/python/pulumi_vsphere/get_distributed_virtual_switch.py +++ b/sdk/python/pulumi_vsphere/get_distributed_virtual_switch.py @@ -97,6 +97,7 @@ def get_distributed_virtual_switch(datacenter_id: Optional[str] = None, `DistributedPortGroup` resource that uses the first uplink as a primary uplink and the second uplink as a secondary. + ```python import pulumi import pulumi_vsphere as vsphere @@ -109,6 +110,7 @@ def get_distributed_virtual_switch(datacenter_id: Optional[str] = None, active_uplinks=[vds.uplinks[0]], standby_uplinks=[vds.uplinks[1]]) ``` + :param str datacenter_id: The managed object reference ID @@ -151,6 +153,7 @@ def get_distributed_virtual_switch_output(datacenter_id: Optional[pulumi.Input[O `DistributedPortGroup` resource that uses the first uplink as a primary uplink and the second uplink as a secondary. + ```python import pulumi import pulumi_vsphere as vsphere @@ -163,6 +166,7 @@ def get_distributed_virtual_switch_output(datacenter_id: Optional[pulumi.Input[O active_uplinks=[vds.uplinks[0]], standby_uplinks=[vds.uplinks[1]]) ``` + :param str datacenter_id: The managed object reference ID diff --git a/sdk/python/pulumi_vsphere/get_dynamic.py b/sdk/python/pulumi_vsphere/get_dynamic.py index e27048a9..62cfd9fa 100644 --- a/sdk/python/pulumi_vsphere/get_dynamic.py +++ b/sdk/python/pulumi_vsphere/get_dynamic.py @@ -84,6 +84,7 @@ def get_dynamic(filters: Optional[Sequence[str]] = None, ## Example Usage + ```python import pulumi import pulumi_vsphere as vsphere @@ -100,6 +101,7 @@ def get_dynamic(filters: Optional[Sequence[str]] = None, name_regex="ubuntu", type="Datacenter") ``` + :param Sequence[str] filters: A list of tag IDs that must be present on an object to @@ -138,6 +140,7 @@ def get_dynamic_output(filters: Optional[pulumi.Input[Sequence[str]]] = None, ## Example Usage + ```python import pulumi import pulumi_vsphere as vsphere @@ -154,6 +157,7 @@ def get_dynamic_output(filters: Optional[pulumi.Input[Sequence[str]]] = None, name_regex="ubuntu", type="Datacenter") ``` + :param Sequence[str] filters: A list of tag IDs that must be present on an object to diff --git a/sdk/python/pulumi_vsphere/get_folder.py b/sdk/python/pulumi_vsphere/get_folder.py index 70bd84c8..b2dc293d 100644 --- a/sdk/python/pulumi_vsphere/get_folder.py +++ b/sdk/python/pulumi_vsphere/get_folder.py @@ -61,12 +61,14 @@ def get_folder(path: Optional[str] = None, ## Example Usage + ```python import pulumi import pulumi_vsphere as vsphere folder = vsphere.get_folder(path="/dc-01/datastore-01/folder-01") ``` + :param str path: The absolute path of the folder. For example, given a @@ -94,12 +96,14 @@ def get_folder_output(path: Optional[pulumi.Input[str]] = None, ## Example Usage + ```python import pulumi import pulumi_vsphere as vsphere folder = vsphere.get_folder(path="/dc-01/datastore-01/folder-01") ``` + :param str path: The absolute path of the folder. For example, given a diff --git a/sdk/python/pulumi_vsphere/get_guest_os_customization.py b/sdk/python/pulumi_vsphere/get_guest_os_customization.py index 9b82bff2..96c5b83b 100644 --- a/sdk/python/pulumi_vsphere/get_guest_os_customization.py +++ b/sdk/python/pulumi_vsphere/get_guest_os_customization.py @@ -124,12 +124,14 @@ def get_guest_os_customization(name: Optional[str] = None, ## Example Usage + ```python import pulumi import pulumi_vsphere as vsphere gosc1 = vsphere.get_guest_os_customization(name="linux-spec") ``` + :param str name: The name of the customization specification is the unique identifier per vCenter Server instance. @@ -160,12 +162,14 @@ def get_guest_os_customization_output(name: Optional[pulumi.Input[str]] = None, ## Example Usage + ```python import pulumi import pulumi_vsphere as vsphere gosc1 = vsphere.get_guest_os_customization(name="linux-spec") ``` + :param str name: The name of the customization specification is the unique identifier per vCenter Server instance. diff --git a/sdk/python/pulumi_vsphere/get_host.py b/sdk/python/pulumi_vsphere/get_host.py index f2c28dac..c2e9dda5 100644 --- a/sdk/python/pulumi_vsphere/get_host.py +++ b/sdk/python/pulumi_vsphere/get_host.py @@ -85,6 +85,7 @@ def get_host(datacenter_id: Optional[str] = None, ## Example Usage + ```python import pulumi import pulumi_vsphere as vsphere @@ -93,6 +94,7 @@ def get_host(datacenter_id: Optional[str] = None, host = vsphere.get_host(name="esxi-01.example.com", datacenter_id=datacenter.id) ``` + :param str datacenter_id: The managed object reference ID @@ -127,6 +129,7 @@ def get_host_output(datacenter_id: Optional[pulumi.Input[str]] = None, ## Example Usage + ```python import pulumi import pulumi_vsphere as vsphere @@ -135,6 +138,7 @@ def get_host_output(datacenter_id: Optional[pulumi.Input[str]] = None, host = vsphere.get_host(name="esxi-01.example.com", datacenter_id=datacenter.id) ``` + :param str datacenter_id: The managed object reference ID diff --git a/sdk/python/pulumi_vsphere/get_host_pci_device.py b/sdk/python/pulumi_vsphere/get_host_pci_device.py index 47350683..2807c036 100644 --- a/sdk/python/pulumi_vsphere/get_host_pci_device.py +++ b/sdk/python/pulumi_vsphere/get_host_pci_device.py @@ -103,8 +103,10 @@ def get_host_pci_device(class_id: Optional[str] = None, `VirtualMachine`'s `pci_device_id`. ## Example Usage + ### With Vendor ID And Class ID + ```python import pulumi import pulumi_vsphere as vsphere @@ -116,8 +118,23 @@ def get_host_pci_device(class_id: Optional[str] = None, class_id="123", vendor_id="456") ``` + + ### With Name Regular Expression + + ```python + import pulumi + import pulumi_vsphere as vsphere + + datacenter = vsphere.get_datacenter(name="dc-01") + host = vsphere.get_host(name="esxi-01.example.com", + datacenter_id=datacenter.id) + dev = vsphere.get_host_pci_device(host_id=host.id, + name_regex="MMC") + ``` + + :param str class_id: The hexadecimal PCI device class ID @@ -158,8 +175,10 @@ def get_host_pci_device_output(class_id: Optional[pulumi.Input[Optional[str]]] = `VirtualMachine`'s `pci_device_id`. ## Example Usage + ### With Vendor ID And Class ID + ```python import pulumi import pulumi_vsphere as vsphere @@ -171,8 +190,23 @@ def get_host_pci_device_output(class_id: Optional[pulumi.Input[Optional[str]]] = class_id="123", vendor_id="456") ``` + + ### With Name Regular Expression + + ```python + import pulumi + import pulumi_vsphere as vsphere + + datacenter = vsphere.get_datacenter(name="dc-01") + host = vsphere.get_host(name="esxi-01.example.com", + datacenter_id=datacenter.id) + dev = vsphere.get_host_pci_device(host_id=host.id, + name_regex="MMC") + ``` + + :param str class_id: The hexadecimal PCI device class ID diff --git a/sdk/python/pulumi_vsphere/get_host_thumbprint.py b/sdk/python/pulumi_vsphere/get_host_thumbprint.py index c066dced..a3273341 100644 --- a/sdk/python/pulumi_vsphere/get_host_thumbprint.py +++ b/sdk/python/pulumi_vsphere/get_host_thumbprint.py @@ -83,12 +83,14 @@ def get_host_thumbprint(address: Optional[str] = None, ## Example Usage + ```python import pulumi import pulumi_vsphere as vsphere thumbprint = vsphere.get_host_thumbprint(address="esxi-01.example.com") ``` + :param str address: The address of the ESXi host to retrieve the @@ -124,12 +126,14 @@ def get_host_thumbprint_output(address: Optional[pulumi.Input[str]] = None, ## Example Usage + ```python import pulumi import pulumi_vsphere as vsphere thumbprint = vsphere.get_host_thumbprint(address="esxi-01.example.com") ``` + :param str address: The address of the ESXi host to retrieve the diff --git a/sdk/python/pulumi_vsphere/get_license.py b/sdk/python/pulumi_vsphere/get_license.py index 0acb4dfe..966697e8 100644 --- a/sdk/python/pulumi_vsphere/get_license.py +++ b/sdk/python/pulumi_vsphere/get_license.py @@ -118,12 +118,14 @@ def get_license(license_key: Optional[str] = None, ## Example Usage + ```python import pulumi import pulumi_vsphere as vsphere license = vsphere.get_license(license_key="00000-00000-00000-00000-00000") ``` + :param str license_key: The license key. @@ -152,12 +154,14 @@ def get_license_output(license_key: Optional[pulumi.Input[str]] = None, ## Example Usage + ```python import pulumi import pulumi_vsphere as vsphere license = vsphere.get_license(license_key="00000-00000-00000-00000-00000") ``` + :param str license_key: The license key. diff --git a/sdk/python/pulumi_vsphere/get_network.py b/sdk/python/pulumi_vsphere/get_network.py index d0016610..f43d2966 100644 --- a/sdk/python/pulumi_vsphere/get_network.py +++ b/sdk/python/pulumi_vsphere/get_network.py @@ -99,6 +99,7 @@ def get_network(datacenter_id: Optional[str] = None, ## Example Usage + ```python import pulumi import pulumi_vsphere as vsphere @@ -107,6 +108,7 @@ def get_network(datacenter_id: Optional[str] = None, network = vsphere.get_network(name="VM Network", datacenter_id=datacenter.id) ``` + :param str datacenter_id: The managed object reference ID @@ -148,6 +150,7 @@ def get_network_output(datacenter_id: Optional[pulumi.Input[Optional[str]]] = No ## Example Usage + ```python import pulumi import pulumi_vsphere as vsphere @@ -156,6 +159,7 @@ def get_network_output(datacenter_id: Optional[pulumi.Input[Optional[str]]] = No network = vsphere.get_network(name="VM Network", datacenter_id=datacenter.id) ``` + :param str datacenter_id: The managed object reference ID diff --git a/sdk/python/pulumi_vsphere/get_ovf_vm_template.py b/sdk/python/pulumi_vsphere/get_ovf_vm_template.py index 51b880e9..bcd579f5 100644 --- a/sdk/python/pulumi_vsphere/get_ovf_vm_template.py +++ b/sdk/python/pulumi_vsphere/get_ovf_vm_template.py @@ -385,90 +385,6 @@ def get_ovf_vm_template(allow_unverified_ssl_cert: Optional[bool] = None, vSphere and extract its hardware settings in a form that can be then used as inputs for a `VirtualMachine` resource. - ## Remote OVF/OVA Source - - data "vsphere_ovf_vm_template" "ovfRemote" { - name = "Nested-ESXi-7.0-Terraform-Deploy-1" - disk_provisioning = "thin" - resource_pool_id = data.vsphere_resource_pool.default.id - datastore_id = data.vsphere_datastore.datastore.id - host_system_id = data.vsphere_host.host.id - remote_ovf_url = "https://download3.vmware.com/software/vmw-tools/nested-esxi/Nested_ESXi7.0u3_Appliance_Template_v1.ova" - ovf_network_map = { - "VM Network" : data.vsphere_network.network.id - } - } - - ## Local OVF/OVA Source - - data "vsphere_ovf_vm_template" "ovfLocal" { - name = "Nested-ESXi-7.0-Terraform-Deploy-2" - disk_provisioning = "thin" - resource_pool_id = data.vsphere_resource_pool.default.id - datastore_id = data.vsphere_datastore.datastore.id - host_system_id = data.vsphere_host.host.id - local_ovf_path = "/Volume/Storage/OVA/Nested_ESXi7.0u3_Appliance_Template_v1.ova" - ovf_network_map = { - "VM Network" : data.vsphere_network.network.id - } - } - - ## Deployment of VM from Remote OVF - - resource "vsphere_virtual_machine" "vmFromRemoteOvf" { - name = "Nested-ESXi-7.0-Terraform-Deploy-1" - datacenter_id = data.vsphere_datacenter.datacenter.id - datastore_id = data.vsphere_datastore.datastore.id - host_system_id = data.vsphere_host.host.id - resource_pool_id = data.vsphere_resource_pool.default.id - num_cpus = data.vsphere_ovf_vm_template.ovfRemote.num_cpus - num_cores_per_socket = data.vsphere_ovf_vm_template.ovfRemote.num_cores_per_socket - memory = data.vsphere_ovf_vm_template.ovfRemote.memory - guest_id = data.vsphere_ovf_vm_template.ovfRemote.guest_id - firmware = data.vsphere_ovf_vm_template.ovfRemote.firmware - scsi_type = data.vsphere_ovf_vm_template.ovfRemote.scsi_type - nested_hv_enabled = data.vsphere_ovf_vm_template.ovfRemote.nested_hv_enabled - dynamic "network_interface" { - for_each = data.vsphere_ovf_vm_template.ovfRemote.ovf_network_map - content { - network_id = network_interface.value - } - } - wait_for_guest_net_timeout = 0 - wait_for_guest_ip_timeout = 0 - - ovf_deploy { - allow_unverified_ssl_cert = false - remote_ovf_url = data.vsphere_ovf_vm_template.ovfRemote.remote_ovf_url - disk_provisioning = data.vsphere_ovf_vm_template.ovfRemote.disk_provisioning - ovf_network_map = data.vsphere_ovf_vm_template.ovfRemote.ovf_network_map - } - - vapp { - properties = { - "guestinfo.hostname" = "nested-esxi-01.example.com", - "guestinfo.ipaddress" = "172.16.11.101", - "guestinfo.netmask" = "255.255.255.0", - "guestinfo.gateway" = "172.16.11.1", - "guestinfo.dns" = "172.16.11.4", - "guestinfo.domain" = "example.com", - "guestinfo.ntp" = "ntp.example.com", - "guestinfo.password" = "VMware1!", - "guestinfo.ssh" = "True" - } - } - - lifecycle { - ignore_changes = [ - annotation, - disk[0].io_share_count, - disk[1].io_share_count, - disk[2].io_share_count, - vapp[0].properties, - ] - } - } - :param bool allow_unverified_ssl_cert: Allow unverified SSL certificates when deploying OVF/OVA from a URL. @@ -575,90 +491,6 @@ def get_ovf_vm_template_output(allow_unverified_ssl_cert: Optional[pulumi.Input[ vSphere and extract its hardware settings in a form that can be then used as inputs for a `VirtualMachine` resource. - ## Remote OVF/OVA Source - - data "vsphere_ovf_vm_template" "ovfRemote" { - name = "Nested-ESXi-7.0-Terraform-Deploy-1" - disk_provisioning = "thin" - resource_pool_id = data.vsphere_resource_pool.default.id - datastore_id = data.vsphere_datastore.datastore.id - host_system_id = data.vsphere_host.host.id - remote_ovf_url = "https://download3.vmware.com/software/vmw-tools/nested-esxi/Nested_ESXi7.0u3_Appliance_Template_v1.ova" - ovf_network_map = { - "VM Network" : data.vsphere_network.network.id - } - } - - ## Local OVF/OVA Source - - data "vsphere_ovf_vm_template" "ovfLocal" { - name = "Nested-ESXi-7.0-Terraform-Deploy-2" - disk_provisioning = "thin" - resource_pool_id = data.vsphere_resource_pool.default.id - datastore_id = data.vsphere_datastore.datastore.id - host_system_id = data.vsphere_host.host.id - local_ovf_path = "/Volume/Storage/OVA/Nested_ESXi7.0u3_Appliance_Template_v1.ova" - ovf_network_map = { - "VM Network" : data.vsphere_network.network.id - } - } - - ## Deployment of VM from Remote OVF - - resource "vsphere_virtual_machine" "vmFromRemoteOvf" { - name = "Nested-ESXi-7.0-Terraform-Deploy-1" - datacenter_id = data.vsphere_datacenter.datacenter.id - datastore_id = data.vsphere_datastore.datastore.id - host_system_id = data.vsphere_host.host.id - resource_pool_id = data.vsphere_resource_pool.default.id - num_cpus = data.vsphere_ovf_vm_template.ovfRemote.num_cpus - num_cores_per_socket = data.vsphere_ovf_vm_template.ovfRemote.num_cores_per_socket - memory = data.vsphere_ovf_vm_template.ovfRemote.memory - guest_id = data.vsphere_ovf_vm_template.ovfRemote.guest_id - firmware = data.vsphere_ovf_vm_template.ovfRemote.firmware - scsi_type = data.vsphere_ovf_vm_template.ovfRemote.scsi_type - nested_hv_enabled = data.vsphere_ovf_vm_template.ovfRemote.nested_hv_enabled - dynamic "network_interface" { - for_each = data.vsphere_ovf_vm_template.ovfRemote.ovf_network_map - content { - network_id = network_interface.value - } - } - wait_for_guest_net_timeout = 0 - wait_for_guest_ip_timeout = 0 - - ovf_deploy { - allow_unverified_ssl_cert = false - remote_ovf_url = data.vsphere_ovf_vm_template.ovfRemote.remote_ovf_url - disk_provisioning = data.vsphere_ovf_vm_template.ovfRemote.disk_provisioning - ovf_network_map = data.vsphere_ovf_vm_template.ovfRemote.ovf_network_map - } - - vapp { - properties = { - "guestinfo.hostname" = "nested-esxi-01.example.com", - "guestinfo.ipaddress" = "172.16.11.101", - "guestinfo.netmask" = "255.255.255.0", - "guestinfo.gateway" = "172.16.11.1", - "guestinfo.dns" = "172.16.11.4", - "guestinfo.domain" = "example.com", - "guestinfo.ntp" = "ntp.example.com", - "guestinfo.password" = "VMware1!", - "guestinfo.ssh" = "True" - } - } - - lifecycle { - ignore_changes = [ - annotation, - disk[0].io_share_count, - disk[1].io_share_count, - disk[2].io_share_count, - vapp[0].properties, - ] - } - } - :param bool allow_unverified_ssl_cert: Allow unverified SSL certificates when deploying OVF/OVA from a URL. diff --git a/sdk/python/pulumi_vsphere/get_policy.py b/sdk/python/pulumi_vsphere/get_policy.py index e666bc69..ba603b9a 100644 --- a/sdk/python/pulumi_vsphere/get_policy.py +++ b/sdk/python/pulumi_vsphere/get_policy.py @@ -65,6 +65,7 @@ def get_policy(name: Optional[str] = None, ## Example Usage + ```python import pulumi import pulumi_vsphere as vsphere @@ -72,6 +73,7 @@ def get_policy(name: Optional[str] = None, prod_platinum_replicated = vsphere.get_policy(name="prod_platinum_replicated") dev_silver_nonreplicated = vsphere.get_policy(name="dev_silver_nonreplicated") ``` + :param str name: The name of the storage policy. @@ -99,6 +101,7 @@ def get_policy_output(name: Optional[pulumi.Input[str]] = None, ## Example Usage + ```python import pulumi import pulumi_vsphere as vsphere @@ -106,6 +109,7 @@ def get_policy_output(name: Optional[pulumi.Input[str]] = None, prod_platinum_replicated = vsphere.get_policy(name="prod_platinum_replicated") dev_silver_nonreplicated = vsphere.get_policy(name="dev_silver_nonreplicated") ``` + :param str name: The name of the storage policy. diff --git a/sdk/python/pulumi_vsphere/get_resource_pool.py b/sdk/python/pulumi_vsphere/get_resource_pool.py index a178fec5..9a0ce953 100644 --- a/sdk/python/pulumi_vsphere/get_resource_pool.py +++ b/sdk/python/pulumi_vsphere/get_resource_pool.py @@ -73,6 +73,7 @@ def get_resource_pool(datacenter_id: Optional[str] = None, ## Example Usage + ```python import pulumi import pulumi_vsphere as vsphere @@ -81,6 +82,8 @@ def get_resource_pool(datacenter_id: Optional[str] = None, pool = vsphere.get_resource_pool(name="resource-pool-01", datacenter_id=datacenter.id) ``` + + ### Specifying the Root Resource Pool for a Standalone ESXi Host > **NOTE:** Returning the root resource pool for a cluster can be done @@ -91,6 +94,7 @@ def get_resource_pool(datacenter_id: Optional[str] = None, explicitly created. This resource pool is referred to as the _root resource pool_ and can be looked up by specifying the path. + ```python import pulumi import pulumi_vsphere as vsphere @@ -98,6 +102,7 @@ def get_resource_pool(datacenter_id: Optional[str] = None, pool = vsphere.get_resource_pool(name="esxi-01.example.com/Resources", datacenter_id=data["vsphere_datacenter"]["datacenter"]["id"]) ``` + For more information on the root resource pool, see [Managing Resource Pools][vmware-docs-resource-pools] in the vSphere documentation. @@ -140,6 +145,7 @@ def get_resource_pool_output(datacenter_id: Optional[pulumi.Input[Optional[str]] ## Example Usage + ```python import pulumi import pulumi_vsphere as vsphere @@ -148,6 +154,8 @@ def get_resource_pool_output(datacenter_id: Optional[pulumi.Input[Optional[str]] pool = vsphere.get_resource_pool(name="resource-pool-01", datacenter_id=datacenter.id) ``` + + ### Specifying the Root Resource Pool for a Standalone ESXi Host > **NOTE:** Returning the root resource pool for a cluster can be done @@ -158,6 +166,7 @@ def get_resource_pool_output(datacenter_id: Optional[pulumi.Input[Optional[str]] explicitly created. This resource pool is referred to as the _root resource pool_ and can be looked up by specifying the path. + ```python import pulumi import pulumi_vsphere as vsphere @@ -165,6 +174,7 @@ def get_resource_pool_output(datacenter_id: Optional[pulumi.Input[Optional[str]] pool = vsphere.get_resource_pool(name="esxi-01.example.com/Resources", datacenter_id=data["vsphere_datacenter"]["datacenter"]["id"]) ``` + For more information on the root resource pool, see [Managing Resource Pools][vmware-docs-resource-pools] in the vSphere documentation. diff --git a/sdk/python/pulumi_vsphere/get_role.py b/sdk/python/pulumi_vsphere/get_role.py index 3ac9ffed..7d6f5543 100644 --- a/sdk/python/pulumi_vsphere/get_role.py +++ b/sdk/python/pulumi_vsphere/get_role.py @@ -100,12 +100,14 @@ def get_role(description: Optional[str] = None, ## Example Usage + ```python import pulumi import pulumi_vsphere as vsphere terraform_role = vsphere.get_role(label="Terraform to vSphere Integration Role") ``` + :param str description: The description of the role. @@ -140,12 +142,14 @@ def get_role_output(description: Optional[pulumi.Input[Optional[str]]] = None, ## Example Usage + ```python import pulumi import pulumi_vsphere as vsphere terraform_role = vsphere.get_role(label="Terraform to vSphere Integration Role") ``` + :param str description: The description of the role. diff --git a/sdk/python/pulumi_vsphere/get_tag.py b/sdk/python/pulumi_vsphere/get_tag.py index c0421c4b..38980db9 100644 --- a/sdk/python/pulumi_vsphere/get_tag.py +++ b/sdk/python/pulumi_vsphere/get_tag.py @@ -86,6 +86,7 @@ def get_tag(category_id: Optional[str] = None, ## Example Usage + ```python import pulumi import pulumi_vsphere as vsphere @@ -94,6 +95,7 @@ def get_tag(category_id: Optional[str] = None, tag = vsphere.get_tag(name="example-tag", category_id=category.id) ``` + :param str category_id: The ID of the tag category in which the tag is @@ -129,6 +131,7 @@ def get_tag_output(category_id: Optional[pulumi.Input[str]] = None, ## Example Usage + ```python import pulumi import pulumi_vsphere as vsphere @@ -137,6 +140,7 @@ def get_tag_output(category_id: Optional[pulumi.Input[str]] = None, tag = vsphere.get_tag(name="example-tag", category_id=category.id) ``` + :param str category_id: The ID of the tag category in which the tag is diff --git a/sdk/python/pulumi_vsphere/get_tag_category.py b/sdk/python/pulumi_vsphere/get_tag_category.py index 5d97d3de..b8f367e0 100644 --- a/sdk/python/pulumi_vsphere/get_tag_category.py +++ b/sdk/python/pulumi_vsphere/get_tag_category.py @@ -94,12 +94,14 @@ def get_tag_category(name: Optional[str] = None, ## Example Usage + ```python import pulumi import pulumi_vsphere as vsphere category = vsphere.get_tag_category(name="example-category") ``` + :param str name: The name of the tag category. @@ -132,12 +134,14 @@ def get_tag_category_output(name: Optional[pulumi.Input[str]] = None, ## Example Usage + ```python import pulumi import pulumi_vsphere as vsphere category = vsphere.get_tag_category(name="example-category") ``` + :param str name: The name of the tag category. diff --git a/sdk/python/pulumi_vsphere/get_vapp_container.py b/sdk/python/pulumi_vsphere/get_vapp_container.py index e394ea9e..e167fe49 100644 --- a/sdk/python/pulumi_vsphere/get_vapp_container.py +++ b/sdk/python/pulumi_vsphere/get_vapp_container.py @@ -73,6 +73,7 @@ def get_vapp_container(datacenter_id: Optional[str] = None, ## Example Usage + ```python import pulumi import pulumi_vsphere as vsphere @@ -81,6 +82,7 @@ def get_vapp_container(datacenter_id: Optional[str] = None, pool = vsphere.get_vapp_container(name="vapp-container-01", datacenter_id=datacenter.id) ``` + :param str datacenter_id: The managed object reference ID @@ -112,6 +114,7 @@ def get_vapp_container_output(datacenter_id: Optional[pulumi.Input[str]] = None, ## Example Usage + ```python import pulumi import pulumi_vsphere as vsphere @@ -120,6 +123,7 @@ def get_vapp_container_output(datacenter_id: Optional[pulumi.Input[str]] = None, pool = vsphere.get_vapp_container(name="vapp-container-01", datacenter_id=datacenter.id) ``` + :param str datacenter_id: The managed object reference ID diff --git a/sdk/python/pulumi_vsphere/get_virtual_machine.py b/sdk/python/pulumi_vsphere/get_virtual_machine.py index 6fa173e4..f83e30fd 100644 --- a/sdk/python/pulumi_vsphere/get_virtual_machine.py +++ b/sdk/python/pulumi_vsphere/get_virtual_machine.py @@ -742,6 +742,7 @@ def get_virtual_machine(alternate_guest_name: Optional[str] = None, In the following example, a virtual machine template is returned by its unique name within the `Datacenter`. + ```python import pulumi import pulumi_vsphere as vsphere @@ -750,9 +751,11 @@ def get_virtual_machine(alternate_guest_name: Optional[str] = None, template = vsphere.get_virtual_machine(name="ubuntu-server-template", datacenter_id=datacenter.id) ``` + In the following example, each virtual machine template is returned by its unique full path within the `Datacenter`. + ```python import pulumi import pulumi_vsphere as vsphere @@ -763,6 +766,7 @@ def get_virtual_machine(alternate_guest_name: Optional[str] = None, development_template = vsphere.get_virtual_machine(name="development/templates/ubuntu-server-template", datacenter_id=datacenter.id) ``` + :param str alternate_guest_name: The alternate guest name of the virtual machine when @@ -984,6 +988,7 @@ def get_virtual_machine_output(alternate_guest_name: Optional[pulumi.Input[Optio In the following example, a virtual machine template is returned by its unique name within the `Datacenter`. + ```python import pulumi import pulumi_vsphere as vsphere @@ -992,9 +997,11 @@ def get_virtual_machine_output(alternate_guest_name: Optional[pulumi.Input[Optio template = vsphere.get_virtual_machine(name="ubuntu-server-template", datacenter_id=datacenter.id) ``` + In the following example, each virtual machine template is returned by its unique full path within the `Datacenter`. + ```python import pulumi import pulumi_vsphere as vsphere @@ -1005,6 +1012,7 @@ def get_virtual_machine_output(alternate_guest_name: Optional[pulumi.Input[Optio development_template = vsphere.get_virtual_machine(name="development/templates/ubuntu-server-template", datacenter_id=datacenter.id) ``` + :param str alternate_guest_name: The alternate guest name of the virtual machine when diff --git a/sdk/python/pulumi_vsphere/get_vmfs_disks.py b/sdk/python/pulumi_vsphere/get_vmfs_disks.py index 8eec581c..af11c8b2 100644 --- a/sdk/python/pulumi_vsphere/get_vmfs_disks.py +++ b/sdk/python/pulumi_vsphere/get_vmfs_disks.py @@ -96,6 +96,7 @@ def get_vmfs_disks(filter: Optional[str] = None, ## Example Usage + ```python import pulumi import pulumi_vsphere as vsphere @@ -107,6 +108,7 @@ def get_vmfs_disks(filter: Optional[str] = None, rescan=True, filter="mpx.vmhba1:C0:T[12]:L0") ``` + :param str filter: A regular expression to filter the disks against. Only @@ -149,6 +151,7 @@ def get_vmfs_disks_output(filter: Optional[pulumi.Input[Optional[str]]] = None, ## Example Usage + ```python import pulumi import pulumi_vsphere as vsphere @@ -160,6 +163,7 @@ def get_vmfs_disks_output(filter: Optional[pulumi.Input[Optional[str]]] = None, rescan=True, filter="mpx.vmhba1:C0:T[12]:L0") ``` + :param str filter: A regular expression to filter the disks against. Only diff --git a/sdk/python/pulumi_vsphere/host.py b/sdk/python/pulumi_vsphere/host.py index 725ed8e6..ca4345f6 100644 --- a/sdk/python/pulumi_vsphere/host.py +++ b/sdk/python/pulumi_vsphere/host.py @@ -613,8 +613,10 @@ def __init__(__self__, can be used either as a member of a cluster or as a standalone host. ## Example Usage + ### Create a standalone host + ```python import pulumi import pulumi_vsphere as vsphere @@ -630,8 +632,11 @@ def __init__(__self__, thumbprint=thumbprint.id, datacenter=datacenter.id) ``` + + ### Create host in a compute cluster + ```python import pulumi import pulumi_vsphere as vsphere @@ -649,6 +654,8 @@ def __init__(__self__, thumbprint=thumbprint.id, cluster=cluster.id) ``` + + ## Importing An existing host can be [imported][docs-import] into this resource by supplying @@ -656,9 +663,11 @@ def __init__(__self__, [docs-import]: /docs/import/index.html + ```python import pulumi ``` + The above would import the host with ID `host-123`. @@ -719,8 +728,10 @@ def __init__(__self__, can be used either as a member of a cluster or as a standalone host. ## Example Usage + ### Create a standalone host + ```python import pulumi import pulumi_vsphere as vsphere @@ -736,8 +747,11 @@ def __init__(__self__, thumbprint=thumbprint.id, datacenter=datacenter.id) ``` + + ### Create host in a compute cluster + ```python import pulumi import pulumi_vsphere as vsphere @@ -755,6 +769,8 @@ def __init__(__self__, thumbprint=thumbprint.id, cluster=cluster.id) ``` + + ## Importing An existing host can be [imported][docs-import] into this resource by supplying @@ -762,9 +778,11 @@ def __init__(__self__, [docs-import]: /docs/import/index.html + ```python import pulumi ``` + The above would import the host with ID `host-123`. diff --git a/sdk/python/pulumi_vsphere/host_port_group.py b/sdk/python/pulumi_vsphere/host_port_group.py index 1486aa94..142952fa 100644 --- a/sdk/python/pulumi_vsphere/host_port_group.py +++ b/sdk/python/pulumi_vsphere/host_port_group.py @@ -696,6 +696,7 @@ def __init__(__self__, **Create a Virtual Switch and Bind a Port Group:** + ```python import pulumi import pulumi_vsphere as vsphere @@ -715,6 +716,7 @@ def __init__(__self__, host_system_id=host.id, virtual_switch_name=host_virtual_switch.name) ``` + **Create a Port Group with a VLAN and ab Override:** @@ -724,6 +726,7 @@ def __init__(__self__, to ensure that all traffic is seen on the port. The setting overrides the implicit default of `false` set on the standard switch. + ```python import pulumi import pulumi_vsphere as vsphere @@ -745,14 +748,18 @@ def __init__(__self__, vlan_id=4095, allow_promiscuous=True) ``` + + ## Importing An existing host port group can be imported into this resource using the host port group's ID. An example is below: + ```python import pulumi ``` + The above would import the `management` host port group from host with ID `host-123`. @@ -805,6 +812,7 @@ def __init__(__self__, **Create a Virtual Switch and Bind a Port Group:** + ```python import pulumi import pulumi_vsphere as vsphere @@ -824,6 +832,7 @@ def __init__(__self__, host_system_id=host.id, virtual_switch_name=host_virtual_switch.name) ``` + **Create a Port Group with a VLAN and ab Override:** @@ -833,6 +842,7 @@ def __init__(__self__, to ensure that all traffic is seen on the port. The setting overrides the implicit default of `false` set on the standard switch. + ```python import pulumi import pulumi_vsphere as vsphere @@ -854,14 +864,18 @@ def __init__(__self__, vlan_id=4095, allow_promiscuous=True) ``` + + ## Importing An existing host port group can be imported into this resource using the host port group's ID. An example is below: + ```python import pulumi ``` + The above would import the `management` host port group from host with ID `host-123`. diff --git a/sdk/python/pulumi_vsphere/license.py b/sdk/python/pulumi_vsphere/license.py index 0c8e8ef4..1e6d6a04 100644 --- a/sdk/python/pulumi_vsphere/license.py +++ b/sdk/python/pulumi_vsphere/license.py @@ -167,6 +167,7 @@ def __init__(__self__, ## Example Usage + ```python import pulumi import pulumi_vsphere as vsphere @@ -178,6 +179,7 @@ def __init__(__self__, }, license_key="452CQ-2EK54-K8742-00000-00000") ``` + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. @@ -195,6 +197,7 @@ def __init__(__self__, ## Example Usage + ```python import pulumi import pulumi_vsphere as vsphere @@ -206,6 +209,7 @@ def __init__(__self__, }, license_key="452CQ-2EK54-K8742-00000-00000") ``` + :param str resource_name: The name of the resource. :param LicenseArgs args: The arguments to use to populate this resource's properties. diff --git a/sdk/python/pulumi_vsphere/outputs.py b/sdk/python/pulumi_vsphere/outputs.py index b84a9f01..30e71d19 100644 --- a/sdk/python/pulumi_vsphere/outputs.py +++ b/sdk/python/pulumi_vsphere/outputs.py @@ -206,6 +206,7 @@ def __init__(__self__, *, > **NOTE:** You must disable vSphere HA before you enable vSAN on the cluster. You can enable or re-enable vSphere HA after vSAN is configured. + ```python import pulumi import pulumi_vsphere as vsphere @@ -248,6 +249,7 @@ def __init__(__self__, *, witness_node=data["vsphere_host"]["witness_host"]["id"], )) ``` + """ pulumi.set(__self__, "preferred_fault_domain_host_ids", preferred_fault_domain_host_ids) pulumi.set(__self__, "secondary_fault_domain_host_ids", secondary_fault_domain_host_ids) @@ -298,6 +300,7 @@ def secondary_fault_domain_name(self) -> Optional[str]: > **NOTE:** You must disable vSphere HA before you enable vSAN on the cluster. You can enable or re-enable vSphere HA after vSAN is configured. + ```python import pulumi import pulumi_vsphere as vsphere @@ -340,6 +343,7 @@ def secondary_fault_domain_name(self) -> Optional[str]: witness_node=data["vsphere_host"]["witness_host"]["id"], )) ``` + """ return pulumi.get(self, "secondary_fault_domain_name") diff --git a/sdk/python/pulumi_vsphere/resource_pool.py b/sdk/python/pulumi_vsphere/resource_pool.py index ad93bc1e..34f2538b 100644 --- a/sdk/python/pulumi_vsphere/resource_pool.py +++ b/sdk/python/pulumi_vsphere/resource_pool.py @@ -657,6 +657,7 @@ def __init__(__self__, The following example sets up a resource pool in an existing compute cluster with the default settings for CPU and memory reservations, shares, and limits. + ```python import pulumi import pulumi_vsphere as vsphere @@ -666,10 +667,12 @@ def __init__(__self__, datacenter_id=datacenter.id) resource_pool = vsphere.ResourcePool("resourcePool", parent_resource_pool_id=compute_cluster.resource_pool_id) ``` + A virtual machine resource could be targeted to use the default resource pool of the cluster using the following: + ```python import pulumi import pulumi_vsphere as vsphere @@ -677,11 +680,13 @@ def __init__(__self__, vm = vsphere.VirtualMachine("vm", resource_pool_id=data["vsphere_compute_cluster"]["cluster"]["resource_pool_id"]) # ... other configuration ... ``` + The following example sets up a parent resource pool in an existing compute cluster with a child resource pool nested below. Each resource pool is configured with the default settings for CPU and memory reservations, shares, and limits. + ```python import pulumi import pulumi_vsphere as vsphere @@ -692,12 +697,7 @@ def __init__(__self__, resource_pool_parent = vsphere.ResourcePool("resourcePoolParent", parent_resource_pool_id=compute_cluster.resource_pool_id) resource_pool_child = vsphere.ResourcePool("resourcePoolChild", parent_resource_pool_id=resource_pool_parent.id) ``` - ## Importing - ### Settings that Require vSphere 7.0 or higher - - These settings require vSphere 7.0 or higher: - - * `scale_descendants_shares` + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. @@ -766,6 +766,7 @@ def __init__(__self__, The following example sets up a resource pool in an existing compute cluster with the default settings for CPU and memory reservations, shares, and limits. + ```python import pulumi import pulumi_vsphere as vsphere @@ -775,10 +776,12 @@ def __init__(__self__, datacenter_id=datacenter.id) resource_pool = vsphere.ResourcePool("resourcePool", parent_resource_pool_id=compute_cluster.resource_pool_id) ``` + A virtual machine resource could be targeted to use the default resource pool of the cluster using the following: + ```python import pulumi import pulumi_vsphere as vsphere @@ -786,11 +789,13 @@ def __init__(__self__, vm = vsphere.VirtualMachine("vm", resource_pool_id=data["vsphere_compute_cluster"]["cluster"]["resource_pool_id"]) # ... other configuration ... ``` + The following example sets up a parent resource pool in an existing compute cluster with a child resource pool nested below. Each resource pool is configured with the default settings for CPU and memory reservations, shares, and limits. + ```python import pulumi import pulumi_vsphere as vsphere @@ -801,12 +806,7 @@ def __init__(__self__, resource_pool_parent = vsphere.ResourcePool("resourcePoolParent", parent_resource_pool_id=compute_cluster.resource_pool_id) resource_pool_child = vsphere.ResourcePool("resourcePoolChild", parent_resource_pool_id=resource_pool_parent.id) ``` - ## Importing - ### Settings that Require vSphere 7.0 or higher - - These settings require vSphere 7.0 or higher: - - * `scale_descendants_shares` + :param str resource_name: The name of the resource. :param ResourcePoolArgs args: The arguments to use to populate this resource's properties. diff --git a/sdk/python/pulumi_vsphere/virtual_machine.py b/sdk/python/pulumi_vsphere/virtual_machine.py index 6146d25c..91623525 100644 --- a/sdk/python/pulumi_vsphere/virtual_machine.py +++ b/sdk/python/pulumi_vsphere/virtual_machine.py @@ -176,7 +176,7 @@ def __init__(__self__, *, :param pulumi.Input[int] poweron_timeout: The amount of time, in seconds, that we will be trying to power on a VM :param pulumi.Input[str] replace_trigger: Triggers replacement of resource whenever it changes. - For example, `replace_trigger = sha256(format("%s-%s",data.template_file.cloud_init_metadata.rendered,data.template_file.cloud_init_userdata.rendered))` will fingerprint the changes in cloud-init metadata and userdata templates. This will enable a replacement of the resource whenever the dependant template renders a new configuration. (Forces a replacement.) + For example, `replace_trigger = sha256(format("%!s(MISSING)-%!s(MISSING)",data.template_file.cloud_init_metadata.rendered,data.template_file.cloud_init_userdata.rendered))` will fingerprint the changes in cloud-init metadata and userdata templates. This will enable a replacement of the resource whenever the dependant template renders a new configuration. (Forces a replacement.) :param pulumi.Input[bool] run_tools_scripts_after_power_on: Enable post-power-on scripts to run when VMware Tools is installed. Default: `true`. :param pulumi.Input[bool] run_tools_scripts_after_resume: Enable ost-resume scripts to run when VMware Tools is installed. Default: `true`. :param pulumi.Input[bool] run_tools_scripts_before_guest_reboot: Enable pre-reboot scripts to run when VMware Tools is installed. Default: `false`. @@ -1003,7 +1003,7 @@ def replace_trigger(self) -> Optional[pulumi.Input[str]]: """ Triggers replacement of resource whenever it changes. - For example, `replace_trigger = sha256(format("%s-%s",data.template_file.cloud_init_metadata.rendered,data.template_file.cloud_init_userdata.rendered))` will fingerprint the changes in cloud-init metadata and userdata templates. This will enable a replacement of the resource whenever the dependant template renders a new configuration. (Forces a replacement.) + For example, `replace_trigger = sha256(format("%!s(MISSING)-%!s(MISSING)",data.template_file.cloud_init_metadata.rendered,data.template_file.cloud_init_userdata.rendered))` will fingerprint the changes in cloud-init metadata and userdata templates. This will enable a replacement of the resource whenever the dependant template renders a new configuration. (Forces a replacement.) """ return pulumi.get(self, "replace_trigger") @@ -1460,7 +1460,7 @@ def __init__(__self__, *, :param pulumi.Input[bool] reboot_required: Value internal to Terraform used to determine if a configuration set change requires a reboot. :param pulumi.Input[str] replace_trigger: Triggers replacement of resource whenever it changes. - For example, `replace_trigger = sha256(format("%s-%s",data.template_file.cloud_init_metadata.rendered,data.template_file.cloud_init_userdata.rendered))` will fingerprint the changes in cloud-init metadata and userdata templates. This will enable a replacement of the resource whenever the dependant template renders a new configuration. (Forces a replacement.) + For example, `replace_trigger = sha256(format("%!s(MISSING)-%!s(MISSING)",data.template_file.cloud_init_metadata.rendered,data.template_file.cloud_init_userdata.rendered))` will fingerprint the changes in cloud-init metadata and userdata templates. This will enable a replacement of the resource whenever the dependant template renders a new configuration. (Forces a replacement.) :param pulumi.Input[str] resource_pool_id: The managed object reference ID of the resource pool in which to place the virtual machine. See the Virtual Machine Migration section for more information on modifying this value. > **NOTE:** All clusters and standalone hosts have a default root resource pool. This resource argument does not directly accept the cluster or standalone host resource. For more information, see the section on specifying the Root Resource Pool in the `ResourcePool` data source documentation on using the root resource pool. @@ -2387,7 +2387,7 @@ def replace_trigger(self) -> Optional[pulumi.Input[str]]: """ Triggers replacement of resource whenever it changes. - For example, `replace_trigger = sha256(format("%s-%s",data.template_file.cloud_init_metadata.rendered,data.template_file.cloud_init_userdata.rendered))` will fingerprint the changes in cloud-init metadata and userdata templates. This will enable a replacement of the resource whenever the dependant template renders a new configuration. (Forces a replacement.) + For example, `replace_trigger = sha256(format("%!s(MISSING)-%!s(MISSING)",data.template_file.cloud_init_metadata.rendered,data.template_file.cloud_init_userdata.rendered))` will fingerprint the changes in cloud-init metadata and userdata templates. This will enable a replacement of the resource whenever the dependant template renders a new configuration. (Forces a replacement.) """ return pulumi.get(self, "replace_trigger") @@ -2893,7 +2893,7 @@ def __init__(__self__, :param pulumi.Input[int] poweron_timeout: The amount of time, in seconds, that we will be trying to power on a VM :param pulumi.Input[str] replace_trigger: Triggers replacement of resource whenever it changes. - For example, `replace_trigger = sha256(format("%s-%s",data.template_file.cloud_init_metadata.rendered,data.template_file.cloud_init_userdata.rendered))` will fingerprint the changes in cloud-init metadata and userdata templates. This will enable a replacement of the resource whenever the dependant template renders a new configuration. (Forces a replacement.) + For example, `replace_trigger = sha256(format("%!s(MISSING)-%!s(MISSING)",data.template_file.cloud_init_metadata.rendered,data.template_file.cloud_init_userdata.rendered))` will fingerprint the changes in cloud-init metadata and userdata templates. This will enable a replacement of the resource whenever the dependant template renders a new configuration. (Forces a replacement.) :param pulumi.Input[str] resource_pool_id: The managed object reference ID of the resource pool in which to place the virtual machine. See the Virtual Machine Migration section for more information on modifying this value. > **NOTE:** All clusters and standalone hosts have a default root resource pool. This resource argument does not directly accept the cluster or standalone host resource. For more information, see the section on specifying the Root Resource Pool in the `ResourcePool` data source documentation on using the root resource pool. @@ -3309,7 +3309,7 @@ def get(resource_name: str, :param pulumi.Input[bool] reboot_required: Value internal to Terraform used to determine if a configuration set change requires a reboot. :param pulumi.Input[str] replace_trigger: Triggers replacement of resource whenever it changes. - For example, `replace_trigger = sha256(format("%s-%s",data.template_file.cloud_init_metadata.rendered,data.template_file.cloud_init_userdata.rendered))` will fingerprint the changes in cloud-init metadata and userdata templates. This will enable a replacement of the resource whenever the dependant template renders a new configuration. (Forces a replacement.) + For example, `replace_trigger = sha256(format("%!s(MISSING)-%!s(MISSING)",data.template_file.cloud_init_metadata.rendered,data.template_file.cloud_init_userdata.rendered))` will fingerprint the changes in cloud-init metadata and userdata templates. This will enable a replacement of the resource whenever the dependant template renders a new configuration. (Forces a replacement.) :param pulumi.Input[str] resource_pool_id: The managed object reference ID of the resource pool in which to place the virtual machine. See the Virtual Machine Migration section for more information on modifying this value. > **NOTE:** All clusters and standalone hosts have a default root resource pool. This resource argument does not directly accept the cluster or standalone host resource. For more information, see the section on specifying the Root Resource Pool in the `ResourcePool` data source documentation on using the root resource pool. @@ -3928,7 +3928,7 @@ def replace_trigger(self) -> pulumi.Output[Optional[str]]: """ Triggers replacement of resource whenever it changes. - For example, `replace_trigger = sha256(format("%s-%s",data.template_file.cloud_init_metadata.rendered,data.template_file.cloud_init_userdata.rendered))` will fingerprint the changes in cloud-init metadata and userdata templates. This will enable a replacement of the resource whenever the dependant template renders a new configuration. (Forces a replacement.) + For example, `replace_trigger = sha256(format("%!s(MISSING)-%!s(MISSING)",data.template_file.cloud_init_metadata.rendered,data.template_file.cloud_init_userdata.rendered))` will fingerprint the changes in cloud-init metadata and userdata templates. This will enable a replacement of the resource whenever the dependant template renders a new configuration. (Forces a replacement.) """ return pulumi.get(self, "replace_trigger") diff --git a/sdk/python/pulumi_vsphere/virtual_machine_snapshot.py b/sdk/python/pulumi_vsphere/virtual_machine_snapshot.py index a62cf948..f773e42b 100644 --- a/sdk/python/pulumi_vsphere/virtual_machine_snapshot.py +++ b/sdk/python/pulumi_vsphere/virtual_machine_snapshot.py @@ -308,6 +308,7 @@ def __init__(__self__, ## Example Usage + ```python import pulumi import pulumi_vsphere as vsphere @@ -321,6 +322,7 @@ def __init__(__self__, snapshot_name="Snapshot Name", virtual_machine_uuid="9aac5551-a351-4158-8c5c-15a71e8ec5c9") ``` + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. @@ -369,6 +371,7 @@ def __init__(__self__, ## Example Usage + ```python import pulumi import pulumi_vsphere as vsphere @@ -382,6 +385,7 @@ def __init__(__self__, snapshot_name="Snapshot Name", virtual_machine_uuid="9aac5551-a351-4158-8c5c-15a71e8ec5c9") ``` + :param str resource_name: The name of the resource. :param VirtualMachineSnapshotArgs args: The arguments to use to populate this resource's properties. diff --git a/sdk/python/pulumi_vsphere/vm_storage_policy.py b/sdk/python/pulumi_vsphere/vm_storage_policy.py index 787e5523..a82b938c 100644 --- a/sdk/python/pulumi_vsphere/vm_storage_policy.py +++ b/sdk/python/pulumi_vsphere/vm_storage_policy.py @@ -144,6 +144,7 @@ def __init__(__self__, In this example, tags are first applied to datastores. + ```python import pulumi import pulumi_vsphere as vsphere @@ -178,9 +179,11 @@ def __init__(__self__, "data.vsphere_tag.non_replicated.id", ]) ``` + Next, storage policies are created and `tag_rules` are applied. + ```python import pulumi import pulumi_vsphere as vsphere @@ -224,9 +227,11 @@ def __init__(__self__, ), ]) ``` + Lasttly, when creating a virtual machine resource, a storage policy can be specificed to direct virtual machine placement to a datastore which matches the policy's `tags_rules`. + ```python import pulumi import pulumi_vsphere as vsphere @@ -238,6 +243,7 @@ def __init__(__self__, dev_vm = vsphere.VirtualMachine("devVm", storage_policy_id=data["vsphere_storage_policy"]["storage_policy"]["dev_silver_nonreplicated"]["id"]) # ... other configuration ... ``` + :param str resource_name: The name of the resource. :param pulumi.ResourceOptions opts: Options for the resource. @@ -262,6 +268,7 @@ def __init__(__self__, In this example, tags are first applied to datastores. + ```python import pulumi import pulumi_vsphere as vsphere @@ -296,9 +303,11 @@ def __init__(__self__, "data.vsphere_tag.non_replicated.id", ]) ``` + Next, storage policies are created and `tag_rules` are applied. + ```python import pulumi import pulumi_vsphere as vsphere @@ -342,9 +351,11 @@ def __init__(__self__, ), ]) ``` + Lasttly, when creating a virtual machine resource, a storage policy can be specificed to direct virtual machine placement to a datastore which matches the policy's `tags_rules`. + ```python import pulumi import pulumi_vsphere as vsphere @@ -356,6 +367,7 @@ def __init__(__self__, dev_vm = vsphere.VirtualMachine("devVm", storage_policy_id=data["vsphere_storage_policy"]["storage_policy"]["dev_silver_nonreplicated"]["id"]) # ... other configuration ... ``` + :param str resource_name: The name of the resource. :param VmStoragePolicyArgs args: The arguments to use to populate this resource's properties. diff --git a/sdk/python/pulumi_vsphere/vnic.py b/sdk/python/pulumi_vsphere/vnic.py index a622bbe1..34ff9e23 100644 --- a/sdk/python/pulumi_vsphere/vnic.py +++ b/sdk/python/pulumi_vsphere/vnic.py @@ -370,8 +370,10 @@ def __init__(__self__, ## Example Usage ### S + ### Create a vnic attached to a distributed virtual switch using the vmotion TCP/IP stack + ```python import pulumi import pulumi_vsphere as vsphere @@ -397,8 +399,11 @@ 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 @@ -428,6 +433,8 @@ def __init__(__self__, "management", ]) ``` + + ## Importing An existing vNic can be [imported][docs-import] into this resource @@ -435,9 +442,11 @@ def __init__(__self__, [docs-import]: /docs/import/index.html + ```python import pulumi ``` + The above would import the vnic `vmk2` from host with ID `host-123`. @@ -466,8 +475,10 @@ def __init__(__self__, ## Example Usage ### S + ### Create a vnic attached to a distributed virtual switch using the vmotion TCP/IP stack + ```python import pulumi import pulumi_vsphere as vsphere @@ -493,8 +504,11 @@ 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 @@ -524,6 +538,8 @@ def __init__(__self__, "management", ]) ``` + + ## Importing An existing vNic can be [imported][docs-import] into this resource @@ -531,9 +547,11 @@ def __init__(__self__, [docs-import]: /docs/import/index.html + ```python import pulumi ``` + The above would import the vnic `vmk2` from host with ID `host-123`.