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

nutanix.LcmConfigV2

Explore with Pulumi AI

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

    Update LCM configuration.

    Example

    import * as pulumi from "@pulumi/pulumi";
    import * as nutanix from "@pierskarsenbarg/nutanix";
    
    // Enable Auto Inventory, Add Auto Inventory Schedule and enable auto upgrade
    const lcm_configuration_update = new nutanix.LcmConfigV2("lcm-configuration-update", {
        autoInventorySchedule: "16:30",
        hasModuleAutoUpgradeEnabled: true,
        isAutoInventoryEnabled: true,
        xClusterId: "0005a104-0b0b-4b0b-8005-0b0b0b0b0b0b",
    });
    // Update the LCM url to darksite server
    const lcm_configuration_update_connectivity_type = new nutanix.LcmConfigV2("lcm-configuration-update-connectivity-type", {
        connectivityType: "DARKSITE_WEB_SERVER",
        url: "https://x.x.x.x:8000/builds",
        xClusterId: "0005a104-0b0b-4b0b-8005-0b0b0b0b0b0b",
    });
    
    import pulumi
    import pulumi_nutanix as nutanix
    
    # Enable Auto Inventory, Add Auto Inventory Schedule and enable auto upgrade
    lcm_configuration_update = nutanix.LcmConfigV2("lcm-configuration-update",
        auto_inventory_schedule="16:30",
        has_module_auto_upgrade_enabled=True,
        is_auto_inventory_enabled=True,
        x_cluster_id="0005a104-0b0b-4b0b-8005-0b0b0b0b0b0b")
    # Update the LCM url to darksite server
    lcm_configuration_update_connectivity_type = nutanix.LcmConfigV2("lcm-configuration-update-connectivity-type",
        connectivity_type="DARKSITE_WEB_SERVER",
        url="https://x.x.x.x:8000/builds",
        x_cluster_id="0005a104-0b0b-4b0b-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 {
    		// Enable Auto Inventory, Add Auto Inventory Schedule and enable auto upgrade
    		_, err := nutanix.NewLcmConfigV2(ctx, "lcm-configuration-update", &nutanix.LcmConfigV2Args{
    			AutoInventorySchedule:       pulumi.String("16:30"),
    			HasModuleAutoUpgradeEnabled: pulumi.Bool(true),
    			IsAutoInventoryEnabled:      pulumi.Bool(true),
    			XClusterId:                  pulumi.String("0005a104-0b0b-4b0b-8005-0b0b0b0b0b0b"),
    		})
    		if err != nil {
    			return err
    		}
    		// Update the LCM url to darksite server
    		_, err = nutanix.NewLcmConfigV2(ctx, "lcm-configuration-update-connectivity-type", &nutanix.LcmConfigV2Args{
    			ConnectivityType: pulumi.String("DARKSITE_WEB_SERVER"),
    			Url:              pulumi.String("https://x.x.x.x:8000/builds"),
    			XClusterId:       pulumi.String("0005a104-0b0b-4b0b-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(() => 
    {
        // Enable Auto Inventory, Add Auto Inventory Schedule and enable auto upgrade
        var lcm_configuration_update = new Nutanix.LcmConfigV2("lcm-configuration-update", new()
        {
            AutoInventorySchedule = "16:30",
            HasModuleAutoUpgradeEnabled = true,
            IsAutoInventoryEnabled = true,
            XClusterId = "0005a104-0b0b-4b0b-8005-0b0b0b0b0b0b",
        });
    
        // Update the LCM url to darksite server
        var lcm_configuration_update_connectivity_type = new Nutanix.LcmConfigV2("lcm-configuration-update-connectivity-type", new()
        {
            ConnectivityType = "DARKSITE_WEB_SERVER",
            Url = "https://x.x.x.x:8000/builds",
            XClusterId = "0005a104-0b0b-4b0b-8005-0b0b0b0b0b0b",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.nutanix.LcmConfigV2;
    import com.pulumi.nutanix.LcmConfigV2Args;
    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) {
            // Enable Auto Inventory, Add Auto Inventory Schedule and enable auto upgrade
            var lcm_configuration_update = new LcmConfigV2("lcm-configuration-update", LcmConfigV2Args.builder()
                .autoInventorySchedule("16:30")
                .hasModuleAutoUpgradeEnabled(true)
                .isAutoInventoryEnabled(true)
                .xClusterId("0005a104-0b0b-4b0b-8005-0b0b0b0b0b0b")
                .build());
    
            // Update the LCM url to darksite server
            var lcm_configuration_update_connectivity_type = new LcmConfigV2("lcm-configuration-update-connectivity-type", LcmConfigV2Args.builder()
                .connectivityType("DARKSITE_WEB_SERVER")
                .url("https://x.x.x.x:8000/builds")
                .xClusterId("0005a104-0b0b-4b0b-8005-0b0b0b0b0b0b")
                .build());
    
        }
    }
    
    resources:
      # Enable Auto Inventory, Add Auto Inventory Schedule and enable auto upgrade
      lcm-configuration-update:
        type: nutanix:LcmConfigV2
        properties:
          autoInventorySchedule: 16:30
          hasModuleAutoUpgradeEnabled: true
          isAutoInventoryEnabled: true
          xClusterId: 0005a104-0b0b-4b0b-8005-0b0b0b0b0b0b
      # Update the LCM url to darksite server
      lcm-configuration-update-connectivity-type:
        type: nutanix:LcmConfigV2
        properties:
          connectivityType: DARKSITE_WEB_SERVER
          url: https://x.x.x.x:8000/builds
          xClusterId: 0005a104-0b0b-4b0b-8005-0b0b0b0b0b0b
    

    Create LcmConfigV2 Resource

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

    Constructor syntax

    new LcmConfigV2(name: string, args?: LcmConfigV2Args, opts?: CustomResourceOptions);
    @overload
    def LcmConfigV2(resource_name: str,
                    args: Optional[LcmConfigV2Args] = None,
                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def LcmConfigV2(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    auto_inventory_schedule: Optional[str] = None,
                    connectivity_type: Optional[str] = None,
                    has_module_auto_upgrade_enabled: Optional[bool] = None,
                    is_auto_inventory_enabled: Optional[bool] = None,
                    is_https_enabled: Optional[bool] = None,
                    url: Optional[str] = None,
                    x_cluster_id: Optional[str] = None)
    func NewLcmConfigV2(ctx *Context, name string, args *LcmConfigV2Args, opts ...ResourceOption) (*LcmConfigV2, error)
    public LcmConfigV2(string name, LcmConfigV2Args? args = null, CustomResourceOptions? opts = null)
    public LcmConfigV2(String name, LcmConfigV2Args args)
    public LcmConfigV2(String name, LcmConfigV2Args args, CustomResourceOptions options)
    
    type: nutanix:LcmConfigV2
    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 LcmConfigV2Args
    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 LcmConfigV2Args
    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 LcmConfigV2Args
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args LcmConfigV2Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args LcmConfigV2Args
    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 lcmConfigV2Resource = new Nutanix.LcmConfigV2("lcmConfigV2Resource", new()
    {
        AutoInventorySchedule = "string",
        ConnectivityType = "string",
        HasModuleAutoUpgradeEnabled = false,
        IsAutoInventoryEnabled = false,
        IsHttpsEnabled = false,
        Url = "string",
        XClusterId = "string",
    });
    
    example, err := nutanix.NewLcmConfigV2(ctx, "lcmConfigV2Resource", &nutanix.LcmConfigV2Args{
    	AutoInventorySchedule:       pulumi.String("string"),
    	ConnectivityType:            pulumi.String("string"),
    	HasModuleAutoUpgradeEnabled: pulumi.Bool(false),
    	IsAutoInventoryEnabled:      pulumi.Bool(false),
    	IsHttpsEnabled:              pulumi.Bool(false),
    	Url:                         pulumi.String("string"),
    	XClusterId:                  pulumi.String("string"),
    })
    
    var lcmConfigV2Resource = new LcmConfigV2("lcmConfigV2Resource", LcmConfigV2Args.builder()
        .autoInventorySchedule("string")
        .connectivityType("string")
        .hasModuleAutoUpgradeEnabled(false)
        .isAutoInventoryEnabled(false)
        .isHttpsEnabled(false)
        .url("string")
        .xClusterId("string")
        .build());
    
    lcm_config_v2_resource = nutanix.LcmConfigV2("lcmConfigV2Resource",
        auto_inventory_schedule="string",
        connectivity_type="string",
        has_module_auto_upgrade_enabled=False,
        is_auto_inventory_enabled=False,
        is_https_enabled=False,
        url="string",
        x_cluster_id="string")
    
    const lcmConfigV2Resource = new nutanix.LcmConfigV2("lcmConfigV2Resource", {
        autoInventorySchedule: "string",
        connectivityType: "string",
        hasModuleAutoUpgradeEnabled: false,
        isAutoInventoryEnabled: false,
        isHttpsEnabled: false,
        url: "string",
        xClusterId: "string",
    });
    
    type: nutanix:LcmConfigV2
    properties:
        autoInventorySchedule: string
        connectivityType: string
        hasModuleAutoUpgradeEnabled: false
        isAutoInventoryEnabled: false
        isHttpsEnabled: false
        url: string
        xClusterId: string
    

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

    AutoInventorySchedule string
    The scheduled time in "%H:%M" 24-hour format of the next inventory execution. Used when auto_inventory_enabled is set to True. The default schedule time is 03:00(AM).
    ConnectivityType string
    This field indicates whether LCM framework on the cluster is running in connected-site mode or darksite mode.
    HasModuleAutoUpgradeEnabled bool

    Indicates if LCM is enabled to auto-upgrade products. The default value is False.

    See detailed information in Nutanix Update LCM Config V4

    IsAutoInventoryEnabled bool
    Indicates if the auto inventory operation is enabled. The default value is set to False.
    IsHttpsEnabled bool
    Indicates if the LCM URL has HTTPS enabled. The default value is True.
    Url string
    URL of the LCM repository.
    XClusterId string
    Cluster uuid on which the resource is present or operation is being performed.
    AutoInventorySchedule string
    The scheduled time in "%H:%M" 24-hour format of the next inventory execution. Used when auto_inventory_enabled is set to True. The default schedule time is 03:00(AM).
    ConnectivityType string
    This field indicates whether LCM framework on the cluster is running in connected-site mode or darksite mode.
    HasModuleAutoUpgradeEnabled bool

    Indicates if LCM is enabled to auto-upgrade products. The default value is False.

    See detailed information in Nutanix Update LCM Config V4

    IsAutoInventoryEnabled bool
    Indicates if the auto inventory operation is enabled. The default value is set to False.
    IsHttpsEnabled bool
    Indicates if the LCM URL has HTTPS enabled. The default value is True.
    Url string
    URL of the LCM repository.
    XClusterId string
    Cluster uuid on which the resource is present or operation is being performed.
    autoInventorySchedule String
    The scheduled time in "%H:%M" 24-hour format of the next inventory execution. Used when auto_inventory_enabled is set to True. The default schedule time is 03:00(AM).
    connectivityType String
    This field indicates whether LCM framework on the cluster is running in connected-site mode or darksite mode.
    hasModuleAutoUpgradeEnabled Boolean

    Indicates if LCM is enabled to auto-upgrade products. The default value is False.

    See detailed information in Nutanix Update LCM Config V4

    isAutoInventoryEnabled Boolean
    Indicates if the auto inventory operation is enabled. The default value is set to False.
    isHttpsEnabled Boolean
    Indicates if the LCM URL has HTTPS enabled. The default value is True.
    url String
    URL of the LCM repository.
    xClusterId String
    Cluster uuid on which the resource is present or operation is being performed.
    autoInventorySchedule string
    The scheduled time in "%H:%M" 24-hour format of the next inventory execution. Used when auto_inventory_enabled is set to True. The default schedule time is 03:00(AM).
    connectivityType string
    This field indicates whether LCM framework on the cluster is running in connected-site mode or darksite mode.
    hasModuleAutoUpgradeEnabled boolean

    Indicates if LCM is enabled to auto-upgrade products. The default value is False.

    See detailed information in Nutanix Update LCM Config V4

    isAutoInventoryEnabled boolean
    Indicates if the auto inventory operation is enabled. The default value is set to False.
    isHttpsEnabled boolean
    Indicates if the LCM URL has HTTPS enabled. The default value is True.
    url string
    URL of the LCM repository.
    xClusterId string
    Cluster uuid on which the resource is present or operation is being performed.
    auto_inventory_schedule str
    The scheduled time in "%H:%M" 24-hour format of the next inventory execution. Used when auto_inventory_enabled is set to True. The default schedule time is 03:00(AM).
    connectivity_type str
    This field indicates whether LCM framework on the cluster is running in connected-site mode or darksite mode.
    has_module_auto_upgrade_enabled bool

    Indicates if LCM is enabled to auto-upgrade products. The default value is False.

    See detailed information in Nutanix Update LCM Config V4

    is_auto_inventory_enabled bool
    Indicates if the auto inventory operation is enabled. The default value is set to False.
    is_https_enabled bool
    Indicates if the LCM URL has HTTPS enabled. The default value is True.
    url str
    URL of the LCM repository.
    x_cluster_id str
    Cluster uuid on which the resource is present or operation is being performed.
    autoInventorySchedule String
    The scheduled time in "%H:%M" 24-hour format of the next inventory execution. Used when auto_inventory_enabled is set to True. The default schedule time is 03:00(AM).
    connectivityType String
    This field indicates whether LCM framework on the cluster is running in connected-site mode or darksite mode.
    hasModuleAutoUpgradeEnabled Boolean

    Indicates if LCM is enabled to auto-upgrade products. The default value is False.

    See detailed information in Nutanix Update LCM Config V4

    isAutoInventoryEnabled Boolean
    Indicates if the auto inventory operation is enabled. The default value is set to False.
    isHttpsEnabled Boolean
    Indicates if the LCM URL has HTTPS enabled. The default value is True.
    url String
    URL of the LCM repository.
    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 LcmConfigV2 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 LcmConfigV2 Resource

    Get an existing LcmConfigV2 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?: LcmConfigV2State, opts?: CustomResourceOptions): LcmConfigV2
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            auto_inventory_schedule: Optional[str] = None,
            connectivity_type: Optional[str] = None,
            ext_id: Optional[str] = None,
            has_module_auto_upgrade_enabled: Optional[bool] = None,
            is_auto_inventory_enabled: Optional[bool] = None,
            is_https_enabled: Optional[bool] = None,
            url: Optional[str] = None,
            x_cluster_id: Optional[str] = None) -> LcmConfigV2
    func GetLcmConfigV2(ctx *Context, name string, id IDInput, state *LcmConfigV2State, opts ...ResourceOption) (*LcmConfigV2, error)
    public static LcmConfigV2 Get(string name, Input<string> id, LcmConfigV2State? state, CustomResourceOptions? opts = null)
    public static LcmConfigV2 get(String name, Output<String> id, LcmConfigV2State state, CustomResourceOptions options)
    resources:  _:    type: nutanix:LcmConfigV2    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:
    AutoInventorySchedule string
    The scheduled time in "%H:%M" 24-hour format of the next inventory execution. Used when auto_inventory_enabled is set to True. The default schedule time is 03:00(AM).
    ConnectivityType string
    This field indicates whether LCM framework on the cluster is running in connected-site mode or darksite mode.
    ExtId string
    HasModuleAutoUpgradeEnabled bool

    Indicates if LCM is enabled to auto-upgrade products. The default value is False.

    See detailed information in Nutanix Update LCM Config V4

    IsAutoInventoryEnabled bool
    Indicates if the auto inventory operation is enabled. The default value is set to False.
    IsHttpsEnabled bool
    Indicates if the LCM URL has HTTPS enabled. The default value is True.
    Url string
    URL of the LCM repository.
    XClusterId string
    Cluster uuid on which the resource is present or operation is being performed.
    AutoInventorySchedule string
    The scheduled time in "%H:%M" 24-hour format of the next inventory execution. Used when auto_inventory_enabled is set to True. The default schedule time is 03:00(AM).
    ConnectivityType string
    This field indicates whether LCM framework on the cluster is running in connected-site mode or darksite mode.
    ExtId string
    HasModuleAutoUpgradeEnabled bool

    Indicates if LCM is enabled to auto-upgrade products. The default value is False.

    See detailed information in Nutanix Update LCM Config V4

    IsAutoInventoryEnabled bool
    Indicates if the auto inventory operation is enabled. The default value is set to False.
    IsHttpsEnabled bool
    Indicates if the LCM URL has HTTPS enabled. The default value is True.
    Url string
    URL of the LCM repository.
    XClusterId string
    Cluster uuid on which the resource is present or operation is being performed.
    autoInventorySchedule String
    The scheduled time in "%H:%M" 24-hour format of the next inventory execution. Used when auto_inventory_enabled is set to True. The default schedule time is 03:00(AM).
    connectivityType String
    This field indicates whether LCM framework on the cluster is running in connected-site mode or darksite mode.
    extId String
    hasModuleAutoUpgradeEnabled Boolean

    Indicates if LCM is enabled to auto-upgrade products. The default value is False.

    See detailed information in Nutanix Update LCM Config V4

    isAutoInventoryEnabled Boolean
    Indicates if the auto inventory operation is enabled. The default value is set to False.
    isHttpsEnabled Boolean
    Indicates if the LCM URL has HTTPS enabled. The default value is True.
    url String
    URL of the LCM repository.
    xClusterId String
    Cluster uuid on which the resource is present or operation is being performed.
    autoInventorySchedule string
    The scheduled time in "%H:%M" 24-hour format of the next inventory execution. Used when auto_inventory_enabled is set to True. The default schedule time is 03:00(AM).
    connectivityType string
    This field indicates whether LCM framework on the cluster is running in connected-site mode or darksite mode.
    extId string
    hasModuleAutoUpgradeEnabled boolean

    Indicates if LCM is enabled to auto-upgrade products. The default value is False.

    See detailed information in Nutanix Update LCM Config V4

    isAutoInventoryEnabled boolean
    Indicates if the auto inventory operation is enabled. The default value is set to False.
    isHttpsEnabled boolean
    Indicates if the LCM URL has HTTPS enabled. The default value is True.
    url string
    URL of the LCM repository.
    xClusterId string
    Cluster uuid on which the resource is present or operation is being performed.
    auto_inventory_schedule str
    The scheduled time in "%H:%M" 24-hour format of the next inventory execution. Used when auto_inventory_enabled is set to True. The default schedule time is 03:00(AM).
    connectivity_type str
    This field indicates whether LCM framework on the cluster is running in connected-site mode or darksite mode.
    ext_id str
    has_module_auto_upgrade_enabled bool

    Indicates if LCM is enabled to auto-upgrade products. The default value is False.

    See detailed information in Nutanix Update LCM Config V4

    is_auto_inventory_enabled bool
    Indicates if the auto inventory operation is enabled. The default value is set to False.
    is_https_enabled bool
    Indicates if the LCM URL has HTTPS enabled. The default value is True.
    url str
    URL of the LCM repository.
    x_cluster_id str
    Cluster uuid on which the resource is present or operation is being performed.
    autoInventorySchedule String
    The scheduled time in "%H:%M" 24-hour format of the next inventory execution. Used when auto_inventory_enabled is set to True. The default schedule time is 03:00(AM).
    connectivityType String
    This field indicates whether LCM framework on the cluster is running in connected-site mode or darksite mode.
    extId String
    hasModuleAutoUpgradeEnabled Boolean

    Indicates if LCM is enabled to auto-upgrade products. The default value is False.

    See detailed information in Nutanix Update LCM Config V4

    isAutoInventoryEnabled Boolean
    Indicates if the auto inventory operation is enabled. The default value is set to False.
    isHttpsEnabled Boolean
    Indicates if the LCM URL has HTTPS enabled. The default value is True.
    url String
    URL of the LCM repository.
    xClusterId String
    Cluster uuid on which the resource is present or operation is being performed.

    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