1. Packages
  2. Azure Classic
  3. API Docs
  4. datafactory
  5. getTriggerSchedule

We recommend using Azure Native.

Azure Classic v5.81.0 published on Monday, Jun 24, 2024 by Pulumi

azure.datafactory.getTriggerSchedule

Explore with Pulumi AI

azure logo

We recommend using Azure Native.

Azure Classic v5.81.0 published on Monday, Jun 24, 2024 by Pulumi

    Use this data source to access information about a trigger schedule in Azure Data Factory.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as azure from "@pulumi/azure";
    
    const example = azure.datafactory.getTriggerSchedule({
        name: "example_trigger",
        dataFactoryId: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.DataFactory/factories/datafactory1",
    });
    export const id = example.then(example => example.id);
    
    import pulumi
    import pulumi_azure as azure
    
    example = azure.datafactory.get_trigger_schedule(name="example_trigger",
        data_factory_id="/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.DataFactory/factories/datafactory1")
    pulumi.export("id", example.id)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/datafactory"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		example, err := datafactory.LookupTriggerSchedule(ctx, &datafactory.LookupTriggerScheduleArgs{
    			Name:          "example_trigger",
    			DataFactoryId: "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.DataFactory/factories/datafactory1",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("id", example.Id)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Azure = Pulumi.Azure;
    
    return await Deployment.RunAsync(() => 
    {
        var example = Azure.DataFactory.GetTriggerSchedule.Invoke(new()
        {
            Name = "example_trigger",
            DataFactoryId = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.DataFactory/factories/datafactory1",
        });
    
        return new Dictionary<string, object?>
        {
            ["id"] = example.Apply(getTriggerScheduleResult => getTriggerScheduleResult.Id),
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.azure.datafactory.DatafactoryFunctions;
    import com.pulumi.azure.datafactory.inputs.GetTriggerScheduleArgs;
    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 example = DatafactoryFunctions.getTriggerSchedule(GetTriggerScheduleArgs.builder()
                .name("example_trigger")
                .dataFactoryId("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.DataFactory/factories/datafactory1")
                .build());
    
            ctx.export("id", example.applyValue(getTriggerScheduleResult -> getTriggerScheduleResult.id()));
        }
    }
    
    variables:
      example:
        fn::invoke:
          Function: azure:datafactory:getTriggerSchedule
          Arguments:
            name: example_trigger
            dataFactoryId: /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.DataFactory/factories/datafactory1
    outputs:
      id: ${example.id}
    

    Using getTriggerSchedule

    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 getTriggerSchedule(args: GetTriggerScheduleArgs, opts?: InvokeOptions): Promise<GetTriggerScheduleResult>
    function getTriggerScheduleOutput(args: GetTriggerScheduleOutputArgs, opts?: InvokeOptions): Output<GetTriggerScheduleResult>
    def get_trigger_schedule(data_factory_id: Optional[str] = None,
                             name: Optional[str] = None,
                             opts: Optional[InvokeOptions] = None) -> GetTriggerScheduleResult
    def get_trigger_schedule_output(data_factory_id: Optional[pulumi.Input[str]] = None,
                             name: Optional[pulumi.Input[str]] = None,
                             opts: Optional[InvokeOptions] = None) -> Output[GetTriggerScheduleResult]
    func LookupTriggerSchedule(ctx *Context, args *LookupTriggerScheduleArgs, opts ...InvokeOption) (*LookupTriggerScheduleResult, error)
    func LookupTriggerScheduleOutput(ctx *Context, args *LookupTriggerScheduleOutputArgs, opts ...InvokeOption) LookupTriggerScheduleResultOutput

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

    public static class GetTriggerSchedule 
    {
        public static Task<GetTriggerScheduleResult> InvokeAsync(GetTriggerScheduleArgs args, InvokeOptions? opts = null)
        public static Output<GetTriggerScheduleResult> Invoke(GetTriggerScheduleInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetTriggerScheduleResult> getTriggerSchedule(GetTriggerScheduleArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: azure:datafactory/getTriggerSchedule:getTriggerSchedule
      arguments:
        # arguments dictionary

    The following arguments are supported:

    DataFactoryId string
    The ID of the Azure Data Factory to fetch trigger schedule from.
    Name string
    The name of the trigger schedule.
    DataFactoryId string
    The ID of the Azure Data Factory to fetch trigger schedule from.
    Name string
    The name of the trigger schedule.
    dataFactoryId String
    The ID of the Azure Data Factory to fetch trigger schedule from.
    name String
    The name of the trigger schedule.
    dataFactoryId string
    The ID of the Azure Data Factory to fetch trigger schedule from.
    name string
    The name of the trigger schedule.
    data_factory_id str
    The ID of the Azure Data Factory to fetch trigger schedule from.
    name str
    The name of the trigger schedule.
    dataFactoryId String
    The ID of the Azure Data Factory to fetch trigger schedule from.
    name String
    The name of the trigger schedule.

    getTriggerSchedule Result

    The following output properties are available:

    Activated bool
    Specifies if the Data Factory Schedule Trigger is activated.
    Annotations List<string>
    List of tags that can be used for describing the Data Factory Schedule Trigger.
    DataFactoryId string
    Description string
    The Schedule Trigger's description.
    EndTime string
    The time the Schedule Trigger should end. The time will be represented in UTC.
    Frequency string
    The trigger frequency.
    Id string
    The provider-assigned unique ID for this managed resource.
    Interval int
    The interval for how often the trigger occurs.
    Name string
    PipelineName string
    The Data Factory Pipeline name that the trigger will act on.
    Schedules List<GetTriggerScheduleSchedule>
    A schedule block as described below, which further specifies the recurrence schedule for the trigger.
    StartTime string
    The time the Schedule Trigger will start. The time will be represented in UTC.
    TimeZone string
    The timezone of the start/end time.
    Activated bool
    Specifies if the Data Factory Schedule Trigger is activated.
    Annotations []string
    List of tags that can be used for describing the Data Factory Schedule Trigger.
    DataFactoryId string
    Description string
    The Schedule Trigger's description.
    EndTime string
    The time the Schedule Trigger should end. The time will be represented in UTC.
    Frequency string
    The trigger frequency.
    Id string
    The provider-assigned unique ID for this managed resource.
    Interval int
    The interval for how often the trigger occurs.
    Name string
    PipelineName string
    The Data Factory Pipeline name that the trigger will act on.
    Schedules []GetTriggerScheduleSchedule
    A schedule block as described below, which further specifies the recurrence schedule for the trigger.
    StartTime string
    The time the Schedule Trigger will start. The time will be represented in UTC.
    TimeZone string
    The timezone of the start/end time.
    activated Boolean
    Specifies if the Data Factory Schedule Trigger is activated.
    annotations List<String>
    List of tags that can be used for describing the Data Factory Schedule Trigger.
    dataFactoryId String
    description String
    The Schedule Trigger's description.
    endTime String
    The time the Schedule Trigger should end. The time will be represented in UTC.
    frequency String
    The trigger frequency.
    id String
    The provider-assigned unique ID for this managed resource.
    interval Integer
    The interval for how often the trigger occurs.
    name String
    pipelineName String
    The Data Factory Pipeline name that the trigger will act on.
    schedules List<GetTriggerScheduleSchedule>
    A schedule block as described below, which further specifies the recurrence schedule for the trigger.
    startTime String
    The time the Schedule Trigger will start. The time will be represented in UTC.
    timeZone String
    The timezone of the start/end time.
    activated boolean
    Specifies if the Data Factory Schedule Trigger is activated.
    annotations string[]
    List of tags that can be used for describing the Data Factory Schedule Trigger.
    dataFactoryId string
    description string
    The Schedule Trigger's description.
    endTime string
    The time the Schedule Trigger should end. The time will be represented in UTC.
    frequency string
    The trigger frequency.
    id string
    The provider-assigned unique ID for this managed resource.
    interval number
    The interval for how often the trigger occurs.
    name string
    pipelineName string
    The Data Factory Pipeline name that the trigger will act on.
    schedules GetTriggerScheduleSchedule[]
    A schedule block as described below, which further specifies the recurrence schedule for the trigger.
    startTime string
    The time the Schedule Trigger will start. The time will be represented in UTC.
    timeZone string
    The timezone of the start/end time.
    activated bool
    Specifies if the Data Factory Schedule Trigger is activated.
    annotations Sequence[str]
    List of tags that can be used for describing the Data Factory Schedule Trigger.
    data_factory_id str
    description str
    The Schedule Trigger's description.
    end_time str
    The time the Schedule Trigger should end. The time will be represented in UTC.
    frequency str
    The trigger frequency.
    id str
    The provider-assigned unique ID for this managed resource.
    interval int
    The interval for how often the trigger occurs.
    name str
    pipeline_name str
    The Data Factory Pipeline name that the trigger will act on.
    schedules Sequence[GetTriggerScheduleSchedule]
    A schedule block as described below, which further specifies the recurrence schedule for the trigger.
    start_time str
    The time the Schedule Trigger will start. The time will be represented in UTC.
    time_zone str
    The timezone of the start/end time.
    activated Boolean
    Specifies if the Data Factory Schedule Trigger is activated.
    annotations List<String>
    List of tags that can be used for describing the Data Factory Schedule Trigger.
    dataFactoryId String
    description String
    The Schedule Trigger's description.
    endTime String
    The time the Schedule Trigger should end. The time will be represented in UTC.
    frequency String
    The trigger frequency.
    id String
    The provider-assigned unique ID for this managed resource.
    interval Number
    The interval for how often the trigger occurs.
    name String
    pipelineName String
    The Data Factory Pipeline name that the trigger will act on.
    schedules List<Property Map>
    A schedule block as described below, which further specifies the recurrence schedule for the trigger.
    startTime String
    The time the Schedule Trigger will start. The time will be represented in UTC.
    timeZone String
    The timezone of the start/end time.

    Supporting Types

    GetTriggerScheduleSchedule

    DaysOfMonths List<int>
    Day(s) of the month on which the trigger is scheduled.
    DaysOfWeeks List<string>
    Day(s) of the week on which the trigger is scheduled.
    Hours List<int>
    Hours of the day on which the trigger is scheduled.
    Minutes List<int>
    Minutes of the hour on which the trigger is scheduled.
    Monthlies List<GetTriggerScheduleScheduleMonthly>
    A monthly block as documented below, which specifies the days of the month on which the trigger is scheduled.
    DaysOfMonths []int
    Day(s) of the month on which the trigger is scheduled.
    DaysOfWeeks []string
    Day(s) of the week on which the trigger is scheduled.
    Hours []int
    Hours of the day on which the trigger is scheduled.
    Minutes []int
    Minutes of the hour on which the trigger is scheduled.
    Monthlies []GetTriggerScheduleScheduleMonthly
    A monthly block as documented below, which specifies the days of the month on which the trigger is scheduled.
    daysOfMonths List<Integer>
    Day(s) of the month on which the trigger is scheduled.
    daysOfWeeks List<String>
    Day(s) of the week on which the trigger is scheduled.
    hours List<Integer>
    Hours of the day on which the trigger is scheduled.
    minutes List<Integer>
    Minutes of the hour on which the trigger is scheduled.
    monthlies List<GetTriggerScheduleScheduleMonthly>
    A monthly block as documented below, which specifies the days of the month on which the trigger is scheduled.
    daysOfMonths number[]
    Day(s) of the month on which the trigger is scheduled.
    daysOfWeeks string[]
    Day(s) of the week on which the trigger is scheduled.
    hours number[]
    Hours of the day on which the trigger is scheduled.
    minutes number[]
    Minutes of the hour on which the trigger is scheduled.
    monthlies GetTriggerScheduleScheduleMonthly[]
    A monthly block as documented below, which specifies the days of the month on which the trigger is scheduled.
    days_of_months Sequence[int]
    Day(s) of the month on which the trigger is scheduled.
    days_of_weeks Sequence[str]
    Day(s) of the week on which the trigger is scheduled.
    hours Sequence[int]
    Hours of the day on which the trigger is scheduled.
    minutes Sequence[int]
    Minutes of the hour on which the trigger is scheduled.
    monthlies Sequence[GetTriggerScheduleScheduleMonthly]
    A monthly block as documented below, which specifies the days of the month on which the trigger is scheduled.
    daysOfMonths List<Number>
    Day(s) of the month on which the trigger is scheduled.
    daysOfWeeks List<String>
    Day(s) of the week on which the trigger is scheduled.
    hours List<Number>
    Hours of the day on which the trigger is scheduled.
    minutes List<Number>
    Minutes of the hour on which the trigger is scheduled.
    monthlies List<Property Map>
    A monthly block as documented below, which specifies the days of the month on which the trigger is scheduled.

    GetTriggerScheduleScheduleMonthly

    Week int
    The occurrence of the specified day during the month.
    Weekday string
    The day of the week on which the trigger runs.
    Week int
    The occurrence of the specified day during the month.
    Weekday string
    The day of the week on which the trigger runs.
    week Integer
    The occurrence of the specified day during the month.
    weekday String
    The day of the week on which the trigger runs.
    week number
    The occurrence of the specified day during the month.
    weekday string
    The day of the week on which the trigger runs.
    week int
    The occurrence of the specified day during the month.
    weekday str
    The day of the week on which the trigger runs.
    week Number
    The occurrence of the specified day during the month.
    weekday String
    The day of the week on which the trigger runs.

    Package Details

    Repository
    Azure Classic pulumi/pulumi-azure
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the azurerm Terraform Provider.
    azure logo

    We recommend using Azure Native.

    Azure Classic v5.81.0 published on Monday, Jun 24, 2024 by Pulumi