1. Packages
  2. Ibm Provider
  3. API Docs
  4. getAtrackerRoutes
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

ibm.getAtrackerRoutes

Explore with Pulumi AI

ibm logo
ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud

    Provides a read-only data source to retrieve information about atracker_routes. You can then reference the fields of the data source in other resources within the same configuration by using interpolation syntax.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ibm from "@pulumi/ibm";
    
    const atrackerRoutes = ibm.getAtrackerRoutes({
        name: "my-route",
    });
    
    import pulumi
    import pulumi_ibm as ibm
    
    atracker_routes = ibm.get_atracker_routes(name="my-route")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/ibm/ibm"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := ibm.GetAtrackerRoutes(ctx, &ibm.GetAtrackerRoutesArgs{
    			Name: pulumi.StringRef("my-route"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Ibm = Pulumi.Ibm;
    
    return await Deployment.RunAsync(() => 
    {
        var atrackerRoutes = Ibm.GetAtrackerRoutes.Invoke(new()
        {
            Name = "my-route",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ibm.IbmFunctions;
    import com.pulumi.ibm.inputs.GetAtrackerRoutesArgs;
    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 atrackerRoutes = IbmFunctions.getAtrackerRoutes(GetAtrackerRoutesArgs.builder()
                .name("my-route")
                .build());
    
        }
    }
    
    variables:
      atrackerRoutes:
        fn::invoke:
          function: ibm:getAtrackerRoutes
          arguments:
            name: my-route
    

    Using getAtrackerRoutes

    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 getAtrackerRoutes(args: GetAtrackerRoutesArgs, opts?: InvokeOptions): Promise<GetAtrackerRoutesResult>
    function getAtrackerRoutesOutput(args: GetAtrackerRoutesOutputArgs, opts?: InvokeOptions): Output<GetAtrackerRoutesResult>
    def get_atracker_routes(id: Optional[str] = None,
                            name: Optional[str] = None,
                            opts: Optional[InvokeOptions] = None) -> GetAtrackerRoutesResult
    def get_atracker_routes_output(id: Optional[pulumi.Input[str]] = None,
                            name: Optional[pulumi.Input[str]] = None,
                            opts: Optional[InvokeOptions] = None) -> Output[GetAtrackerRoutesResult]
    func GetAtrackerRoutes(ctx *Context, args *GetAtrackerRoutesArgs, opts ...InvokeOption) (*GetAtrackerRoutesResult, error)
    func GetAtrackerRoutesOutput(ctx *Context, args *GetAtrackerRoutesOutputArgs, opts ...InvokeOption) GetAtrackerRoutesResultOutput

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

    public static class GetAtrackerRoutes 
    {
        public static Task<GetAtrackerRoutesResult> InvokeAsync(GetAtrackerRoutesArgs args, InvokeOptions? opts = null)
        public static Output<GetAtrackerRoutesResult> Invoke(GetAtrackerRoutesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetAtrackerRoutesResult> getAtrackerRoutes(GetAtrackerRoutesArgs args, InvokeOptions options)
    public static Output<GetAtrackerRoutesResult> getAtrackerRoutes(GetAtrackerRoutesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ibm:index/getAtrackerRoutes:getAtrackerRoutes
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    (String) The uuid of the route resource.
    Name string
    The name of the route.
    Id string
    (String) The uuid of the route resource.
    Name string
    The name of the route.
    id String
    (String) The uuid of the route resource.
    name String
    The name of the route.
    id string
    (String) The uuid of the route resource.
    name string
    The name of the route.
    id str
    (String) The uuid of the route resource.
    name str
    The name of the route.
    id String
    (String) The uuid of the route resource.
    name String
    The name of the route.

    getAtrackerRoutes Result

    The following output properties are available:

    Id string
    (String) The uuid of the route resource.
    Routes List<GetAtrackerRoutesRoute>
    (List) A list of route resources.

    • Constraints: The maximum length is 30 items. The minimum length is 0 items. Nested schema for routes:
    Name string
    (String) The name of the route.
    Id string
    (String) The uuid of the route resource.
    Routes []GetAtrackerRoutesRoute
    (List) A list of route resources.

    • Constraints: The maximum length is 30 items. The minimum length is 0 items. Nested schema for routes:
    Name string
    (String) The name of the route.
    id String
    (String) The uuid of the route resource.
    routes List<GetAtrackerRoutesRoute>
    (List) A list of route resources.

    • Constraints: The maximum length is 30 items. The minimum length is 0 items. Nested schema for routes:
    name String
    (String) The name of the route.
    id string
    (String) The uuid of the route resource.
    routes GetAtrackerRoutesRoute[]
    (List) A list of route resources.

    • Constraints: The maximum length is 30 items. The minimum length is 0 items. Nested schema for routes:
    name string
    (String) The name of the route.
    id str
    (String) The uuid of the route resource.
    routes Sequence[GetAtrackerRoutesRoute]
    (List) A list of route resources.

    • Constraints: The maximum length is 30 items. The minimum length is 0 items. Nested schema for routes:
    name str
    (String) The name of the route.
    id String
    (String) The uuid of the route resource.
    routes List<Property Map>
    (List) A list of route resources.

    • Constraints: The maximum length is 30 items. The minimum length is 0 items. Nested schema for routes:
    name String
    (String) The name of the route.

    Supporting Types

    GetAtrackerRoutesRoute

    ApiVersion double
    (Integer) The API version of the route.

    • Constraints: The maximum value is 2. The minimum value is 2.
    CreatedAt string
    (String) The timestamp of the route creation time.
    Crn string
    (String) The crn of the route resource.
    Id string
    (String) The uuid of the route resource.
    Message string
    (String) An optional message containing information about the route.
    Name string
    The name of the route.
    Rules List<GetAtrackerRoutesRouteRule>
    (List) The routing rules that will be evaluated in their order of the array. Once a rule is matched, the remaining rules in the route definition will be skipped.

    • Constraints: The maximum length is 10 items. The minimum length is 1 item. Nested schema for rules:
    UpdatedAt string
    (String) The timestamp of the route last updated time.
    Version double
    (Integer) The version of the route.
    ApiVersion float64
    (Integer) The API version of the route.

    • Constraints: The maximum value is 2. The minimum value is 2.
    CreatedAt string
    (String) The timestamp of the route creation time.
    Crn string
    (String) The crn of the route resource.
    Id string
    (String) The uuid of the route resource.
    Message string
    (String) An optional message containing information about the route.
    Name string
    The name of the route.
    Rules []GetAtrackerRoutesRouteRule
    (List) The routing rules that will be evaluated in their order of the array. Once a rule is matched, the remaining rules in the route definition will be skipped.

    • Constraints: The maximum length is 10 items. The minimum length is 1 item. Nested schema for rules:
    UpdatedAt string
    (String) The timestamp of the route last updated time.
    Version float64
    (Integer) The version of the route.
    apiVersion Double
    (Integer) The API version of the route.

    • Constraints: The maximum value is 2. The minimum value is 2.
    createdAt String
    (String) The timestamp of the route creation time.
    crn String
    (String) The crn of the route resource.
    id String
    (String) The uuid of the route resource.
    message String
    (String) An optional message containing information about the route.
    name String
    The name of the route.
    rules List<GetAtrackerRoutesRouteRule>
    (List) The routing rules that will be evaluated in their order of the array. Once a rule is matched, the remaining rules in the route definition will be skipped.

    • Constraints: The maximum length is 10 items. The minimum length is 1 item. Nested schema for rules:
    updatedAt String
    (String) The timestamp of the route last updated time.
    version Double
    (Integer) The version of the route.
    apiVersion number
    (Integer) The API version of the route.

    • Constraints: The maximum value is 2. The minimum value is 2.
    createdAt string
    (String) The timestamp of the route creation time.
    crn string
    (String) The crn of the route resource.
    id string
    (String) The uuid of the route resource.
    message string
    (String) An optional message containing information about the route.
    name string
    The name of the route.
    rules GetAtrackerRoutesRouteRule[]
    (List) The routing rules that will be evaluated in their order of the array. Once a rule is matched, the remaining rules in the route definition will be skipped.

    • Constraints: The maximum length is 10 items. The minimum length is 1 item. Nested schema for rules:
    updatedAt string
    (String) The timestamp of the route last updated time.
    version number
    (Integer) The version of the route.
    api_version float
    (Integer) The API version of the route.

    • Constraints: The maximum value is 2. The minimum value is 2.
    created_at str
    (String) The timestamp of the route creation time.
    crn str
    (String) The crn of the route resource.
    id str
    (String) The uuid of the route resource.
    message str
    (String) An optional message containing information about the route.
    name str
    The name of the route.
    rules Sequence[GetAtrackerRoutesRouteRule]
    (List) The routing rules that will be evaluated in their order of the array. Once a rule is matched, the remaining rules in the route definition will be skipped.

    • Constraints: The maximum length is 10 items. The minimum length is 1 item. Nested schema for rules:
    updated_at str
    (String) The timestamp of the route last updated time.
    version float
    (Integer) The version of the route.
    apiVersion Number
    (Integer) The API version of the route.

    • Constraints: The maximum value is 2. The minimum value is 2.
    createdAt String
    (String) The timestamp of the route creation time.
    crn String
    (String) The crn of the route resource.
    id String
    (String) The uuid of the route resource.
    message String
    (String) An optional message containing information about the route.
    name String
    The name of the route.
    rules List<Property Map>
    (List) The routing rules that will be evaluated in their order of the array. Once a rule is matched, the remaining rules in the route definition will be skipped.

    • Constraints: The maximum length is 10 items. The minimum length is 1 item. Nested schema for rules:
    updatedAt String
    (String) The timestamp of the route last updated time.
    version Number
    (Integer) The version of the route.

    GetAtrackerRoutesRouteRule

    Locations List<string>
    (List) Logs from these locations will be sent to the targets specified. Locations is a superset of regions including global and *.

    • Constraints: The list items must match regular expression /^[a-zA-Z0-9 -._:]+$/.
    TargetIds List<string>
    (List) The target ID List. All the events will be send to all targets listed in the rule. You can include targets from other regions.

    • Constraints: The list items must match regular expression /^[a-zA-Z0-9 -._:]+$/.
    Locations []string
    (List) Logs from these locations will be sent to the targets specified. Locations is a superset of regions including global and *.

    • Constraints: The list items must match regular expression /^[a-zA-Z0-9 -._:]+$/.
    TargetIds []string
    (List) The target ID List. All the events will be send to all targets listed in the rule. You can include targets from other regions.

    • Constraints: The list items must match regular expression /^[a-zA-Z0-9 -._:]+$/.
    locations List<String>
    (List) Logs from these locations will be sent to the targets specified. Locations is a superset of regions including global and *.

    • Constraints: The list items must match regular expression /^[a-zA-Z0-9 -._:]+$/.
    targetIds List<String>
    (List) The target ID List. All the events will be send to all targets listed in the rule. You can include targets from other regions.

    • Constraints: The list items must match regular expression /^[a-zA-Z0-9 -._:]+$/.
    locations string[]
    (List) Logs from these locations will be sent to the targets specified. Locations is a superset of regions including global and *.

    • Constraints: The list items must match regular expression /^[a-zA-Z0-9 -._:]+$/.
    targetIds string[]
    (List) The target ID List. All the events will be send to all targets listed in the rule. You can include targets from other regions.

    • Constraints: The list items must match regular expression /^[a-zA-Z0-9 -._:]+$/.
    locations Sequence[str]
    (List) Logs from these locations will be sent to the targets specified. Locations is a superset of regions including global and *.

    • Constraints: The list items must match regular expression /^[a-zA-Z0-9 -._:]+$/.
    target_ids Sequence[str]
    (List) The target ID List. All the events will be send to all targets listed in the rule. You can include targets from other regions.

    • Constraints: The list items must match regular expression /^[a-zA-Z0-9 -._:]+$/.
    locations List<String>
    (List) Logs from these locations will be sent to the targets specified. Locations is a superset of regions including global and *.

    • Constraints: The list items must match regular expression /^[a-zA-Z0-9 -._:]+$/.
    targetIds List<String>
    (List) The target ID List. All the events will be send to all targets listed in the rule. You can include targets from other regions.

    • Constraints: The list items must match regular expression /^[a-zA-Z0-9 -._:]+$/.

    Package Details

    Repository
    ibm ibm-cloud/terraform-provider-ibm
    License
    Notes
    This Pulumi package is based on the ibm Terraform Provider.
    ibm logo
    ibm 1.78.0 published on Wednesday, Apr 30, 2025 by ibm-cloud