1. Packages
  2. Packages
  3. Rootly
  4. API Docs
  5. getAlertRoute
Viewing docs for Rootly v3.3.0
published on Thursday, May 7, 2026 by rootlyhq
rootly logo
Viewing docs for Rootly v3.3.0
published on Thursday, May 7, 2026 by rootlyhq

    Example Usage

    # Find an alert route by name
    data "rootly_alert_route" "example" {
      name = "Production Alerts"
    }
    
    # Use the alert route ID in other resources
    output "alert_route_id" {
      value = data.rootly_alert_route.example.id
    }
    

    Using getAlertRoute

    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 getAlertRoute(args: GetAlertRouteArgs, opts?: InvokeOptions): Promise<GetAlertRouteResult>
    function getAlertRouteOutput(args: GetAlertRouteOutputArgs, opts?: InvokeOptions): Output<GetAlertRouteResult>
    def get_alert_route(name: Optional[str] = None,
                        opts: Optional[InvokeOptions] = None) -> GetAlertRouteResult
    def get_alert_route_output(name: pulumi.Input[Optional[str]] = None,
                        opts: Optional[InvokeOptions] = None) -> Output[GetAlertRouteResult]
    func LookupAlertRoute(ctx *Context, args *LookupAlertRouteArgs, opts ...InvokeOption) (*LookupAlertRouteResult, error)
    func LookupAlertRouteOutput(ctx *Context, args *LookupAlertRouteOutputArgs, opts ...InvokeOption) LookupAlertRouteResultOutput

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

    public static class GetAlertRoute 
    {
        public static Task<GetAlertRouteResult> InvokeAsync(GetAlertRouteArgs args, InvokeOptions? opts = null)
        public static Output<GetAlertRouteResult> Invoke(GetAlertRouteInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetAlertRouteResult> getAlertRoute(GetAlertRouteArgs args, InvokeOptions options)
    public static Output<GetAlertRouteResult> getAlertRoute(GetAlertRouteArgs args, InvokeOptions options)
    
    fn::invoke:
      function: rootly:index/getAlertRoute:getAlertRoute
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Name string
    Name string
    name String
    name string
    name str
    name String

    getAlertRoute Result

    The following output properties are available:

    Id string
    The ID of this resource.
    Name string
    Id string
    The ID of this resource.
    Name string
    id String
    The ID of this resource.
    name String
    id string
    The ID of this resource.
    name string
    id str
    The ID of this resource.
    name str
    id String
    The ID of this resource.
    name String

    Package Details

    Repository
    rootly rootlyhq/pulumi-rootly
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the rootly Terraform Provider.
    rootly logo
    Viewing docs for Rootly v3.3.0
    published on Thursday, May 7, 2026 by rootlyhq
      Try Pulumi Cloud free. Your team will thank you.