1. Packages
  2. Nutanix
  3. API Docs
  4. SelfServiceAppPatch
Nutanix v0.8.0 published on Sunday, May 11, 2025 by Piers Karsenbarg

nutanix.SelfServiceAppPatch

Explore with Pulumi AI

nutanix logo
Nutanix v0.8.0 published on Sunday, May 11, 2025 by Piers Karsenbarg

    Run the specified patch on the application by running patch action to update vm configuration, add nics, add disks, add/delete categories.

    Example 1: Update VM Configuration

    This will run set patch config action in application.

    import * as pulumi from "@pulumi/pulumi";
    import * as nutanix from "@pierskarsenbarg/nutanix";
    
    // Provision Application
    const testSelfServiceAppProvision = new nutanix.SelfServiceAppProvision("testSelfServiceAppProvision", {
        bpName: "NAME OF BLUEPRINT",
        appName: "NAME OF APPLICATION",
        appDescription: "DESCRIPTION OF APPLICATION",
    });
    // Run patch config (update config)
    const testSelfServiceAppPatch = new nutanix.SelfServiceAppPatch("testSelfServiceAppPatch", {
        appUuid: testSelfServiceAppProvision.id,
        patchName: "NAME OF PATCH ACTION",
        configName: "NAME OF PATCH CONFIG",
    });
    
    import pulumi
    import pulumi_nutanix as nutanix
    
    # Provision Application
    test_self_service_app_provision = nutanix.SelfServiceAppProvision("testSelfServiceAppProvision",
        bp_name="NAME OF BLUEPRINT",
        app_name="NAME OF APPLICATION",
        app_description="DESCRIPTION OF APPLICATION")
    # Run patch config (update config)
    test_self_service_app_patch = nutanix.SelfServiceAppPatch("testSelfServiceAppPatch",
        app_uuid=test_self_service_app_provision.id,
        patch_name="NAME OF PATCH ACTION",
        config_name="NAME OF PATCH CONFIG")
    
    package main
    
    import (
    	"github.com/pierskarsenbarg/pulumi-nutanix/sdk/go/nutanix"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		// Provision Application
    		testSelfServiceAppProvision, err := nutanix.NewSelfServiceAppProvision(ctx, "testSelfServiceAppProvision", &nutanix.SelfServiceAppProvisionArgs{
    			BpName:         pulumi.String("NAME OF BLUEPRINT"),
    			AppName:        pulumi.String("NAME OF APPLICATION"),
    			AppDescription: pulumi.String("DESCRIPTION OF APPLICATION"),
    		})
    		if err != nil {
    			return err
    		}
    		// Run patch config (update config)
    		_, err = nutanix.NewSelfServiceAppPatch(ctx, "testSelfServiceAppPatch", &nutanix.SelfServiceAppPatchArgs{
    			AppUuid:    testSelfServiceAppProvision.ID(),
    			PatchName:  pulumi.String("NAME OF PATCH ACTION"),
    			ConfigName: pulumi.String("NAME OF PATCH CONFIG"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Nutanix = PiersKarsenbarg.Nutanix;
    
    return await Deployment.RunAsync(() => 
    {
        // Provision Application
        var testSelfServiceAppProvision = new Nutanix.SelfServiceAppProvision("testSelfServiceAppProvision", new()
        {
            BpName = "NAME OF BLUEPRINT",
            AppName = "NAME OF APPLICATION",
            AppDescription = "DESCRIPTION OF APPLICATION",
        });
    
        // Run patch config (update config)
        var testSelfServiceAppPatch = new Nutanix.SelfServiceAppPatch("testSelfServiceAppPatch", new()
        {
            AppUuid = testSelfServiceAppProvision.Id,
            PatchName = "NAME OF PATCH ACTION",
            ConfigName = "NAME OF PATCH CONFIG",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.nutanix.SelfServiceAppProvision;
    import com.pulumi.nutanix.SelfServiceAppProvisionArgs;
    import com.pulumi.nutanix.SelfServiceAppPatch;
    import com.pulumi.nutanix.SelfServiceAppPatchArgs;
    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) {
            // Provision Application
            var testSelfServiceAppProvision = new SelfServiceAppProvision("testSelfServiceAppProvision", SelfServiceAppProvisionArgs.builder()
                .bpName("NAME OF BLUEPRINT")
                .appName("NAME OF APPLICATION")
                .appDescription("DESCRIPTION OF APPLICATION")
                .build());
    
            // Run patch config (update config)
            var testSelfServiceAppPatch = new SelfServiceAppPatch("testSelfServiceAppPatch", SelfServiceAppPatchArgs.builder()
                .appUuid(testSelfServiceAppProvision.id())
                .patchName("NAME OF PATCH ACTION")
                .configName("NAME OF PATCH CONFIG")
                .build());
    
        }
    }
    
    resources:
      # Provision Application
      testSelfServiceAppProvision:
        type: nutanix:SelfServiceAppProvision
        properties:
          bpName: NAME OF BLUEPRINT
          appName: NAME OF APPLICATION
          appDescription: DESCRIPTION OF APPLICATION
      # Run patch config (update config)
      testSelfServiceAppPatch:
        type: nutanix:SelfServiceAppPatch
        properties:
          appUuid: ${testSelfServiceAppProvision.id}
          patchName: NAME OF PATCH ACTION
          configName: NAME OF PATCH CONFIG
    

    Example 2: Update VM Configuration with runtime editable

    import * as pulumi from "@pulumi/pulumi";
    import * as nutanix from "@pierskarsenbarg/nutanix";
    
    // Provision Application
    const testSelfServiceAppProvision = new nutanix.SelfServiceAppProvision("testSelfServiceAppProvision", {
        bpName: "NAME OF BLUEPRINT",
        appName: "NAME OF APPLICATION",
        appDescription: "DESCRIPTION OF APPLICATION",
    });
    // Run patch config (update config)
    const testSelfServiceAppPatch = new nutanix.SelfServiceAppPatch("testSelfServiceAppPatch", {
        appUuid: testSelfServiceAppProvision.id,
        patchName: "NAME OF PATCH ACTION",
        configName: "NAME OF PATCH CONFIG",
        vmConfigs: [{
            memorySizeMib: "SIZE IN MiB",
            numSockets: "vCPU count",
            numVcpusPerSocket: "NUMBER OF CORES VCPU",
        }],
    });
    
    import pulumi
    import pulumi_nutanix as nutanix
    
    # Provision Application
    test_self_service_app_provision = nutanix.SelfServiceAppProvision("testSelfServiceAppProvision",
        bp_name="NAME OF BLUEPRINT",
        app_name="NAME OF APPLICATION",
        app_description="DESCRIPTION OF APPLICATION")
    # Run patch config (update config)
    test_self_service_app_patch = nutanix.SelfServiceAppPatch("testSelfServiceAppPatch",
        app_uuid=test_self_service_app_provision.id,
        patch_name="NAME OF PATCH ACTION",
        config_name="NAME OF PATCH CONFIG",
        vm_configs=[{
            "memory_size_mib": "SIZE IN MiB",
            "num_sockets": "vCPU count",
            "num_vcpus_per_socket": "NUMBER OF CORES VCPU",
        }])
    
    package main
    
    import (
    	"github.com/pierskarsenbarg/pulumi-nutanix/sdk/go/nutanix"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		// Provision Application
    		testSelfServiceAppProvision, err := nutanix.NewSelfServiceAppProvision(ctx, "testSelfServiceAppProvision", &nutanix.SelfServiceAppProvisionArgs{
    			BpName:         pulumi.String("NAME OF BLUEPRINT"),
    			AppName:        pulumi.String("NAME OF APPLICATION"),
    			AppDescription: pulumi.String("DESCRIPTION OF APPLICATION"),
    		})
    		if err != nil {
    			return err
    		}
    		// Run patch config (update config)
    		_, err = nutanix.NewSelfServiceAppPatch(ctx, "testSelfServiceAppPatch", &nutanix.SelfServiceAppPatchArgs{
    			AppUuid:    testSelfServiceAppProvision.ID(),
    			PatchName:  pulumi.String("NAME OF PATCH ACTION"),
    			ConfigName: pulumi.String("NAME OF PATCH CONFIG"),
    			VmConfigs: nutanix.SelfServiceAppPatchVmConfigArray{
    				&nutanix.SelfServiceAppPatchVmConfigArgs{
    					MemorySizeMib:     pulumi.Int("SIZE IN MiB"),
    					NumSockets:        pulumi.Int("vCPU count"),
    					NumVcpusPerSocket: pulumi.Int("NUMBER OF CORES VCPU"),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Nutanix = PiersKarsenbarg.Nutanix;
    
    return await Deployment.RunAsync(() => 
    {
        // Provision Application
        var testSelfServiceAppProvision = new Nutanix.SelfServiceAppProvision("testSelfServiceAppProvision", new()
        {
            BpName = "NAME OF BLUEPRINT",
            AppName = "NAME OF APPLICATION",
            AppDescription = "DESCRIPTION OF APPLICATION",
        });
    
        // Run patch config (update config)
        var testSelfServiceAppPatch = new Nutanix.SelfServiceAppPatch("testSelfServiceAppPatch", new()
        {
            AppUuid = testSelfServiceAppProvision.Id,
            PatchName = "NAME OF PATCH ACTION",
            ConfigName = "NAME OF PATCH CONFIG",
            VmConfigs = new[]
            {
                new Nutanix.Inputs.SelfServiceAppPatchVmConfigArgs
                {
                    MemorySizeMib = "SIZE IN MiB",
                    NumSockets = "vCPU count",
                    NumVcpusPerSocket = "NUMBER OF CORES VCPU",
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.nutanix.SelfServiceAppProvision;
    import com.pulumi.nutanix.SelfServiceAppProvisionArgs;
    import com.pulumi.nutanix.SelfServiceAppPatch;
    import com.pulumi.nutanix.SelfServiceAppPatchArgs;
    import com.pulumi.nutanix.inputs.SelfServiceAppPatchVmConfigArgs;
    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) {
            // Provision Application
            var testSelfServiceAppProvision = new SelfServiceAppProvision("testSelfServiceAppProvision", SelfServiceAppProvisionArgs.builder()
                .bpName("NAME OF BLUEPRINT")
                .appName("NAME OF APPLICATION")
                .appDescription("DESCRIPTION OF APPLICATION")
                .build());
    
            // Run patch config (update config)
            var testSelfServiceAppPatch = new SelfServiceAppPatch("testSelfServiceAppPatch", SelfServiceAppPatchArgs.builder()
                .appUuid(testSelfServiceAppProvision.id())
                .patchName("NAME OF PATCH ACTION")
                .configName("NAME OF PATCH CONFIG")
                .vmConfigs(SelfServiceAppPatchVmConfigArgs.builder()
                    .memorySizeMib("SIZE IN MiB")
                    .numSockets("vCPU count")
                    .numVcpusPerSocket("NUMBER OF CORES VCPU")
                    .build())
                .build());
    
        }
    }
    
    resources:
      # Provision Application
      testSelfServiceAppProvision:
        type: nutanix:SelfServiceAppProvision
        properties:
          bpName: NAME OF BLUEPRINT
          appName: NAME OF APPLICATION
          appDescription: DESCRIPTION OF APPLICATION
      # Run patch config (update config)
      testSelfServiceAppPatch:
        type: nutanix:SelfServiceAppPatch
        properties:
          appUuid: ${testSelfServiceAppProvision.id}
          patchName: NAME OF PATCH ACTION
          configName: NAME OF PATCH CONFIG
          vmConfigs:
            - memorySizeMib: SIZE IN MiB
              numSockets: vCPU count
              numVcpusPerSocket: NUMBER OF CORES VCPU
    

    Example 3: Add Category

    import * as pulumi from "@pulumi/pulumi";
    import * as nutanix from "@pierskarsenbarg/nutanix";
    
    // Provision Application
    const testSelfServiceAppProvision = new nutanix.SelfServiceAppProvision("testSelfServiceAppProvision", {
        bpName: "NAME OF BLUEPRINT",
        appName: "NAME OF APPLICATION",
        appDescription: "DESCRIPTION OF APPLICATION",
    });
    // Run patch config (update config)
    const testSelfServiceAppPatch = new nutanix.SelfServiceAppPatch("testSelfServiceAppPatch", {
        appUuid: testSelfServiceAppProvision.id,
        patchName: "NAME OF PATCH ACTION",
        configName: "NAME OF PATCH CONFIG",
        categories: [{
            value: "CATEGORY TO BE ADDED (KEY:VALUE PAIR)",
            operation: "add",
        }],
    });
    
    import pulumi
    import pulumi_nutanix as nutanix
    
    # Provision Application
    test_self_service_app_provision = nutanix.SelfServiceAppProvision("testSelfServiceAppProvision",
        bp_name="NAME OF BLUEPRINT",
        app_name="NAME OF APPLICATION",
        app_description="DESCRIPTION OF APPLICATION")
    # Run patch config (update config)
    test_self_service_app_patch = nutanix.SelfServiceAppPatch("testSelfServiceAppPatch",
        app_uuid=test_self_service_app_provision.id,
        patch_name="NAME OF PATCH ACTION",
        config_name="NAME OF PATCH CONFIG",
        categories=[{
            "value": "CATEGORY TO BE ADDED (KEY:VALUE PAIR)",
            "operation": "add",
        }])
    
    package main
    
    import (
    	"github.com/pierskarsenbarg/pulumi-nutanix/sdk/go/nutanix"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		// Provision Application
    		testSelfServiceAppProvision, err := nutanix.NewSelfServiceAppProvision(ctx, "testSelfServiceAppProvision", &nutanix.SelfServiceAppProvisionArgs{
    			BpName:         pulumi.String("NAME OF BLUEPRINT"),
    			AppName:        pulumi.String("NAME OF APPLICATION"),
    			AppDescription: pulumi.String("DESCRIPTION OF APPLICATION"),
    		})
    		if err != nil {
    			return err
    		}
    		// Run patch config (update config)
    		_, err = nutanix.NewSelfServiceAppPatch(ctx, "testSelfServiceAppPatch", &nutanix.SelfServiceAppPatchArgs{
    			AppUuid:    testSelfServiceAppProvision.ID(),
    			PatchName:  pulumi.String("NAME OF PATCH ACTION"),
    			ConfigName: pulumi.String("NAME OF PATCH CONFIG"),
    			Categories: nutanix.SelfServiceAppPatchCategoryArray{
    				&nutanix.SelfServiceAppPatchCategoryArgs{
    					Value:     pulumi.String("CATEGORY TO BE ADDED (KEY:VALUE PAIR)"),
    					Operation: pulumi.String("add"),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Nutanix = PiersKarsenbarg.Nutanix;
    
    return await Deployment.RunAsync(() => 
    {
        // Provision Application
        var testSelfServiceAppProvision = new Nutanix.SelfServiceAppProvision("testSelfServiceAppProvision", new()
        {
            BpName = "NAME OF BLUEPRINT",
            AppName = "NAME OF APPLICATION",
            AppDescription = "DESCRIPTION OF APPLICATION",
        });
    
        // Run patch config (update config)
        var testSelfServiceAppPatch = new Nutanix.SelfServiceAppPatch("testSelfServiceAppPatch", new()
        {
            AppUuid = testSelfServiceAppProvision.Id,
            PatchName = "NAME OF PATCH ACTION",
            ConfigName = "NAME OF PATCH CONFIG",
            Categories = new[]
            {
                new Nutanix.Inputs.SelfServiceAppPatchCategoryArgs
                {
                    Value = "CATEGORY TO BE ADDED (KEY:VALUE PAIR)",
                    Operation = "add",
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.nutanix.SelfServiceAppProvision;
    import com.pulumi.nutanix.SelfServiceAppProvisionArgs;
    import com.pulumi.nutanix.SelfServiceAppPatch;
    import com.pulumi.nutanix.SelfServiceAppPatchArgs;
    import com.pulumi.nutanix.inputs.SelfServiceAppPatchCategoryArgs;
    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) {
            // Provision Application
            var testSelfServiceAppProvision = new SelfServiceAppProvision("testSelfServiceAppProvision", SelfServiceAppProvisionArgs.builder()
                .bpName("NAME OF BLUEPRINT")
                .appName("NAME OF APPLICATION")
                .appDescription("DESCRIPTION OF APPLICATION")
                .build());
    
            // Run patch config (update config)
            var testSelfServiceAppPatch = new SelfServiceAppPatch("testSelfServiceAppPatch", SelfServiceAppPatchArgs.builder()
                .appUuid(testSelfServiceAppProvision.id())
                .patchName("NAME OF PATCH ACTION")
                .configName("NAME OF PATCH CONFIG")
                .categories(SelfServiceAppPatchCategoryArgs.builder()
                    .value("CATEGORY TO BE ADDED (KEY:VALUE PAIR)")
                    .operation("add")
                    .build())
                .build());
    
        }
    }
    
    resources:
      # Provision Application
      testSelfServiceAppProvision:
        type: nutanix:SelfServiceAppProvision
        properties:
          bpName: NAME OF BLUEPRINT
          appName: NAME OF APPLICATION
          appDescription: DESCRIPTION OF APPLICATION
      # Run patch config (update config)
      testSelfServiceAppPatch:
        type: nutanix:SelfServiceAppPatch
        properties:
          appUuid: ${testSelfServiceAppProvision.id}
          patchName: NAME OF PATCH ACTION
          configName: NAME OF PATCH CONFIG
          categories:
            - value: CATEGORY TO BE ADDED (KEY:VALUE PAIR)
              operation: add
    

    Example 4: Delete Category

    import * as pulumi from "@pulumi/pulumi";
    import * as nutanix from "@pierskarsenbarg/nutanix";
    
    // Provision Application
    const testSelfServiceAppProvision = new nutanix.SelfServiceAppProvision("testSelfServiceAppProvision", {
        bpName: "NAME OF BLUEPRINT",
        appName: "NAME OF APPLICATION",
        appDescription: "DESCRIPTION OF APPLICATION",
    });
    // Run patch config (update config)
    const testSelfServiceAppPatch = new nutanix.SelfServiceAppPatch("testSelfServiceAppPatch", {
        appUuid: testSelfServiceAppProvision.id,
        patchName: "NAME OF PATCH ACTION",
        configName: "NAME OF PATCH CONFIG",
        categories: [{
            value: "CATEGORY TO BE ADDED (KEY:VALUE PAIR)",
            operation: "delete",
        }],
    });
    
    import pulumi
    import pulumi_nutanix as nutanix
    
    # Provision Application
    test_self_service_app_provision = nutanix.SelfServiceAppProvision("testSelfServiceAppProvision",
        bp_name="NAME OF BLUEPRINT",
        app_name="NAME OF APPLICATION",
        app_description="DESCRIPTION OF APPLICATION")
    # Run patch config (update config)
    test_self_service_app_patch = nutanix.SelfServiceAppPatch("testSelfServiceAppPatch",
        app_uuid=test_self_service_app_provision.id,
        patch_name="NAME OF PATCH ACTION",
        config_name="NAME OF PATCH CONFIG",
        categories=[{
            "value": "CATEGORY TO BE ADDED (KEY:VALUE PAIR)",
            "operation": "delete",
        }])
    
    package main
    
    import (
    	"github.com/pierskarsenbarg/pulumi-nutanix/sdk/go/nutanix"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		// Provision Application
    		testSelfServiceAppProvision, err := nutanix.NewSelfServiceAppProvision(ctx, "testSelfServiceAppProvision", &nutanix.SelfServiceAppProvisionArgs{
    			BpName:         pulumi.String("NAME OF BLUEPRINT"),
    			AppName:        pulumi.String("NAME OF APPLICATION"),
    			AppDescription: pulumi.String("DESCRIPTION OF APPLICATION"),
    		})
    		if err != nil {
    			return err
    		}
    		// Run patch config (update config)
    		_, err = nutanix.NewSelfServiceAppPatch(ctx, "testSelfServiceAppPatch", &nutanix.SelfServiceAppPatchArgs{
    			AppUuid:    testSelfServiceAppProvision.ID(),
    			PatchName:  pulumi.String("NAME OF PATCH ACTION"),
    			ConfigName: pulumi.String("NAME OF PATCH CONFIG"),
    			Categories: nutanix.SelfServiceAppPatchCategoryArray{
    				&nutanix.SelfServiceAppPatchCategoryArgs{
    					Value:     pulumi.String("CATEGORY TO BE ADDED (KEY:VALUE PAIR)"),
    					Operation: pulumi.String("delete"),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Nutanix = PiersKarsenbarg.Nutanix;
    
    return await Deployment.RunAsync(() => 
    {
        // Provision Application
        var testSelfServiceAppProvision = new Nutanix.SelfServiceAppProvision("testSelfServiceAppProvision", new()
        {
            BpName = "NAME OF BLUEPRINT",
            AppName = "NAME OF APPLICATION",
            AppDescription = "DESCRIPTION OF APPLICATION",
        });
    
        // Run patch config (update config)
        var testSelfServiceAppPatch = new Nutanix.SelfServiceAppPatch("testSelfServiceAppPatch", new()
        {
            AppUuid = testSelfServiceAppProvision.Id,
            PatchName = "NAME OF PATCH ACTION",
            ConfigName = "NAME OF PATCH CONFIG",
            Categories = new[]
            {
                new Nutanix.Inputs.SelfServiceAppPatchCategoryArgs
                {
                    Value = "CATEGORY TO BE ADDED (KEY:VALUE PAIR)",
                    Operation = "delete",
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.nutanix.SelfServiceAppProvision;
    import com.pulumi.nutanix.SelfServiceAppProvisionArgs;
    import com.pulumi.nutanix.SelfServiceAppPatch;
    import com.pulumi.nutanix.SelfServiceAppPatchArgs;
    import com.pulumi.nutanix.inputs.SelfServiceAppPatchCategoryArgs;
    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) {
            // Provision Application
            var testSelfServiceAppProvision = new SelfServiceAppProvision("testSelfServiceAppProvision", SelfServiceAppProvisionArgs.builder()
                .bpName("NAME OF BLUEPRINT")
                .appName("NAME OF APPLICATION")
                .appDescription("DESCRIPTION OF APPLICATION")
                .build());
    
            // Run patch config (update config)
            var testSelfServiceAppPatch = new SelfServiceAppPatch("testSelfServiceAppPatch", SelfServiceAppPatchArgs.builder()
                .appUuid(testSelfServiceAppProvision.id())
                .patchName("NAME OF PATCH ACTION")
                .configName("NAME OF PATCH CONFIG")
                .categories(SelfServiceAppPatchCategoryArgs.builder()
                    .value("CATEGORY TO BE ADDED (KEY:VALUE PAIR)")
                    .operation("delete")
                    .build())
                .build());
    
        }
    }
    
    resources:
      # Provision Application
      testSelfServiceAppProvision:
        type: nutanix:SelfServiceAppProvision
        properties:
          bpName: NAME OF BLUEPRINT
          appName: NAME OF APPLICATION
          appDescription: DESCRIPTION OF APPLICATION
      # Run patch config (update config)
      testSelfServiceAppPatch:
        type: nutanix:SelfServiceAppPatch
        properties:
          appUuid: ${testSelfServiceAppProvision.id}
          patchName: NAME OF PATCH ACTION
          configName: NAME OF PATCH CONFIG
          categories:
            - value: CATEGORY TO BE ADDED (KEY:VALUE PAIR)
              operation: delete
    

    Example 5: Add Disk

    import * as pulumi from "@pulumi/pulumi";
    import * as nutanix from "@pierskarsenbarg/nutanix";
    
    // Provision Application
    const testSelfServiceAppProvision = new nutanix.SelfServiceAppProvision("testSelfServiceAppProvision", {
        bpName: "NAME OF BLUEPRINT",
        appName: "NAME OF APPLICATION",
        appDescription: "DESCRIPTION OF APPLICATION",
    });
    // Run patch config (update config)
    const testSelfServiceAppPatch = new nutanix.SelfServiceAppPatch("testSelfServiceAppPatch", {
        appUuid: testSelfServiceAppProvision.id,
        patchName: "NAME OF PATCH ACTION",
        configName: "NAME OF PATCH CONFIG",
        disks: [{
            diskSizeMib: "SIZE OF DISK IN MiB",
            operation: "add",
        }],
    });
    
    import pulumi
    import pulumi_nutanix as nutanix
    
    # Provision Application
    test_self_service_app_provision = nutanix.SelfServiceAppProvision("testSelfServiceAppProvision",
        bp_name="NAME OF BLUEPRINT",
        app_name="NAME OF APPLICATION",
        app_description="DESCRIPTION OF APPLICATION")
    # Run patch config (update config)
    test_self_service_app_patch = nutanix.SelfServiceAppPatch("testSelfServiceAppPatch",
        app_uuid=test_self_service_app_provision.id,
        patch_name="NAME OF PATCH ACTION",
        config_name="NAME OF PATCH CONFIG",
        disks=[{
            "disk_size_mib": "SIZE OF DISK IN MiB",
            "operation": "add",
        }])
    
    package main
    
    import (
    	"github.com/pierskarsenbarg/pulumi-nutanix/sdk/go/nutanix"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		// Provision Application
    		testSelfServiceAppProvision, err := nutanix.NewSelfServiceAppProvision(ctx, "testSelfServiceAppProvision", &nutanix.SelfServiceAppProvisionArgs{
    			BpName:         pulumi.String("NAME OF BLUEPRINT"),
    			AppName:        pulumi.String("NAME OF APPLICATION"),
    			AppDescription: pulumi.String("DESCRIPTION OF APPLICATION"),
    		})
    		if err != nil {
    			return err
    		}
    		// Run patch config (update config)
    		_, err = nutanix.NewSelfServiceAppPatch(ctx, "testSelfServiceAppPatch", &nutanix.SelfServiceAppPatchArgs{
    			AppUuid:    testSelfServiceAppProvision.ID(),
    			PatchName:  pulumi.String("NAME OF PATCH ACTION"),
    			ConfigName: pulumi.String("NAME OF PATCH CONFIG"),
    			Disks: nutanix.SelfServiceAppPatchDiskArray{
    				&nutanix.SelfServiceAppPatchDiskArgs{
    					DiskSizeMib: pulumi.Int("SIZE OF DISK IN MiB"),
    					Operation:   pulumi.String("add"),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Nutanix = PiersKarsenbarg.Nutanix;
    
    return await Deployment.RunAsync(() => 
    {
        // Provision Application
        var testSelfServiceAppProvision = new Nutanix.SelfServiceAppProvision("testSelfServiceAppProvision", new()
        {
            BpName = "NAME OF BLUEPRINT",
            AppName = "NAME OF APPLICATION",
            AppDescription = "DESCRIPTION OF APPLICATION",
        });
    
        // Run patch config (update config)
        var testSelfServiceAppPatch = new Nutanix.SelfServiceAppPatch("testSelfServiceAppPatch", new()
        {
            AppUuid = testSelfServiceAppProvision.Id,
            PatchName = "NAME OF PATCH ACTION",
            ConfigName = "NAME OF PATCH CONFIG",
            Disks = new[]
            {
                new Nutanix.Inputs.SelfServiceAppPatchDiskArgs
                {
                    DiskSizeMib = "SIZE OF DISK IN MiB",
                    Operation = "add",
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.nutanix.SelfServiceAppProvision;
    import com.pulumi.nutanix.SelfServiceAppProvisionArgs;
    import com.pulumi.nutanix.SelfServiceAppPatch;
    import com.pulumi.nutanix.SelfServiceAppPatchArgs;
    import com.pulumi.nutanix.inputs.SelfServiceAppPatchDiskArgs;
    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) {
            // Provision Application
            var testSelfServiceAppProvision = new SelfServiceAppProvision("testSelfServiceAppProvision", SelfServiceAppProvisionArgs.builder()
                .bpName("NAME OF BLUEPRINT")
                .appName("NAME OF APPLICATION")
                .appDescription("DESCRIPTION OF APPLICATION")
                .build());
    
            // Run patch config (update config)
            var testSelfServiceAppPatch = new SelfServiceAppPatch("testSelfServiceAppPatch", SelfServiceAppPatchArgs.builder()
                .appUuid(testSelfServiceAppProvision.id())
                .patchName("NAME OF PATCH ACTION")
                .configName("NAME OF PATCH CONFIG")
                .disks(SelfServiceAppPatchDiskArgs.builder()
                    .diskSizeMib("SIZE OF DISK IN MiB")
                    .operation("add")
                    .build())
                .build());
    
        }
    }
    
    resources:
      # Provision Application
      testSelfServiceAppProvision:
        type: nutanix:SelfServiceAppProvision
        properties:
          bpName: NAME OF BLUEPRINT
          appName: NAME OF APPLICATION
          appDescription: DESCRIPTION OF APPLICATION
      # Run patch config (update config)
      testSelfServiceAppPatch:
        type: nutanix:SelfServiceAppPatch
        properties:
          appUuid: ${testSelfServiceAppProvision.id}
          patchName: NAME OF PATCH ACTION
          configName: NAME OF PATCH CONFIG
          disks:
            - diskSizeMib: SIZE OF DISK IN MiB
              operation: add
    

    Example 6: Add Nic

    import * as pulumi from "@pulumi/pulumi";
    import * as nutanix from "@pierskarsenbarg/nutanix";
    
    // Provision Application
    const testSelfServiceAppProvision = new nutanix.SelfServiceAppProvision("testSelfServiceAppProvision", {
        bpName: "NAME OF BLUEPRINT",
        appName: "NAME OF APPLICATION",
        appDescription: "DESCRIPTION OF APPLICATION",
    });
    // Run patch config (update config)
    const testSelfServiceAppPatch = new nutanix.SelfServiceAppPatch("testSelfServiceAppPatch", {
        appUuid: testSelfServiceAppProvision.id,
        patchName: "NAME OF PATCH ACTION",
        configName: "NAME OF PATCH CONFIG",
        nics: [{
            index: "DUMMY INDEX VALUE",
            operation: "add",
            subnetUuid: "VALID SUBNET UUID IN PROJECT ATTACHED TO APP",
        }],
    });
    
    import pulumi
    import pulumi_nutanix as nutanix
    
    # Provision Application
    test_self_service_app_provision = nutanix.SelfServiceAppProvision("testSelfServiceAppProvision",
        bp_name="NAME OF BLUEPRINT",
        app_name="NAME OF APPLICATION",
        app_description="DESCRIPTION OF APPLICATION")
    # Run patch config (update config)
    test_self_service_app_patch = nutanix.SelfServiceAppPatch("testSelfServiceAppPatch",
        app_uuid=test_self_service_app_provision.id,
        patch_name="NAME OF PATCH ACTION",
        config_name="NAME OF PATCH CONFIG",
        nics=[{
            "index": "DUMMY INDEX VALUE",
            "operation": "add",
            "subnet_uuid": "VALID SUBNET UUID IN PROJECT ATTACHED TO APP",
        }])
    
    package main
    
    import (
    	"github.com/pierskarsenbarg/pulumi-nutanix/sdk/go/nutanix"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		// Provision Application
    		testSelfServiceAppProvision, err := nutanix.NewSelfServiceAppProvision(ctx, "testSelfServiceAppProvision", &nutanix.SelfServiceAppProvisionArgs{
    			BpName:         pulumi.String("NAME OF BLUEPRINT"),
    			AppName:        pulumi.String("NAME OF APPLICATION"),
    			AppDescription: pulumi.String("DESCRIPTION OF APPLICATION"),
    		})
    		if err != nil {
    			return err
    		}
    		// Run patch config (update config)
    		_, err = nutanix.NewSelfServiceAppPatch(ctx, "testSelfServiceAppPatch", &nutanix.SelfServiceAppPatchArgs{
    			AppUuid:    testSelfServiceAppProvision.ID(),
    			PatchName:  pulumi.String("NAME OF PATCH ACTION"),
    			ConfigName: pulumi.String("NAME OF PATCH CONFIG"),
    			Nics: nutanix.SelfServiceAppPatchNicArray{
    				&nutanix.SelfServiceAppPatchNicArgs{
    					Index:      pulumi.Int("DUMMY INDEX VALUE"),
    					Operation:  pulumi.String("add"),
    					SubnetUuid: pulumi.String("VALID SUBNET UUID IN PROJECT ATTACHED TO APP"),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Nutanix = PiersKarsenbarg.Nutanix;
    
    return await Deployment.RunAsync(() => 
    {
        // Provision Application
        var testSelfServiceAppProvision = new Nutanix.SelfServiceAppProvision("testSelfServiceAppProvision", new()
        {
            BpName = "NAME OF BLUEPRINT",
            AppName = "NAME OF APPLICATION",
            AppDescription = "DESCRIPTION OF APPLICATION",
        });
    
        // Run patch config (update config)
        var testSelfServiceAppPatch = new Nutanix.SelfServiceAppPatch("testSelfServiceAppPatch", new()
        {
            AppUuid = testSelfServiceAppProvision.Id,
            PatchName = "NAME OF PATCH ACTION",
            ConfigName = "NAME OF PATCH CONFIG",
            Nics = new[]
            {
                new Nutanix.Inputs.SelfServiceAppPatchNicArgs
                {
                    Index = "DUMMY INDEX VALUE",
                    Operation = "add",
                    SubnetUuid = "VALID SUBNET UUID IN PROJECT ATTACHED TO APP",
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.nutanix.SelfServiceAppProvision;
    import com.pulumi.nutanix.SelfServiceAppProvisionArgs;
    import com.pulumi.nutanix.SelfServiceAppPatch;
    import com.pulumi.nutanix.SelfServiceAppPatchArgs;
    import com.pulumi.nutanix.inputs.SelfServiceAppPatchNicArgs;
    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) {
            // Provision Application
            var testSelfServiceAppProvision = new SelfServiceAppProvision("testSelfServiceAppProvision", SelfServiceAppProvisionArgs.builder()
                .bpName("NAME OF BLUEPRINT")
                .appName("NAME OF APPLICATION")
                .appDescription("DESCRIPTION OF APPLICATION")
                .build());
    
            // Run patch config (update config)
            var testSelfServiceAppPatch = new SelfServiceAppPatch("testSelfServiceAppPatch", SelfServiceAppPatchArgs.builder()
                .appUuid(testSelfServiceAppProvision.id())
                .patchName("NAME OF PATCH ACTION")
                .configName("NAME OF PATCH CONFIG")
                .nics(SelfServiceAppPatchNicArgs.builder()
                    .index("DUMMY INDEX VALUE")
                    .operation("add")
                    .subnetUuid("VALID SUBNET UUID IN PROJECT ATTACHED TO APP")
                    .build())
                .build());
    
        }
    }
    
    resources:
      # Provision Application
      testSelfServiceAppProvision:
        type: nutanix:SelfServiceAppProvision
        properties:
          bpName: NAME OF BLUEPRINT
          appName: NAME OF APPLICATION
          appDescription: DESCRIPTION OF APPLICATION
      # Run patch config (update config)
      testSelfServiceAppPatch:
        type: nutanix:SelfServiceAppPatch
        properties:
          appUuid: ${testSelfServiceAppProvision.id}
          patchName: NAME OF PATCH ACTION
          configName: NAME OF PATCH CONFIG
          nics:
            - index: DUMMY INDEX VALUE
              operation: add
              subnetUuid: VALID SUBNET UUID IN PROJECT ATTACHED TO APP
    

    Create SelfServiceAppPatch Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new SelfServiceAppPatch(name: string, args: SelfServiceAppPatchArgs, opts?: CustomResourceOptions);
    @overload
    def SelfServiceAppPatch(resource_name: str,
                            args: SelfServiceAppPatchArgs,
                            opts: Optional[ResourceOptions] = None)
    
    @overload
    def SelfServiceAppPatch(resource_name: str,
                            opts: Optional[ResourceOptions] = None,
                            app_uuid: Optional[str] = None,
                            config_name: Optional[str] = None,
                            patch_name: Optional[str] = None,
                            categories: Optional[Sequence[SelfServiceAppPatchCategoryArgs]] = None,
                            disks: Optional[Sequence[SelfServiceAppPatchDiskArgs]] = None,
                            nics: Optional[Sequence[SelfServiceAppPatchNicArgs]] = None,
                            runlog_uuid: Optional[str] = None,
                            vm_configs: Optional[Sequence[SelfServiceAppPatchVmConfigArgs]] = None)
    func NewSelfServiceAppPatch(ctx *Context, name string, args SelfServiceAppPatchArgs, opts ...ResourceOption) (*SelfServiceAppPatch, error)
    public SelfServiceAppPatch(string name, SelfServiceAppPatchArgs args, CustomResourceOptions? opts = null)
    public SelfServiceAppPatch(String name, SelfServiceAppPatchArgs args)
    public SelfServiceAppPatch(String name, SelfServiceAppPatchArgs args, CustomResourceOptions options)
    
    type: nutanix:SelfServiceAppPatch
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args SelfServiceAppPatchArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args SelfServiceAppPatchArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args SelfServiceAppPatchArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SelfServiceAppPatchArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SelfServiceAppPatchArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var selfServiceAppPatchResource = new Nutanix.SelfServiceAppPatch("selfServiceAppPatchResource", new()
    {
        AppUuid = "string",
        ConfigName = "string",
        PatchName = "string",
        Categories = new[]
        {
            new Nutanix.Inputs.SelfServiceAppPatchCategoryArgs
            {
                Operation = "string",
                Value = "string",
            },
        },
        Disks = new[]
        {
            new Nutanix.Inputs.SelfServiceAppPatchDiskArgs
            {
                Operation = "string",
                DiskSizeMib = 0,
            },
        },
        Nics = new[]
        {
            new Nutanix.Inputs.SelfServiceAppPatchNicArgs
            {
                Index = 0,
                Operation = "string",
                SubnetUuid = "string",
            },
        },
        RunlogUuid = "string",
        VmConfigs = new[]
        {
            new Nutanix.Inputs.SelfServiceAppPatchVmConfigArgs
            {
                MemorySizeMib = 0,
                NumSockets = 0,
                NumVcpusPerSocket = 0,
            },
        },
    });
    
    example, err := nutanix.NewSelfServiceAppPatch(ctx, "selfServiceAppPatchResource", &nutanix.SelfServiceAppPatchArgs{
    	AppUuid:    pulumi.String("string"),
    	ConfigName: pulumi.String("string"),
    	PatchName:  pulumi.String("string"),
    	Categories: nutanix.SelfServiceAppPatchCategoryArray{
    		&nutanix.SelfServiceAppPatchCategoryArgs{
    			Operation: pulumi.String("string"),
    			Value:     pulumi.String("string"),
    		},
    	},
    	Disks: nutanix.SelfServiceAppPatchDiskArray{
    		&nutanix.SelfServiceAppPatchDiskArgs{
    			Operation:   pulumi.String("string"),
    			DiskSizeMib: pulumi.Int(0),
    		},
    	},
    	Nics: nutanix.SelfServiceAppPatchNicArray{
    		&nutanix.SelfServiceAppPatchNicArgs{
    			Index:      pulumi.Int(0),
    			Operation:  pulumi.String("string"),
    			SubnetUuid: pulumi.String("string"),
    		},
    	},
    	RunlogUuid: pulumi.String("string"),
    	VmConfigs: nutanix.SelfServiceAppPatchVmConfigArray{
    		&nutanix.SelfServiceAppPatchVmConfigArgs{
    			MemorySizeMib:     pulumi.Int(0),
    			NumSockets:        pulumi.Int(0),
    			NumVcpusPerSocket: pulumi.Int(0),
    		},
    	},
    })
    
    var selfServiceAppPatchResource = new SelfServiceAppPatch("selfServiceAppPatchResource", SelfServiceAppPatchArgs.builder()
        .appUuid("string")
        .configName("string")
        .patchName("string")
        .categories(SelfServiceAppPatchCategoryArgs.builder()
            .operation("string")
            .value("string")
            .build())
        .disks(SelfServiceAppPatchDiskArgs.builder()
            .operation("string")
            .diskSizeMib(0)
            .build())
        .nics(SelfServiceAppPatchNicArgs.builder()
            .index(0)
            .operation("string")
            .subnetUuid("string")
            .build())
        .runlogUuid("string")
        .vmConfigs(SelfServiceAppPatchVmConfigArgs.builder()
            .memorySizeMib(0)
            .numSockets(0)
            .numVcpusPerSocket(0)
            .build())
        .build());
    
    self_service_app_patch_resource = nutanix.SelfServiceAppPatch("selfServiceAppPatchResource",
        app_uuid="string",
        config_name="string",
        patch_name="string",
        categories=[{
            "operation": "string",
            "value": "string",
        }],
        disks=[{
            "operation": "string",
            "disk_size_mib": 0,
        }],
        nics=[{
            "index": 0,
            "operation": "string",
            "subnet_uuid": "string",
        }],
        runlog_uuid="string",
        vm_configs=[{
            "memory_size_mib": 0,
            "num_sockets": 0,
            "num_vcpus_per_socket": 0,
        }])
    
    const selfServiceAppPatchResource = new nutanix.SelfServiceAppPatch("selfServiceAppPatchResource", {
        appUuid: "string",
        configName: "string",
        patchName: "string",
        categories: [{
            operation: "string",
            value: "string",
        }],
        disks: [{
            operation: "string",
            diskSizeMib: 0,
        }],
        nics: [{
            index: 0,
            operation: "string",
            subnetUuid: "string",
        }],
        runlogUuid: "string",
        vmConfigs: [{
            memorySizeMib: 0,
            numSockets: 0,
            numVcpusPerSocket: 0,
        }],
    });
    
    type: nutanix:SelfServiceAppPatch
    properties:
        appUuid: string
        categories:
            - operation: string
              value: string
        configName: string
        disks:
            - diskSizeMib: 0
              operation: string
        nics:
            - index: 0
              operation: string
              subnetUuid: string
        patchName: string
        runlogUuid: string
        vmConfigs:
            - memorySizeMib: 0
              numSockets: 0
              numVcpusPerSocket: 0
    

    SelfServiceAppPatch Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The SelfServiceAppPatch resource accepts the following input properties:

    AppUuid string
    • (Required) The UUID of the application.
    ConfigName string
    • (Required) The name of the patch configuration. (Same as patch_name for SINGLE VM)
    PatchName string
    • (Required) The name of the patch to be applied. This is used to identify the action name which needs to be executed to update an application.
    Categories List<PiersKarsenbarg.Nutanix.Inputs.SelfServiceAppPatchCategory>
    Disks List<PiersKarsenbarg.Nutanix.Inputs.SelfServiceAppPatchDisk>
    Nics List<PiersKarsenbarg.Nutanix.Inputs.SelfServiceAppPatchNic>
    RunlogUuid string
    • (Computed) The UUID of the runlog that records the patch operation's execution details.
    VmConfigs List<PiersKarsenbarg.Nutanix.Inputs.SelfServiceAppPatchVmConfig>
    AppUuid string
    • (Required) The UUID of the application.
    ConfigName string
    • (Required) The name of the patch configuration. (Same as patch_name for SINGLE VM)
    PatchName string
    • (Required) The name of the patch to be applied. This is used to identify the action name which needs to be executed to update an application.
    Categories []SelfServiceAppPatchCategoryArgs
    Disks []SelfServiceAppPatchDiskArgs
    Nics []SelfServiceAppPatchNicArgs
    RunlogUuid string
    • (Computed) The UUID of the runlog that records the patch operation's execution details.
    VmConfigs []SelfServiceAppPatchVmConfigArgs
    appUuid String
    • (Required) The UUID of the application.
    configName String
    • (Required) The name of the patch configuration. (Same as patch_name for SINGLE VM)
    patchName String
    • (Required) The name of the patch to be applied. This is used to identify the action name which needs to be executed to update an application.
    categories List<SelfServiceAppPatchCategory>
    disks List<SelfServiceAppPatchDisk>
    nics List<SelfServiceAppPatchNic>
    runlogUuid String
    • (Computed) The UUID of the runlog that records the patch operation's execution details.
    vmConfigs List<SelfServiceAppPatchVmConfig>
    appUuid string
    • (Required) The UUID of the application.
    configName string
    • (Required) The name of the patch configuration. (Same as patch_name for SINGLE VM)
    patchName string
    • (Required) The name of the patch to be applied. This is used to identify the action name which needs to be executed to update an application.
    categories SelfServiceAppPatchCategory[]
    disks SelfServiceAppPatchDisk[]
    nics SelfServiceAppPatchNic[]
    runlogUuid string
    • (Computed) The UUID of the runlog that records the patch operation's execution details.
    vmConfigs SelfServiceAppPatchVmConfig[]
    app_uuid str
    • (Required) The UUID of the application.
    config_name str
    • (Required) The name of the patch configuration. (Same as patch_name for SINGLE VM)
    patch_name str
    • (Required) The name of the patch to be applied. This is used to identify the action name which needs to be executed to update an application.
    categories Sequence[SelfServiceAppPatchCategoryArgs]
    disks Sequence[SelfServiceAppPatchDiskArgs]
    nics Sequence[SelfServiceAppPatchNicArgs]
    runlog_uuid str
    • (Computed) The UUID of the runlog that records the patch operation's execution details.
    vm_configs Sequence[SelfServiceAppPatchVmConfigArgs]
    appUuid String
    • (Required) The UUID of the application.
    configName String
    • (Required) The name of the patch configuration. (Same as patch_name for SINGLE VM)
    patchName String
    • (Required) The name of the patch to be applied. This is used to identify the action name which needs to be executed to update an application.
    categories List<Property Map>
    disks List<Property Map>
    nics List<Property Map>
    runlogUuid String
    • (Computed) The UUID of the runlog that records the patch operation's execution details.
    vmConfigs List<Property Map>

    Outputs

    All input properties are implicitly available as output properties. Additionally, the SelfServiceAppPatch resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing SelfServiceAppPatch Resource

    Get an existing SelfServiceAppPatch resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: SelfServiceAppPatchState, opts?: CustomResourceOptions): SelfServiceAppPatch
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            app_uuid: Optional[str] = None,
            categories: Optional[Sequence[SelfServiceAppPatchCategoryArgs]] = None,
            config_name: Optional[str] = None,
            disks: Optional[Sequence[SelfServiceAppPatchDiskArgs]] = None,
            nics: Optional[Sequence[SelfServiceAppPatchNicArgs]] = None,
            patch_name: Optional[str] = None,
            runlog_uuid: Optional[str] = None,
            vm_configs: Optional[Sequence[SelfServiceAppPatchVmConfigArgs]] = None) -> SelfServiceAppPatch
    func GetSelfServiceAppPatch(ctx *Context, name string, id IDInput, state *SelfServiceAppPatchState, opts ...ResourceOption) (*SelfServiceAppPatch, error)
    public static SelfServiceAppPatch Get(string name, Input<string> id, SelfServiceAppPatchState? state, CustomResourceOptions? opts = null)
    public static SelfServiceAppPatch get(String name, Output<String> id, SelfServiceAppPatchState state, CustomResourceOptions options)
    resources:  _:    type: nutanix:SelfServiceAppPatch    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    AppUuid string
    • (Required) The UUID of the application.
    Categories List<PiersKarsenbarg.Nutanix.Inputs.SelfServiceAppPatchCategory>
    ConfigName string
    • (Required) The name of the patch configuration. (Same as patch_name for SINGLE VM)
    Disks List<PiersKarsenbarg.Nutanix.Inputs.SelfServiceAppPatchDisk>
    Nics List<PiersKarsenbarg.Nutanix.Inputs.SelfServiceAppPatchNic>
    PatchName string
    • (Required) The name of the patch to be applied. This is used to identify the action name which needs to be executed to update an application.
    RunlogUuid string
    • (Computed) The UUID of the runlog that records the patch operation's execution details.
    VmConfigs List<PiersKarsenbarg.Nutanix.Inputs.SelfServiceAppPatchVmConfig>
    AppUuid string
    • (Required) The UUID of the application.
    Categories []SelfServiceAppPatchCategoryArgs
    ConfigName string
    • (Required) The name of the patch configuration. (Same as patch_name for SINGLE VM)
    Disks []SelfServiceAppPatchDiskArgs
    Nics []SelfServiceAppPatchNicArgs
    PatchName string
    • (Required) The name of the patch to be applied. This is used to identify the action name which needs to be executed to update an application.
    RunlogUuid string
    • (Computed) The UUID of the runlog that records the patch operation's execution details.
    VmConfigs []SelfServiceAppPatchVmConfigArgs
    appUuid String
    • (Required) The UUID of the application.
    categories List<SelfServiceAppPatchCategory>
    configName String
    • (Required) The name of the patch configuration. (Same as patch_name for SINGLE VM)
    disks List<SelfServiceAppPatchDisk>
    nics List<SelfServiceAppPatchNic>
    patchName String
    • (Required) The name of the patch to be applied. This is used to identify the action name which needs to be executed to update an application.
    runlogUuid String
    • (Computed) The UUID of the runlog that records the patch operation's execution details.
    vmConfigs List<SelfServiceAppPatchVmConfig>
    appUuid string
    • (Required) The UUID of the application.
    categories SelfServiceAppPatchCategory[]
    configName string
    • (Required) The name of the patch configuration. (Same as patch_name for SINGLE VM)
    disks SelfServiceAppPatchDisk[]
    nics SelfServiceAppPatchNic[]
    patchName string
    • (Required) The name of the patch to be applied. This is used to identify the action name which needs to be executed to update an application.
    runlogUuid string
    • (Computed) The UUID of the runlog that records the patch operation's execution details.
    vmConfigs SelfServiceAppPatchVmConfig[]
    app_uuid str
    • (Required) The UUID of the application.
    categories Sequence[SelfServiceAppPatchCategoryArgs]
    config_name str
    • (Required) The name of the patch configuration. (Same as patch_name for SINGLE VM)
    disks Sequence[SelfServiceAppPatchDiskArgs]
    nics Sequence[SelfServiceAppPatchNicArgs]
    patch_name str
    • (Required) The name of the patch to be applied. This is used to identify the action name which needs to be executed to update an application.
    runlog_uuid str
    • (Computed) The UUID of the runlog that records the patch operation's execution details.
    vm_configs Sequence[SelfServiceAppPatchVmConfigArgs]
    appUuid String
    • (Required) The UUID of the application.
    categories List<Property Map>
    configName String
    • (Required) The name of the patch configuration. (Same as patch_name for SINGLE VM)
    disks List<Property Map>
    nics List<Property Map>
    patchName String
    • (Required) The name of the patch to be applied. This is used to identify the action name which needs to be executed to update an application.
    runlogUuid String
    • (Computed) The UUID of the runlog that records the patch operation's execution details.
    vmConfigs List<Property Map>

    Supporting Types

    SelfServiceAppPatchCategory, SelfServiceAppPatchCategoryArgs

    Operation string
    • (Optional) The operation to perform on the category. (e.g. "add", "delete")
    Value string
    • (Optional, string) The value of the category. A Key:Value pair (e.g. "AppType:Oracle_DB"). There should not be any space in value.
    Operation string
    • (Optional) The operation to perform on the category. (e.g. "add", "delete")
    Value string
    • (Optional, string) The value of the category. A Key:Value pair (e.g. "AppType:Oracle_DB"). There should not be any space in value.
    operation String
    • (Optional) The operation to perform on the category. (e.g. "add", "delete")
    value String
    • (Optional, string) The value of the category. A Key:Value pair (e.g. "AppType:Oracle_DB"). There should not be any space in value.
    operation string
    • (Optional) The operation to perform on the category. (e.g. "add", "delete")
    value string
    • (Optional, string) The value of the category. A Key:Value pair (e.g. "AppType:Oracle_DB"). There should not be any space in value.
    operation str
    • (Optional) The operation to perform on the category. (e.g. "add", "delete")
    value str
    • (Optional, string) The value of the category. A Key:Value pair (e.g. "AppType:Oracle_DB"). There should not be any space in value.
    operation String
    • (Optional) The operation to perform on the category. (e.g. "add", "delete")
    value String
    • (Optional, string) The value of the category. A Key:Value pair (e.g. "AppType:Oracle_DB"). There should not be any space in value.

    SelfServiceAppPatchDisk, SelfServiceAppPatchDiskArgs

    Operation string
    • (Optional) The operation to perform on the category. (e.g. "add", "delete")
    DiskSizeMib int
    • (Optional, integer) The size of the disk to allocate (in MiB).
    Operation string
    • (Optional) The operation to perform on the category. (e.g. "add", "delete")
    DiskSizeMib int
    • (Optional, integer) The size of the disk to allocate (in MiB).
    operation String
    • (Optional) The operation to perform on the category. (e.g. "add", "delete")
    diskSizeMib Integer
    • (Optional, integer) The size of the disk to allocate (in MiB).
    operation string
    • (Optional) The operation to perform on the category. (e.g. "add", "delete")
    diskSizeMib number
    • (Optional, integer) The size of the disk to allocate (in MiB).
    operation str
    • (Optional) The operation to perform on the category. (e.g. "add", "delete")
    disk_size_mib int
    • (Optional, integer) The size of the disk to allocate (in MiB).
    operation String
    • (Optional) The operation to perform on the category. (e.g. "add", "delete")
    diskSizeMib Number
    • (Optional, integer) The size of the disk to allocate (in MiB).

    SelfServiceAppPatchNic, SelfServiceAppPatchNicArgs

    Index int
    • (Optional, string) The index of the NIC. A dummy string for now.
    Operation string
    • (Optional) The operation to perform on the category. (e.g. "add", "delete")
    SubnetUuid string
    • (Optional, string) The UUID of the subnet to which the NIC should be attached.
    Index int
    • (Optional, string) The index of the NIC. A dummy string for now.
    Operation string
    • (Optional) The operation to perform on the category. (e.g. "add", "delete")
    SubnetUuid string
    • (Optional, string) The UUID of the subnet to which the NIC should be attached.
    index Integer
    • (Optional, string) The index of the NIC. A dummy string for now.
    operation String
    • (Optional) The operation to perform on the category. (e.g. "add", "delete")
    subnetUuid String
    • (Optional, string) The UUID of the subnet to which the NIC should be attached.
    index number
    • (Optional, string) The index of the NIC. A dummy string for now.
    operation string
    • (Optional) The operation to perform on the category. (e.g. "add", "delete")
    subnetUuid string
    • (Optional, string) The UUID of the subnet to which the NIC should be attached.
    index int
    • (Optional, string) The index of the NIC. A dummy string for now.
    operation str
    • (Optional) The operation to perform on the category. (e.g. "add", "delete")
    subnet_uuid str
    • (Optional, string) The UUID of the subnet to which the NIC should be attached.
    index Number
    • (Optional, string) The index of the NIC. A dummy string for now.
    operation String
    • (Optional) The operation to perform on the category. (e.g. "add", "delete")
    subnetUuid String
    • (Optional, string) The UUID of the subnet to which the NIC should be attached.

    SelfServiceAppPatchVmConfig, SelfServiceAppPatchVmConfigArgs

    MemorySizeMib int
    • (Optional, integer) The amount of memory (in MiB) to allocate for the VM.
    NumSockets int
    • (Optional, integer) The number of vCPUs to assign.
    NumVcpusPerSocket int
    • (Optional, integer) The number of cores per vCPU to assign to the VM.
    MemorySizeMib int
    • (Optional, integer) The amount of memory (in MiB) to allocate for the VM.
    NumSockets int
    • (Optional, integer) The number of vCPUs to assign.
    NumVcpusPerSocket int
    • (Optional, integer) The number of cores per vCPU to assign to the VM.
    memorySizeMib Integer
    • (Optional, integer) The amount of memory (in MiB) to allocate for the VM.
    numSockets Integer
    • (Optional, integer) The number of vCPUs to assign.
    numVcpusPerSocket Integer
    • (Optional, integer) The number of cores per vCPU to assign to the VM.
    memorySizeMib number
    • (Optional, integer) The amount of memory (in MiB) to allocate for the VM.
    numSockets number
    • (Optional, integer) The number of vCPUs to assign.
    numVcpusPerSocket number
    • (Optional, integer) The number of cores per vCPU to assign to the VM.
    memory_size_mib int
    • (Optional, integer) The amount of memory (in MiB) to allocate for the VM.
    num_sockets int
    • (Optional, integer) The number of vCPUs to assign.
    num_vcpus_per_socket int
    • (Optional, integer) The number of cores per vCPU to assign to the VM.
    memorySizeMib Number
    • (Optional, integer) The amount of memory (in MiB) to allocate for the VM.
    numSockets Number
    • (Optional, integer) The number of vCPUs to assign.
    numVcpusPerSocket Number
    • (Optional, integer) The number of cores per vCPU to assign to the VM.

    Package Details

    Repository
    nutanix pierskarsenbarg/pulumi-nutanix
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the nutanix Terraform Provider.
    nutanix logo
    Nutanix v0.8.0 published on Sunday, May 11, 2025 by Piers Karsenbarg