import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * This data source provides the list of Schedules in Oracle Cloud Infrastructure Resource Scheduler service. * * This API gets a list of schedules. You must provide either a compartmentId or a scheduleId or both. You can list resources in this compartment [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). This is required unless a specific schedule ID is passed. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testSchedules = oci.resourcescheduler.getSchedules({ * compartmentId: compartmentId, * displayName: scheduleDisplayName, * resourceId: testResource.id, * }); * ``` */ export declare function getSchedules(args?: GetSchedulesArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getSchedules. */ export interface GetSchedulesArgs { /** * This is the [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which to list resources. You need to at least provide either `compartmentId` or `scheduleId` or both. */ compartmentId?: string; /** * This is a filter to return only resources that match the given display name exactly. */ displayName?: string; filters?: inputs.ResourceScheduler.GetSchedulesFilter[]; /** * This is the [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the resource affected by the work request. */ resourceId?: string; /** * This is the [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the schedule. You need to at least provide either `compartmentId` or `scheduleId` or both. */ scheduleId?: string; /** * This is a filter to return only resources that match the given lifecycle state. The state value is case-insensitive. */ state?: string; } /** * A collection of values returned by getSchedules. */ export interface GetSchedulesResult { /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which the schedule is created */ readonly compartmentId?: string; /** * This is a user-friendly name for the schedule. It does not have to be unique, and it's changeable. */ readonly displayName?: string; readonly filters?: outputs.ResourceScheduler.GetSchedulesFilter[]; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly resourceId?: string; /** * The list of schedule_collection. */ readonly scheduleCollections: outputs.ResourceScheduler.GetSchedulesScheduleCollection[]; readonly scheduleId?: string; /** * This is the current state of a schedule. */ readonly state?: string; } /** * This data source provides the list of Schedules in Oracle Cloud Infrastructure Resource Scheduler service. * * This API gets a list of schedules. You must provide either a compartmentId or a scheduleId or both. You can list resources in this compartment [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). This is required unless a specific schedule ID is passed. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testSchedules = oci.resourcescheduler.getSchedules({ * compartmentId: compartmentId, * displayName: scheduleDisplayName, * resourceId: testResource.id, * }); * ``` */ export declare function getSchedulesOutput(args?: GetSchedulesOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getSchedules. */ export interface GetSchedulesOutputArgs { /** * This is the [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which to list resources. You need to at least provide either `compartmentId` or `scheduleId` or both. */ compartmentId?: pulumi.Input; /** * This is a filter to return only resources that match the given display name exactly. */ displayName?: pulumi.Input; filters?: pulumi.Input[] | undefined>; /** * This is the [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the resource affected by the work request. */ resourceId?: pulumi.Input; /** * This is the [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the schedule. You need to at least provide either `compartmentId` or `scheduleId` or both. */ scheduleId?: pulumi.Input; /** * This is a filter to return only resources that match the given lifecycle state. The state value is case-insensitive. */ state?: pulumi.Input; } //# sourceMappingURL=getSchedules.d.ts.map