1. Packages
  2. Azure Native
  3. API Docs
  4. connectedvmwarevsphere
  5. InventoryItem
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.47.1 published on Monday, Jun 24, 2024 by Pulumi

azure-native.connectedvmwarevsphere.InventoryItem

Explore with Pulumi AI

azure-native logo
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.47.1 published on Monday, Jun 24, 2024 by Pulumi

    Defines the inventory item. Azure REST API version: 2022-07-15-preview. Prior API version in Azure Native 1.x: 2020-10-01-preview.

    Other available API versions: 2023-03-01-preview, 2023-10-01, 2023-12-01.

    Example Usage

    CreateInventoryItem

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var inventoryItem = new AzureNative.ConnectedVMwarevSphere.InventoryItem("inventoryItem", new()
        {
            InventoryItemName = "testItem",
            InventoryType = AzureNative.ConnectedVMwarevSphere.InventoryType.ResourcePool,
            ResourceGroupName = "testrg",
            VcenterName = "ContosoVCenter",
        });
    
    });
    
    package main
    
    import (
    	connectedvmwarevsphere "github.com/pulumi/pulumi-azure-native-sdk/connectedvmwarevsphere/v2"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := connectedvmwarevsphere.NewInventoryItem(ctx, "inventoryItem", &connectedvmwarevsphere.InventoryItemArgs{
    			InventoryItemName: pulumi.String("testItem"),
    			InventoryType:     pulumi.String(connectedvmwarevsphere.InventoryTypeResourcePool),
    			ResourceGroupName: pulumi.String("testrg"),
    			VcenterName:       pulumi.String("ContosoVCenter"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.azurenative.connectedvmwarevsphere.InventoryItem;
    import com.pulumi.azurenative.connectedvmwarevsphere.InventoryItemArgs;
    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 inventoryItem = new InventoryItem("inventoryItem", InventoryItemArgs.builder()
                .inventoryItemName("testItem")
                .inventoryType("ResourcePool")
                .resourceGroupName("testrg")
                .vcenterName("ContosoVCenter")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    inventory_item = azure_native.connectedvmwarevsphere.InventoryItem("inventoryItem",
        inventory_item_name="testItem",
        inventory_type=azure_native.connectedvmwarevsphere.InventoryType.RESOURCE_POOL,
        resource_group_name="testrg",
        vcenter_name="ContosoVCenter")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const inventoryItem = new azure_native.connectedvmwarevsphere.InventoryItem("inventoryItem", {
        inventoryItemName: "testItem",
        inventoryType: azure_native.connectedvmwarevsphere.InventoryType.ResourcePool,
        resourceGroupName: "testrg",
        vcenterName: "ContosoVCenter",
    });
    
    resources:
      inventoryItem:
        type: azure-native:connectedvmwarevsphere:InventoryItem
        properties:
          inventoryItemName: testItem
          inventoryType: ResourcePool
          resourceGroupName: testrg
          vcenterName: ContosoVCenter
    

    Create InventoryItem Resource

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

    Constructor syntax

    new InventoryItem(name: string, args: InventoryItemArgs, opts?: CustomResourceOptions);
    @overload
    def InventoryItem(resource_name: str,
                      args: InventoryItemArgs,
                      opts: Optional[ResourceOptions] = None)
    
    @overload
    def InventoryItem(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      inventory_type: Optional[Union[str, InventoryType]] = None,
                      resource_group_name: Optional[str] = None,
                      vcenter_name: Optional[str] = None,
                      inventory_item_name: Optional[str] = None,
                      kind: Optional[str] = None,
                      managed_resource_id: Optional[str] = None,
                      mo_name: Optional[str] = None,
                      mo_ref_id: Optional[str] = None)
    func NewInventoryItem(ctx *Context, name string, args InventoryItemArgs, opts ...ResourceOption) (*InventoryItem, error)
    public InventoryItem(string name, InventoryItemArgs args, CustomResourceOptions? opts = null)
    public InventoryItem(String name, InventoryItemArgs args)
    public InventoryItem(String name, InventoryItemArgs args, CustomResourceOptions options)
    
    type: azure-native:connectedvmwarevsphere:InventoryItem
    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 InventoryItemArgs
    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 InventoryItemArgs
    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 InventoryItemArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args InventoryItemArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args InventoryItemArgs
    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 inventoryItemResource = new AzureNative.ConnectedVMwarevSphere.InventoryItem("inventoryItemResource", new()
    {
        InventoryType = "string",
        ResourceGroupName = "string",
        VcenterName = "string",
        InventoryItemName = "string",
        Kind = "string",
        ManagedResourceId = "string",
        MoName = "string",
        MoRefId = "string",
    });
    
    example, err := connectedvmwarevsphere.NewInventoryItem(ctx, "inventoryItemResource", &connectedvmwarevsphere.InventoryItemArgs{
    InventoryType: pulumi.String("string"),
    ResourceGroupName: pulumi.String("string"),
    VcenterName: pulumi.String("string"),
    InventoryItemName: pulumi.String("string"),
    Kind: pulumi.String("string"),
    ManagedResourceId: pulumi.String("string"),
    MoName: pulumi.String("string"),
    MoRefId: pulumi.String("string"),
    })
    
    var inventoryItemResource = new InventoryItem("inventoryItemResource", InventoryItemArgs.builder()
        .inventoryType("string")
        .resourceGroupName("string")
        .vcenterName("string")
        .inventoryItemName("string")
        .kind("string")
        .managedResourceId("string")
        .moName("string")
        .moRefId("string")
        .build());
    
    inventory_item_resource = azure_native.connectedvmwarevsphere.InventoryItem("inventoryItemResource",
        inventory_type="string",
        resource_group_name="string",
        vcenter_name="string",
        inventory_item_name="string",
        kind="string",
        managed_resource_id="string",
        mo_name="string",
        mo_ref_id="string")
    
    const inventoryItemResource = new azure_native.connectedvmwarevsphere.InventoryItem("inventoryItemResource", {
        inventoryType: "string",
        resourceGroupName: "string",
        vcenterName: "string",
        inventoryItemName: "string",
        kind: "string",
        managedResourceId: "string",
        moName: "string",
        moRefId: "string",
    });
    
    type: azure-native:connectedvmwarevsphere:InventoryItem
    properties:
        inventoryItemName: string
        inventoryType: string
        kind: string
        managedResourceId: string
        moName: string
        moRefId: string
        resourceGroupName: string
        vcenterName: string
    

    InventoryItem Resource Properties

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

    Inputs

    The InventoryItem resource accepts the following input properties:

    InventoryType string | Pulumi.AzureNative.ConnectedVMwarevSphere.InventoryType
    They inventory type.
    ResourceGroupName string
    The Resource Group Name.
    VcenterName string
    Name of the vCenter.
    InventoryItemName string
    Name of the inventoryItem.
    Kind string
    Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value.
    ManagedResourceId string
    Gets or sets the tracked resource id corresponding to the inventory resource.
    MoName string
    Gets or sets the vCenter Managed Object name for the inventory item.
    MoRefId string
    Gets or sets the MoRef (Managed Object Reference) ID for the inventory item.
    InventoryType string | InventoryType
    They inventory type.
    ResourceGroupName string
    The Resource Group Name.
    VcenterName string
    Name of the vCenter.
    InventoryItemName string
    Name of the inventoryItem.
    Kind string
    Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value.
    ManagedResourceId string
    Gets or sets the tracked resource id corresponding to the inventory resource.
    MoName string
    Gets or sets the vCenter Managed Object name for the inventory item.
    MoRefId string
    Gets or sets the MoRef (Managed Object Reference) ID for the inventory item.
    inventoryType String | InventoryType
    They inventory type.
    resourceGroupName String
    The Resource Group Name.
    vcenterName String
    Name of the vCenter.
    inventoryItemName String
    Name of the inventoryItem.
    kind String
    Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value.
    managedResourceId String
    Gets or sets the tracked resource id corresponding to the inventory resource.
    moName String
    Gets or sets the vCenter Managed Object name for the inventory item.
    moRefId String
    Gets or sets the MoRef (Managed Object Reference) ID for the inventory item.
    inventoryType string | InventoryType
    They inventory type.
    resourceGroupName string
    The Resource Group Name.
    vcenterName string
    Name of the vCenter.
    inventoryItemName string
    Name of the inventoryItem.
    kind string
    Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value.
    managedResourceId string
    Gets or sets the tracked resource id corresponding to the inventory resource.
    moName string
    Gets or sets the vCenter Managed Object name for the inventory item.
    moRefId string
    Gets or sets the MoRef (Managed Object Reference) ID for the inventory item.
    inventory_type str | InventoryType
    They inventory type.
    resource_group_name str
    The Resource Group Name.
    vcenter_name str
    Name of the vCenter.
    inventory_item_name str
    Name of the inventoryItem.
    kind str
    Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value.
    managed_resource_id str
    Gets or sets the tracked resource id corresponding to the inventory resource.
    mo_name str
    Gets or sets the vCenter Managed Object name for the inventory item.
    mo_ref_id str
    Gets or sets the MoRef (Managed Object Reference) ID for the inventory item.
    inventoryType String | "ResourcePool" | "VirtualMachine" | "VirtualMachineTemplate" | "VirtualNetwork" | "Cluster" | "Datastore" | "Host"
    They inventory type.
    resourceGroupName String
    The Resource Group Name.
    vcenterName String
    Name of the vCenter.
    inventoryItemName String
    Name of the inventoryItem.
    kind String
    Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value.
    managedResourceId String
    Gets or sets the tracked resource id corresponding to the inventory resource.
    moName String
    Gets or sets the vCenter Managed Object name for the inventory item.
    moRefId String
    Gets or sets the MoRef (Managed Object Reference) ID for the inventory item.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The name of the resource
    ProvisioningState string
    Gets or sets the provisioning state.
    SystemData Pulumi.AzureNative.ConnectedVMwarevSphere.Outputs.SystemDataResponse
    The system data.
    Type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The name of the resource
    ProvisioningState string
    Gets or sets the provisioning state.
    SystemData SystemDataResponse
    The system data.
    Type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The name of the resource
    provisioningState String
    Gets or sets the provisioning state.
    systemData SystemDataResponse
    The system data.
    type String
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    The name of the resource
    provisioningState string
    Gets or sets the provisioning state.
    systemData SystemDataResponse
    The system data.
    type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    The name of the resource
    provisioning_state str
    Gets or sets the provisioning state.
    system_data SystemDataResponse
    The system data.
    type str
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The name of the resource
    provisioningState String
    Gets or sets the provisioning state.
    systemData Property Map
    The system data.
    type String
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

    Supporting Types

    InventoryType, InventoryTypeArgs

    ResourcePool
    ResourcePool
    VirtualMachine
    VirtualMachine
    VirtualMachineTemplate
    VirtualMachineTemplate
    VirtualNetwork
    VirtualNetwork
    Cluster
    Cluster
    Datastore
    Datastore
    Host
    Host
    InventoryTypeResourcePool
    ResourcePool
    InventoryTypeVirtualMachine
    VirtualMachine
    InventoryTypeVirtualMachineTemplate
    VirtualMachineTemplate
    InventoryTypeVirtualNetwork
    VirtualNetwork
    InventoryTypeCluster
    Cluster
    InventoryTypeDatastore
    Datastore
    InventoryTypeHost
    Host
    ResourcePool
    ResourcePool
    VirtualMachine
    VirtualMachine
    VirtualMachineTemplate
    VirtualMachineTemplate
    VirtualNetwork
    VirtualNetwork
    Cluster
    Cluster
    Datastore
    Datastore
    Host
    Host
    ResourcePool
    ResourcePool
    VirtualMachine
    VirtualMachine
    VirtualMachineTemplate
    VirtualMachineTemplate
    VirtualNetwork
    VirtualNetwork
    Cluster
    Cluster
    Datastore
    Datastore
    Host
    Host
    RESOURCE_POOL
    ResourcePool
    VIRTUAL_MACHINE
    VirtualMachine
    VIRTUAL_MACHINE_TEMPLATE
    VirtualMachineTemplate
    VIRTUAL_NETWORK
    VirtualNetwork
    CLUSTER
    Cluster
    DATASTORE
    Datastore
    HOST
    Host
    "ResourcePool"
    ResourcePool
    "VirtualMachine"
    VirtualMachine
    "VirtualMachineTemplate"
    VirtualMachineTemplate
    "VirtualNetwork"
    VirtualNetwork
    "Cluster"
    Cluster
    "Datastore"
    Datastore
    "Host"
    Host

    SystemDataResponse, SystemDataResponseArgs

    CreatedAt string
    The timestamp of resource creation (UTC).
    CreatedBy string
    The identity that created the resource.
    CreatedByType string
    The type of identity that created the resource.
    LastModifiedAt string
    The timestamp of resource last modification (UTC)
    LastModifiedBy string
    The identity that last modified the resource.
    LastModifiedByType string
    The type of identity that last modified the resource.
    CreatedAt string
    The timestamp of resource creation (UTC).
    CreatedBy string
    The identity that created the resource.
    CreatedByType string
    The type of identity that created the resource.
    LastModifiedAt string
    The timestamp of resource last modification (UTC)
    LastModifiedBy string
    The identity that last modified the resource.
    LastModifiedByType string
    The type of identity that last modified the resource.
    createdAt String
    The timestamp of resource creation (UTC).
    createdBy String
    The identity that created the resource.
    createdByType String
    The type of identity that created the resource.
    lastModifiedAt String
    The timestamp of resource last modification (UTC)
    lastModifiedBy String
    The identity that last modified the resource.
    lastModifiedByType String
    The type of identity that last modified the resource.
    createdAt string
    The timestamp of resource creation (UTC).
    createdBy string
    The identity that created the resource.
    createdByType string
    The type of identity that created the resource.
    lastModifiedAt string
    The timestamp of resource last modification (UTC)
    lastModifiedBy string
    The identity that last modified the resource.
    lastModifiedByType string
    The type of identity that last modified the resource.
    created_at str
    The timestamp of resource creation (UTC).
    created_by str
    The identity that created the resource.
    created_by_type str
    The type of identity that created the resource.
    last_modified_at str
    The timestamp of resource last modification (UTC)
    last_modified_by str
    The identity that last modified the resource.
    last_modified_by_type str
    The type of identity that last modified the resource.
    createdAt String
    The timestamp of resource creation (UTC).
    createdBy String
    The identity that created the resource.
    createdByType String
    The type of identity that created the resource.
    lastModifiedAt String
    The timestamp of resource last modification (UTC)
    lastModifiedBy String
    The identity that last modified the resource.
    lastModifiedByType String
    The type of identity that last modified the resource.

    Import

    An existing resource can be imported using its type token, name, and identifier, e.g.

    $ pulumi import azure-native:connectedvmwarevsphere:InventoryItem testItem /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/vcenters/{vcenterName}/inventoryItems/{inventoryItemName} 
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Azure Native pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native logo
    This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
    Azure Native v2.47.1 published on Monday, Jun 24, 2024 by Pulumi