Oracle Cloud Infrastructure v3.3.0 published on Thursday, Jul 17, 2025 by Pulumi
oci.FleetAppsManagement.getInventoryRecords
Explore with Pulumi AI
This data source provides the list of Inventory Records in Oracle Cloud Infrastructure Fleet Apps Management service.
Gets a list of inventoryDetails.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testInventoryRecords = oci.FleetAppsManagement.getInventoryRecords({
compartmentId: compartmentId,
compartmentIdInSubtree: inventoryRecordCompartmentIdInSubtree,
fleetId: testFleet.id,
resourceId: testResource.id,
});
import pulumi
import pulumi_oci as oci
test_inventory_records = oci.FleetAppsManagement.get_inventory_records(compartment_id=compartment_id,
compartment_id_in_subtree=inventory_record_compartment_id_in_subtree,
fleet_id=test_fleet["id"],
resource_id=test_resource["id"])
package main
import (
"github.com/pulumi/pulumi-oci/sdk/v3/go/oci/fleetappsmanagement"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := fleetappsmanagement.GetInventoryRecords(ctx, &fleetappsmanagement.GetInventoryRecordsArgs{
CompartmentId: compartmentId,
CompartmentIdInSubtree: pulumi.BoolRef(inventoryRecordCompartmentIdInSubtree),
FleetId: pulumi.StringRef(testFleet.Id),
ResourceId: pulumi.StringRef(testResource.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 testInventoryRecords = Oci.FleetAppsManagement.GetInventoryRecords.Invoke(new()
{
CompartmentId = compartmentId,
CompartmentIdInSubtree = inventoryRecordCompartmentIdInSubtree,
FleetId = testFleet.Id,
ResourceId = testResource.Id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.oci.FleetAppsManagement.FleetAppsManagementFunctions;
import com.pulumi.oci.FleetAppsManagement.inputs.GetInventoryRecordsArgs;
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 testInventoryRecords = FleetAppsManagementFunctions.getInventoryRecords(GetInventoryRecordsArgs.builder()
.compartmentId(compartmentId)
.compartmentIdInSubtree(inventoryRecordCompartmentIdInSubtree)
.fleetId(testFleet.id())
.resourceId(testResource.id())
.build());
}
}
variables:
testInventoryRecords:
fn::invoke:
function: oci:FleetAppsManagement:getInventoryRecords
arguments:
compartmentId: ${compartmentId}
compartmentIdInSubtree: ${inventoryRecordCompartmentIdInSubtree}
fleetId: ${testFleet.id}
resourceId: ${testResource.id}
Using getInventoryRecords
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 getInventoryRecords(args: GetInventoryRecordsArgs, opts?: InvokeOptions): Promise<GetInventoryRecordsResult>
function getInventoryRecordsOutput(args: GetInventoryRecordsOutputArgs, opts?: InvokeOptions): Output<GetInventoryRecordsResult>
def get_inventory_records(compartment_id: Optional[str] = None,
compartment_id_in_subtree: Optional[bool] = None,
filters: Optional[Sequence[GetInventoryRecordsFilter]] = None,
fleet_id: Optional[str] = None,
resource_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetInventoryRecordsResult
def get_inventory_records_output(compartment_id: Optional[pulumi.Input[str]] = None,
compartment_id_in_subtree: Optional[pulumi.Input[bool]] = None,
filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetInventoryRecordsFilterArgs]]]] = None,
fleet_id: Optional[pulumi.Input[str]] = None,
resource_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetInventoryRecordsResult]
func GetInventoryRecords(ctx *Context, args *GetInventoryRecordsArgs, opts ...InvokeOption) (*GetInventoryRecordsResult, error)
func GetInventoryRecordsOutput(ctx *Context, args *GetInventoryRecordsOutputArgs, opts ...InvokeOption) GetInventoryRecordsResultOutput
> Note: This function is named GetInventoryRecords
in the Go SDK.
public static class GetInventoryRecords
{
public static Task<GetInventoryRecordsResult> InvokeAsync(GetInventoryRecordsArgs args, InvokeOptions? opts = null)
public static Output<GetInventoryRecordsResult> Invoke(GetInventoryRecordsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetInventoryRecordsResult> getInventoryRecords(GetInventoryRecordsArgs args, InvokeOptions options)
public static Output<GetInventoryRecordsResult> getInventoryRecords(GetInventoryRecordsArgs args, InvokeOptions options)
fn::invoke:
function: oci:FleetAppsManagement/getInventoryRecords:getInventoryRecords
arguments:
# arguments dictionary
The following arguments are supported:
- Compartment
Id string - The ID of the compartment in which to list resources.
- Compartment
Id boolIn Subtree - If set to true, resources will be returned for not only the provided compartment, but all compartments which descend from it. Which resources are returned and their field contents depends on the value of accessLevel.
- Filters
List<Get
Inventory Records Filter> - Fleet
Id string - unique Fleet identifier
- Resource
Id string - Resource Identifier
- Compartment
Id string - The ID of the compartment in which to list resources.
- Compartment
Id boolIn Subtree - If set to true, resources will be returned for not only the provided compartment, but all compartments which descend from it. Which resources are returned and their field contents depends on the value of accessLevel.
- Filters
[]Get
Inventory Records Filter - Fleet
Id string - unique Fleet identifier
- Resource
Id string - Resource Identifier
- compartment
Id String - The ID of the compartment in which to list resources.
- compartment
Id BooleanIn Subtree - If set to true, resources will be returned for not only the provided compartment, but all compartments which descend from it. Which resources are returned and their field contents depends on the value of accessLevel.
- filters
List<Get
Inventory Records Filter> - fleet
Id String - unique Fleet identifier
- resource
Id String - Resource Identifier
- compartment
Id string - The ID of the compartment in which to list resources.
- compartment
Id booleanIn Subtree - If set to true, resources will be returned for not only the provided compartment, but all compartments which descend from it. Which resources are returned and their field contents depends on the value of accessLevel.
- filters
Get
Inventory Records Filter[] - fleet
Id string - unique Fleet identifier
- resource
Id string - Resource Identifier
- compartment_
id str - The ID of the compartment in which to list resources.
- compartment_
id_ boolin_ subtree - If set to true, resources will be returned for not only the provided compartment, but all compartments which descend from it. Which resources are returned and their field contents depends on the value of accessLevel.
- filters
Sequence[Get
Inventory Records Filter] - fleet_
id str - unique Fleet identifier
- resource_
id str - Resource Identifier
- compartment
Id String - The ID of the compartment in which to list resources.
- compartment
Id BooleanIn Subtree - If set to true, resources will be returned for not only the provided compartment, but all compartments which descend from it. Which resources are returned and their field contents depends on the value of accessLevel.
- filters List<Property Map>
- fleet
Id String - unique Fleet identifier
- resource
Id String - Resource Identifier
getInventoryRecords Result
The following output properties are available:
- Compartment
Id string - OCID of the compartment to which the resource belongs to.
- Id string
- The provider-assigned unique ID for this managed resource.
- Inventory
Record List<GetCollections Inventory Records Inventory Record Collection> - The list of inventory_record_collection.
- Compartment
Id boolIn Subtree - Filters
List<Get
Inventory Records Filter> - Fleet
Id string - Resource
Id string
- Compartment
Id string - OCID of the compartment to which the resource belongs to.
- Id string
- The provider-assigned unique ID for this managed resource.
- Inventory
Record []GetCollections Inventory Records Inventory Record Collection - The list of inventory_record_collection.
- Compartment
Id boolIn Subtree - Filters
[]Get
Inventory Records Filter - Fleet
Id string - Resource
Id string
- compartment
Id String - OCID of the compartment to which the resource belongs to.
- id String
- The provider-assigned unique ID for this managed resource.
- inventory
Record List<GetCollections Inventory Records Inventory Record Collection> - The list of inventory_record_collection.
- compartment
Id BooleanIn Subtree - filters
List<Get
Inventory Records Filter> - fleet
Id String - resource
Id String
- compartment
Id string - OCID of the compartment to which the resource belongs to.
- id string
- The provider-assigned unique ID for this managed resource.
- inventory
Record GetCollections Inventory Records Inventory Record Collection[] - The list of inventory_record_collection.
- compartment
Id booleanIn Subtree - filters
Get
Inventory Records Filter[] - fleet
Id string - resource
Id string
- compartment_
id str - OCID of the compartment to which the resource belongs to.
- id str
- The provider-assigned unique ID for this managed resource.
- inventory_
record_ Sequence[Getcollections Inventory Records Inventory Record Collection] - The list of inventory_record_collection.
- compartment_
id_ boolin_ subtree - filters
Sequence[Get
Inventory Records Filter] - fleet_
id str - resource_
id str
- compartment
Id String - OCID of the compartment to which the resource belongs to.
- id String
- The provider-assigned unique ID for this managed resource.
- inventory
Record List<Property Map>Collections - The list of inventory_record_collection.
- compartment
Id BooleanIn Subtree - filters List<Property Map>
- fleet
Id String - resource
Id String
Supporting Types
GetInventoryRecordsFilter
GetInventoryRecordsInventoryRecordCollection
- Items
List<Get
Inventory Records Inventory Record Collection Item> - List of inventory targets
- Items
[]Get
Inventory Records Inventory Record Collection Item - List of inventory targets
- items
List<Get
Inventory Records Inventory Record Collection Item> - List of inventory targets
- items
Get
Inventory Records Inventory Record Collection Item[] - List of inventory targets
- items
Sequence[Get
Inventory Records Inventory Record Collection Item] - List of inventory targets
- items List<Property Map>
- List of inventory targets
GetInventoryRecordsInventoryRecordCollectionItem
- Architecture string
- Architecture of the resource associated with the target
- Compartment
Id string - The ID of the compartment in which to list resources.
- Components
List<Get
Inventory Records Inventory Record Collection Item Component> - List of target components
- Installed
Patches List<GetInventory Records Inventory Record Collection Item Installed Patch> - List of details on the patches currently installed on the target
- Os
Type string - OS installed on the resource associated with the target
- Properties
List<Get
Inventory Records Inventory Record Collection Item Property> - List of target properties
- State string
- The current state of the Inventory target.
- Target
Id string - The OCID of the Inventory target.
- Target
Name string - Name of the target
- Target
Product stringId - OCID of the product installed at the target path
- Target
Product stringName - Name of the product installed at the target path
- Target
Resource stringId - OCID of the resource associated with the target
- Target
Resource stringName - Name of the resource associated with the target
- Time
Created string - The time this resource was created. An RFC3339 formatted datetime string.
- Time
Updated string - The time this resource was last updated. An RFC3339 formatted datetime string.
- Version string
- Version of the product on the target
- Architecture string
- Architecture of the resource associated with the target
- Compartment
Id string - The ID of the compartment in which to list resources.
- Components
[]Get
Inventory Records Inventory Record Collection Item Component - List of target components
- Installed
Patches []GetInventory Records Inventory Record Collection Item Installed Patch - List of details on the patches currently installed on the target
- Os
Type string - OS installed on the resource associated with the target
- Properties
[]Get
Inventory Records Inventory Record Collection Item Property - List of target properties
- State string
- The current state of the Inventory target.
- Target
Id string - The OCID of the Inventory target.
- Target
Name string - Name of the target
- Target
Product stringId - OCID of the product installed at the target path
- Target
Product stringName - Name of the product installed at the target path
- Target
Resource stringId - OCID of the resource associated with the target
- Target
Resource stringName - Name of the resource associated with the target
- Time
Created string - The time this resource was created. An RFC3339 formatted datetime string.
- Time
Updated string - The time this resource was last updated. An RFC3339 formatted datetime string.
- Version string
- Version of the product on the target
- architecture String
- Architecture of the resource associated with the target
- compartment
Id String - The ID of the compartment in which to list resources.
- components
List<Get
Inventory Records Inventory Record Collection Item Component> - List of target components
- installed
Patches List<GetInventory Records Inventory Record Collection Item Installed Patch> - List of details on the patches currently installed on the target
- os
Type String - OS installed on the resource associated with the target
- properties
List<Get
Inventory Records Inventory Record Collection Item Property> - List of target properties
- state String
- The current state of the Inventory target.
- target
Id String - The OCID of the Inventory target.
- target
Name String - Name of the target
- target
Product StringId - OCID of the product installed at the target path
- target
Product StringName - Name of the product installed at the target path
- target
Resource StringId - OCID of the resource associated with the target
- target
Resource StringName - Name of the resource associated with the target
- time
Created String - The time this resource was created. An RFC3339 formatted datetime string.
- time
Updated String - The time this resource was last updated. An RFC3339 formatted datetime string.
- version String
- Version of the product on the target
- architecture string
- Architecture of the resource associated with the target
- compartment
Id string - The ID of the compartment in which to list resources.
- components
Get
Inventory Records Inventory Record Collection Item Component[] - List of target components
- installed
Patches GetInventory Records Inventory Record Collection Item Installed Patch[] - List of details on the patches currently installed on the target
- os
Type string - OS installed on the resource associated with the target
- properties
Get
Inventory Records Inventory Record Collection Item Property[] - List of target properties
- state string
- The current state of the Inventory target.
- target
Id string - The OCID of the Inventory target.
- target
Name string - Name of the target
- target
Product stringId - OCID of the product installed at the target path
- target
Product stringName - Name of the product installed at the target path
- target
Resource stringId - OCID of the resource associated with the target
- target
Resource stringName - Name of the resource associated with the target
- time
Created string - The time this resource was created. An RFC3339 formatted datetime string.
- time
Updated string - The time this resource was last updated. An RFC3339 formatted datetime string.
- version string
- Version of the product on the target
- architecture str
- Architecture of the resource associated with the target
- compartment_
id str - The ID of the compartment in which to list resources.
- components
Sequence[Get
Inventory Records Inventory Record Collection Item Component] - List of target components
- installed_
patches Sequence[GetInventory Records Inventory Record Collection Item Installed Patch] - List of details on the patches currently installed on the target
- os_
type str - OS installed on the resource associated with the target
- properties
Sequence[Get
Inventory Records Inventory Record Collection Item Property] - List of target properties
- state str
- The current state of the Inventory target.
- target_
id str - The OCID of the Inventory target.
- target_
name str - Name of the target
- target_
product_ strid - OCID of the product installed at the target path
- target_
product_ strname - Name of the product installed at the target path
- target_
resource_ strid - OCID of the resource associated with the target
- target_
resource_ strname - Name of the resource associated with the target
- time_
created str - The time this resource was created. An RFC3339 formatted datetime string.
- time_
updated str - The time this resource was last updated. An RFC3339 formatted datetime string.
- version str
- Version of the product on the target
- architecture String
- Architecture of the resource associated with the target
- compartment
Id String - The ID of the compartment in which to list resources.
- components List<Property Map>
- List of target components
- installed
Patches List<Property Map> - List of details on the patches currently installed on the target
- os
Type String - OS installed on the resource associated with the target
- properties List<Property Map>
- List of target properties
- state String
- The current state of the Inventory target.
- target
Id String - The OCID of the Inventory target.
- target
Name String - Name of the target
- target
Product StringId - OCID of the product installed at the target path
- target
Product StringName - Name of the product installed at the target path
- target
Resource StringId - OCID of the resource associated with the target
- target
Resource StringName - Name of the resource associated with the target
- time
Created String - The time this resource was created. An RFC3339 formatted datetime string.
- time
Updated String - The time this resource was last updated. An RFC3339 formatted datetime string.
- version String
- Version of the product on the target
GetInventoryRecordsInventoryRecordCollectionItemComponent
- Component
Name string - Name of the target component
- Component
Path string - Path of the component
- Component
Version string - Version of the target component
- Properties
List<Get
Inventory Records Inventory Record Collection Item Component Property> - List of target properties
- Component
Name string - Name of the target component
- Component
Path string - Path of the component
- Component
Version string - Version of the target component
- Properties
[]Get
Inventory Records Inventory Record Collection Item Component Property - List of target properties
- component
Name String - Name of the target component
- component
Path String - Path of the component
- component
Version String - Version of the target component
- properties
List<Get
Inventory Records Inventory Record Collection Item Component Property> - List of target properties
- component
Name string - Name of the target component
- component
Path string - Path of the component
- component
Version string - Version of the target component
- properties
Get
Inventory Records Inventory Record Collection Item Component Property[] - List of target properties
- component_
name str - Name of the target component
- component_
path str - Path of the component
- component_
version str - Version of the target component
- properties
Sequence[Get
Inventory Records Inventory Record Collection Item Component Property] - List of target properties
- component
Name String - Name of the target component
- component
Path String - Path of the component
- component
Version String - Version of the target component
- properties List<Property Map>
- List of target properties
GetInventoryRecordsInventoryRecordCollectionItemComponentProperty
GetInventoryRecordsInventoryRecordCollectionItemInstalledPatch
- Patch
Description string - Description for the installed patch
- Patch
Id string - OCID of the installed patch
- Patch
Name string - Name of the installed patch
- Patch
Type string - Type of patch applied
- Time
Applied string - Date on which the patch was applied to the target
- Patch
Description string - Description for the installed patch
- Patch
Id string - OCID of the installed patch
- Patch
Name string - Name of the installed patch
- Patch
Type string - Type of patch applied
- Time
Applied string - Date on which the patch was applied to the target
- patch
Description String - Description for the installed patch
- patch
Id String - OCID of the installed patch
- patch
Name String - Name of the installed patch
- patch
Type String - Type of patch applied
- time
Applied String - Date on which the patch was applied to the target
- patch
Description string - Description for the installed patch
- patch
Id string - OCID of the installed patch
- patch
Name string - Name of the installed patch
- patch
Type string - Type of patch applied
- time
Applied string - Date on which the patch was applied to the target
- patch_
description str - Description for the installed patch
- patch_
id str - OCID of the installed patch
- patch_
name str - Name of the installed patch
- patch_
type str - Type of patch applied
- time_
applied str - Date on which the patch was applied to the target
- patch
Description String - Description for the installed patch
- patch
Id String - OCID of the installed patch
- patch
Name String - Name of the installed patch
- patch
Type String - Type of patch applied
- time
Applied String - Date on which the patch was applied to the target
GetInventoryRecordsInventoryRecordCollectionItemProperty
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
oci
Terraform Provider.