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

nutanix.LcmPrechecksV2

Explore with Pulumi AI

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

    Perform LCM prechecks for the intended update operation.

    Example

    import * as pulumi from "@pulumi/pulumi";
    import * as nutanix from "@pierskarsenbarg/nutanix";
    
    const pre_checks = new nutanix.LcmPrechecksV2("pre-checks", {
        entityUpdateSpecs: [{
            entityUuid: "0c5c9e53-3551-4c5d-b13c-e41c04cbfaf7",
            toVersion: "4.0.0",
        }],
        xClusterId: "0005a104-0b0b-4b0-8005-0b0b0b0b0b0b",
    });
    
    import pulumi
    import pulumi_nutanix as nutanix
    
    pre_checks = nutanix.LcmPrechecksV2("pre-checks",
        entity_update_specs=[{
            "entity_uuid": "0c5c9e53-3551-4c5d-b13c-e41c04cbfaf7",
            "to_version": "4.0.0",
        }],
        x_cluster_id="0005a104-0b0b-4b0-8005-0b0b0b0b0b0b")
    
    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 {
    		_, err := nutanix.NewLcmPrechecksV2(ctx, "pre-checks", &nutanix.LcmPrechecksV2Args{
    			EntityUpdateSpecs: nutanix.LcmPrechecksV2EntityUpdateSpecArray{
    				&nutanix.LcmPrechecksV2EntityUpdateSpecArgs{
    					EntityUuid: pulumi.String("0c5c9e53-3551-4c5d-b13c-e41c04cbfaf7"),
    					ToVersion:  pulumi.String("4.0.0"),
    				},
    			},
    			XClusterId: pulumi.String("0005a104-0b0b-4b0-8005-0b0b0b0b0b0b"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Nutanix = PiersKarsenbarg.Nutanix;
    
    return await Deployment.RunAsync(() => 
    {
        var pre_checks = new Nutanix.LcmPrechecksV2("pre-checks", new()
        {
            EntityUpdateSpecs = new[]
            {
                new Nutanix.Inputs.LcmPrechecksV2EntityUpdateSpecArgs
                {
                    EntityUuid = "0c5c9e53-3551-4c5d-b13c-e41c04cbfaf7",
                    ToVersion = "4.0.0",
                },
            },
            XClusterId = "0005a104-0b0b-4b0-8005-0b0b0b0b0b0b",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.nutanix.LcmPrechecksV2;
    import com.pulumi.nutanix.LcmPrechecksV2Args;
    import com.pulumi.nutanix.inputs.LcmPrechecksV2EntityUpdateSpecArgs;
    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) {
            var pre_checks = new LcmPrechecksV2("pre-checks", LcmPrechecksV2Args.builder()
                .entityUpdateSpecs(LcmPrechecksV2EntityUpdateSpecArgs.builder()
                    .entityUuid("0c5c9e53-3551-4c5d-b13c-e41c04cbfaf7")
                    .toVersion("4.0.0")
                    .build())
                .xClusterId("0005a104-0b0b-4b0-8005-0b0b0b0b0b0b")
                .build());
    
        }
    }
    
    resources:
      pre-checks:
        type: nutanix:LcmPrechecksV2
        properties:
          entityUpdateSpecs:
            - entityUuid: 0c5c9e53-3551-4c5d-b13c-e41c04cbfaf7
              toVersion: 4.0.0
          xClusterId: 0005a104-0b0b-4b0-8005-0b0b0b0b0b0b
    

    Create LcmPrechecksV2 Resource

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

    Constructor syntax

    new LcmPrechecksV2(name: string, args: LcmPrechecksV2Args, opts?: CustomResourceOptions);
    @overload
    def LcmPrechecksV2(resource_name: str,
                       args: LcmPrechecksV2Args,
                       opts: Optional[ResourceOptions] = None)
    
    @overload
    def LcmPrechecksV2(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       entity_update_specs: Optional[Sequence[LcmPrechecksV2EntityUpdateSpecArgs]] = None,
                       management_server: Optional[LcmPrechecksV2ManagementServerArgs] = None,
                       skipped_precheck_flags: Optional[Sequence[str]] = None,
                       x_cluster_id: Optional[str] = None)
    func NewLcmPrechecksV2(ctx *Context, name string, args LcmPrechecksV2Args, opts ...ResourceOption) (*LcmPrechecksV2, error)
    public LcmPrechecksV2(string name, LcmPrechecksV2Args args, CustomResourceOptions? opts = null)
    public LcmPrechecksV2(String name, LcmPrechecksV2Args args)
    public LcmPrechecksV2(String name, LcmPrechecksV2Args args, CustomResourceOptions options)
    
    type: nutanix:LcmPrechecksV2
    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 LcmPrechecksV2Args
    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 LcmPrechecksV2Args
    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 LcmPrechecksV2Args
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args LcmPrechecksV2Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args LcmPrechecksV2Args
    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 lcmPrechecksV2Resource = new Nutanix.LcmPrechecksV2("lcmPrechecksV2Resource", new()
    {
        EntityUpdateSpecs = new[]
        {
            new Nutanix.Inputs.LcmPrechecksV2EntityUpdateSpecArgs
            {
                EntityUuid = "string",
                ToVersion = "string",
            },
        },
        ManagementServer = new Nutanix.Inputs.LcmPrechecksV2ManagementServerArgs
        {
            HypervisorType = "string",
            Ip = "string",
            Password = "string",
            Username = "string",
        },
        SkippedPrecheckFlags = new[]
        {
            "string",
        },
        XClusterId = "string",
    });
    
    example, err := nutanix.NewLcmPrechecksV2(ctx, "lcmPrechecksV2Resource", &nutanix.LcmPrechecksV2Args{
    	EntityUpdateSpecs: nutanix.LcmPrechecksV2EntityUpdateSpecArray{
    		&nutanix.LcmPrechecksV2EntityUpdateSpecArgs{
    			EntityUuid: pulumi.String("string"),
    			ToVersion:  pulumi.String("string"),
    		},
    	},
    	ManagementServer: &nutanix.LcmPrechecksV2ManagementServerArgs{
    		HypervisorType: pulumi.String("string"),
    		Ip:             pulumi.String("string"),
    		Password:       pulumi.String("string"),
    		Username:       pulumi.String("string"),
    	},
    	SkippedPrecheckFlags: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	XClusterId: pulumi.String("string"),
    })
    
    var lcmPrechecksV2Resource = new LcmPrechecksV2("lcmPrechecksV2Resource", LcmPrechecksV2Args.builder()
        .entityUpdateSpecs(LcmPrechecksV2EntityUpdateSpecArgs.builder()
            .entityUuid("string")
            .toVersion("string")
            .build())
        .managementServer(LcmPrechecksV2ManagementServerArgs.builder()
            .hypervisorType("string")
            .ip("string")
            .password("string")
            .username("string")
            .build())
        .skippedPrecheckFlags("string")
        .xClusterId("string")
        .build());
    
    lcm_prechecks_v2_resource = nutanix.LcmPrechecksV2("lcmPrechecksV2Resource",
        entity_update_specs=[{
            "entity_uuid": "string",
            "to_version": "string",
        }],
        management_server={
            "hypervisor_type": "string",
            "ip": "string",
            "password": "string",
            "username": "string",
        },
        skipped_precheck_flags=["string"],
        x_cluster_id="string")
    
    const lcmPrechecksV2Resource = new nutanix.LcmPrechecksV2("lcmPrechecksV2Resource", {
        entityUpdateSpecs: [{
            entityUuid: "string",
            toVersion: "string",
        }],
        managementServer: {
            hypervisorType: "string",
            ip: "string",
            password: "string",
            username: "string",
        },
        skippedPrecheckFlags: ["string"],
        xClusterId: "string",
    });
    
    type: nutanix:LcmPrechecksV2
    properties:
        entityUpdateSpecs:
            - entityUuid: string
              toVersion: string
        managementServer:
            hypervisorType: string
            ip: string
            password: string
            username: string
        skippedPrecheckFlags:
            - string
        xClusterId: string
    

    LcmPrechecksV2 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 LcmPrechecksV2 resource accepts the following input properties:

    EntityUpdateSpecs List<PiersKarsenbarg.Nutanix.Inputs.LcmPrechecksV2EntityUpdateSpec>
    List of entity update objects for getting recommendations.
    ManagementServer PiersKarsenbarg.Nutanix.Inputs.LcmPrechecksV2ManagementServer
    Cluster management server configuration used while updating clusters with ESX or Hyper-V.
    SkippedPrecheckFlags List<string>
    List of prechecks to skip. The allowed value is 'powerOffUvms' that skips the pinned VM prechecks. Items Enum: POWER_OFF_UVMS
    XClusterId string
    Cluster uuid on which the resource is present or operation is being performed.
    EntityUpdateSpecs []LcmPrechecksV2EntityUpdateSpecArgs
    List of entity update objects for getting recommendations.
    ManagementServer LcmPrechecksV2ManagementServerArgs
    Cluster management server configuration used while updating clusters with ESX or Hyper-V.
    SkippedPrecheckFlags []string
    List of prechecks to skip. The allowed value is 'powerOffUvms' that skips the pinned VM prechecks. Items Enum: POWER_OFF_UVMS
    XClusterId string
    Cluster uuid on which the resource is present or operation is being performed.
    entityUpdateSpecs List<LcmPrechecksV2EntityUpdateSpec>
    List of entity update objects for getting recommendations.
    managementServer LcmPrechecksV2ManagementServer
    Cluster management server configuration used while updating clusters with ESX or Hyper-V.
    skippedPrecheckFlags List<String>
    List of prechecks to skip. The allowed value is 'powerOffUvms' that skips the pinned VM prechecks. Items Enum: POWER_OFF_UVMS
    xClusterId String
    Cluster uuid on which the resource is present or operation is being performed.
    entityUpdateSpecs LcmPrechecksV2EntityUpdateSpec[]
    List of entity update objects for getting recommendations.
    managementServer LcmPrechecksV2ManagementServer
    Cluster management server configuration used while updating clusters with ESX or Hyper-V.
    skippedPrecheckFlags string[]
    List of prechecks to skip. The allowed value is 'powerOffUvms' that skips the pinned VM prechecks. Items Enum: POWER_OFF_UVMS
    xClusterId string
    Cluster uuid on which the resource is present or operation is being performed.
    entity_update_specs Sequence[LcmPrechecksV2EntityUpdateSpecArgs]
    List of entity update objects for getting recommendations.
    management_server LcmPrechecksV2ManagementServerArgs
    Cluster management server configuration used while updating clusters with ESX or Hyper-V.
    skipped_precheck_flags Sequence[str]
    List of prechecks to skip. The allowed value is 'powerOffUvms' that skips the pinned VM prechecks. Items Enum: POWER_OFF_UVMS
    x_cluster_id str
    Cluster uuid on which the resource is present or operation is being performed.
    entityUpdateSpecs List<Property Map>
    List of entity update objects for getting recommendations.
    managementServer Property Map
    Cluster management server configuration used while updating clusters with ESX or Hyper-V.
    skippedPrecheckFlags List<String>
    List of prechecks to skip. The allowed value is 'powerOffUvms' that skips the pinned VM prechecks. Items Enum: POWER_OFF_UVMS
    xClusterId String
    Cluster uuid on which the resource is present or operation is being performed.

    Outputs

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

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

    Look up Existing LcmPrechecksV2 Resource

    Get an existing LcmPrechecksV2 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?: LcmPrechecksV2State, opts?: CustomResourceOptions): LcmPrechecksV2
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            entity_update_specs: Optional[Sequence[LcmPrechecksV2EntityUpdateSpecArgs]] = None,
            ext_id: Optional[str] = None,
            management_server: Optional[LcmPrechecksV2ManagementServerArgs] = None,
            skipped_precheck_flags: Optional[Sequence[str]] = None,
            x_cluster_id: Optional[str] = None) -> LcmPrechecksV2
    func GetLcmPrechecksV2(ctx *Context, name string, id IDInput, state *LcmPrechecksV2State, opts ...ResourceOption) (*LcmPrechecksV2, error)
    public static LcmPrechecksV2 Get(string name, Input<string> id, LcmPrechecksV2State? state, CustomResourceOptions? opts = null)
    public static LcmPrechecksV2 get(String name, Output<String> id, LcmPrechecksV2State state, CustomResourceOptions options)
    resources:  _:    type: nutanix:LcmPrechecksV2    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:
    EntityUpdateSpecs List<PiersKarsenbarg.Nutanix.Inputs.LcmPrechecksV2EntityUpdateSpec>
    List of entity update objects for getting recommendations.
    ExtId string
    ManagementServer PiersKarsenbarg.Nutanix.Inputs.LcmPrechecksV2ManagementServer
    Cluster management server configuration used while updating clusters with ESX or Hyper-V.
    SkippedPrecheckFlags List<string>
    List of prechecks to skip. The allowed value is 'powerOffUvms' that skips the pinned VM prechecks. Items Enum: POWER_OFF_UVMS
    XClusterId string
    Cluster uuid on which the resource is present or operation is being performed.
    EntityUpdateSpecs []LcmPrechecksV2EntityUpdateSpecArgs
    List of entity update objects for getting recommendations.
    ExtId string
    ManagementServer LcmPrechecksV2ManagementServerArgs
    Cluster management server configuration used while updating clusters with ESX or Hyper-V.
    SkippedPrecheckFlags []string
    List of prechecks to skip. The allowed value is 'powerOffUvms' that skips the pinned VM prechecks. Items Enum: POWER_OFF_UVMS
    XClusterId string
    Cluster uuid on which the resource is present or operation is being performed.
    entityUpdateSpecs List<LcmPrechecksV2EntityUpdateSpec>
    List of entity update objects for getting recommendations.
    extId String
    managementServer LcmPrechecksV2ManagementServer
    Cluster management server configuration used while updating clusters with ESX or Hyper-V.
    skippedPrecheckFlags List<String>
    List of prechecks to skip. The allowed value is 'powerOffUvms' that skips the pinned VM prechecks. Items Enum: POWER_OFF_UVMS
    xClusterId String
    Cluster uuid on which the resource is present or operation is being performed.
    entityUpdateSpecs LcmPrechecksV2EntityUpdateSpec[]
    List of entity update objects for getting recommendations.
    extId string
    managementServer LcmPrechecksV2ManagementServer
    Cluster management server configuration used while updating clusters with ESX or Hyper-V.
    skippedPrecheckFlags string[]
    List of prechecks to skip. The allowed value is 'powerOffUvms' that skips the pinned VM prechecks. Items Enum: POWER_OFF_UVMS
    xClusterId string
    Cluster uuid on which the resource is present or operation is being performed.
    entity_update_specs Sequence[LcmPrechecksV2EntityUpdateSpecArgs]
    List of entity update objects for getting recommendations.
    ext_id str
    management_server LcmPrechecksV2ManagementServerArgs
    Cluster management server configuration used while updating clusters with ESX or Hyper-V.
    skipped_precheck_flags Sequence[str]
    List of prechecks to skip. The allowed value is 'powerOffUvms' that skips the pinned VM prechecks. Items Enum: POWER_OFF_UVMS
    x_cluster_id str
    Cluster uuid on which the resource is present or operation is being performed.
    entityUpdateSpecs List<Property Map>
    List of entity update objects for getting recommendations.
    extId String
    managementServer Property Map
    Cluster management server configuration used while updating clusters with ESX or Hyper-V.
    skippedPrecheckFlags List<String>
    List of prechecks to skip. The allowed value is 'powerOffUvms' that skips the pinned VM prechecks. Items Enum: POWER_OFF_UVMS
    xClusterId String
    Cluster uuid on which the resource is present or operation is being performed.

    Supporting Types

    LcmPrechecksV2EntityUpdateSpec, LcmPrechecksV2EntityUpdateSpecArgs

    EntityUuid string
    UUID of the LCM entity.
    ToVersion string

    Version to upgrade to.

    See detailed information in Nutanix LCM Prechecks v4

    EntityUuid string
    UUID of the LCM entity.
    ToVersion string

    Version to upgrade to.

    See detailed information in Nutanix LCM Prechecks v4

    entityUuid String
    UUID of the LCM entity.
    toVersion String

    Version to upgrade to.

    See detailed information in Nutanix LCM Prechecks v4

    entityUuid string
    UUID of the LCM entity.
    toVersion string

    Version to upgrade to.

    See detailed information in Nutanix LCM Prechecks v4

    entity_uuid str
    UUID of the LCM entity.
    to_version str

    Version to upgrade to.

    See detailed information in Nutanix LCM Prechecks v4

    entityUuid String
    UUID of the LCM entity.
    toVersion String

    Version to upgrade to.

    See detailed information in Nutanix LCM Prechecks v4

    LcmPrechecksV2ManagementServer, LcmPrechecksV2ManagementServerArgs

    HypervisorType string
    Type of Hypervisor present in the cluster. Enum Values:

    • "HYPERV" : Hyper-V Hypervisor.
    • "ESX" : ESX Hypervisor.
    • "AHV" : Nutanix AHV Hypervisor.
    Ip string
    IP address of the management server.
    Password string
    Password to login to the management server.
    Username string
    Username to login to the management server.
    HypervisorType string
    Type of Hypervisor present in the cluster. Enum Values:

    • "HYPERV" : Hyper-V Hypervisor.
    • "ESX" : ESX Hypervisor.
    • "AHV" : Nutanix AHV Hypervisor.
    Ip string
    IP address of the management server.
    Password string
    Password to login to the management server.
    Username string
    Username to login to the management server.
    hypervisorType String
    Type of Hypervisor present in the cluster. Enum Values:

    • "HYPERV" : Hyper-V Hypervisor.
    • "ESX" : ESX Hypervisor.
    • "AHV" : Nutanix AHV Hypervisor.
    ip String
    IP address of the management server.
    password String
    Password to login to the management server.
    username String
    Username to login to the management server.
    hypervisorType string
    Type of Hypervisor present in the cluster. Enum Values:

    • "HYPERV" : Hyper-V Hypervisor.
    • "ESX" : ESX Hypervisor.
    • "AHV" : Nutanix AHV Hypervisor.
    ip string
    IP address of the management server.
    password string
    Password to login to the management server.
    username string
    Username to login to the management server.
    hypervisor_type str
    Type of Hypervisor present in the cluster. Enum Values:

    • "HYPERV" : Hyper-V Hypervisor.
    • "ESX" : ESX Hypervisor.
    • "AHV" : Nutanix AHV Hypervisor.
    ip str
    IP address of the management server.
    password str
    Password to login to the management server.
    username str
    Username to login to the management server.
    hypervisorType String
    Type of Hypervisor present in the cluster. Enum Values:

    • "HYPERV" : Hyper-V Hypervisor.
    • "ESX" : ESX Hypervisor.
    • "AHV" : Nutanix AHV Hypervisor.
    ip String
    IP address of the management server.
    password String
    Password to login to the management server.
    username String
    Username to login to the management server.

    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