1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. FleetAppsManagement
  5. getFleetResources
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

oci.FleetAppsManagement.getFleetResources

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi

    This data source provides the list of Fleet Resources in Oracle Cloud Infrastructure Fleet Apps Management service.

    Returns a list of FleetResources.

    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,
        tenancyId: testTenancy.id,
    });
    
    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,
        tenancy_id=test_tenancy["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.GetFleetResources(ctx, &fleetappsmanagement.GetFleetResourcesArgs{
    			FleetId:           testFleet.Id,
    			DisplayName:       pulumi.StringRef(fleetResourceDisplayName),
    			FleetResourceType: pulumi.StringRef(fleetResourceFleetResourceType),
    			Id:                pulumi.StringRef(fleetResourceId),
    			State:             pulumi.StringRef(fleetResourceState),
    			TenancyId:         pulumi.StringRef(testTenancy.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 testFleetResources = Oci.FleetAppsManagement.GetFleetResources.Invoke(new()
        {
            FleetId = testFleet.Id,
            DisplayName = fleetResourceDisplayName,
            FleetResourceType = fleetResourceFleetResourceType,
            Id = fleetResourceId,
            State = fleetResourceState,
            TenancyId = testTenancy.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.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)
                .tenancyId(testTenancy.id())
                .build());
    
        }
    }
    
    variables:
      testFleetResources:
        fn::invoke:
          Function: oci:FleetAppsManagement:getFleetResources
          Arguments:
            fleetId: ${testFleet.id}
            displayName: ${fleetResourceDisplayName}
            fleetResourceType: ${fleetResourceFleetResourceType}
            id: ${fleetResourceId}
            state: ${fleetResourceState}
            tenancyId: ${testTenancy.id}
    

    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[_fleetappsmanagement.GetFleetResourcesFilter]] = None,
                            fleet_id: Optional[str] = None,
                            fleet_resource_type: Optional[str] = None,
                            id: Optional[str] = None,
                            state: Optional[str] = None,
                            tenancy_id: 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[_fleetappsmanagement.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,
                            tenancy_id: 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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:FleetAppsManagement/getFleetResources:getFleetResources
      arguments:
        # arguments dictionary

    The following arguments are supported:

    FleetId string
    unique Fleet identifier
    DisplayName string
    A filter to return only resources that match the entire display name given.
    Filters List<GetFleetResourcesFilter>
    FleetResourceType string
    A filter to return resources that match the Type
    Id string
    unique FleetResource identifier
    State string
    A filter to return only resources their lifecycleState matches the given lifecycleState.
    TenancyId string
    Resource Tenancy Id
    FleetId string
    unique Fleet identifier
    DisplayName string
    A filter to return only resources that match the entire display name given.
    Filters []GetFleetResourcesFilter
    FleetResourceType string
    A filter to return resources that match the Type
    Id string
    unique FleetResource identifier
    State string
    A filter to return only resources their lifecycleState matches the given lifecycleState.
    TenancyId string
    Resource Tenancy Id
    fleetId String
    unique Fleet identifier
    displayName String
    A filter to return only resources that match the entire display name given.
    filters List<GetFleetResourcesFilter>
    fleetResourceType String
    A filter to return resources that match the Type
    id String
    unique FleetResource identifier
    state String
    A filter to return only resources their lifecycleState matches the given lifecycleState.
    tenancyId String
    Resource Tenancy Id
    fleetId string
    unique Fleet identifier
    displayName string
    A filter to return only resources that match the entire display name given.
    filters GetFleetResourcesFilter[]
    fleetResourceType string
    A filter to return resources that match the Type
    id string
    unique FleetResource identifier
    state string
    A filter to return only resources their lifecycleState matches the given lifecycleState.
    tenancyId string
    Resource Tenancy Id
    fleet_id str
    unique Fleet identifier
    display_name str
    A filter to return only resources that match the entire display name given.
    filters Sequence[fleetappsmanagement.GetFleetResourcesFilter]
    fleet_resource_type str
    A filter to return resources that match the Type
    id str
    unique FleetResource identifier
    state str
    A filter to return only resources their lifecycleState matches the given lifecycleState.
    tenancy_id str
    Resource Tenancy Id
    fleetId String
    unique Fleet identifier
    displayName String
    A filter to return only resources that match the entire display name given.
    filters List<Property Map>
    fleetResourceType String
    A filter to return resources that match the Type
    id String
    unique FleetResource identifier
    state String
    A filter to return only resources their lifecycleState matches the given lifecycleState.
    tenancyId String
    Resource Tenancy Id

    getFleetResources Result

    The following output properties are available:

    FleetId string
    FleetResourceCollections List<GetFleetResourcesFleetResourceCollection>
    The list of fleet_resource_collection.
    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<GetFleetResourcesFilter>
    FleetResourceType string
    Id string
    The unique id of the resource.
    State string
    The current state of the FleetResource.
    TenancyId string
    OCID of the tenancy to which the resource belongs to.
    FleetId string
    FleetResourceCollections []GetFleetResourcesFleetResourceCollection
    The list of fleet_resource_collection.
    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 []GetFleetResourcesFilter
    FleetResourceType string
    Id string
    The unique id of the resource.
    State string
    The current state of the FleetResource.
    TenancyId string
    OCID of the tenancy to which the resource belongs to.
    fleetId String
    fleetResourceCollections List<GetFleetResourcesFleetResourceCollection>
    The list of fleet_resource_collection.
    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<GetFleetResourcesFilter>
    fleetResourceType String
    id String
    The unique id of the resource.
    state String
    The current state of the FleetResource.
    tenancyId String
    OCID of the tenancy to which the resource belongs to.
    fleetId string
    fleetResourceCollections GetFleetResourcesFleetResourceCollection[]
    The list of fleet_resource_collection.
    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 GetFleetResourcesFilter[]
    fleetResourceType string
    id string
    The unique id of the resource.
    state string
    The current state of the FleetResource.
    tenancyId string
    OCID of the tenancy to which the resource belongs to.
    fleet_id str
    fleet_resource_collections Sequence[fleetappsmanagement.GetFleetResourcesFleetResourceCollection]
    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[fleetappsmanagement.GetFleetResourcesFilter]
    fleet_resource_type str
    id str
    The unique id of the resource.
    state str
    The current state of the FleetResource.
    tenancy_id str
    OCID of the tenancy to which the resource belongs to.
    fleetId String
    fleetResourceCollections List<Property Map>
    The list of fleet_resource_collection.
    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>
    fleetResourceType String
    id String
    The unique id of the resource.
    state String
    The current state of the FleetResource.
    tenancyId String
    OCID of the tenancy to which the resource belongs to.

    Supporting Types

    GetFleetResourcesFilter

    Name string
    Values List<string>
    Regex bool
    Name string
    Values []string
    Regex bool
    name String
    values List<String>
    regex Boolean
    name string
    values string[]
    regex boolean
    name str
    values Sequence[str]
    regex bool
    name String
    values List<String>
    regex Boolean

    GetFleetResourcesFleetResourceCollection

    GetFleetResourcesFleetResourceCollectionItem

    ApplicationType string
    Application Type associated with the resource when resource type is fleet.Will only be returned for ENVIRONMENT fleets that are part of a GROUP Fleet.
    Compartment string
    Resource Compartment
    CompartmentId string
    OCID of the compartment to which the resource belongs to.
    ComplianceState string
    Compliance State of the Resource
    DisplayName string
    A filter to return only resources that match the entire display name given.
    EnvironmentType string
    Environment Type associated with the Fleet when resource type is fleet.Will only be returned for ENVIRONMENT fleets that are part of a GROUP Fleet.
    FleetId string
    unique Fleet identifier
    Id string
    unique FleetResource identifier
    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 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
    A filter to return only resources their lifecycleState matches the given lifecycleState.
    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
    Resource Tenancy Id
    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 resource type is fleet.Will only be returned for ENVIRONMENT fleets that are part of a GROUP Fleet.
    Compartment string
    Resource Compartment
    CompartmentId string
    OCID of the compartment to which the resource belongs to.
    ComplianceState string
    Compliance State of the Resource
    DisplayName string
    A filter to return only resources that match the entire display name given.
    EnvironmentType string
    Environment Type associated with the Fleet when resource type is fleet.Will only be returned for ENVIRONMENT fleets that are part of a GROUP Fleet.
    FleetId string
    unique Fleet identifier
    Id string
    unique FleetResource identifier
    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 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
    A filter to return only resources their lifecycleState matches the given lifecycleState.
    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
    Resource Tenancy Id
    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 resource type is fleet.Will only be returned for ENVIRONMENT fleets that are part of a GROUP Fleet.
    compartment String
    Resource Compartment
    compartmentId String
    OCID of the compartment to which the resource belongs to.
    complianceState String
    Compliance State of the Resource
    displayName String
    A filter to return only resources that match the entire display name given.
    environmentType String
    Environment Type associated with the Fleet when resource type is fleet.Will only be returned for ENVIRONMENT fleets that are part of a GROUP Fleet.
    fleetId String
    unique Fleet identifier
    id String
    unique FleetResource identifier
    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 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
    A filter to return only resources their lifecycleState matches the given lifecycleState.
    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
    Resource Tenancy Id
    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 resource type is fleet.Will only be returned for ENVIRONMENT fleets that are part of a GROUP Fleet.
    compartment string
    Resource Compartment
    compartmentId string
    OCID of the compartment to which the resource belongs to.
    complianceState string
    Compliance State of the Resource
    displayName string
    A filter to return only resources that match the entire display name given.
    environmentType string
    Environment Type associated with the Fleet when resource type is fleet.Will only be returned for ENVIRONMENT fleets that are part of a GROUP Fleet.
    fleetId string
    unique Fleet identifier
    id string
    unique FleetResource identifier
    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 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
    A filter to return only resources their lifecycleState matches the given lifecycleState.
    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
    Resource Tenancy Id
    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 resource type is fleet.Will only be returned for ENVIRONMENT fleets that are part of a GROUP Fleet.
    compartment str
    Resource Compartment
    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 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
    unique FleetResource 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.
    product str
    Product associated with the resource when 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 their lifecycleState matches the given lifecycleState.
    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
    Resource Tenancy Id
    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 resource type is fleet.Will only be returned for ENVIRONMENT fleets that are part of a GROUP Fleet.
    compartment String
    Resource Compartment
    compartmentId String
    OCID of the compartment to which the resource belongs to.
    complianceState String
    Compliance State of the Resource
    displayName String
    A filter to return only resources that match the entire display name given.
    environmentType String
    Environment Type associated with the Fleet when resource type is fleet.Will only be returned for ENVIRONMENT fleets that are part of a GROUP Fleet.
    fleetId String
    unique Fleet identifier
    id String
    unique FleetResource identifier
    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 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
    A filter to return only resources their lifecycleState matches the given lifecycleState.
    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
    Resource Tenancy Id
    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.
    oci logo
    Oracle Cloud Infrastructure v2.17.0 published on Friday, Nov 15, 2024 by Pulumi