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
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:
- Inventory
Type string - The inventory type of the System Center Virtual Machine Manager Inventory Item. Possible values are
Cloud
,VirtualMachine
,VirtualMachineTemplate
andVirtualNetwork
. - System
Center stringVirtual Machine Manager Server Id - The ID of the System Center Virtual Machine Manager Server.
- Inventory
Type string - The inventory type of the System Center Virtual Machine Manager Inventory Item. Possible values are
Cloud
,VirtualMachine
,VirtualMachineTemplate
andVirtualNetwork
. - System
Center stringVirtual Machine Manager Server Id - The ID of the System Center Virtual Machine Manager Server.
- inventory
Type String - The inventory type of the System Center Virtual Machine Manager Inventory Item. Possible values are
Cloud
,VirtualMachine
,VirtualMachineTemplate
andVirtualNetwork
. - system
Center StringVirtual Machine Manager Server Id - The ID of the System Center Virtual Machine Manager Server.
- inventory
Type string - The inventory type of the System Center Virtual Machine Manager Inventory Item. Possible values are
Cloud
,VirtualMachine
,VirtualMachineTemplate
andVirtualNetwork
. - system
Center stringVirtual Machine Manager Server Id - 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
andVirtualNetwork
. - system_
center_ strvirtual_ machine_ manager_ server_ id - The ID of the System Center Virtual Machine Manager Server.
- inventory
Type String - The inventory type of the System Center Virtual Machine Manager Inventory Item. Possible values are
Cloud
,VirtualMachine
,VirtualMachineTemplate
andVirtualNetwork
. - system
Center StringVirtual Machine Manager Server Id - 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.
- Inventory
Items List<GetVirtual Machine Manager Inventory Items Inventory Item> - One or more
inventory_items
blocks as defined below. - Inventory
Type string - System
Center stringVirtual Machine Manager Server Id
- Id string
- The provider-assigned unique ID for this managed resource.
- Inventory
Items []GetVirtual Machine Manager Inventory Items Inventory Item - One or more
inventory_items
blocks as defined below. - Inventory
Type string - System
Center stringVirtual Machine Manager Server Id
- id String
- The provider-assigned unique ID for this managed resource.
- inventory
Items List<GetVirtual Machine Manager Inventory Items Inventory Item> - One or more
inventory_items
blocks as defined below. - inventory
Type String - system
Center StringVirtual Machine Manager Server Id
- id string
- The provider-assigned unique ID for this managed resource.
- inventory
Items GetVirtual Machine Manager Inventory Items Inventory Item[] - One or more
inventory_items
blocks as defined below. - inventory
Type string - system
Center stringVirtual Machine Manager Server Id
- id str
- The provider-assigned unique ID for this managed resource.
- inventory_
items Sequence[GetVirtual Machine Manager Inventory Items Inventory Item] - One or more
inventory_items
blocks as defined below. - inventory_
type str - system_
center_ strvirtual_ machine_ manager_ server_ id
- id String
- The provider-assigned unique ID for this managed resource.
- inventory
Items List<Property Map> - One or more
inventory_items
blocks as defined below. - inventory
Type String - system
Center StringVirtual Machine Manager Server Id
Supporting Types
GetVirtualMachineManagerInventoryItemsInventoryItem
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurerm
Terraform Provider.