1. Packages
  2. Awx Provider
  3. API Docs
  4. getInventoryGroup
awx 0.29.1 published on Monday, Apr 14, 2025 by denouche

awx.getInventoryGroup

Explore with Pulumi AI

awx logo
awx 0.29.1 published on Monday, Apr 14, 2025 by denouche

    TBD

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as awx from "@pulumi/awx";
    
    const _default = awx.getInventoryGroup({
        name: "k3sPrimary",
        inventoryId: data.awx_inventory["default"].id,
    });
    
    import pulumi
    import pulumi_awx as awx
    
    default = awx.get_inventory_group(name="k3sPrimary",
        inventory_id=data["awx_inventory"]["default"]["id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/awx/awx"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := awx.LookupInventoryGroup(ctx, &awx.LookupInventoryGroupArgs{
    			Name:        pulumi.StringRef("k3sPrimary"),
    			InventoryId: data.Awx_inventory.Default.Id,
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Awx = Pulumi.Awx;
    
    return await Deployment.RunAsync(() => 
    {
        var @default = Awx.GetInventoryGroup.Invoke(new()
        {
            Name = "k3sPrimary",
            InventoryId = data.Awx_inventory.Default.Id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.awx.AwxFunctions;
    import com.pulumi.awx.inputs.GetInventoryGroupArgs;
    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 default = AwxFunctions.getInventoryGroup(GetInventoryGroupArgs.builder()
                .name("k3sPrimary")
                .inventoryId(data.awx_inventory().default().id())
                .build());
    
        }
    }
    
    variables:
      default:
        fn::invoke:
          function: awx:getInventoryGroup
          arguments:
            name: k3sPrimary
            inventoryId: ${data.awx_inventory.default.id}
    

    Using getInventoryGroup

    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 getInventoryGroup(args: GetInventoryGroupArgs, opts?: InvokeOptions): Promise<GetInventoryGroupResult>
    function getInventoryGroupOutput(args: GetInventoryGroupOutputArgs, opts?: InvokeOptions): Output<GetInventoryGroupResult>
    def get_inventory_group(id: Optional[float] = None,
                            inventory_id: Optional[float] = None,
                            name: Optional[str] = None,
                            opts: Optional[InvokeOptions] = None) -> GetInventoryGroupResult
    def get_inventory_group_output(id: Optional[pulumi.Input[float]] = None,
                            inventory_id: Optional[pulumi.Input[float]] = None,
                            name: Optional[pulumi.Input[str]] = None,
                            opts: Optional[InvokeOptions] = None) -> Output[GetInventoryGroupResult]
    func LookupInventoryGroup(ctx *Context, args *LookupInventoryGroupArgs, opts ...InvokeOption) (*LookupInventoryGroupResult, error)
    func LookupInventoryGroupOutput(ctx *Context, args *LookupInventoryGroupOutputArgs, opts ...InvokeOption) LookupInventoryGroupResultOutput

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

    public static class GetInventoryGroup 
    {
        public static Task<GetInventoryGroupResult> InvokeAsync(GetInventoryGroupArgs args, InvokeOptions? opts = null)
        public static Output<GetInventoryGroupResult> Invoke(GetInventoryGroupInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetInventoryGroupResult> getInventoryGroup(GetInventoryGroupArgs args, InvokeOptions options)
    public static Output<GetInventoryGroupResult> getInventoryGroup(GetInventoryGroupArgs args, InvokeOptions options)
    
    fn::invoke:
      function: awx:index/getInventoryGroup:getInventoryGroup
      arguments:
        # arguments dictionary

    The following arguments are supported:

    InventoryId double
    Id double
    Name string
    InventoryId float64
    Id float64
    Name string
    inventoryId Double
    id Double
    name String
    inventoryId number
    id number
    name string
    inventory_id float
    id float
    name str
    inventoryId Number
    id Number
    name String

    getInventoryGroup Result

    The following output properties are available:

    Id double
    InventoryId double
    Name string
    Id float64
    InventoryId float64
    Name string
    id Double
    inventoryId Double
    name String
    id number
    inventoryId number
    name string
    id float
    inventory_id float
    name str
    id Number
    inventoryId Number
    name String

    Package Details

    Repository
    awx denouche/terraform-provider-awx
    License
    Notes
    This Pulumi package is based on the awx Terraform Provider.
    awx logo
    awx 0.29.1 published on Monday, Apr 14, 2025 by denouche