nutanix.LcmPrechecksV2
Explore with Pulumi AI
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:
- Entity
Update List<PiersSpecs Karsenbarg. Nutanix. Inputs. Lcm Prechecks V2Entity Update Spec> - List of entity update objects for getting recommendations.
- Management
Server PiersKarsenbarg. Nutanix. Inputs. Lcm Prechecks V2Management Server - Cluster management server configuration used while updating clusters with ESX or Hyper-V.
- Skipped
Precheck List<string>Flags - List of prechecks to skip. The allowed value is 'powerOffUvms' that skips the pinned VM prechecks. Items Enum:
POWER_OFF_UVMS
- XCluster
Id string - Cluster uuid on which the resource is present or operation is being performed.
- Entity
Update []LcmSpecs Prechecks V2Entity Update Spec Args - List of entity update objects for getting recommendations.
- Management
Server LcmPrechecks V2Management Server Args - Cluster management server configuration used while updating clusters with ESX or Hyper-V.
- Skipped
Precheck []stringFlags - List of prechecks to skip. The allowed value is 'powerOffUvms' that skips the pinned VM prechecks. Items Enum:
POWER_OFF_UVMS
- XCluster
Id string - Cluster uuid on which the resource is present or operation is being performed.
- entity
Update List<LcmSpecs Prechecks V2Entity Update Spec> - List of entity update objects for getting recommendations.
- management
Server LcmPrechecks V2Management Server - Cluster management server configuration used while updating clusters with ESX or Hyper-V.
- skipped
Precheck List<String>Flags - List of prechecks to skip. The allowed value is 'powerOffUvms' that skips the pinned VM prechecks. Items Enum:
POWER_OFF_UVMS
- x
Cluster StringId - Cluster uuid on which the resource is present or operation is being performed.
- entity
Update LcmSpecs Prechecks V2Entity Update Spec[] - List of entity update objects for getting recommendations.
- management
Server LcmPrechecks V2Management Server - Cluster management server configuration used while updating clusters with ESX or Hyper-V.
- skipped
Precheck string[]Flags - List of prechecks to skip. The allowed value is 'powerOffUvms' that skips the pinned VM prechecks. Items Enum:
POWER_OFF_UVMS
- x
Cluster stringId - Cluster uuid on which the resource is present or operation is being performed.
- entity_
update_ Sequence[Lcmspecs Prechecks V2Entity Update Spec Args] - List of entity update objects for getting recommendations.
- management_
server LcmPrechecks V2Management Server Args - Cluster management server configuration used while updating clusters with ESX or Hyper-V.
- skipped_
precheck_ Sequence[str]flags - List of prechecks to skip. The allowed value is 'powerOffUvms' that skips the pinned VM prechecks. Items Enum:
POWER_OFF_UVMS
- x_
cluster_ strid - Cluster uuid on which the resource is present or operation is being performed.
- entity
Update List<Property Map>Specs - List of entity update objects for getting recommendations.
- management
Server Property Map - Cluster management server configuration used while updating clusters with ESX or Hyper-V.
- skipped
Precheck List<String>Flags - List of prechecks to skip. The allowed value is 'powerOffUvms' that skips the pinned VM prechecks. Items Enum:
POWER_OFF_UVMS
- x
Cluster StringId - 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:
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.
- Entity
Update List<PiersSpecs Karsenbarg. Nutanix. Inputs. Lcm Prechecks V2Entity Update Spec> - List of entity update objects for getting recommendations.
- Ext
Id string - Management
Server PiersKarsenbarg. Nutanix. Inputs. Lcm Prechecks V2Management Server - Cluster management server configuration used while updating clusters with ESX or Hyper-V.
- Skipped
Precheck List<string>Flags - List of prechecks to skip. The allowed value is 'powerOffUvms' that skips the pinned VM prechecks. Items Enum:
POWER_OFF_UVMS
- XCluster
Id string - Cluster uuid on which the resource is present or operation is being performed.
- Entity
Update []LcmSpecs Prechecks V2Entity Update Spec Args - List of entity update objects for getting recommendations.
- Ext
Id string - Management
Server LcmPrechecks V2Management Server Args - Cluster management server configuration used while updating clusters with ESX or Hyper-V.
- Skipped
Precheck []stringFlags - List of prechecks to skip. The allowed value is 'powerOffUvms' that skips the pinned VM prechecks. Items Enum:
POWER_OFF_UVMS
- XCluster
Id string - Cluster uuid on which the resource is present or operation is being performed.
- entity
Update List<LcmSpecs Prechecks V2Entity Update Spec> - List of entity update objects for getting recommendations.
- ext
Id String - management
Server LcmPrechecks V2Management Server - Cluster management server configuration used while updating clusters with ESX or Hyper-V.
- skipped
Precheck List<String>Flags - List of prechecks to skip. The allowed value is 'powerOffUvms' that skips the pinned VM prechecks. Items Enum:
POWER_OFF_UVMS
- x
Cluster StringId - Cluster uuid on which the resource is present or operation is being performed.
- entity
Update LcmSpecs Prechecks V2Entity Update Spec[] - List of entity update objects for getting recommendations.
- ext
Id string - management
Server LcmPrechecks V2Management Server - Cluster management server configuration used while updating clusters with ESX or Hyper-V.
- skipped
Precheck string[]Flags - List of prechecks to skip. The allowed value is 'powerOffUvms' that skips the pinned VM prechecks. Items Enum:
POWER_OFF_UVMS
- x
Cluster stringId - Cluster uuid on which the resource is present or operation is being performed.
- entity_
update_ Sequence[Lcmspecs Prechecks V2Entity Update Spec Args] - List of entity update objects for getting recommendations.
- ext_
id str - management_
server LcmPrechecks V2Management Server Args - Cluster management server configuration used while updating clusters with ESX or Hyper-V.
- skipped_
precheck_ Sequence[str]flags - List of prechecks to skip. The allowed value is 'powerOffUvms' that skips the pinned VM prechecks. Items Enum:
POWER_OFF_UVMS
- x_
cluster_ strid - Cluster uuid on which the resource is present or operation is being performed.
- entity
Update List<Property Map>Specs - List of entity update objects for getting recommendations.
- ext
Id String - management
Server Property Map - Cluster management server configuration used while updating clusters with ESX or Hyper-V.
- skipped
Precheck List<String>Flags - List of prechecks to skip. The allowed value is 'powerOffUvms' that skips the pinned VM prechecks. Items Enum:
POWER_OFF_UVMS
- x
Cluster StringId - Cluster uuid on which the resource is present or operation is being performed.
Supporting Types
LcmPrechecksV2EntityUpdateSpec, LcmPrechecksV2EntityUpdateSpecArgs
- Entity
Uuid string - UUID of the LCM entity.
- To
Version string Version to upgrade to.
See detailed information in Nutanix LCM Prechecks v4
- Entity
Uuid string - UUID of the LCM entity.
- To
Version string Version to upgrade to.
See detailed information in Nutanix LCM Prechecks v4
- entity
Uuid String - UUID of the LCM entity.
- to
Version String Version to upgrade to.
See detailed information in Nutanix LCM Prechecks v4
- entity
Uuid string - UUID of the LCM entity.
- to
Version 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
- entity
Uuid String - UUID of the LCM entity.
- to
Version String Version to upgrade to.
See detailed information in Nutanix LCM Prechecks v4
LcmPrechecksV2ManagementServer, LcmPrechecksV2ManagementServerArgs
- Hypervisor
Type 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 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 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 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.
- hypervisor
Type 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.