1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. sae
  5. getGreyTagRoutes
Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi

alicloud.sae.getGreyTagRoutes

Explore with Pulumi AI

Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 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

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);
Copy
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)
Copy
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
	})
}
Copy
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),
    };
});
Copy
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()));
    }
}
Copy
variables:
  nameRegex:
    fn::invoke:
      function: alicloud:sae:getGreyTagRoutes
      arguments:
        appId: example_id
        nameRegex: ^my-GreyTagRoute
outputs:
  saeGreyTagRoutesId: ${nameRegex.routes[0].id}
Copy

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>
Copy
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]
Copy
func GetGreyTagRoutes(ctx *Context, args *GetGreyTagRoutesArgs, opts ...InvokeOption) (*GetGreyTagRoutesResult, error)
func GetGreyTagRoutesOutput(ctx *Context, args *GetGreyTagRoutesOutputArgs, opts ...InvokeOption) GetGreyTagRoutesResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetGreyTagRoutesResult> getGreyTagRoutes(GetGreyTagRoutesArgs args, InvokeOptions options)
public static Output<GetGreyTagRoutesResult> getGreyTagRoutes(GetGreyTagRoutesArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: alicloud:sae/getGreyTagRoutes:getGreyTagRoutes
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

AppId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the SAE Application.
Ids Changes to this property will trigger replacement. List<string>
A list of GreyTagRoute IDs.
NameRegex Changes to this property will trigger replacement. 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
This property is required.
Changes to this property will trigger replacement.
string
The ID of the SAE Application.
Ids Changes to this property will trigger replacement. []string
A list of GreyTagRoute IDs.
NameRegex Changes to this property will trigger replacement. 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
This property is required.
Changes to this property will trigger replacement.
String
The ID of the SAE Application.
ids Changes to this property will trigger replacement. List<String>
A list of GreyTagRoute IDs.
nameRegex Changes to this property will trigger replacement. 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
This property is required.
Changes to this property will trigger replacement.
string
The ID of the SAE Application.
ids Changes to this property will trigger replacement. string[]
A list of GreyTagRoute IDs.
nameRegex Changes to this property will trigger replacement. 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
This property is required.
Changes to this property will trigger replacement.
str
The ID of the SAE Application.
ids Changes to this property will trigger replacement. Sequence[str]
A list of GreyTagRoute IDs.
name_regex Changes to this property will trigger replacement. 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
This property is required.
Changes to this property will trigger replacement.
String
The ID of the SAE Application.
ids Changes to this property will trigger replacement. List<String>
A list of GreyTagRoute IDs.
nameRegex Changes to this property will trigger replacement. 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 This property is required. string
The description of GreyTagRoute.
DubboRules This property is required. List<Pulumi.AliCloud.Sae.Inputs.GetGreyTagRoutesRouteDubboRule>
The grayscale rule created for Dubbo Application.
GreyTagRouteName This property is required. string
The name of GreyTagRoute.
Id This property is required. string
The ID of the GreyTagRoute.
ScRules This property is required. List<Pulumi.AliCloud.Sae.Inputs.GetGreyTagRoutesRouteScRule>
The grayscale rule created for SpringCloud Application.
Description This property is required. string
The description of GreyTagRoute.
DubboRules This property is required. []GetGreyTagRoutesRouteDubboRule
The grayscale rule created for Dubbo Application.
GreyTagRouteName This property is required. string
The name of GreyTagRoute.
Id This property is required. string
The ID of the GreyTagRoute.
ScRules This property is required. []GetGreyTagRoutesRouteScRule
The grayscale rule created for SpringCloud Application.
description This property is required. String
The description of GreyTagRoute.
dubboRules This property is required. List<GetGreyTagRoutesRouteDubboRule>
The grayscale rule created for Dubbo Application.
greyTagRouteName This property is required. String
The name of GreyTagRoute.
id This property is required. String
The ID of the GreyTagRoute.
scRules This property is required. List<GetGreyTagRoutesRouteScRule>
The grayscale rule created for SpringCloud Application.
description This property is required. string
The description of GreyTagRoute.
dubboRules This property is required. GetGreyTagRoutesRouteDubboRule[]
The grayscale rule created for Dubbo Application.
greyTagRouteName This property is required. string
The name of GreyTagRoute.
id This property is required. string
The ID of the GreyTagRoute.
scRules This property is required. GetGreyTagRoutesRouteScRule[]
The grayscale rule created for SpringCloud Application.
description This property is required. str
The description of GreyTagRoute.
dubbo_rules This property is required. Sequence[GetGreyTagRoutesRouteDubboRule]
The grayscale rule created for Dubbo Application.
grey_tag_route_name This property is required. str
The name of GreyTagRoute.
id This property is required. str
The ID of the GreyTagRoute.
sc_rules This property is required. Sequence[GetGreyTagRoutesRouteScRule]
The grayscale rule created for SpringCloud Application.
description This property is required. String
The description of GreyTagRoute.
dubboRules This property is required. List<Property Map>
The grayscale rule created for Dubbo Application.
greyTagRouteName This property is required. String
The name of GreyTagRoute.
id This property is required. String
The ID of the GreyTagRoute.
scRules This property is required. List<Property Map>
The grayscale rule created for SpringCloud Application.

GetGreyTagRoutesRouteDubboRule

Condition This property is required. string
The conditional Patterns for Grayscale Rules.
Group This property is required. string
The service group.
Items This property is required. List<Pulumi.AliCloud.Sae.Inputs.GetGreyTagRoutesRouteDubboRuleItem>
A list of conditions items.
MethodName This property is required. string
The method name
ServiceName This property is required. string
The service name.
Version This property is required. string
The service version.
Condition This property is required. string
The conditional Patterns for Grayscale Rules.
Group This property is required. string
The service group.
Items This property is required. []GetGreyTagRoutesRouteDubboRuleItem
A list of conditions items.
MethodName This property is required. string
The method name
ServiceName This property is required. string
The service name.
Version This property is required. string
The service version.
condition This property is required. String
The conditional Patterns for Grayscale Rules.
group This property is required. String
The service group.
items This property is required. List<GetGreyTagRoutesRouteDubboRuleItem>
A list of conditions items.
methodName This property is required. String
The method name
serviceName This property is required. String
The service name.
version This property is required. String
The service version.
condition This property is required. string
The conditional Patterns for Grayscale Rules.
group This property is required. string
The service group.
items This property is required. GetGreyTagRoutesRouteDubboRuleItem[]
A list of conditions items.
methodName This property is required. string
The method name
serviceName This property is required. string
The service name.
version This property is required. string
The service version.
condition This property is required. str
The conditional Patterns for Grayscale Rules.
group This property is required. str
The service group.
items This property is required. Sequence[GetGreyTagRoutesRouteDubboRuleItem]
A list of conditions items.
method_name This property is required. str
The method name
service_name This property is required. str
The service name.
version This property is required. str
The service version.
condition This property is required. String
The conditional Patterns for Grayscale Rules.
group This property is required. String
The service group.
items This property is required. List<Property Map>
A list of conditions items.
methodName This property is required. String
The method name
serviceName This property is required. String
The service name.
version This property is required. String
The service version.

GetGreyTagRoutesRouteDubboRuleItem

Cond This property is required. string
The comparison operator.
Expr This property is required. string
The parameter value gets the expression.
Index This property is required. int
The parameter number.
Operator This property is required. string
The operator.
Value This property is required. string
The value of the parameter.
Cond This property is required. string
The comparison operator.
Expr This property is required. string
The parameter value gets the expression.
Index This property is required. int
The parameter number.
Operator This property is required. string
The operator.
Value This property is required. string
The value of the parameter.
cond This property is required. String
The comparison operator.
expr This property is required. String
The parameter value gets the expression.
index This property is required. Integer
The parameter number.
operator This property is required. String
The operator.
value This property is required. String
The value of the parameter.
cond This property is required. string
The comparison operator.
expr This property is required. string
The parameter value gets the expression.
index This property is required. number
The parameter number.
operator This property is required. string
The operator.
value This property is required. string
The value of the parameter.
cond This property is required. str
The comparison operator.
expr This property is required. str
The parameter value gets the expression.
index This property is required. int
The parameter number.
operator This property is required. str
The operator.
value This property is required. str
The value of the parameter.
cond This property is required. String
The comparison operator.
expr This property is required. String
The parameter value gets the expression.
index This property is required. Number
The parameter number.
operator This property is required. String
The operator.
value This property is required. String
The value of the parameter.

GetGreyTagRoutesRouteScRule

Condition This property is required. string
The Conditional Patterns for Grayscale Rules.
Items This property is required. List<Pulumi.AliCloud.Sae.Inputs.GetGreyTagRoutesRouteScRuleItem>
A list of conditions items.
Path This property is required. string
The path corresponding to the grayscale rule.
Condition This property is required. string
The Conditional Patterns for Grayscale Rules.
Items This property is required. []GetGreyTagRoutesRouteScRuleItem
A list of conditions items.
Path This property is required. string
The path corresponding to the grayscale rule.
condition This property is required. String
The Conditional Patterns for Grayscale Rules.
items This property is required. List<GetGreyTagRoutesRouteScRuleItem>
A list of conditions items.
path This property is required. String
The path corresponding to the grayscale rule.
condition This property is required. string
The Conditional Patterns for Grayscale Rules.
items This property is required. GetGreyTagRoutesRouteScRuleItem[]
A list of conditions items.
path This property is required. string
The path corresponding to the grayscale rule.
condition This property is required. str
The Conditional Patterns for Grayscale Rules.
items This property is required. Sequence[GetGreyTagRoutesRouteScRuleItem]
A list of conditions items.
path This property is required. str
The path corresponding to the grayscale rule.
condition This property is required. String
The Conditional Patterns for Grayscale Rules.
items This property is required. List<Property Map>
A list of conditions items.
path This property is required. String
The path corresponding to the grayscale rule.

GetGreyTagRoutesRouteScRuleItem

Cond This property is required. string
The comparison operator.
Name This property is required. string
The name of the parameter.
Operator This property is required. string
The operator.
Type This property is required. string
The Compare types.
Value This property is required. string
The value of the parameter.
Cond This property is required. string
The comparison operator.
Name This property is required. string
The name of the parameter.
Operator This property is required. string
The operator.
Type This property is required. string
The Compare types.
Value This property is required. string
The value of the parameter.
cond This property is required. String
The comparison operator.
name This property is required. String
The name of the parameter.
operator This property is required. String
The operator.
type This property is required. String
The Compare types.
value This property is required. String
The value of the parameter.
cond This property is required. string
The comparison operator.
name This property is required. string
The name of the parameter.
operator This property is required. string
The operator.
type This property is required. string
The Compare types.
value This property is required. string
The value of the parameter.
cond This property is required. str
The comparison operator.
name This property is required. str
The name of the parameter.
operator This property is required. str
The operator.
type This property is required. str
The Compare types.
value This property is required. str
The value of the parameter.
cond This property is required. String
The comparison operator.
name This property is required. String
The name of the parameter.
operator This property is required. String
The operator.
type This property is required. String
The Compare types.
value This property is required. 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.
Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi