1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. FleetAppsManagement
  5. getFleetProducts
Oracle Cloud Infrastructure v2.28.0 published on Thursday, Mar 27, 2025 by Pulumi

oci.FleetAppsManagement.getFleetProducts

Explore with Pulumi AI

Oracle Cloud Infrastructure v2.28.0 published on Thursday, Mar 27, 2025 by Pulumi

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,
});
Copy
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"])
Copy
package main

import (
	"github.com/pulumi/pulumi-oci/sdk/v2/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
	})
}
Copy
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,
    });

});
Copy
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());

    }
}
Copy
variables:
  testFleetProducts:
    fn::invoke:
      function: oci:FleetAppsManagement:getFleetProducts
      arguments:
        fleetId: ${testFleet.id}
        compartmentId: ${compartmentId}
        displayName: ${fleetProductDisplayName}
        resourceDisplayName: ${fleetProductResourceDisplayName}
        resourceId: ${testResource.id}
Copy

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>
Copy
def get_fleet_products(compartment_id: Optional[str] = None,
                       display_name: Optional[str] = None,
                       filters: Optional[Sequence[_fleetappsmanagement.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[_fleetappsmanagement.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]
Copy
func GetFleetProducts(ctx *Context, args *GetFleetProductsArgs, opts ...InvokeOption) (*GetFleetProductsResult, error)
func GetFleetProductsOutput(ctx *Context, args *GetFleetProductsOutputArgs, opts ...InvokeOption) GetFleetProductsResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetFleetProductsResult> getFleetProducts(GetFleetProductsArgs args, InvokeOptions options)
public static Output<GetFleetProductsResult> getFleetProducts(GetFleetProductsArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: oci:FleetAppsManagement/getFleetProducts:getFleetProducts
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

FleetId This property is required. string
Unique Fleet identifier.
CompartmentId string
The ID of the compartment in which to list resources.
DisplayName string
A filter to return only resources that match the entire display name given.
Filters Changes to this property will trigger replacement. List<GetFleetProductsFilter>
ResourceDisplayName string
Resource Display Name.
ResourceId string
Resource Identifier
FleetId This property is required. string
Unique Fleet identifier.
CompartmentId string
The ID of the compartment in which to list resources.
DisplayName string
A filter to return only resources that match the entire display name given.
Filters Changes to this property will trigger replacement. []GetFleetProductsFilter
ResourceDisplayName string
Resource Display Name.
ResourceId string
Resource Identifier
fleetId This property is required. String
Unique Fleet identifier.
compartmentId String
The ID of the compartment in which to list resources.
displayName String
A filter to return only resources that match the entire display name given.
filters Changes to this property will trigger replacement. List<GetFleetProductsFilter>
resourceDisplayName String
Resource Display Name.
resourceId String
Resource Identifier
fleetId This property is required. string
Unique Fleet identifier.
compartmentId string
The ID of the compartment in which to list resources.
displayName string
A filter to return only resources that match the entire display name given.
filters Changes to this property will trigger replacement. GetFleetProductsFilter[]
resourceDisplayName string
Resource Display Name.
resourceId string
Resource Identifier
fleet_id This property is required. str
Unique Fleet identifier.
compartment_id str
The ID of the compartment in which to list resources.
display_name str
A filter to return only resources that match the entire display name given.
filters Changes to this property will trigger replacement. Sequence[fleetappsmanagement.GetFleetProductsFilter]
resource_display_name str
Resource Display Name.
resource_id str
Resource Identifier
fleetId This property is required. String
Unique Fleet identifier.
compartmentId String
The ID of the compartment in which to list resources.
displayName String
A filter to return only resources that match the entire display name given.
filters Changes to this property will trigger replacement. List<Property Map>
resourceDisplayName String
Resource Display Name.
resourceId String
Resource Identifier

getFleetProducts Result

The following output properties are available:

FleetId string
FleetProductCollections List<GetFleetProductsFleetProductCollection>
The list of fleet_product_collection.
Id string
The provider-assigned unique ID for this managed resource.
CompartmentId string
Root Compartment Id.
DisplayName 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<GetFleetProductsFilter>
ResourceDisplayName string
A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example: My new resource
ResourceId string
The OCID of the resource.
FleetId string
FleetProductCollections []GetFleetProductsFleetProductCollection
The list of fleet_product_collection.
Id string
The provider-assigned unique ID for this managed resource.
CompartmentId string
Root Compartment Id.
DisplayName string
A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example: My new resource
Filters []GetFleetProductsFilter
ResourceDisplayName string
A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example: My new resource
ResourceId string
The OCID of the resource.
fleetId String
fleetProductCollections List<GetFleetProductsFleetProductCollection>
The list of fleet_product_collection.
id String
The provider-assigned unique ID for this managed resource.
compartmentId String
Root Compartment Id.
displayName 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<GetFleetProductsFilter>
resourceDisplayName String
A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example: My new resource
resourceId String
The OCID of the resource.
fleetId string
fleetProductCollections GetFleetProductsFleetProductCollection[]
The list of fleet_product_collection.
id string
The provider-assigned unique ID for this managed resource.
compartmentId string
Root Compartment Id.
displayName string
A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example: My new resource
filters GetFleetProductsFilter[]
resourceDisplayName string
A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example: My new resource
resourceId string
The OCID of the resource.
fleet_id str
fleet_product_collections Sequence[fleetappsmanagement.GetFleetProductsFleetProductCollection]
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[fleetappsmanagement.GetFleetProductsFilter]
resource_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
resource_id str
The OCID of the resource.
fleetId String
fleetProductCollections List<Property Map>
The list of fleet_product_collection.
id String
The provider-assigned unique ID for this managed resource.
compartmentId String
Root Compartment Id.
displayName 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>
resourceDisplayName String
A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example: My new resource
resourceId String
The OCID of the resource.

Supporting Types

GetFleetProductsFilter

Name This property is required. string
Values This property is required. List<string>
Regex bool
Name This property is required. string
Values This property is required. []string
Regex bool
name This property is required. String
values This property is required. List<String>
regex Boolean
name This property is required. string
values This property is required. string[]
regex boolean
name This property is required. str
values This property is required. Sequence[str]
regex bool
name This property is required. String
values This property is required. List<String>
regex Boolean

GetFleetProductsFleetProductCollection

Items This property is required. List<GetFleetProductsFleetProductCollectionItem>
List of fleetProducts.
Items This property is required. []GetFleetProductsFleetProductCollectionItem
List of fleetProducts.
items This property is required. List<GetFleetProductsFleetProductCollectionItem>
List of fleetProducts.
items This property is required. GetFleetProductsFleetProductCollectionItem[]
List of fleetProducts.
items This property is required. List<Property Map>
List of fleetProducts.

GetFleetProductsFleetProductCollectionItem

CompartmentId This property is required. string
The ID of the compartment in which to list resources.
DisplayName This property is required. string
A filter to return only resources that match the entire display name given.
Resources This property is required. List<GetFleetProductsFleetProductCollectionItemResource>
Resource Information for the Target.
SystemTags This property is required. Dictionary<string, string>
System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
TargetCount This property is required. int
Count of the targets associated with the Product.
CompartmentId This property is required. string
The ID of the compartment in which to list resources.
DisplayName This property is required. string
A filter to return only resources that match the entire display name given.
Resources This property is required. []GetFleetProductsFleetProductCollectionItemResource
Resource Information for the Target.
SystemTags This property is required. map[string]string
System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
TargetCount This property is required. int
Count of the targets associated with the Product.
compartmentId This property is required. String
The ID of the compartment in which to list resources.
displayName This property is required. String
A filter to return only resources that match the entire display name given.
resources This property is required. List<GetFleetProductsFleetProductCollectionItemResource>
Resource Information for the Target.
systemTags This property is required. Map<String,String>
System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
targetCount This property is required. Integer
Count of the targets associated with the Product.
compartmentId This property is required. string
The ID of the compartment in which to list resources.
displayName This property is required. string
A filter to return only resources that match the entire display name given.
resources This property is required. GetFleetProductsFleetProductCollectionItemResource[]
Resource Information for the Target.
systemTags This property is required. {[key: string]: string}
System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
targetCount This property is required. number
Count of the targets associated with the Product.
compartment_id This property is required. str
The ID of the compartment in which to list resources.
display_name This property is required. str
A filter to return only resources that match the entire display name given.
resources This property is required. Sequence[fleetappsmanagement.GetFleetProductsFleetProductCollectionItemResource]
Resource Information for the Target.
system_tags This property is required. 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 This property is required. int
Count of the targets associated with the Product.
compartmentId This property is required. String
The ID of the compartment in which to list resources.
displayName This property is required. String
A filter to return only resources that match the entire display name given.
resources This property is required. List<Property Map>
Resource Information for the Target.
systemTags This property is required. Map<String>
System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
targetCount This property is required. Number
Count of the targets associated with the Product.

GetFleetProductsFleetProductCollectionItemResource

ResourceDisplayName This property is required. string
Resource Display Name.
ResourceId This property is required. string
Resource Identifier
ResourceDisplayName This property is required. string
Resource Display Name.
ResourceId This property is required. string
Resource Identifier
resourceDisplayName This property is required. String
Resource Display Name.
resourceId This property is required. String
Resource Identifier
resourceDisplayName This property is required. string
Resource Display Name.
resourceId This property is required. string
Resource Identifier
resource_display_name This property is required. str
Resource Display Name.
resource_id This property is required. str
Resource Identifier
resourceDisplayName This property is required. String
Resource Display Name.
resourceId This property is required. String
Resource Identifier

Package Details

Repository
oci pulumi/pulumi-oci
License
Apache-2.0
Notes
This Pulumi package is based on the oci Terraform Provider.
Oracle Cloud Infrastructure v2.28.0 published on Thursday, Mar 27, 2025 by Pulumi