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

oci.FleetAppsManagement.getSchedulerDefinitionScheduledFleets

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 Scheduler Definition Scheduled Fleets in Oracle Cloud Infrastructure Fleet Apps Management service.

    Returns a list of ScheduledFleets

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testSchedulerDefinitionScheduledFleets = oci.FleetAppsManagement.getSchedulerDefinitionScheduledFleets({
        schedulerDefinitionId: testSchedulerDefinition.id,
        compartmentId: compartmentId,
        displayName: schedulerDefinitionScheduledFleetDisplayName,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_scheduler_definition_scheduled_fleets = oci.FleetAppsManagement.get_scheduler_definition_scheduled_fleets(scheduler_definition_id=test_scheduler_definition["id"],
        compartment_id=compartment_id,
        display_name=scheduler_definition_scheduled_fleet_display_name)
    
    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.GetSchedulerDefinitionScheduledFleets(ctx, &fleetappsmanagement.GetSchedulerDefinitionScheduledFleetsArgs{
    			SchedulerDefinitionId: testSchedulerDefinition.Id,
    			CompartmentId:         pulumi.StringRef(compartmentId),
    			DisplayName:           pulumi.StringRef(schedulerDefinitionScheduledFleetDisplayName),
    		}, 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 testSchedulerDefinitionScheduledFleets = Oci.FleetAppsManagement.GetSchedulerDefinitionScheduledFleets.Invoke(new()
        {
            SchedulerDefinitionId = testSchedulerDefinition.Id,
            CompartmentId = compartmentId,
            DisplayName = schedulerDefinitionScheduledFleetDisplayName,
        });
    
    });
    
    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.GetSchedulerDefinitionScheduledFleetsArgs;
    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 testSchedulerDefinitionScheduledFleets = FleetAppsManagementFunctions.getSchedulerDefinitionScheduledFleets(GetSchedulerDefinitionScheduledFleetsArgs.builder()
                .schedulerDefinitionId(testSchedulerDefinition.id())
                .compartmentId(compartmentId)
                .displayName(schedulerDefinitionScheduledFleetDisplayName)
                .build());
    
        }
    }
    
    variables:
      testSchedulerDefinitionScheduledFleets:
        fn::invoke:
          Function: oci:FleetAppsManagement:getSchedulerDefinitionScheduledFleets
          Arguments:
            schedulerDefinitionId: ${testSchedulerDefinition.id}
            compartmentId: ${compartmentId}
            displayName: ${schedulerDefinitionScheduledFleetDisplayName}
    

    Using getSchedulerDefinitionScheduledFleets

    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 getSchedulerDefinitionScheduledFleets(args: GetSchedulerDefinitionScheduledFleetsArgs, opts?: InvokeOptions): Promise<GetSchedulerDefinitionScheduledFleetsResult>
    function getSchedulerDefinitionScheduledFleetsOutput(args: GetSchedulerDefinitionScheduledFleetsOutputArgs, opts?: InvokeOptions): Output<GetSchedulerDefinitionScheduledFleetsResult>
    def get_scheduler_definition_scheduled_fleets(compartment_id: Optional[str] = None,
                                                  display_name: Optional[str] = None,
                                                  filters: Optional[Sequence[_fleetappsmanagement.GetSchedulerDefinitionScheduledFleetsFilter]] = None,
                                                  scheduler_definition_id: Optional[str] = None,
                                                  opts: Optional[InvokeOptions] = None) -> GetSchedulerDefinitionScheduledFleetsResult
    def get_scheduler_definition_scheduled_fleets_output(compartment_id: Optional[pulumi.Input[str]] = None,
                                                  display_name: Optional[pulumi.Input[str]] = None,
                                                  filters: Optional[pulumi.Input[Sequence[pulumi.Input[_fleetappsmanagement.GetSchedulerDefinitionScheduledFleetsFilterArgs]]]] = None,
                                                  scheduler_definition_id: Optional[pulumi.Input[str]] = None,
                                                  opts: Optional[InvokeOptions] = None) -> Output[GetSchedulerDefinitionScheduledFleetsResult]
    func GetSchedulerDefinitionScheduledFleets(ctx *Context, args *GetSchedulerDefinitionScheduledFleetsArgs, opts ...InvokeOption) (*GetSchedulerDefinitionScheduledFleetsResult, error)
    func GetSchedulerDefinitionScheduledFleetsOutput(ctx *Context, args *GetSchedulerDefinitionScheduledFleetsOutputArgs, opts ...InvokeOption) GetSchedulerDefinitionScheduledFleetsResultOutput

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

    public static class GetSchedulerDefinitionScheduledFleets 
    {
        public static Task<GetSchedulerDefinitionScheduledFleetsResult> InvokeAsync(GetSchedulerDefinitionScheduledFleetsArgs args, InvokeOptions? opts = null)
        public static Output<GetSchedulerDefinitionScheduledFleetsResult> Invoke(GetSchedulerDefinitionScheduledFleetsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetSchedulerDefinitionScheduledFleetsResult> getSchedulerDefinitionScheduledFleets(GetSchedulerDefinitionScheduledFleetsArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:FleetAppsManagement/getSchedulerDefinitionScheduledFleets:getSchedulerDefinitionScheduledFleets
      arguments:
        # arguments dictionary

    The following arguments are supported:

    SchedulerDefinitionId string
    unique SchedulerDefinition 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 List<GetSchedulerDefinitionScheduledFleetsFilter>
    SchedulerDefinitionId string
    unique SchedulerDefinition 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 []GetSchedulerDefinitionScheduledFleetsFilter
    schedulerDefinitionId String
    unique SchedulerDefinition 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 List<GetSchedulerDefinitionScheduledFleetsFilter>
    schedulerDefinitionId string
    unique SchedulerDefinition 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 GetSchedulerDefinitionScheduledFleetsFilter[]
    scheduler_definition_id str
    unique SchedulerDefinition 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 Sequence[fleetappsmanagement.GetSchedulerDefinitionScheduledFleetsFilter]
    schedulerDefinitionId String
    unique SchedulerDefinition 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 List<Property Map>

    getSchedulerDefinitionScheduledFleets Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    ScheduledFleetCollections List<GetSchedulerDefinitionScheduledFleetsScheduledFleetCollection>
    The list of scheduled_fleet_collection.
    SchedulerDefinitionId string
    CompartmentId string
    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<GetSchedulerDefinitionScheduledFleetsFilter>
    Id string
    The provider-assigned unique ID for this managed resource.
    ScheduledFleetCollections []GetSchedulerDefinitionScheduledFleetsScheduledFleetCollection
    The list of scheduled_fleet_collection.
    SchedulerDefinitionId string
    CompartmentId string
    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 []GetSchedulerDefinitionScheduledFleetsFilter
    id String
    The provider-assigned unique ID for this managed resource.
    scheduledFleetCollections List<GetSchedulerDefinitionScheduledFleetsScheduledFleetCollection>
    The list of scheduled_fleet_collection.
    schedulerDefinitionId String
    compartmentId String
    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<GetSchedulerDefinitionScheduledFleetsFilter>
    id string
    The provider-assigned unique ID for this managed resource.
    scheduledFleetCollections GetSchedulerDefinitionScheduledFleetsScheduledFleetCollection[]
    The list of scheduled_fleet_collection.
    schedulerDefinitionId string
    compartmentId string
    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 GetSchedulerDefinitionScheduledFleetsFilter[]
    id str
    The provider-assigned unique ID for this managed resource.
    scheduled_fleet_collections Sequence[fleetappsmanagement.GetSchedulerDefinitionScheduledFleetsScheduledFleetCollection]
    The list of scheduled_fleet_collection.
    scheduler_definition_id str
    compartment_id str
    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.GetSchedulerDefinitionScheduledFleetsFilter]
    id String
    The provider-assigned unique ID for this managed resource.
    scheduledFleetCollections List<Property Map>
    The list of scheduled_fleet_collection.
    schedulerDefinitionId String
    compartmentId String
    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>

    Supporting Types

    GetSchedulerDefinitionScheduledFleetsFilter

    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

    GetSchedulerDefinitionScheduledFleetsScheduledFleetCollection

    items List<Property Map>
    List of ScheduledFleets.

    GetSchedulerDefinitionScheduledFleetsScheduledFleetCollectionItem

    ActionGroupTypes List<string>
    All ActionGroup Types part of the schedule.
    ApplicationTypes List<string>
    All application types part of the schedule.
    CountOfAffectedResources int
    Count of Resources affected by the Schedule
    CountOfAffectedTargets int
    Count of Targets affected by the Schedule
    DisplayName string
    A filter to return only resources that match the entire display name given.
    Id string
    The OCID of the resource.
    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"}
    TenancyId string
    OCID of the tenancy to which the resource belongs to.
    ActionGroupTypes []string
    All ActionGroup Types part of the schedule.
    ApplicationTypes []string
    All application types part of the schedule.
    CountOfAffectedResources int
    Count of Resources affected by the Schedule
    CountOfAffectedTargets int
    Count of Targets affected by the Schedule
    DisplayName string
    A filter to return only resources that match the entire display name given.
    Id string
    The OCID of the resource.
    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"}
    TenancyId string
    OCID of the tenancy to which the resource belongs to.
    actionGroupTypes List<String>
    All ActionGroup Types part of the schedule.
    applicationTypes List<String>
    All application types part of the schedule.
    countOfAffectedResources Integer
    Count of Resources affected by the Schedule
    countOfAffectedTargets Integer
    Count of Targets affected by the Schedule
    displayName String
    A filter to return only resources that match the entire display name given.
    id String
    The OCID of the resource.
    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"}
    tenancyId String
    OCID of the tenancy to which the resource belongs to.
    actionGroupTypes string[]
    All ActionGroup Types part of the schedule.
    applicationTypes string[]
    All application types part of the schedule.
    countOfAffectedResources number
    Count of Resources affected by the Schedule
    countOfAffectedTargets number
    Count of Targets affected by the Schedule
    displayName string
    A filter to return only resources that match the entire display name given.
    id string
    The OCID of the resource.
    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"}
    tenancyId string
    OCID of the tenancy to which the resource belongs to.
    action_group_types Sequence[str]
    All ActionGroup Types part of the schedule.
    application_types Sequence[str]
    All application types part of the schedule.
    count_of_affected_resources int
    Count of Resources affected by the Schedule
    count_of_affected_targets int
    Count of Targets affected by the Schedule
    display_name str
    A filter to return only resources that match the entire display name given.
    id str
    The OCID of the resource.
    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"}
    tenancy_id str
    OCID of the tenancy to which the resource belongs to.
    actionGroupTypes List<String>
    All ActionGroup Types part of the schedule.
    applicationTypes List<String>
    All application types part of the schedule.
    countOfAffectedResources Number
    Count of Resources affected by the Schedule
    countOfAffectedTargets Number
    Count of Targets affected by the Schedule
    displayName String
    A filter to return only resources that match the entire display name given.
    id String
    The OCID of the resource.
    systemTags Map<String>
    System tags for this resource. Each key is predefined and scoped to a namespace. Example: {"orcl-cloud.free-tier-retained": "true"}
    tenancyId String
    OCID of the tenancy to which the resource belongs to.

    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