We recommend using Azure Native.
Azure v6.10.0 published on Tuesday, Nov 19, 2024 by Pulumi
azure.datafactory.getTriggerSchedule
Explore with Pulumi AI
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/v6/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:
- Data
Factory stringId - The ID of the Azure Data Factory to fetch trigger schedule from.
- Name string
- The name of the trigger schedule.
- Data
Factory stringId - The ID of the Azure Data Factory to fetch trigger schedule from.
- Name string
- The name of the trigger schedule.
- data
Factory StringId - The ID of the Azure Data Factory to fetch trigger schedule from.
- name String
- The name of the trigger schedule.
- data
Factory stringId - The ID of the Azure Data Factory to fetch trigger schedule from.
- name string
- The name of the trigger schedule.
- data_
factory_ strid - The ID of the Azure Data Factory to fetch trigger schedule from.
- name str
- The name of the trigger schedule.
- data
Factory StringId - 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.
- Data
Factory stringId - Description string
- The Schedule Trigger's description.
- End
Time 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
- Pipeline
Name string - The Data Factory Pipeline name that the trigger will act on.
- Schedules
List<Get
Trigger Schedule Schedule> - A
schedule
block as described below, which further specifies the recurrence schedule for the trigger. - Start
Time string - The time the Schedule Trigger will start. The time will be represented in UTC.
- Time
Zone 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.
- Data
Factory stringId - Description string
- The Schedule Trigger's description.
- End
Time 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
- Pipeline
Name string - The Data Factory Pipeline name that the trigger will act on.
- Schedules
[]Get
Trigger Schedule Schedule - A
schedule
block as described below, which further specifies the recurrence schedule for the trigger. - Start
Time string - The time the Schedule Trigger will start. The time will be represented in UTC.
- Time
Zone 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.
- data
Factory StringId - description String
- The Schedule Trigger's description.
- end
Time 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
- pipeline
Name String - The Data Factory Pipeline name that the trigger will act on.
- schedules
List<Get
Trigger Schedule Schedule> - A
schedule
block as described below, which further specifies the recurrence schedule for the trigger. - start
Time String - The time the Schedule Trigger will start. The time will be represented in UTC.
- time
Zone 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.
- data
Factory stringId - description string
- The Schedule Trigger's description.
- end
Time 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
- pipeline
Name string - The Data Factory Pipeline name that the trigger will act on.
- schedules
Get
Trigger Schedule Schedule[] - A
schedule
block as described below, which further specifies the recurrence schedule for the trigger. - start
Time string - The time the Schedule Trigger will start. The time will be represented in UTC.
- time
Zone 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_ strid - 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[Get
Trigger Schedule Schedule] - 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.
- data
Factory StringId - description String
- The Schedule Trigger's description.
- end
Time 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
- pipeline
Name 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. - start
Time String - The time the Schedule Trigger will start. The time will be represented in UTC.
- time
Zone String - The timezone of the start/end time.
Supporting Types
GetTriggerScheduleSchedule
- Days
Of List<int>Months - Day(s) of the month on which the trigger is scheduled.
- Days
Of List<string>Weeks - 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<Get
Trigger Schedule Schedule Monthly> - A
monthly
block as documented below, which specifies the days of the month on which the trigger is scheduled.
- Days
Of []intMonths - Day(s) of the month on which the trigger is scheduled.
- Days
Of []stringWeeks - 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
[]Get
Trigger Schedule Schedule Monthly - A
monthly
block as documented below, which specifies the days of the month on which the trigger is scheduled.
- days
Of List<Integer>Months - Day(s) of the month on which the trigger is scheduled.
- days
Of List<String>Weeks - 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<Get
Trigger Schedule Schedule Monthly> - A
monthly
block as documented below, which specifies the days of the month on which the trigger is scheduled.
- days
Of number[]Months - Day(s) of the month on which the trigger is scheduled.
- days
Of string[]Weeks - 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
Get
Trigger Schedule Schedule Monthly[] - A
monthly
block as documented below, which specifies the days of the month on which the trigger is scheduled.
- days_
of_ Sequence[int]months - Day(s) of the month on which the trigger is scheduled.
- days_
of_ Sequence[str]weeks - 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[Get
Trigger Schedule Schedule Monthly] - A
monthly
block as documented below, which specifies the days of the month on which the trigger is scheduled.
- days
Of List<Number>Months - Day(s) of the month on which the trigger is scheduled.
- days
Of List<String>Weeks - 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
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurerm
Terraform Provider.