1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. CloudBridge
  5. getInventory
Oracle Cloud Infrastructure v2.2.0 published on Friday, Jul 12, 2024 by Pulumi

oci.CloudBridge.getInventory

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.2.0 published on Friday, Jul 12, 2024 by Pulumi

    This data source provides details about a specific Inventory resource in Oracle Cloud Infrastructure Cloud Bridge service.

    Gets an inventory by identifier.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testInventory = oci.CloudBridge.getInventory({
        inventoryId: testInventoryOciCloudBridgeInventory.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_inventory = oci.CloudBridge.get_inventory(inventory_id=test_inventory_oci_cloud_bridge_inventory["id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/v2/go/oci/CloudBridge"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := CloudBridge.GetInventory(ctx, &cloudbridge.GetInventoryArgs{
    			InventoryId: testInventoryOciCloudBridgeInventory.Id,
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Oci = Pulumi.Oci;
    
    return await Deployment.RunAsync(() => 
    {
        var testInventory = Oci.CloudBridge.GetInventory.Invoke(new()
        {
            InventoryId = testInventoryOciCloudBridgeInventory.Id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.CloudBridge.CloudBridgeFunctions;
    import com.pulumi.oci.CloudBridge.inputs.GetInventoryArgs;
    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 testInventory = CloudBridgeFunctions.getInventory(GetInventoryArgs.builder()
                .inventoryId(testInventoryOciCloudBridgeInventory.id())
                .build());
    
        }
    }
    
    variables:
      testInventory:
        fn::invoke:
          Function: oci:CloudBridge:getInventory
          Arguments:
            inventoryId: ${testInventoryOciCloudBridgeInventory.id}
    

    Using getInventory

    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 getInventory(args: GetInventoryArgs, opts?: InvokeOptions): Promise<GetInventoryResult>
    function getInventoryOutput(args: GetInventoryOutputArgs, opts?: InvokeOptions): Output<GetInventoryResult>
    def get_inventory(inventory_id: Optional[str] = None,
                      opts: Optional[InvokeOptions] = None) -> GetInventoryResult
    def get_inventory_output(inventory_id: Optional[pulumi.Input[str]] = None,
                      opts: Optional[InvokeOptions] = None) -> Output[GetInventoryResult]
    func GetInventory(ctx *Context, args *GetInventoryArgs, opts ...InvokeOption) (*GetInventoryResult, error)
    func GetInventoryOutput(ctx *Context, args *GetInventoryOutputArgs, opts ...InvokeOption) GetInventoryResultOutput

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

    public static class GetInventory 
    {
        public static Task<GetInventoryResult> InvokeAsync(GetInventoryArgs args, InvokeOptions? opts = null)
        public static Output<GetInventoryResult> Invoke(GetInventoryInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetInventoryResult> getInventory(GetInventoryArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:CloudBridge/getInventory:getInventory
      arguments:
        # arguments dictionary

    The following arguments are supported:

    InventoryId string
    Inventory OCID.
    InventoryId string
    Inventory OCID.
    inventoryId String
    Inventory OCID.
    inventoryId string
    Inventory OCID.
    inventory_id str
    Inventory OCID.
    inventoryId String
    Inventory OCID.

    getInventory Result

    The following output properties are available:

    CompartmentId string
    The OCID of the tenantId.
    DefinedTags Dictionary<string, object>
    The defined tags associated with this resource, if any. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    DisplayName string
    Inventory display name.
    FreeformTags Dictionary<string, object>
    The freeform tags associated with this resource, if any. Each tag is a simple key-value pair with no predefined name, type, or namespace/scope. For more information, see Resource Tags. Example: {"Department": "Finance"}
    Id string
    Inventory OCID.
    InventoryId string
    LifecycleDetails string
    A message describing the current state in more detail. For example, it can be used to provide actionable information for a resource in Failed state.
    State string
    The current state of the inventory.
    SystemTags Dictionary<string, object>
    The system tags associated with this resource, if any. The system tags are set by Oracle cloud infrastructure services. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example: {orcl-cloud: {free-tier-retain: true}}
    TimeCreated string
    The time when the inventory was created. An RFC3339 formatted datetime string.
    TimeUpdated string
    The time when the inventory was updated. An RFC3339 formatted datetime string.
    CompartmentId string
    The OCID of the tenantId.
    DefinedTags map[string]interface{}
    The defined tags associated with this resource, if any. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    DisplayName string
    Inventory display name.
    FreeformTags map[string]interface{}
    The freeform tags associated with this resource, if any. Each tag is a simple key-value pair with no predefined name, type, or namespace/scope. For more information, see Resource Tags. Example: {"Department": "Finance"}
    Id string
    Inventory OCID.
    InventoryId string
    LifecycleDetails string
    A message describing the current state in more detail. For example, it can be used to provide actionable information for a resource in Failed state.
    State string
    The current state of the inventory.
    SystemTags map[string]interface{}
    The system tags associated with this resource, if any. The system tags are set by Oracle cloud infrastructure services. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example: {orcl-cloud: {free-tier-retain: true}}
    TimeCreated string
    The time when the inventory was created. An RFC3339 formatted datetime string.
    TimeUpdated string
    The time when the inventory was updated. An RFC3339 formatted datetime string.
    compartmentId String
    The OCID of the tenantId.
    definedTags Map<String,Object>
    The defined tags associated with this resource, if any. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    displayName String
    Inventory display name.
    freeformTags Map<String,Object>
    The freeform tags associated with this resource, if any. Each tag is a simple key-value pair with no predefined name, type, or namespace/scope. For more information, see Resource Tags. Example: {"Department": "Finance"}
    id String
    Inventory OCID.
    inventoryId String
    lifecycleDetails String
    A message describing the current state in more detail. For example, it can be used to provide actionable information for a resource in Failed state.
    state String
    The current state of the inventory.
    systemTags Map<String,Object>
    The system tags associated with this resource, if any. The system tags are set by Oracle cloud infrastructure services. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example: {orcl-cloud: {free-tier-retain: true}}
    timeCreated String
    The time when the inventory was created. An RFC3339 formatted datetime string.
    timeUpdated String
    The time when the inventory was updated. An RFC3339 formatted datetime string.
    compartmentId string
    The OCID of the tenantId.
    definedTags {[key: string]: any}
    The defined tags associated with this resource, if any. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    displayName string
    Inventory display name.
    freeformTags {[key: string]: any}
    The freeform tags associated with this resource, if any. Each tag is a simple key-value pair with no predefined name, type, or namespace/scope. For more information, see Resource Tags. Example: {"Department": "Finance"}
    id string
    Inventory OCID.
    inventoryId string
    lifecycleDetails string
    A message describing the current state in more detail. For example, it can be used to provide actionable information for a resource in Failed state.
    state string
    The current state of the inventory.
    systemTags {[key: string]: any}
    The system tags associated with this resource, if any. The system tags are set by Oracle cloud infrastructure services. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example: {orcl-cloud: {free-tier-retain: true}}
    timeCreated string
    The time when the inventory was created. An RFC3339 formatted datetime string.
    timeUpdated string
    The time when the inventory was updated. An RFC3339 formatted datetime string.
    compartment_id str
    The OCID of the tenantId.
    defined_tags Mapping[str, Any]
    The defined tags associated with this resource, if any. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    display_name str
    Inventory display name.
    freeform_tags Mapping[str, Any]
    The freeform tags associated with this resource, if any. Each tag is a simple key-value pair with no predefined name, type, or namespace/scope. For more information, see Resource Tags. Example: {"Department": "Finance"}
    id str
    Inventory OCID.
    inventory_id str
    lifecycle_details str
    A message describing the current state in more detail. For example, it can be used to provide actionable information for a resource in Failed state.
    state str
    The current state of the inventory.
    system_tags Mapping[str, Any]
    The system tags associated with this resource, if any. The system tags are set by Oracle cloud infrastructure services. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example: {orcl-cloud: {free-tier-retain: true}}
    time_created str
    The time when the inventory was created. An RFC3339 formatted datetime string.
    time_updated str
    The time when the inventory was updated. An RFC3339 formatted datetime string.
    compartmentId String
    The OCID of the tenantId.
    definedTags Map<Any>
    The defined tags associated with this resource, if any. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
    displayName String
    Inventory display name.
    freeformTags Map<Any>
    The freeform tags associated with this resource, if any. Each tag is a simple key-value pair with no predefined name, type, or namespace/scope. For more information, see Resource Tags. Example: {"Department": "Finance"}
    id String
    Inventory OCID.
    inventoryId String
    lifecycleDetails String
    A message describing the current state in more detail. For example, it can be used to provide actionable information for a resource in Failed state.
    state String
    The current state of the inventory.
    systemTags Map<Any>
    The system tags associated with this resource, if any. The system tags are set by Oracle cloud infrastructure services. Each key is predefined and scoped to namespaces. For more information, see Resource Tags. Example: {orcl-cloud: {free-tier-retain: true}}
    timeCreated String
    The time when the inventory was created. An RFC3339 formatted datetime string.
    timeUpdated String
    The time when the inventory was updated. An RFC3339 formatted datetime string.

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v2.2.0 published on Friday, Jul 12, 2024 by Pulumi