1. Packages
  2. Azure Classic
  3. API Docs
  4. systemcenter
  5. getVirtualMachineManagerInventoryItems

We recommend using Azure Native.

Azure Classic v6.2.0 published on Friday, Sep 27, 2024 by Pulumi

azure.systemcenter.getVirtualMachineManagerInventoryItems

Explore with Pulumi AI

azure logo

We recommend using Azure Native.

Azure Classic v6.2.0 published on Friday, Sep 27, 2024 by Pulumi

    Use this data source to access information about existing System Center Virtual Machine Manager Inventory Items.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as azure from "@pulumi/azure";
    
    const example = azure.systemcenter.getVirtualMachineManagerInventoryItems({
        inventoryType: "Cloud",
        systemCenterVirtualMachineManagerServerId: exampleAzurermSystemCenterVirtualMachineManagerServer.id,
    });
    
    import pulumi
    import pulumi_azure as azure
    
    example = azure.systemcenter.get_virtual_machine_manager_inventory_items(inventory_type="Cloud",
        system_center_virtual_machine_manager_server_id=example_azurerm_system_center_virtual_machine_manager_server["id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/systemcenter"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := systemcenter.GetVirtualMachineManagerInventoryItems(ctx, &systemcenter.GetVirtualMachineManagerInventoryItemsArgs{
    			InventoryType: "Cloud",
    			SystemCenterVirtualMachineManagerServerId: exampleAzurermSystemCenterVirtualMachineManagerServer.Id,
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Azure = Pulumi.Azure;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Azure.SystemCenter.GetVirtualMachineManagerInventoryItems.Invoke(new()
        {
            InventoryType = "Cloud",
            SystemCenterVirtualMachineManagerServerId = exampleAzurermSystemCenterVirtualMachineManagerServer.Id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.azure.systemcenter.SystemcenterFunctions;
    import com.pulumi.azure.systemcenter.inputs.GetVirtualMachineManagerInventoryItemsArgs;
    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) {
            final var example = SystemcenterFunctions.getVirtualMachineManagerInventoryItems(GetVirtualMachineManagerInventoryItemsArgs.builder()
                .inventoryType("Cloud")
                .systemCenterVirtualMachineManagerServerId(exampleAzurermSystemCenterVirtualMachineManagerServer.id())
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          Function: azure:systemcenter:getVirtualMachineManagerInventoryItems
          Arguments:
            inventoryType: Cloud
            systemCenterVirtualMachineManagerServerId: ${exampleAzurermSystemCenterVirtualMachineManagerServer.id}
    

    Using getVirtualMachineManagerInventoryItems

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getVirtualMachineManagerInventoryItems(args: GetVirtualMachineManagerInventoryItemsArgs, opts?: InvokeOptions): Promise<GetVirtualMachineManagerInventoryItemsResult>
    function getVirtualMachineManagerInventoryItemsOutput(args: GetVirtualMachineManagerInventoryItemsOutputArgs, opts?: InvokeOptions): Output<GetVirtualMachineManagerInventoryItemsResult>
    def get_virtual_machine_manager_inventory_items(inventory_type: Optional[str] = None,
                                                    system_center_virtual_machine_manager_server_id: Optional[str] = None,
                                                    opts: Optional[InvokeOptions] = None) -> GetVirtualMachineManagerInventoryItemsResult
    def get_virtual_machine_manager_inventory_items_output(inventory_type: Optional[pulumi.Input[str]] = None,
                                                    system_center_virtual_machine_manager_server_id: Optional[pulumi.Input[str]] = None,
                                                    opts: Optional[InvokeOptions] = None) -> Output[GetVirtualMachineManagerInventoryItemsResult]
    func GetVirtualMachineManagerInventoryItems(ctx *Context, args *GetVirtualMachineManagerInventoryItemsArgs, opts ...InvokeOption) (*GetVirtualMachineManagerInventoryItemsResult, error)
    func GetVirtualMachineManagerInventoryItemsOutput(ctx *Context, args *GetVirtualMachineManagerInventoryItemsOutputArgs, opts ...InvokeOption) GetVirtualMachineManagerInventoryItemsResultOutput

    > Note: This function is named GetVirtualMachineManagerInventoryItems in the Go SDK.

    public static class GetVirtualMachineManagerInventoryItems 
    {
        public static Task<GetVirtualMachineManagerInventoryItemsResult> InvokeAsync(GetVirtualMachineManagerInventoryItemsArgs args, InvokeOptions? opts = null)
        public static Output<GetVirtualMachineManagerInventoryItemsResult> Invoke(GetVirtualMachineManagerInventoryItemsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetVirtualMachineManagerInventoryItemsResult> getVirtualMachineManagerInventoryItems(GetVirtualMachineManagerInventoryItemsArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: azure:systemcenter/getVirtualMachineManagerInventoryItems:getVirtualMachineManagerInventoryItems
      arguments:
        # arguments dictionary

    The following arguments are supported:

    InventoryType string
    The inventory type of the System Center Virtual Machine Manager Inventory Item. Possible values are Cloud, VirtualMachine, VirtualMachineTemplate and VirtualNetwork.
    SystemCenterVirtualMachineManagerServerId string
    The ID of the System Center Virtual Machine Manager Server.
    InventoryType string
    The inventory type of the System Center Virtual Machine Manager Inventory Item. Possible values are Cloud, VirtualMachine, VirtualMachineTemplate and VirtualNetwork.
    SystemCenterVirtualMachineManagerServerId string
    The ID of the System Center Virtual Machine Manager Server.
    inventoryType String
    The inventory type of the System Center Virtual Machine Manager Inventory Item. Possible values are Cloud, VirtualMachine, VirtualMachineTemplate and VirtualNetwork.
    systemCenterVirtualMachineManagerServerId String
    The ID of the System Center Virtual Machine Manager Server.
    inventoryType string
    The inventory type of the System Center Virtual Machine Manager Inventory Item. Possible values are Cloud, VirtualMachine, VirtualMachineTemplate and VirtualNetwork.
    systemCenterVirtualMachineManagerServerId string
    The ID of the System Center Virtual Machine Manager Server.
    inventory_type str
    The inventory type of the System Center Virtual Machine Manager Inventory Item. Possible values are Cloud, VirtualMachine, VirtualMachineTemplate and VirtualNetwork.
    system_center_virtual_machine_manager_server_id str
    The ID of the System Center Virtual Machine Manager Server.
    inventoryType String
    The inventory type of the System Center Virtual Machine Manager Inventory Item. Possible values are Cloud, VirtualMachine, VirtualMachineTemplate and VirtualNetwork.
    systemCenterVirtualMachineManagerServerId String
    The ID of the System Center Virtual Machine Manager Server.

    getVirtualMachineManagerInventoryItems Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    InventoryItems List<GetVirtualMachineManagerInventoryItemsInventoryItem>
    One or more inventory_items blocks as defined below.
    InventoryType string
    SystemCenterVirtualMachineManagerServerId string
    Id string
    The provider-assigned unique ID for this managed resource.
    InventoryItems []GetVirtualMachineManagerInventoryItemsInventoryItem
    One or more inventory_items blocks as defined below.
    InventoryType string
    SystemCenterVirtualMachineManagerServerId string
    id String
    The provider-assigned unique ID for this managed resource.
    inventoryItems List<GetVirtualMachineManagerInventoryItemsInventoryItem>
    One or more inventory_items blocks as defined below.
    inventoryType String
    systemCenterVirtualMachineManagerServerId String
    id string
    The provider-assigned unique ID for this managed resource.
    inventoryItems GetVirtualMachineManagerInventoryItemsInventoryItem[]
    One or more inventory_items blocks as defined below.
    inventoryType string
    systemCenterVirtualMachineManagerServerId string
    id str
    The provider-assigned unique ID for this managed resource.
    inventory_items Sequence[GetVirtualMachineManagerInventoryItemsInventoryItem]
    One or more inventory_items blocks as defined below.
    inventory_type str
    system_center_virtual_machine_manager_server_id str
    id String
    The provider-assigned unique ID for this managed resource.
    inventoryItems List<Property Map>
    One or more inventory_items blocks as defined below.
    inventoryType String
    systemCenterVirtualMachineManagerServerId String

    Supporting Types

    GetVirtualMachineManagerInventoryItemsInventoryItem

    Id string
    The ID of the System Center Virtual Machine Manager Inventory Item.
    Name string
    The name of the System Center Virtual Machine Manager Inventory Item.
    Uuid string
    The UUID of the System Center Virtual Machine Manager Inventory Item that is assigned by System Center Virtual Machine Manager.
    Id string
    The ID of the System Center Virtual Machine Manager Inventory Item.
    Name string
    The name of the System Center Virtual Machine Manager Inventory Item.
    Uuid string
    The UUID of the System Center Virtual Machine Manager Inventory Item that is assigned by System Center Virtual Machine Manager.
    id String
    The ID of the System Center Virtual Machine Manager Inventory Item.
    name String
    The name of the System Center Virtual Machine Manager Inventory Item.
    uuid String
    The UUID of the System Center Virtual Machine Manager Inventory Item that is assigned by System Center Virtual Machine Manager.
    id string
    The ID of the System Center Virtual Machine Manager Inventory Item.
    name string
    The name of the System Center Virtual Machine Manager Inventory Item.
    uuid string
    The UUID of the System Center Virtual Machine Manager Inventory Item that is assigned by System Center Virtual Machine Manager.
    id str
    The ID of the System Center Virtual Machine Manager Inventory Item.
    name str
    The name of the System Center Virtual Machine Manager Inventory Item.
    uuid str
    The UUID of the System Center Virtual Machine Manager Inventory Item that is assigned by System Center Virtual Machine Manager.
    id String
    The ID of the System Center Virtual Machine Manager Inventory Item.
    name String
    The name of the System Center Virtual Machine Manager Inventory Item.
    uuid String
    The UUID of the System Center Virtual Machine Manager Inventory Item that is assigned by System Center Virtual Machine Manager.

    Package Details

    Repository
    Azure Classic pulumi/pulumi-azure
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the azurerm Terraform Provider.
    azure logo

    We recommend using Azure Native.

    Azure Classic v6.2.0 published on Friday, Sep 27, 2024 by Pulumi