getLicensePlain(GetLicensePlai
*
* <!--End PulumiCodeChooser -->
*
+ * ### Additional Examples
+ *
+ * <!--Start PulumiCodeChooser -->
+ *
+ * {@code
+ * 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.GetNetworkArgs;
+ * 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 myPortGroup = VsphereFunctions.getNetwork(GetNetworkArgs.builder()
+ * .datacenterId(datacenter.applyValue(getDatacenterResult -> getDatacenterResult.id()))
+ * .name("VM Network")
+ * .filters(GetNetworkFilterArgs.builder()
+ * .networkType("Network")
+ * .build())
+ * .build());
+ *
+ * }
+ * }
+ * }
+ *
+ * <!--End PulumiCodeChooser -->
+ *
*/
public static Output getNetwork(GetNetworkArgs args) {
return getNetwork(args, InvokeOptions.Empty);
@@ -4559,6 +4603,50 @@ public static Output getNetwork(GetNetworkArgs args) {
*
* <!--End PulumiCodeChooser -->
*
+ * ### Additional Examples
+ *
+ * <!--Start PulumiCodeChooser -->
+ *
+ * {@code
+ * 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.GetNetworkArgs;
+ * 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 myPortGroup = VsphereFunctions.getNetwork(GetNetworkArgs.builder()
+ * .datacenterId(datacenter.applyValue(getDatacenterResult -> getDatacenterResult.id()))
+ * .name("VM Network")
+ * .filters(GetNetworkFilterArgs.builder()
+ * .networkType("Network")
+ * .build())
+ * .build());
+ *
+ * }
+ * }
+ * }
+ *
+ * <!--End PulumiCodeChooser -->
+ *
*/
public static CompletableFuture getNetworkPlain(GetNetworkPlainArgs args) {
return getNetworkPlain(args, InvokeOptions.Empty);
@@ -4611,6 +4699,50 @@ public static CompletableFuture getNetworkPlain(GetNetworkPlai
*
* <!--End PulumiCodeChooser -->
*
+ * ### Additional Examples
+ *
+ * <!--Start PulumiCodeChooser -->
+ *
+ * {@code
+ * 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.GetNetworkArgs;
+ * 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 myPortGroup = VsphereFunctions.getNetwork(GetNetworkArgs.builder()
+ * .datacenterId(datacenter.applyValue(getDatacenterResult -> getDatacenterResult.id()))
+ * .name("VM Network")
+ * .filters(GetNetworkFilterArgs.builder()
+ * .networkType("Network")
+ * .build())
+ * .build());
+ *
+ * }
+ * }
+ * }
+ *
+ * <!--End PulumiCodeChooser -->
+ *
*/
public static Output getNetwork(GetNetworkArgs args, InvokeOptions options) {
return Deployment.getInstance().invoke("vsphere:index/getNetwork:getNetwork", TypeShape.of(GetNetworkResult.class), args, Utilities.withVersion(options));
@@ -4663,6 +4795,50 @@ public static Output getNetwork(GetNetworkArgs args, InvokeOpt
*
* <!--End PulumiCodeChooser -->
*
+ * ### Additional Examples
+ *
+ * <!--Start PulumiCodeChooser -->
+ *
+ * {@code
+ * 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.GetNetworkArgs;
+ * 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 myPortGroup = VsphereFunctions.getNetwork(GetNetworkArgs.builder()
+ * .datacenterId(datacenter.applyValue(getDatacenterResult -> getDatacenterResult.id()))
+ * .name("VM Network")
+ * .filters(GetNetworkFilterArgs.builder()
+ * .networkType("Network")
+ * .build())
+ * .build());
+ *
+ * }
+ * }
+ * }
+ *
+ * <!--End PulumiCodeChooser -->
+ *
*/
public static CompletableFuture getNetworkPlain(GetNetworkPlainArgs args, InvokeOptions options) {
return Deployment.getInstance().invokeAsync("vsphere:index/getNetwork:getNetwork", TypeShape.of(GetNetworkResult.class), args, Utilities.withVersion(options));
diff --git a/sdk/java/src/main/java/com/pulumi/vsphere/inputs/GetNetworkArgs.java b/sdk/java/src/main/java/com/pulumi/vsphere/inputs/GetNetworkArgs.java
index 9b5bb16d..34af4020 100644
--- a/sdk/java/src/main/java/com/pulumi/vsphere/inputs/GetNetworkArgs.java
+++ b/sdk/java/src/main/java/com/pulumi/vsphere/inputs/GetNetworkArgs.java
@@ -6,7 +6,9 @@
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
+import com.pulumi.vsphere.inputs.GetNetworkFilterArgs;
import java.lang.String;
+import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@@ -58,6 +60,21 @@ public Optional