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

oci.FleetAppsManagement.getFleetResource

Explore with Pulumi AI

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

This data source provides details about a specific Fleet Resource resource in Oracle Cloud Infrastructure Fleet Apps Management service.

Gets a Fleet Resource by identifier.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";

const testFleetResource = oci.FleetAppsManagement.getFleetResource({
    fleetId: testFleet.id,
    fleetResourceId: testResource.id,
});
Copy
import pulumi
import pulumi_oci as oci

test_fleet_resource = oci.FleetAppsManagement.get_fleet_resource(fleet_id=test_fleet["id"],
    fleet_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.GetFleetResource(ctx, &fleetappsmanagement.GetFleetResourceArgs{
			FleetId:         testFleet.Id,
			FleetResourceId: 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 testFleetResource = Oci.FleetAppsManagement.GetFleetResource.Invoke(new()
    {
        FleetId = testFleet.Id,
        FleetResourceId = 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.GetFleetResourceArgs;
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 testFleetResource = FleetAppsManagementFunctions.getFleetResource(GetFleetResourceArgs.builder()
            .fleetId(testFleet.id())
            .fleetResourceId(testResource.id())
            .build());

    }
}
Copy
variables:
  testFleetResource:
    fn::invoke:
      function: oci:FleetAppsManagement:getFleetResource
      arguments:
        fleetId: ${testFleet.id}
        fleetResourceId: ${testResource.id}
Copy

Using getFleetResource

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 getFleetResource(args: GetFleetResourceArgs, opts?: InvokeOptions): Promise<GetFleetResourceResult>
function getFleetResourceOutput(args: GetFleetResourceOutputArgs, opts?: InvokeOptions): Output<GetFleetResourceResult>
Copy
def get_fleet_resource(fleet_id: Optional[str] = None,
                       fleet_resource_id: Optional[str] = None,
                       opts: Optional[InvokeOptions] = None) -> GetFleetResourceResult
def get_fleet_resource_output(fleet_id: Optional[pulumi.Input[str]] = None,
                       fleet_resource_id: Optional[pulumi.Input[str]] = None,
                       opts: Optional[InvokeOptions] = None) -> Output[GetFleetResourceResult]
Copy
func GetFleetResource(ctx *Context, args *GetFleetResourceArgs, opts ...InvokeOption) (*GetFleetResourceResult, error)
func GetFleetResourceOutput(ctx *Context, args *GetFleetResourceOutputArgs, opts ...InvokeOption) GetFleetResourceResultOutput
Copy

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

public static class GetFleetResource 
{
    public static Task<GetFleetResourceResult> InvokeAsync(GetFleetResourceArgs args, InvokeOptions? opts = null)
    public static Output<GetFleetResourceResult> Invoke(GetFleetResourceInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetFleetResourceResult> getFleetResource(GetFleetResourceArgs args, InvokeOptions options)
public static Output<GetFleetResourceResult> getFleetResource(GetFleetResourceArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: oci:FleetAppsManagement/getFleetResource:getFleetResource
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

FleetId This property is required. string
Unique Fleet identifier.
FleetResourceId This property is required. string
unique FleetResource identifier
FleetId This property is required. string
Unique Fleet identifier.
FleetResourceId This property is required. string
unique FleetResource identifier
fleetId This property is required. String
Unique Fleet identifier.
fleetResourceId This property is required. String
unique FleetResource identifier
fleetId This property is required. string
Unique Fleet identifier.
fleetResourceId This property is required. string
unique FleetResource identifier
fleet_id This property is required. str
Unique Fleet identifier.
fleet_resource_id This property is required. str
unique FleetResource identifier
fleetId This property is required. String
Unique Fleet identifier.
fleetResourceId This property is required. String
unique FleetResource identifier

getFleetResource Result

The following output properties are available:

ApplicationType string
Application Type associated with the resource when the resource type is fleet. Will only be returned for ENVIRONMENT fleets that are part of a GROUP Fleet.
Compartment string
Resource Compartment name.
CompartmentId string
OCID of the compartment to which the resource belongs to.
ComplianceState string
Compliance State of the Resource.
DisplayName string
A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example: My new resource
EnvironmentType 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.
FleetId string
FleetResourceId string
Id string
The unique id of the resource.
LifecycleDetails 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.
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.
ProductCount int
Count of products within the resource.
ResourceId string
The OCID of the resource.
ResourceRegion string
Associated region
ResourceType string
Type of the Resource.
State string
The current state of the FleetResource.
SystemTags 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 int
Count of targets within the resource.
TenancyId string
OCID of the tenancy to which the resource belongs to.
TenancyName string
Resource Tenancy Name.
TimeCreated string
The time this resource was created. An RFC3339 formatted datetime string.
TimeUpdated string
The time this resource was last updated. An RFC3339 formatted datetime string.
ApplicationType string
Application Type associated with the resource when the resource type is fleet. Will only be returned for ENVIRONMENT fleets that are part of a GROUP Fleet.
Compartment string
Resource Compartment name.
CompartmentId string
OCID of the compartment to which the resource belongs to.
ComplianceState string
Compliance State of the Resource.
DisplayName string
A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example: My new resource
EnvironmentType 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.
FleetId string
FleetResourceId string
Id string
The unique id of the resource.
LifecycleDetails 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.
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.
ProductCount int
Count of products within the resource.
ResourceId string
The OCID of the resource.
ResourceRegion string
Associated region
ResourceType string
Type of the Resource.
State string
The current state of the FleetResource.
SystemTags 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 int
Count of targets within the resource.
TenancyId string
OCID of the tenancy to which the resource belongs to.
TenancyName string
Resource Tenancy Name.
TimeCreated string
The time this resource was created. An RFC3339 formatted datetime string.
TimeUpdated string
The time this resource was last updated. An RFC3339 formatted datetime string.
applicationType String
Application Type associated with the resource when the resource type is fleet. Will only be returned for ENVIRONMENT fleets that are part of a GROUP Fleet.
compartment String
Resource Compartment name.
compartmentId String
OCID of the compartment to which the resource belongs to.
complianceState String
Compliance State of the Resource.
displayName String
A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example: My new resource
environmentType 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.
fleetId String
fleetResourceId String
id String
The unique id of the resource.
lifecycleDetails 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.
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.
productCount Integer
Count of products within the resource.
resourceId String
The OCID of the resource.
resourceRegion String
Associated region
resourceType String
Type of the Resource.
state String
The current state of the FleetResource.
systemTags 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 Integer
Count of targets within the resource.
tenancyId String
OCID of the tenancy to which the resource belongs to.
tenancyName String
Resource Tenancy Name.
timeCreated String
The time this resource was created. An RFC3339 formatted datetime string.
timeUpdated String
The time this resource was last updated. An RFC3339 formatted datetime string.
applicationType string
Application Type associated with the resource when the resource type is fleet. Will only be returned for ENVIRONMENT fleets that are part of a GROUP Fleet.
compartment string
Resource Compartment name.
compartmentId string
OCID of the compartment to which the resource belongs to.
complianceState string
Compliance State of the Resource.
displayName string
A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example: My new resource
environmentType 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.
fleetId string
fleetResourceId string
id string
The unique id of the resource.
lifecycleDetails 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.
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.
productCount number
Count of products within the resource.
resourceId string
The OCID of the resource.
resourceRegion string
Associated region
resourceType string
Type of the Resource.
state string
The current state of the FleetResource.
systemTags {[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 number
Count of targets within the resource.
tenancyId string
OCID of the tenancy to which the resource belongs to.
tenancyName string
Resource Tenancy Name.
timeCreated string
The time this resource was created. An RFC3339 formatted datetime string.
timeUpdated string
The time this resource was last updated. An RFC3339 formatted datetime string.
application_type str
Application Type associated with the resource when the resource type is fleet. Will only be returned for ENVIRONMENT fleets that are part of a GROUP Fleet.
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 user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example: My new resource
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
fleet_resource_id str
id str
The unique id of the resource.
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.
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
The current state of the FleetResource.
system_tags 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.
applicationType String
Application Type associated with the resource when the resource type is fleet. Will only be returned for ENVIRONMENT fleets that are part of a GROUP Fleet.
compartment String
Resource Compartment name.
compartmentId String
OCID of the compartment to which the resource belongs to.
complianceState String
Compliance State of the Resource.
displayName String
A user-friendly name. Does not have to be unique, and it's changeable. Avoid entering confidential information. Example: My new resource
environmentType 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.
fleetId String
fleetResourceId String
id String
The unique id of the resource.
lifecycleDetails 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.
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.
productCount Number
Count of products within the resource.
resourceId String
The OCID of the resource.
resourceRegion String
Associated region
resourceType String
Type of the Resource.
state String
The current state of the FleetResource.
systemTags Map<String>
System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
targetCount Number
Count of targets within the resource.
tenancyId String
OCID of the tenancy to which the resource belongs to.
tenancyName String
Resource Tenancy Name.
timeCreated String
The time this resource was created. An RFC3339 formatted datetime string.
timeUpdated 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 oci Terraform Provider.
Oracle Cloud Infrastructure v2.28.0 published on Thursday, Mar 27, 2025 by Pulumi