getTriggerSchedule

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)
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 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
})
}
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}

Return

A collection of values returned by getTriggerSchedule.

Parameters

argument

A collection of arguments for invoking getTriggerSchedule.


suspend fun getTriggerSchedule(dataFactoryId: String, name: String): GetTriggerScheduleResult

Return

A collection of values returned by getTriggerSchedule.

Parameters

dataFactoryId

The ID of the Azure Data Factory to fetch trigger schedule from.

name

The name of the trigger schedule.

See also


Return

A collection of values returned by getTriggerSchedule.

Parameters

argument

Builder for com.pulumi.azure.datafactory.kotlin.inputs.GetTriggerSchedulePlainArgs.

See also