Oracle Cloud Infrastructure v3.10.0 published on Wednesday, Nov 5, 2025 by Pulumi
oci.FleetAppsManagement.getFleetResources
Start a Neo task
Explain and create an oci.FleetAppsManagement.getFleetResources resource
This data source provides the list of Fleet Resources in Oracle Cloud Infrastructure Fleet Apps Management service.
List resources for a fleet in Fleet Application Management.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testFleetResources = oci.FleetAppsManagement.getFleetResources({
fleetId: testFleet.id,
displayName: fleetResourceDisplayName,
fleetResourceType: fleetResourceFleetResourceType,
id: fleetResourceId,
state: fleetResourceState,
});
import pulumi
import pulumi_oci as oci
test_fleet_resources = oci.FleetAppsManagement.get_fleet_resources(fleet_id=test_fleet["id"],
display_name=fleet_resource_display_name,
fleet_resource_type=fleet_resource_fleet_resource_type,
id=fleet_resource_id,
state=fleet_resource_state)
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.GetFleetResources(ctx, &fleetappsmanagement.GetFleetResourcesArgs{
FleetId: testFleet.Id,
DisplayName: pulumi.StringRef(fleetResourceDisplayName),
FleetResourceType: pulumi.StringRef(fleetResourceFleetResourceType),
Id: pulumi.StringRef(fleetResourceId),
State: pulumi.StringRef(fleetResourceState),
}, 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 testFleetResources = Oci.FleetAppsManagement.GetFleetResources.Invoke(new()
{
FleetId = testFleet.Id,
DisplayName = fleetResourceDisplayName,
FleetResourceType = fleetResourceFleetResourceType,
Id = fleetResourceId,
State = fleetResourceState,
});
});
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.GetFleetResourcesArgs;
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 testFleetResources = FleetAppsManagementFunctions.getFleetResources(GetFleetResourcesArgs.builder()
.fleetId(testFleet.id())
.displayName(fleetResourceDisplayName)
.fleetResourceType(fleetResourceFleetResourceType)
.id(fleetResourceId)
.state(fleetResourceState)
.build());
}
}
variables:
testFleetResources:
fn::invoke:
function: oci:FleetAppsManagement:getFleetResources
arguments:
fleetId: ${testFleet.id}
displayName: ${fleetResourceDisplayName}
fleetResourceType: ${fleetResourceFleetResourceType}
id: ${fleetResourceId}
state: ${fleetResourceState}
Using getFleetResources
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 getFleetResources(args: GetFleetResourcesArgs, opts?: InvokeOptions): Promise<GetFleetResourcesResult>
function getFleetResourcesOutput(args: GetFleetResourcesOutputArgs, opts?: InvokeOptions): Output<GetFleetResourcesResult>def get_fleet_resources(display_name: Optional[str] = None,
filters: Optional[Sequence[GetFleetResourcesFilter]] = None,
fleet_id: Optional[str] = None,
fleet_resource_type: Optional[str] = None,
id: Optional[str] = None,
state: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetFleetResourcesResult
def get_fleet_resources_output(display_name: Optional[pulumi.Input[str]] = None,
filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetFleetResourcesFilterArgs]]]] = None,
fleet_id: Optional[pulumi.Input[str]] = None,
fleet_resource_type: Optional[pulumi.Input[str]] = None,
id: Optional[pulumi.Input[str]] = None,
state: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetFleetResourcesResult]func GetFleetResources(ctx *Context, args *GetFleetResourcesArgs, opts ...InvokeOption) (*GetFleetResourcesResult, error)
func GetFleetResourcesOutput(ctx *Context, args *GetFleetResourcesOutputArgs, opts ...InvokeOption) GetFleetResourcesResultOutput> Note: This function is named GetFleetResources in the Go SDK.
public static class GetFleetResources
{
public static Task<GetFleetResourcesResult> InvokeAsync(GetFleetResourcesArgs args, InvokeOptions? opts = null)
public static Output<GetFleetResourcesResult> Invoke(GetFleetResourcesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetFleetResourcesResult> getFleetResources(GetFleetResourcesArgs args, InvokeOptions options)
public static Output<GetFleetResourcesResult> getFleetResources(GetFleetResourcesArgs args, InvokeOptions options)
fn::invoke:
function: oci:FleetAppsManagement/getFleetResources:getFleetResources
arguments:
# arguments dictionaryThe following arguments are supported:
- Fleet
Id string - Unique Fleet identifier.
- Display
Name string - A filter to return only resources that match the entire display name given.
- Filters
List<Get
Fleet Resources Filter> - Fleet
Resource stringType - A filter to return only resources whose resourceType matches the given resourceType.
- Id string
- A filter to return only resources whose identifier matches the given identifier.
- State string
- A filter to return only resources whose lifecycleState matches the given lifecycleState.
- Fleet
Id string - Unique Fleet identifier.
- Display
Name string - A filter to return only resources that match the entire display name given.
- Filters
[]Get
Fleet Resources Filter - Fleet
Resource stringType - A filter to return only resources whose resourceType matches the given resourceType.
- Id string
- A filter to return only resources whose identifier matches the given identifier.
- State string
- A filter to return only resources whose lifecycleState matches the given lifecycleState.
- fleet
Id String - Unique Fleet identifier.
- display
Name String - A filter to return only resources that match the entire display name given.
- filters
List<Get
Fleet Resources Filter> - fleet
Resource StringType - A filter to return only resources whose resourceType matches the given resourceType.
- id String
- A filter to return only resources whose identifier matches the given identifier.
- state String
- A filter to return only resources whose lifecycleState matches the given lifecycleState.
- fleet
Id string - Unique Fleet identifier.
- display
Name string - A filter to return only resources that match the entire display name given.
- filters
Get
Fleet Resources Filter[] - fleet
Resource stringType - A filter to return only resources whose resourceType matches the given resourceType.
- id string
- A filter to return only resources whose identifier matches the given identifier.
- state string
- A filter to return only resources whose lifecycleState matches the given lifecycleState.
- fleet_
id str - Unique Fleet identifier.
- display_
name str - A filter to return only resources that match the entire display name given.
- filters
Sequence[Get
Fleet Resources Filter] - fleet_
resource_ strtype - A filter to return only resources whose resourceType matches the given resourceType.
- id str
- A filter to return only resources whose identifier matches the given identifier.
- state str
- A filter to return only resources whose lifecycleState matches the given lifecycleState.
- fleet
Id String - Unique Fleet identifier.
- display
Name String - A filter to return only resources that match the entire display name given.
- filters List<Property Map>
- fleet
Resource StringType - A filter to return only resources whose resourceType matches the given resourceType.
- id String
- A filter to return only resources whose identifier matches the given identifier.
- state String
- A filter to return only resources whose lifecycleState matches the given lifecycleState.
getFleetResources Result
The following output properties are available:
- Fleet
Id string - Fleet
Resource List<GetCollections Fleet Resources Fleet Resource Collection> - The list of fleet_resource_collection.
- 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 Resources Filter> - Fleet
Resource stringType - Id string
- The unique id of the resource.
- State string
- The current state of the FleetResource.
- Fleet
Id string - Fleet
Resource []GetCollections Fleet Resources Fleet Resource Collection - The list of fleet_resource_collection.
- 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 Resources Filter - Fleet
Resource stringType - Id string
- The unique id of the resource.
- State string
- The current state of the FleetResource.
- fleet
Id String - fleet
Resource List<GetCollections Fleet Resources Fleet Resource Collection> - The list of fleet_resource_collection.
- 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 Resources Filter> - fleet
Resource StringType - id String
- The unique id of the resource.
- state String
- The current state of the FleetResource.
- fleet
Id string - fleet
Resource GetCollections Fleet Resources Fleet Resource Collection[] - The list of fleet_resource_collection.
- 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 Resources Filter[] - fleet
Resource stringType - id string
- The unique id of the resource.
- state string
- The current state of the FleetResource.
- fleet_
id str - fleet_
resource_ Sequence[Getcollections Fleet Resources Fleet Resource Collection] - The list of fleet_resource_collection.
- 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 Resources Filter] - fleet_
resource_ strtype - id str
- The unique id of the resource.
- state str
- The current state of the FleetResource.
- fleet
Id String - fleet
Resource List<Property Map>Collections - The list of fleet_resource_collection.
- 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>
- fleet
Resource StringType - id String
- The unique id of the resource.
- state String
- The current state of the FleetResource.
Supporting Types
GetFleetResourcesFilter
GetFleetResourcesFleetResourceCollection
GetFleetResourcesFleetResourceCollectionItem
- Compartment string
- Resource Compartment name.
- Compartment
Id string - OCID of the compartment to which the resource belongs to.
- Compliance
State string - Compliance State of the Resource.
- Display
Name string - A filter to return only resources that match the entire display name given.
- Environment
Type string - Environment Type associated with the Fleet when the resource type is fleet. Will only be returned for ENVIRONMENT fleets that are part of a GROUP Fleet.
- Fleet
Id string - Unique Fleet identifier.
- Id string
- A filter to return only resources whose identifier matches the given identifier.
- Lifecycle
Details string - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- Percent
Compliant double - The compliance percentage.
- Product string
- Product associated with the resource when the resource type is fleet. Will only be returned for PRODUCT fleets that are part of a GROUP Fleet.
- Product
Count int - Count of products within the resource.
- Resource
Id string - The OCID of the resource.
- Resource
Region string - Associated region
- Resource
Type string - Type of the Resource.
- State string
- A filter to return only resources whose lifecycleState matches the given lifecycleState.
- 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 targets within the resource.
- Tenancy
Id string - OCID of the tenancy to which the resource belongs to.
- Tenancy
Name string - Resource Tenancy Name.
- 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.
- Compartment string
- Resource Compartment name.
- Compartment
Id string - OCID of the compartment to which the resource belongs to.
- Compliance
State string - Compliance State of the Resource.
- Display
Name string - A filter to return only resources that match the entire display name given.
- Environment
Type string - Environment Type associated with the Fleet when the resource type is fleet. Will only be returned for ENVIRONMENT fleets that are part of a GROUP Fleet.
- Fleet
Id string - Unique Fleet identifier.
- Id string
- A filter to return only resources whose identifier matches the given identifier.
- Lifecycle
Details string - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- Percent
Compliant float64 - The compliance percentage.
- Product string
- Product associated with the resource when the resource type is fleet. Will only be returned for PRODUCT fleets that are part of a GROUP Fleet.
- Product
Count int - Count of products within the resource.
- Resource
Id string - The OCID of the resource.
- Resource
Region string - Associated region
- Resource
Type string - Type of the Resource.
- State string
- A filter to return only resources whose lifecycleState matches the given lifecycleState.
- 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 targets within the resource.
- Tenancy
Id string - OCID of the tenancy to which the resource belongs to.
- Tenancy
Name string - Resource Tenancy Name.
- 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.
- compartment String
- Resource Compartment name.
- compartment
Id String - OCID of the compartment to which the resource belongs to.
- compliance
State String - Compliance State of the Resource.
- display
Name String - A filter to return only resources that match the entire display name given.
- environment
Type String - Environment Type associated with the Fleet when the resource type is fleet. Will only be returned for ENVIRONMENT fleets that are part of a GROUP Fleet.
- fleet
Id String - Unique Fleet identifier.
- id String
- A filter to return only resources whose identifier matches the given identifier.
- lifecycle
Details String - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- percent
Compliant Double - The compliance percentage.
- product String
- Product associated with the resource when the resource type is fleet. Will only be returned for PRODUCT fleets that are part of a GROUP Fleet.
- product
Count Integer - Count of products within the resource.
- resource
Id String - The OCID of the resource.
- resource
Region String - Associated region
- resource
Type String - Type of the Resource.
- state String
- A filter to return only resources whose lifecycleState matches the given lifecycleState.
- 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 targets within the resource.
- tenancy
Id String - OCID of the tenancy to which the resource belongs to.
- tenancy
Name String - Resource Tenancy Name.
- 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.
- compartment string
- Resource Compartment name.
- compartment
Id string - OCID of the compartment to which the resource belongs to.
- compliance
State string - Compliance State of the Resource.
- display
Name string - A filter to return only resources that match the entire display name given.
- environment
Type string - Environment Type associated with the Fleet when the resource type is fleet. Will only be returned for ENVIRONMENT fleets that are part of a GROUP Fleet.
- fleet
Id string - Unique Fleet identifier.
- id string
- A filter to return only resources whose identifier matches the given identifier.
- lifecycle
Details string - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- percent
Compliant number - The compliance percentage.
- product string
- Product associated with the resource when the resource type is fleet. Will only be returned for PRODUCT fleets that are part of a GROUP Fleet.
- product
Count number - Count of products within the resource.
- resource
Id string - The OCID of the resource.
- resource
Region string - Associated region
- resource
Type string - Type of the Resource.
- state string
- A filter to return only resources whose lifecycleState matches the given lifecycleState.
- {[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 targets within the resource.
- tenancy
Id string - OCID of the tenancy to which the resource belongs to.
- tenancy
Name string - Resource Tenancy Name.
- 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.
- compartment str
- Resource Compartment name.
- compartment_
id str - OCID of the compartment to which the resource belongs to.
- compliance_
state str - Compliance State of the Resource.
- display_
name str - A filter to return only resources that match the entire display name given.
- environment_
type str - Environment Type associated with the Fleet when the resource type is fleet. Will only be returned for ENVIRONMENT fleets that are part of a GROUP Fleet.
- fleet_
id str - Unique Fleet identifier.
- id str
- A filter to return only resources whose identifier matches the given identifier.
- lifecycle_
details str - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- percent_
compliant float - The compliance percentage.
- product str
- Product associated with the resource when the resource type is fleet. Will only be returned for PRODUCT fleets that are part of a GROUP Fleet.
- product_
count int - Count of products within the resource.
- resource_
id str - The OCID of the resource.
- resource_
region str - Associated region
- resource_
type str - Type of the Resource.
- state str
- A filter to return only resources whose lifecycleState matches the given lifecycleState.
- 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 targets within the resource.
- tenancy_
id str - OCID of the tenancy to which the resource belongs to.
- tenancy_
name str - Resource Tenancy Name.
- 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.
- compartment String
- Resource Compartment name.
- compartment
Id String - OCID of the compartment to which the resource belongs to.
- compliance
State String - Compliance State of the Resource.
- display
Name String - A filter to return only resources that match the entire display name given.
- environment
Type String - Environment Type associated with the Fleet when the resource type is fleet. Will only be returned for ENVIRONMENT fleets that are part of a GROUP Fleet.
- fleet
Id String - Unique Fleet identifier.
- id String
- A filter to return only resources whose identifier matches the given identifier.
- lifecycle
Details String - A message describing the current state in more detail. For example, can be used to provide actionable information for a resource in Failed state.
- percent
Compliant Number - The compliance percentage.
- product String
- Product associated with the resource when the resource type is fleet. Will only be returned for PRODUCT fleets that are part of a GROUP Fleet.
- product
Count Number - Count of products within the resource.
- resource
Id String - The OCID of the resource.
- resource
Region String - Associated region
- resource
Type String - Type of the Resource.
- state String
- A filter to return only resources whose lifecycleState matches the given lifecycleState.
- 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 targets within the resource.
- tenancy
Id String - OCID of the tenancy to which the resource belongs to.
- tenancy
Name String - Resource Tenancy Name.
- 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.
Package Details
- Repository
- oci pulumi/pulumi-oci
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
ociTerraform Provider.
