Oracle Cloud Infrastructure v2.29.0 published on Wednesday, Apr 9, 2025 by Pulumi
oci.FleetAppsManagement.getFleetTargets
Explore with Pulumi AI
This data source provides the list of Fleet Targets in Oracle Cloud Infrastructure Fleet Apps Management service.
Returns the list of all confirmed targets within a fleet.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as oci from "@pulumi/oci";
const testFleetTargets = oci.FleetAppsManagement.getFleetTargets({
fleetId: testFleet.id,
displayName: fleetTargetDisplayName,
product: fleetTargetProduct,
resourceDisplayName: fleetTargetResourceDisplayName,
resourceId: testResource.id,
});
import pulumi
import pulumi_oci as oci
test_fleet_targets = oci.FleetAppsManagement.get_fleet_targets(fleet_id=test_fleet["id"],
display_name=fleet_target_display_name,
product=fleet_target_product,
resource_display_name=fleet_target_resource_display_name,
resource_id=test_resource["id"])
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.GetFleetTargets(ctx, &fleetappsmanagement.GetFleetTargetsArgs{
FleetId: testFleet.Id,
DisplayName: pulumi.StringRef(fleetTargetDisplayName),
Product: pulumi.StringRef(fleetTargetProduct),
ResourceDisplayName: pulumi.StringRef(fleetTargetResourceDisplayName),
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 testFleetTargets = Oci.FleetAppsManagement.GetFleetTargets.Invoke(new()
{
FleetId = testFleet.Id,
DisplayName = fleetTargetDisplayName,
Product = fleetTargetProduct,
ResourceDisplayName = fleetTargetResourceDisplayName,
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.GetFleetTargetsArgs;
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 testFleetTargets = FleetAppsManagementFunctions.getFleetTargets(GetFleetTargetsArgs.builder()
.fleetId(testFleet.id())
.displayName(fleetTargetDisplayName)
.product(fleetTargetProduct)
.resourceDisplayName(fleetTargetResourceDisplayName)
.resourceId(testResource.id())
.build());
}
}
variables:
testFleetTargets:
fn::invoke:
function: oci:FleetAppsManagement:getFleetTargets
arguments:
fleetId: ${testFleet.id}
displayName: ${fleetTargetDisplayName}
product: ${fleetTargetProduct}
resourceDisplayName: ${fleetTargetResourceDisplayName}
resourceId: ${testResource.id}
Using getFleetTargets
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 getFleetTargets(args: GetFleetTargetsArgs, opts?: InvokeOptions): Promise<GetFleetTargetsResult>
function getFleetTargetsOutput(args: GetFleetTargetsOutputArgs, opts?: InvokeOptions): Output<GetFleetTargetsResult>
def get_fleet_targets(display_name: Optional[str] = None,
filters: Optional[Sequence[_fleetappsmanagement.GetFleetTargetsFilter]] = None,
fleet_id: Optional[str] = None,
product: Optional[str] = None,
resource_display_name: Optional[str] = None,
resource_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetFleetTargetsResult
def get_fleet_targets_output(display_name: Optional[pulumi.Input[str]] = None,
filters: Optional[pulumi.Input[Sequence[pulumi.Input[_fleetappsmanagement.GetFleetTargetsFilterArgs]]]] = None,
fleet_id: Optional[pulumi.Input[str]] = None,
product: 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[GetFleetTargetsResult]
func GetFleetTargets(ctx *Context, args *GetFleetTargetsArgs, opts ...InvokeOption) (*GetFleetTargetsResult, error)
func GetFleetTargetsOutput(ctx *Context, args *GetFleetTargetsOutputArgs, opts ...InvokeOption) GetFleetTargetsResultOutput
> Note: This function is named GetFleetTargets
in the Go SDK.
public static class GetFleetTargets
{
public static Task<GetFleetTargetsResult> InvokeAsync(GetFleetTargetsArgs args, InvokeOptions? opts = null)
public static Output<GetFleetTargetsResult> Invoke(GetFleetTargetsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetFleetTargetsResult> getFleetTargets(GetFleetTargetsArgs args, InvokeOptions options)
public static Output<GetFleetTargetsResult> getFleetTargets(GetFleetTargetsArgs args, InvokeOptions options)
fn::invoke:
function: oci:FleetAppsManagement/getFleetTargets:getFleetTargets
arguments:
# arguments dictionary
The following arguments are supported:
- Fleet
Id This property is required. string - Unique Fleet identifier.
- Display
Name string - A filter to return only resources that match the entire display name given.
- Filters
Changes to this property will trigger replacement.
Fleet Targets Filter> - Product string
- Product Name.
- Resource
Display stringName - Resource Display Name.
- Resource
Id string - Resource Identifier
- Fleet
Id This property is required. string - Unique Fleet identifier.
- Display
Name string - A filter to return only resources that match the entire display name given.
- Filters
Changes to this property will trigger replacement.
Fleet Targets Filter - Product string
- Product Name.
- Resource
Display stringName - Resource Display Name.
- Resource
Id string - Resource Identifier
- fleet
Id This property is required. String - Unique Fleet identifier.
- display
Name String - A filter to return only resources that match the entire display name given.
- filters
Changes to this property will trigger replacement.
Fleet Targets Filter> - product String
- Product Name.
- resource
Display StringName - Resource Display Name.
- resource
Id String - Resource Identifier
- fleet
Id This property is required. string - Unique Fleet identifier.
- display
Name string - A filter to return only resources that match the entire display name given.
- filters
Changes to this property will trigger replacement.
Fleet Targets Filter[] - product string
- Product Name.
- resource
Display stringName - Resource Display Name.
- resource
Id string - Resource Identifier
- fleet_
id This property is required. str - Unique Fleet identifier.
- display_
name str - A filter to return only resources that match the entire display name given.
- filters
Changes to this property will trigger replacement.
Get Fleet Targets Filter] - product str
- Product Name.
- resource_
display_ strname - Resource Display Name.
- resource_
id str - Resource Identifier
- fleet
Id This property is required. String - Unique Fleet identifier.
- display
Name String - A filter to return only resources that match the entire display name given.
- filters
Changes to this property will trigger replacement.
- product String
- Product Name.
- resource
Display StringName - Resource Display Name.
- resource
Id String - Resource Identifier
getFleetTargets Result
The following output properties are available:
- Fleet
Id string - Fleet
Target List<GetCollections Fleet Targets Fleet Target Collection> - The list of fleet_target_collection.
- Id string
- The provider-assigned unique ID for this managed resource.
- 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 Targets Filter> - Product string
- Product to which the target belongs to.
- 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
Target []GetCollections Fleet Targets Fleet Target Collection - The list of fleet_target_collection.
- Id string
- The provider-assigned unique ID for this managed resource.
- 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 Targets Filter - Product string
- Product to which the target belongs to.
- 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
Target List<GetCollections Fleet Targets Fleet Target Collection> - The list of fleet_target_collection.
- id String
- The provider-assigned unique ID for this managed resource.
- 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 Targets Filter> - product String
- Product to which the target belongs to.
- 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
Target GetCollections Fleet Targets Fleet Target Collection[] - The list of fleet_target_collection.
- id string
- The provider-assigned unique ID for this managed resource.
- 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 Targets Filter[] - product string
- Product to which the target belongs to.
- 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_
target_ Sequence[fleetappsmanagement.collections Get Fleet Targets Fleet Target Collection] - The list of fleet_target_collection.
- id str
- The provider-assigned unique ID for this managed 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
- filters
Sequence[fleetappsmanagement.
Get Fleet Targets Filter] - product str
- Product to which the target belongs to.
- 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
Target List<Property Map>Collections - The list of fleet_target_collection.
- id String
- The provider-assigned unique ID for this managed resource.
- 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>
- product String
- Product to which the target belongs to.
- 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
GetFleetTargetsFilter
GetFleetTargetsFleetTargetCollection
- Items
This property is required. List<GetFleet Targets Fleet Target Collection Item> - List of fleetTargets.
- Items
This property is required. []GetFleet Targets Fleet Target Collection Item - List of fleetTargets.
- items
This property is required. List<GetFleet Targets Fleet Target Collection Item> - List of fleetTargets.
- items
This property is required. GetFleet Targets Fleet Target Collection Item[] - List of fleetTargets.
- items
This property is required. Sequence[fleetappsmanagement.Get Fleet Targets Fleet Target Collection Item] - List of fleetTargets.
- items
This property is required. List<Property Map> - List of fleetTargets.
GetFleetTargetsFleetTargetCollectionItem
- Compartment
Id This property is required. string - Tenancy OCID
- Compliance
State This property is required. string - The last known compliance state of the target.
- Display
Name This property is required. string - A filter to return only resources that match the entire display name given.
- Id
This property is required. string - The OCID of the resource.
- Is
Last Discovery Attempt Successful This property is required. bool - A boolean flag that represents whether the last discovery attempt was successful.
- Product
This property is required. string - Product Name.
- Resources
This property is required. List<GetFleet Targets Fleet Target Collection Item Resource> - Resource Information for the Target.
- State
This property is required. string - The current state of the FleetTarget.
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"}
- Time
Of Last Discovery Attempt This property is required. string - The time when last discovery was attempted.
- Time
Of Last Successful Discovery This property is required. string - The time when the last successful discovery was made.
- Version
This property is required. string - Current version of target.
- Compartment
Id This property is required. string - Tenancy OCID
- Compliance
State This property is required. string - The last known compliance state of the target.
- Display
Name This property is required. string - A filter to return only resources that match the entire display name given.
- Id
This property is required. string - The OCID of the resource.
- Is
Last Discovery Attempt Successful This property is required. bool - A boolean flag that represents whether the last discovery attempt was successful.
- Product
This property is required. string - Product Name.
- Resources
This property is required. []GetFleet Targets Fleet Target Collection Item Resource - Resource Information for the Target.
- State
This property is required. string - The current state of the FleetTarget.
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"}
- Time
Of Last Discovery Attempt This property is required. string - The time when last discovery was attempted.
- Time
Of Last Successful Discovery This property is required. string - The time when the last successful discovery was made.
- Version
This property is required. string - Current version of target.
- compartment
Id This property is required. String - Tenancy OCID
- compliance
State This property is required. String - The last known compliance state of the target.
- display
Name This property is required. String - A filter to return only resources that match the entire display name given.
- id
This property is required. String - The OCID of the resource.
- is
Last Discovery Attempt Successful This property is required. Boolean - A boolean flag that represents whether the last discovery attempt was successful.
- product
This property is required. String - Product Name.
- resources
This property is required. List<GetFleet Targets Fleet Target Collection Item Resource> - Resource Information for the Target.
- state
This property is required. String - The current state of the FleetTarget.
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"}
- time
Of Last Discovery Attempt This property is required. String - The time when last discovery was attempted.
- time
Of Last Successful Discovery This property is required. String - The time when the last successful discovery was made.
- version
This property is required. String - Current version of target.
- compartment
Id This property is required. string - Tenancy OCID
- compliance
State This property is required. string - The last known compliance state of the target.
- display
Name This property is required. string - A filter to return only resources that match the entire display name given.
- id
This property is required. string - The OCID of the resource.
- is
Last Discovery Attempt Successful This property is required. boolean - A boolean flag that represents whether the last discovery attempt was successful.
- product
This property is required. string - Product Name.
- resources
This property is required. GetFleet Targets Fleet Target Collection Item Resource[] - Resource Information for the Target.
- state
This property is required. string - The current state of the FleetTarget.
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"}
- time
Of Last Discovery Attempt This property is required. string - The time when last discovery was attempted.
- time
Of Last Successful Discovery This property is required. string - The time when the last successful discovery was made.
- version
This property is required. string - Current version of target.
- compartment_
id This property is required. str - Tenancy OCID
- compliance_
state This property is required. str - The last known compliance state of the target.
- display_
name This property is required. str - A filter to return only resources that match the entire display name given.
- id
This property is required. str - The OCID of the resource.
- is_
last_ discovery_ attempt_ successful This property is required. bool - A boolean flag that represents whether the last discovery attempt was successful.
- product
This property is required. str - Product Name.
- resources
This property is required. Sequence[fleetappsmanagement.Get Fleet Targets Fleet Target Collection Item Resource] - Resource Information for the Target.
- state
This property is required. str - The current state of the FleetTarget.
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"}
- time_
of_ last_ discovery_ attempt This property is required. str - The time when last discovery was attempted.
- time_
of_ last_ successful_ discovery This property is required. str - The time when the last successful discovery was made.
- version
This property is required. str - Current version of target.
- compartment
Id This property is required. String - Tenancy OCID
- compliance
State This property is required. String - The last known compliance state of the target.
- display
Name This property is required. String - A filter to return only resources that match the entire display name given.
- id
This property is required. String - The OCID of the resource.
- is
Last Discovery Attempt Successful This property is required. Boolean - A boolean flag that represents whether the last discovery attempt was successful.
- product
This property is required. String - Product Name.
- resources
This property is required. List<Property Map> - Resource Information for the Target.
- state
This property is required. String - The current state of the FleetTarget.
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"}
- time
Of Last Discovery Attempt This property is required. String - The time when last discovery was attempted.
- time
Of Last Successful Discovery This property is required. String - The time when the last successful discovery was made.
- version
This property is required. String - Current version of target.
GetFleetTargetsFleetTargetCollectionItemResource
- Resource
Display Name This property is required. string - Resource Display Name.
- Resource
Id This property is required. string - Resource Identifier
- Resource
Display Name This property is required. string - Resource Display Name.
- Resource
Id This property is required. string - Resource Identifier
- resource
Display Name This property is required. String - Resource Display Name.
- resource
Id This property is required. String - Resource Identifier
- resource
Display Name This property is required. string - Resource Display Name.
- resource
Id 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
- resource
Display Name This property is required. String - Resource Display Name.
- resource
Id 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.