1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. sae
  5. getGreyTagRoutes
Alibaba Cloud v3.45.0 published on Monday, Nov 27, 2023 by Pulumi

alicloud.sae.getGreyTagRoutes

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.45.0 published on Monday, Nov 27, 2023 by Pulumi

    This data source provides the Sae GreyTagRoutes of the current Alibaba Cloud user.

    NOTE: Available in v1.160.0+.

    Example Usage

    Basic Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AliCloud = Pulumi.AliCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var nameRegex = AliCloud.Sae.GetGreyTagRoutes.Invoke(new()
        {
            AppId = "example_id",
            NameRegex = "^my-GreyTagRoute",
        });
    
        return new Dictionary<string, object?>
        {
            ["saeGreyTagRoutesId"] = nameRegex.Apply(getGreyTagRoutesResult => getGreyTagRoutesResult.Routes[0]?.Id),
        };
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/sae"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		nameRegex, err := sae.GetGreyTagRoutes(ctx, &sae.GetGreyTagRoutesArgs{
    			AppId:     "example_id",
    			NameRegex: pulumi.StringRef("^my-GreyTagRoute"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("saeGreyTagRoutesId", nameRegex.Routes[0].Id)
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.alicloud.sae.SaeFunctions;
    import com.pulumi.alicloud.sae.inputs.GetGreyTagRoutesArgs;
    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 nameRegex = SaeFunctions.getGreyTagRoutes(GetGreyTagRoutesArgs.builder()
                .appId("example_id")
                .nameRegex("^my-GreyTagRoute")
                .build());
    
            ctx.export("saeGreyTagRoutesId", nameRegex.applyValue(getGreyTagRoutesResult -> getGreyTagRoutesResult.routes()[0].id()));
        }
    }
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    name_regex = alicloud.sae.get_grey_tag_routes(app_id="example_id",
        name_regex="^my-GreyTagRoute")
    pulumi.export("saeGreyTagRoutesId", name_regex.routes[0].id)
    
    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const nameRegex = alicloud.sae.getGreyTagRoutes({
        appId: "example_id",
        nameRegex: "^my-GreyTagRoute",
    });
    export const saeGreyTagRoutesId = nameRegex.then(nameRegex => nameRegex.routes?.[0]?.id);
    
    variables:
      nameRegex:
        fn::invoke:
          Function: alicloud:sae:getGreyTagRoutes
          Arguments:
            appId: example_id
            nameRegex: ^my-GreyTagRoute
    outputs:
      saeGreyTagRoutesId: ${nameRegex.routes[0].id}
    

    Using getGreyTagRoutes

    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 getGreyTagRoutes(args: GetGreyTagRoutesArgs, opts?: InvokeOptions): Promise<GetGreyTagRoutesResult>
    function getGreyTagRoutesOutput(args: GetGreyTagRoutesOutputArgs, opts?: InvokeOptions): Output<GetGreyTagRoutesResult>
    def get_grey_tag_routes(app_id: Optional[str] = None,
                            ids: Optional[Sequence[str]] = None,
                            name_regex: Optional[str] = None,
                            output_file: Optional[str] = None,
                            opts: Optional[InvokeOptions] = None) -> GetGreyTagRoutesResult
    def get_grey_tag_routes_output(app_id: Optional[pulumi.Input[str]] = None,
                            ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                            name_regex: Optional[pulumi.Input[str]] = None,
                            output_file: Optional[pulumi.Input[str]] = None,
                            opts: Optional[InvokeOptions] = None) -> Output[GetGreyTagRoutesResult]
    func GetGreyTagRoutes(ctx *Context, args *GetGreyTagRoutesArgs, opts ...InvokeOption) (*GetGreyTagRoutesResult, error)
    func GetGreyTagRoutesOutput(ctx *Context, args *GetGreyTagRoutesOutputArgs, opts ...InvokeOption) GetGreyTagRoutesResultOutput

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

    public static class GetGreyTagRoutes 
    {
        public static Task<GetGreyTagRoutesResult> InvokeAsync(GetGreyTagRoutesArgs args, InvokeOptions? opts = null)
        public static Output<GetGreyTagRoutesResult> Invoke(GetGreyTagRoutesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetGreyTagRoutesResult> getGreyTagRoutes(GetGreyTagRoutesArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: alicloud:sae/getGreyTagRoutes:getGreyTagRoutes
      arguments:
        # arguments dictionary

    The following arguments are supported:

    AppId string

    The ID of the SAE Application.

    Ids List<string>

    A list of GreyTagRoute IDs.

    NameRegex string

    A regex string to filter results by GreyTagRoute name.

    OutputFile string

    File name where to save data source results (after running pulumi preview).

    AppId string

    The ID of the SAE Application.

    Ids []string

    A list of GreyTagRoute IDs.

    NameRegex string

    A regex string to filter results by GreyTagRoute name.

    OutputFile string

    File name where to save data source results (after running pulumi preview).

    appId String

    The ID of the SAE Application.

    ids List<String>

    A list of GreyTagRoute IDs.

    nameRegex String

    A regex string to filter results by GreyTagRoute name.

    outputFile String

    File name where to save data source results (after running pulumi preview).

    appId string

    The ID of the SAE Application.

    ids string[]

    A list of GreyTagRoute IDs.

    nameRegex string

    A regex string to filter results by GreyTagRoute name.

    outputFile string

    File name where to save data source results (after running pulumi preview).

    app_id str

    The ID of the SAE Application.

    ids Sequence[str]

    A list of GreyTagRoute IDs.

    name_regex str

    A regex string to filter results by GreyTagRoute name.

    output_file str

    File name where to save data source results (after running pulumi preview).

    appId String

    The ID of the SAE Application.

    ids List<String>

    A list of GreyTagRoute IDs.

    nameRegex String

    A regex string to filter results by GreyTagRoute name.

    outputFile String

    File name where to save data source results (after running pulumi preview).

    getGreyTagRoutes Result

    The following output properties are available:

    AppId string
    Id string

    The provider-assigned unique ID for this managed resource.

    Ids List<string>
    Names List<string>
    Routes List<Pulumi.AliCloud.Sae.Outputs.GetGreyTagRoutesRoute>
    NameRegex string
    OutputFile string
    AppId string
    Id string

    The provider-assigned unique ID for this managed resource.

    Ids []string
    Names []string
    Routes []GetGreyTagRoutesRoute
    NameRegex string
    OutputFile string
    appId String
    id String

    The provider-assigned unique ID for this managed resource.

    ids List<String>
    names List<String>
    routes List<GetGreyTagRoutesRoute>
    nameRegex String
    outputFile String
    appId string
    id string

    The provider-assigned unique ID for this managed resource.

    ids string[]
    names string[]
    routes GetGreyTagRoutesRoute[]
    nameRegex string
    outputFile string
    app_id str
    id str

    The provider-assigned unique ID for this managed resource.

    ids Sequence[str]
    names Sequence[str]
    routes Sequence[GetGreyTagRoutesRoute]
    name_regex str
    output_file str
    appId String
    id String

    The provider-assigned unique ID for this managed resource.

    ids List<String>
    names List<String>
    routes List<Property Map>
    nameRegex String
    outputFile String

    Supporting Types

    GetGreyTagRoutesRoute

    Description string

    The description of GreyTagRoute.

    DubboRules List<Pulumi.AliCloud.Sae.Inputs.GetGreyTagRoutesRouteDubboRule>

    The grayscale rule created for Dubbo Application.

    GreyTagRouteName string

    The name of GreyTagRoute.

    Id string

    The ID of the GreyTagRoute.

    ScRules List<Pulumi.AliCloud.Sae.Inputs.GetGreyTagRoutesRouteScRule>

    The grayscale rule created for SpringCloud Application.

    Description string

    The description of GreyTagRoute.

    DubboRules []GetGreyTagRoutesRouteDubboRule

    The grayscale rule created for Dubbo Application.

    GreyTagRouteName string

    The name of GreyTagRoute.

    Id string

    The ID of the GreyTagRoute.

    ScRules []GetGreyTagRoutesRouteScRule

    The grayscale rule created for SpringCloud Application.

    description String

    The description of GreyTagRoute.

    dubboRules List<GetGreyTagRoutesRouteDubboRule>

    The grayscale rule created for Dubbo Application.

    greyTagRouteName String

    The name of GreyTagRoute.

    id String

    The ID of the GreyTagRoute.

    scRules List<GetGreyTagRoutesRouteScRule>

    The grayscale rule created for SpringCloud Application.

    description string

    The description of GreyTagRoute.

    dubboRules GetGreyTagRoutesRouteDubboRule[]

    The grayscale rule created for Dubbo Application.

    greyTagRouteName string

    The name of GreyTagRoute.

    id string

    The ID of the GreyTagRoute.

    scRules GetGreyTagRoutesRouteScRule[]

    The grayscale rule created for SpringCloud Application.

    description str

    The description of GreyTagRoute.

    dubbo_rules Sequence[GetGreyTagRoutesRouteDubboRule]

    The grayscale rule created for Dubbo Application.

    grey_tag_route_name str

    The name of GreyTagRoute.

    id str

    The ID of the GreyTagRoute.

    sc_rules Sequence[GetGreyTagRoutesRouteScRule]

    The grayscale rule created for SpringCloud Application.

    description String

    The description of GreyTagRoute.

    dubboRules List<Property Map>

    The grayscale rule created for Dubbo Application.

    greyTagRouteName String

    The name of GreyTagRoute.

    id String

    The ID of the GreyTagRoute.

    scRules List<Property Map>

    The grayscale rule created for SpringCloud Application.

    GetGreyTagRoutesRouteDubboRule

    Condition string

    The Conditional Patterns for Grayscale Rules.

    Group string

    The service group.

    Items List<Pulumi.AliCloud.Sae.Inputs.GetGreyTagRoutesRouteDubboRuleItem>

    A list of conditions items.

    MethodName string

    The method name

    ServiceName string

    The service name.

    Version string

    The service version.

    Condition string

    The Conditional Patterns for Grayscale Rules.

    Group string

    The service group.

    Items []GetGreyTagRoutesRouteDubboRuleItem

    A list of conditions items.

    MethodName string

    The method name

    ServiceName string

    The service name.

    Version string

    The service version.

    condition String

    The Conditional Patterns for Grayscale Rules.

    group String

    The service group.

    items List<GetGreyTagRoutesRouteDubboRuleItem>

    A list of conditions items.

    methodName String

    The method name

    serviceName String

    The service name.

    version String

    The service version.

    condition string

    The Conditional Patterns for Grayscale Rules.

    group string

    The service group.

    items GetGreyTagRoutesRouteDubboRuleItem[]

    A list of conditions items.

    methodName string

    The method name

    serviceName string

    The service name.

    version string

    The service version.

    condition str

    The Conditional Patterns for Grayscale Rules.

    group str

    The service group.

    items Sequence[GetGreyTagRoutesRouteDubboRuleItem]

    A list of conditions items.

    method_name str

    The method name

    service_name str

    The service name.

    version str

    The service version.

    condition String

    The Conditional Patterns for Grayscale Rules.

    group String

    The service group.

    items List<Property Map>

    A list of conditions items.

    methodName String

    The method name

    serviceName String

    The service name.

    version String

    The service version.

    GetGreyTagRoutesRouteDubboRuleItem

    Cond string

    The comparison operator.

    Expr string

    The parameter value gets the expression.

    Index int

    The parameter number.

    Operator string

    The operator.

    Value string

    The value of the parameter.

    Cond string

    The comparison operator.

    Expr string

    The parameter value gets the expression.

    Index int

    The parameter number.

    Operator string

    The operator.

    Value string

    The value of the parameter.

    cond String

    The comparison operator.

    expr String

    The parameter value gets the expression.

    index Integer

    The parameter number.

    operator String

    The operator.

    value String

    The value of the parameter.

    cond string

    The comparison operator.

    expr string

    The parameter value gets the expression.

    index number

    The parameter number.

    operator string

    The operator.

    value string

    The value of the parameter.

    cond str

    The comparison operator.

    expr str

    The parameter value gets the expression.

    index int

    The parameter number.

    operator str

    The operator.

    value str

    The value of the parameter.

    cond String

    The comparison operator.

    expr String

    The parameter value gets the expression.

    index Number

    The parameter number.

    operator String

    The operator.

    value String

    The value of the parameter.

    GetGreyTagRoutesRouteScRule

    Condition string

    The Conditional Patterns for Grayscale Rules.

    Items List<Pulumi.AliCloud.Sae.Inputs.GetGreyTagRoutesRouteScRuleItem>

    A list of conditions items.

    Path string

    The path corresponding to the grayscale rule.

    Condition string

    The Conditional Patterns for Grayscale Rules.

    Items []GetGreyTagRoutesRouteScRuleItem

    A list of conditions items.

    Path string

    The path corresponding to the grayscale rule.

    condition String

    The Conditional Patterns for Grayscale Rules.

    items List<GetGreyTagRoutesRouteScRuleItem>

    A list of conditions items.

    path String

    The path corresponding to the grayscale rule.

    condition string

    The Conditional Patterns for Grayscale Rules.

    items GetGreyTagRoutesRouteScRuleItem[]

    A list of conditions items.

    path string

    The path corresponding to the grayscale rule.

    condition str

    The Conditional Patterns for Grayscale Rules.

    items Sequence[GetGreyTagRoutesRouteScRuleItem]

    A list of conditions items.

    path str

    The path corresponding to the grayscale rule.

    condition String

    The Conditional Patterns for Grayscale Rules.

    items List<Property Map>

    A list of conditions items.

    path String

    The path corresponding to the grayscale rule.

    GetGreyTagRoutesRouteScRuleItem

    Cond string

    The comparison operator.

    Name string

    The name of the parameter.

    Operator string

    The operator.

    Type string

    The Compare types.

    Value string

    The value of the parameter.

    Cond string

    The comparison operator.

    Name string

    The name of the parameter.

    Operator string

    The operator.

    Type string

    The Compare types.

    Value string

    The value of the parameter.

    cond String

    The comparison operator.

    name String

    The name of the parameter.

    operator String

    The operator.

    type String

    The Compare types.

    value String

    The value of the parameter.

    cond string

    The comparison operator.

    name string

    The name of the parameter.

    operator string

    The operator.

    type string

    The Compare types.

    value string

    The value of the parameter.

    cond str

    The comparison operator.

    name str

    The name of the parameter.

    operator str

    The operator.

    type str

    The Compare types.

    value str

    The value of the parameter.

    cond String

    The comparison operator.

    name String

    The name of the parameter.

    operator String

    The operator.

    type String

    The Compare types.

    value String

    The value of the parameter.

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes

    This Pulumi package is based on the alicloud Terraform Provider.

    alicloud logo
    Alibaba Cloud v3.45.0 published on Monday, Nov 27, 2023 by Pulumi