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

nutanix.LcmPerformInventoryV2

Explore with Pulumi AI

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

    Perform an inventory operation to identify/scan entities on the cluster that can be updated through LCM.

    Example

    import * as pulumi from "@pulumi/pulumi";
    import * as nutanix from "@pierskarsenbarg/nutanix";
    
    // perform inventory
    const inventory = new nutanix.LcmPerformInventoryV2("inventory", {xClusterId: "0005a104-0b0b-4b0b-8005-0b0b0b0b0b0b"});
    
    import pulumi
    import pulumi_nutanix as nutanix
    
    # perform inventory
    inventory = nutanix.LcmPerformInventoryV2("inventory", 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 {
    		// perform inventory
    		_, err := nutanix.NewLcmPerformInventoryV2(ctx, "inventory", &nutanix.LcmPerformInventoryV2Args{
    			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(() => 
    {
        // perform inventory
        var inventory = new Nutanix.LcmPerformInventoryV2("inventory", new()
        {
            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.LcmPerformInventoryV2;
    import com.pulumi.nutanix.LcmPerformInventoryV2Args;
    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) {
            // perform inventory
            var inventory = new LcmPerformInventoryV2("inventory", LcmPerformInventoryV2Args.builder()
                .xClusterId("0005a104-0b0b-4b0b-8005-0b0b0b0b0b0b")
                .build());
    
        }
    }
    
    resources:
      # perform inventory
      inventory:
        type: nutanix:LcmPerformInventoryV2
        properties:
          xClusterId: 0005a104-0b0b-4b0b-8005-0b0b0b0b0b0b
    

    Create LcmPerformInventoryV2 Resource

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

    Constructor syntax

    new LcmPerformInventoryV2(name: string, args?: LcmPerformInventoryV2Args, opts?: CustomResourceOptions);
    @overload
    def LcmPerformInventoryV2(resource_name: str,
                              args: Optional[LcmPerformInventoryV2Args] = None,
                              opts: Optional[ResourceOptions] = None)
    
    @overload
    def LcmPerformInventoryV2(resource_name: str,
                              opts: Optional[ResourceOptions] = None,
                              x_cluster_id: Optional[str] = None)
    func NewLcmPerformInventoryV2(ctx *Context, name string, args *LcmPerformInventoryV2Args, opts ...ResourceOption) (*LcmPerformInventoryV2, error)
    public LcmPerformInventoryV2(string name, LcmPerformInventoryV2Args? args = null, CustomResourceOptions? opts = null)
    public LcmPerformInventoryV2(String name, LcmPerformInventoryV2Args args)
    public LcmPerformInventoryV2(String name, LcmPerformInventoryV2Args args, CustomResourceOptions options)
    
    type: nutanix:LcmPerformInventoryV2
    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 LcmPerformInventoryV2Args
    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 LcmPerformInventoryV2Args
    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 LcmPerformInventoryV2Args
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args LcmPerformInventoryV2Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args LcmPerformInventoryV2Args
    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 lcmPerformInventoryV2Resource = new Nutanix.LcmPerformInventoryV2("lcmPerformInventoryV2Resource", new()
    {
        XClusterId = "string",
    });
    
    example, err := nutanix.NewLcmPerformInventoryV2(ctx, "lcmPerformInventoryV2Resource", &nutanix.LcmPerformInventoryV2Args{
    	XClusterId: pulumi.String("string"),
    })
    
    var lcmPerformInventoryV2Resource = new LcmPerformInventoryV2("lcmPerformInventoryV2Resource", LcmPerformInventoryV2Args.builder()
        .xClusterId("string")
        .build());
    
    lcm_perform_inventory_v2_resource = nutanix.LcmPerformInventoryV2("lcmPerformInventoryV2Resource", x_cluster_id="string")
    
    const lcmPerformInventoryV2Resource = new nutanix.LcmPerformInventoryV2("lcmPerformInventoryV2Resource", {xClusterId: "string"});
    
    type: nutanix:LcmPerformInventoryV2
    properties:
        xClusterId: string
    

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

    XClusterId string

    Cluster uuid on which the resource is present or operation is being performed.

    See detailed information in Nutanix LCM Perform Inventory v4

    XClusterId string

    Cluster uuid on which the resource is present or operation is being performed.

    See detailed information in Nutanix LCM Perform Inventory v4

    xClusterId String

    Cluster uuid on which the resource is present or operation is being performed.

    See detailed information in Nutanix LCM Perform Inventory v4

    xClusterId string

    Cluster uuid on which the resource is present or operation is being performed.

    See detailed information in Nutanix LCM Perform Inventory v4

    x_cluster_id str

    Cluster uuid on which the resource is present or operation is being performed.

    See detailed information in Nutanix LCM Perform Inventory v4

    xClusterId String

    Cluster uuid on which the resource is present or operation is being performed.

    See detailed information in Nutanix LCM Perform Inventory v4

    Outputs

    All input properties are implicitly available as output properties. Additionally, the LcmPerformInventoryV2 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 LcmPerformInventoryV2 Resource

    Get an existing LcmPerformInventoryV2 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?: LcmPerformInventoryV2State, opts?: CustomResourceOptions): LcmPerformInventoryV2
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            x_cluster_id: Optional[str] = None) -> LcmPerformInventoryV2
    func GetLcmPerformInventoryV2(ctx *Context, name string, id IDInput, state *LcmPerformInventoryV2State, opts ...ResourceOption) (*LcmPerformInventoryV2, error)
    public static LcmPerformInventoryV2 Get(string name, Input<string> id, LcmPerformInventoryV2State? state, CustomResourceOptions? opts = null)
    public static LcmPerformInventoryV2 get(String name, Output<String> id, LcmPerformInventoryV2State state, CustomResourceOptions options)
    resources:  _:    type: nutanix:LcmPerformInventoryV2    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:
    XClusterId string

    Cluster uuid on which the resource is present or operation is being performed.

    See detailed information in Nutanix LCM Perform Inventory v4

    XClusterId string

    Cluster uuid on which the resource is present or operation is being performed.

    See detailed information in Nutanix LCM Perform Inventory v4

    xClusterId String

    Cluster uuid on which the resource is present or operation is being performed.

    See detailed information in Nutanix LCM Perform Inventory v4

    xClusterId string

    Cluster uuid on which the resource is present or operation is being performed.

    See detailed information in Nutanix LCM Perform Inventory v4

    x_cluster_id str

    Cluster uuid on which the resource is present or operation is being performed.

    See detailed information in Nutanix LCM Perform Inventory v4

    xClusterId String

    Cluster uuid on which the resource is present or operation is being performed.

    See detailed information in Nutanix LCM Perform Inventory v4

    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