Oracle Cloud Infrastructure v3.10.0 published on Wednesday, Nov 5, 2025 by Pulumi
oci.FleetAppsManagement.getFleetProducts
Start a Neo task
Explain and create an oci.FleetAppsManagement.getFleetProducts resource
This data source provides the list of Fleet Products in Oracle Cloud Infrastructure Fleet Apps Management service.
Returns a list of products associated with the confirmed targets.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testFleetProducts = oci.FleetAppsManagement.getFleetProducts({
fleetId: testFleet.id,
compartmentId: compartmentId,
displayName: fleetProductDisplayName,
resourceDisplayName: fleetProductResourceDisplayName,
resourceId: testResource.id,
});
import pulumi
import pulumi_oci as oci
test_fleet_products = oci.FleetAppsManagement.get_fleet_products(fleet_id=test_fleet["id"],
compartment_id=compartment_id,
display_name=fleet_product_display_name,
resource_display_name=fleet_product_resource_display_name,
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.GetFleetProducts(ctx, &fleetappsmanagement.GetFleetProductsArgs{
FleetId: testFleet.Id,
CompartmentId: pulumi.StringRef(compartmentId),
DisplayName: pulumi.StringRef(fleetProductDisplayName),
ResourceDisplayName: pulumi.StringRef(fleetProductResourceDisplayName),
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 testFleetProducts = Oci.FleetAppsManagement.GetFleetProducts.Invoke(new()
{
FleetId = testFleet.Id,
CompartmentId = compartmentId,
DisplayName = fleetProductDisplayName,
ResourceDisplayName = fleetProductResourceDisplayName,
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.GetFleetProductsArgs;
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 testFleetProducts = FleetAppsManagementFunctions.getFleetProducts(GetFleetProductsArgs.builder()
.fleetId(testFleet.id())
.compartmentId(compartmentId)
.displayName(fleetProductDisplayName)
.resourceDisplayName(fleetProductResourceDisplayName)
.resourceId(testResource.id())
.build());
}
}
variables:
testFleetProducts:
fn::invoke:
function: oci:FleetAppsManagement:getFleetProducts
arguments:
fleetId: ${testFleet.id}
compartmentId: ${compartmentId}
displayName: ${fleetProductDisplayName}
resourceDisplayName: ${fleetProductResourceDisplayName}
resourceId: ${testResource.id}
Using getFleetProducts
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 getFleetProducts(args: GetFleetProductsArgs, opts?: InvokeOptions): Promise<GetFleetProductsResult>
function getFleetProductsOutput(args: GetFleetProductsOutputArgs, opts?: InvokeOptions): Output<GetFleetProductsResult>def get_fleet_products(compartment_id: Optional[str] = None,
display_name: Optional[str] = None,
filters: Optional[Sequence[GetFleetProductsFilter]] = None,
fleet_id: Optional[str] = None,
resource_display_name: Optional[str] = None,
resource_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetFleetProductsResult
def get_fleet_products_output(compartment_id: Optional[pulumi.Input[str]] = None,
display_name: Optional[pulumi.Input[str]] = None,
filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetFleetProductsFilterArgs]]]] = None,
fleet_id: Optional[pulumi.Input[str]] = None,
resource_display_name: Optional[pulumi.Input[str]] = None,
resource_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetFleetProductsResult]func GetFleetProducts(ctx *Context, args *GetFleetProductsArgs, opts ...InvokeOption) (*GetFleetProductsResult, error)
func GetFleetProductsOutput(ctx *Context, args *GetFleetProductsOutputArgs, opts ...InvokeOption) GetFleetProductsResultOutput> Note: This function is named GetFleetProducts in the Go SDK.
public static class GetFleetProducts
{
public static Task<GetFleetProductsResult> InvokeAsync(GetFleetProductsArgs args, InvokeOptions? opts = null)
public static Output<GetFleetProductsResult> Invoke(GetFleetProductsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetFleetProductsResult> getFleetProducts(GetFleetProductsArgs args, InvokeOptions options)
public static Output<GetFleetProductsResult> getFleetProducts(GetFleetProductsArgs args, InvokeOptions options)
fn::invoke:
function: oci:FleetAppsManagement/getFleetProducts:getFleetProducts
arguments:
# arguments dictionaryThe following arguments are supported:
- Fleet
Id string - Unique Fleet identifier.
- Compartment
Id string - The ID of the compartment in which to list resources. Empty only if the resource OCID query param is not specified.
- Display
Name string - A filter to return only resources that match the entire display name given.
- Filters
List<Get
Fleet Products Filter> - Resource
Display stringName - Resource Display Name.
- Resource
Id string - Resource Identifier
- Fleet
Id string - Unique Fleet identifier.
- Compartment
Id string - The ID of the compartment in which to list resources. Empty only if the resource OCID query param is not specified.
- Display
Name string - A filter to return only resources that match the entire display name given.
- Filters
[]Get
Fleet Products Filter - Resource
Display stringName - Resource Display Name.
- Resource
Id string - Resource Identifier
- fleet
Id String - Unique Fleet identifier.
- compartment
Id String - The ID of the compartment in which to list resources. Empty only if the resource OCID query param is not specified.
- display
Name String - A filter to return only resources that match the entire display name given.
- filters
List<Get
Fleet Products Filter> - resource
Display StringName - Resource Display Name.
- resource
Id String - Resource Identifier
- fleet
Id string - Unique Fleet identifier.
- compartment
Id string - The ID of the compartment in which to list resources. Empty only if the resource OCID query param is not specified.
- display
Name string - A filter to return only resources that match the entire display name given.
- filters
Get
Fleet Products Filter[] - resource
Display stringName - Resource Display Name.
- resource
Id string - Resource Identifier
- fleet_
id str - Unique Fleet identifier.
- compartment_
id str - The ID of the compartment in which to list resources. Empty only if the resource OCID query param is not specified.
- display_
name str - A filter to return only resources that match the entire display name given.
- filters
Sequence[Get
Fleet Products Filter] - resource_
display_ strname - Resource Display Name.
- resource_
id str - Resource Identifier
- fleet
Id String - Unique Fleet identifier.
- compartment
Id String - The ID of the compartment in which to list resources. Empty only if the resource OCID query param is not specified.
- display
Name String - A filter to return only resources that match the entire display name given.
- filters List<Property Map>
- resource
Display StringName - Resource Display Name.
- resource
Id String - Resource Identifier
getFleetProducts Result
The following output properties are available:
- Fleet
Id string - Fleet
Product List<GetCollections Fleet Products Fleet Product Collection> - The list of fleet_product_collection.
- Id string
- The provider-assigned unique ID for this managed resource.
- Compartment
Id string - Root Compartment Id.
- Display
Name string - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example:
My new resource - Filters
List<Get
Fleet Products Filter> - Resource
Display stringName - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example:
My new resource - Resource
Id string - The OCID of the resource.
- Fleet
Id string - Fleet
Product []GetCollections Fleet Products Fleet Product Collection - The list of fleet_product_collection.
- Id string
- The provider-assigned unique ID for this managed resource.
- Compartment
Id string - Root Compartment Id.
- Display
Name string - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example:
My new resource - Filters
[]Get
Fleet Products Filter - Resource
Display stringName - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example:
My new resource - Resource
Id string - The OCID of the resource.
- fleet
Id String - fleet
Product List<GetCollections Fleet Products Fleet Product Collection> - The list of fleet_product_collection.
- id String
- The provider-assigned unique ID for this managed resource.
- compartment
Id String - Root Compartment Id.
- display
Name String - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example:
My new resource - filters
List<Get
Fleet Products Filter> - resource
Display StringName - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example:
My new resource - resource
Id String - The OCID of the resource.
- fleet
Id string - fleet
Product GetCollections Fleet Products Fleet Product Collection[] - The list of fleet_product_collection.
- id string
- The provider-assigned unique ID for this managed resource.
- compartment
Id string - Root Compartment Id.
- display
Name string - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example:
My new resource - filters
Get
Fleet Products Filter[] - resource
Display stringName - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example:
My new resource - resource
Id string - The OCID of the resource.
- fleet_
id str - fleet_
product_ Sequence[Getcollections Fleet Products Fleet Product Collection] - The list of fleet_product_collection.
- id str
- The provider-assigned unique ID for this managed resource.
- compartment_
id str - Root Compartment Id.
- display_
name str - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example:
My new resource - filters
Sequence[Get
Fleet Products Filter] - resource_
display_ strname - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example:
My new resource - resource_
id str - The OCID of the resource.
- fleet
Id String - fleet
Product List<Property Map>Collections - The list of fleet_product_collection.
- id String
- The provider-assigned unique ID for this managed resource.
- compartment
Id String - Root Compartment Id.
- display
Name String - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example:
My new resource - filters List<Property Map>
- resource
Display StringName - A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example:
My new resource - resource
Id String - The OCID of the resource.
Supporting Types
GetFleetProductsFilter
GetFleetProductsFleetProductCollection
- Items
List<Get
Fleet Products Fleet Product Collection Item> - List of fleetProducts.
- Items
[]Get
Fleet Products Fleet Product Collection Item - List of fleetProducts.
- items
List<Get
Fleet Products Fleet Product Collection Item> - List of fleetProducts.
- items
Get
Fleet Products Fleet Product Collection Item[] - List of fleetProducts.
- items
Sequence[Get
Fleet Products Fleet Product Collection Item] - List of fleetProducts.
- items List<Property Map>
- List of fleetProducts.
GetFleetProductsFleetProductCollectionItem
- Compartment
Id string - The ID of the compartment in which to list resources. Empty only if the resource OCID query param is not specified.
- Display
Name string - A filter to return only resources that match the entire display name given.
- Resources
List<Get
Fleet Products Fleet Product Collection Item Resource> - Resource Information for the Target.
- Dictionary<string, string>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - Target
Count int - Count of the targets associated with the Product.
- Compartment
Id string - The ID of the compartment in which to list resources. Empty only if the resource OCID query param is not specified.
- Display
Name string - A filter to return only resources that match the entire display name given.
- Resources
[]Get
Fleet Products Fleet Product Collection Item Resource - Resource Information for the Target.
- map[string]string
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - Target
Count int - Count of the targets associated with the Product.
- compartment
Id String - The ID of the compartment in which to list resources. Empty only if the resource OCID query param is not specified.
- display
Name String - A filter to return only resources that match the entire display name given.
- resources
List<Get
Fleet Products Fleet Product Collection Item Resource> - Resource Information for the Target.
- Map<String,String>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - target
Count Integer - Count of the targets associated with the Product.
- compartment
Id string - The ID of the compartment in which to list resources. Empty only if the resource OCID query param is not specified.
- display
Name string - A filter to return only resources that match the entire display name given.
- resources
Get
Fleet Products Fleet Product Collection Item Resource[] - Resource Information for the Target.
- {[key: string]: string}
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - target
Count number - Count of the targets associated with the Product.
- compartment_
id str - The ID of the compartment in which to list resources. Empty only if the resource OCID query param is not specified.
- display_
name str - A filter to return only resources that match the entire display name given.
- resources
Sequence[Get
Fleet Products Fleet Product Collection Item Resource] - Resource Information for the Target.
- Mapping[str, str]
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - target_
count int - Count of the targets associated with the Product.
- compartment
Id String - The ID of the compartment in which to list resources. Empty only if the resource OCID query param is not specified.
- display
Name String - A filter to return only resources that match the entire display name given.
- resources List<Property Map>
- Resource Information for the Target.
- Map<String>
- System tags for this resource. Each key is predefined and scoped to a namespace. Example:
{"orcl-cloud.free-tier-retained": "true"} - target
Count Number - Count of the targets associated with the Product.
GetFleetProductsFleetProductCollectionItemResource
- Resource
Display stringName - Resource Display Name.
- Resource
Id string - Resource Identifier
- Resource
Display stringName - Resource Display Name.
- Resource
Id string - Resource Identifier
- resource
Display StringName - Resource Display Name.
- resource
Id String - Resource Identifier
- resource
Display stringName - Resource Display Name.
- resource
Id string - Resource Identifier
- resource_
display_ strname - Resource Display Name.
- resource_
id str - Resource Identifier
- resource
Display StringName - Resource Display Name.
- resource
Id String - Resource Identifier
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ociTerraform Provider.
