All Products
Search
Document Center

Serverless App Engine:ListGreyTagRoute

Last Updated:Jan 14, 2026

Queries the details of a grayscale rule based on an application ID.

Operation description

Note

You can configure only one grayscale rule for each application.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

sae:ListGreyTagRoute

get

*All Resource

*

None None

Request syntax

GET /pop/v1/sam/tagroute/greyTagRouteList HTTP/1.1

Request parameters

Parameter

Type

Required

Description

Example

AppId

string

Yes

The application ID.

7171a6ca-d1cd-4928-8642-7d5cfe69****

  • ScRule parameter

ParameterTypeExampleDescription
conditionStringORThe conditional pattern of the grayscale rule. Valid values:
- AND: All conditions in the list must be met.
- OR: Any condition in the list can be met.




pathString/pathThe path that corresponds to the grayscale rule for a Spring Cloud application.
itemsArray of itemsThe list of conditions.

Item parameter

ParameterTypeExampleDescription
nameStringtestThe parameter name.
condString==The comparison operator. Valid values: >, <, >=, <=, ==, and !=
typeStringcookieThe comparison type. Valid values:
- param: Parameter.
- cookie: Cookie.
- header: Header.







valueStringtestThe parameter value. The value obtained based on type and name is compared with this value.
operatorStringrawvalueThe operator. Valid values:
- rawvalue: Direct comparison.
- list: Whitelist.
- mod: Modulo 100 operation.
- deterministic_proportional_steaming_division: Percentage.










  • DubboRule parameter

ParameterTypeExampleDescription
conditionStringORThe conditional pattern of the grayscale rule. Valid values:
- AND: All conditions in the list must be met.
- OR: Any condition in the list can be met.




methodNameStringechoThe method name of the Dubbo service.
serviceNameStringcom.alibaba.edas.boot.EchoServiceThe name of the Dubbo service.
versionString1.0.0The version of the Dubbo service.
itemsArray of itemsThe list of conditions.
groupStringDUBBOThe group of the Dubbo service that corresponds to the grayscale rule.

Item parameter

ParameterTypeExampleDescription
indexInteger0The parameter number. 0 indicates the first parameter.
exprString.nameThe expression that is used to obtain the parameter value. The syntax follows the Spring Expression Language (SpEL). Valid values:
- Leave it empty: Obtains the value of the current parameter.
- .name: Obtains the name property of the parameter. This is equivalent to args0.getName().
- .isEnabled(): Obtains the enabled property of the parameter. This is equivalent to args0.isEnabled().
- [0]: Obtains the first value of the array. This is equivalent to args0[0]. Note that the expression does not start with a period (.).
- **.get(0) **: Obtains the first value of the list. This is equivalent to args0.get(0).
- .get("key"): Obtains the value that corresponds to the specified key from the map. This is equivalent to args0.get("key").
















condString==The comparison operator. Valid values: >, <, >=, <=, ==, and !=
valueStringtestThe parameter value. The value obtained based on expr and index is compared with this value.
operatorStringrawvalueThe operator. Valid values:
- rawvalue: Direct comparison.
- list: Whitelist.
- mod: Modulo 100 operation.
- deterministic_proportional_steaming_division: Percentage.










Response elements

Element

Type

Description

Example

object

The returned data.

RequestId

string

The request ID.

9D29CBD0-45D3-410B-9826-52F86F90****

Message

string

Additional information. Valid values:

  • If the request is successful, success is returned.

  • If the request fails, a specific error code is returned.

success

TraceId

string

The trace ID, which is used to query the details of a call.

0a98a02315955564772843261e****

Data

object

The information about the grayscale rule.

CurrentPage

integer

The current page number.

1

PageSize

integer

The number of entries per page in a paged query. The value can only be 1.

1

TotalSize

integer

The total number of entries. The value can only be 1.

1

Result

array<object>

The returned result.

array<object>

The returned data.

GreyTagRouteId

integer

The rule ID.

1

Name

string

The rule name.

rule-name

Description

string

The description of the rule.

test

ScRules

array<object>

The grayscale rules for Spring Cloud.

array<object>

The details of the rules.

path

string

The path that corresponds to the grayscale rule for the Spring Cloud application.

/path

condition

string

The conditional pattern of the grayscale rule. Valid values:

  • AND: All conditions in the list must be met.

  • OR: Any condition in the list can be met.

OR

items

array<object>

The list of conditions.

object

The data in the list of conditions.

type

string

The comparison type. Valid values:

  • param: Parameter.

  • cookie: Cookie.

  • header: Header.

cookie

name

string

The parameter name.

test

operator

string

The operator. Valid values:

  • rawvalue: Direct comparison.

  • list: Whitelist.

  • mod: Modulo 100 operation.

  • deterministic_proportional_steaming_division: Percentage.

rawvalue

value

string

The parameter value. The value obtained based on type and name is compared with this value.

test

cond

string

The comparison operator. Valid values: >, <, >=, <=, ==, and !=.

==

index

integer

This parameter is not applicable to Spring Cloud applications.

N/A

expr

string

This parameter is not applicable to Spring Cloud applications.

N/A

AlbRules

array<object>

The grayscale rules created for an application for which an Application Load Balancer (ALB) Ingress is configured.

array<object>

The details of the grayscale rules.

ingressId

string

The Ingress ID.

23

condition

string

The conditional pattern of the grayscale rule. Only AND is supported, which indicates that all conditions in the list must be met.

AND

items

array<object>

The list of conditions.

object

The details of the list of conditions.

type

string

The comparison type. Valid values:

  • sourceIp: SourceIp.

  • cookie: Cookie.

  • header: Header.

cookie

name

string

The parameter name.

example

operator

string

The operator. Valid values: Only rawvalue is supported, which indicates a direct comparison.

rawvalue

value

string

The parameter value. The value obtained based on type and name is compared with this value.

test

cond

string

Only == is supported.

==

index

integer

This parameter is not applicable to ALB applications.

N/A

expr

string

This parameter is not applicable to ALB applications.

N/A

serviceName

string

The service name.

s-6366-e3****-99**

DubboRules

array<object>

The grayscale rules for Dubbo services.

array<object>

The information about the grayscale rules.

serviceName

string

The name of the Dubbo service.

com.alibaba.edas.boot.EchoService

group

string

The group of the Dubbo service that corresponds to the grayscale rule.

DUBBO

version

string

The version of the Dubbo service.

1.0.0

methodName

string

The method name of the Dubbo service.

echo

condition

string

The conditional pattern of the grayscale rule. Valid values:

  • AND: All conditions in the list must be met.

  • OR: Any condition in the list can be met.

OR

items

array<object>

The list of conditions.

object

The details of the conditions.

index

integer

The parameter number. 0 indicates the first parameter.

0

expr

string

The expression that is used to obtain the parameter value. The syntax follows the Spring Expression Language (SpEL). Valid values:

  • Leave it empty: Obtains the value of the current parameter.

  • .name: Obtains the name property of the parameter. This is equivalent to args0.getName().

  • .isEnabled(): Obtains the enabled property of the parameter. This is equivalent to args0.isEnabled().

  • [0]: Obtains the first value of the array. This is equivalent to args0[0]. Note that the expression does not start with a period (.).

  • .get(0): Obtains the first value of the list. This is equivalent to args0.get(0).

  • .get("key"): Obtains the value that corresponds to the specified key from the map. This is equivalent to args0.get("key").

.name

operator

string

The operator. Valid values:

  • rawvalue: Direct comparison.

  • list: Whitelist.

  • mod: Modulo 100 operation.

  • deterministic_proportional_steaming_division: Percentage.

rawvalue

value

string

The parameter value. The value obtained based on expr and index is compared with this value.

test

cond

string

The comparison operator. Valid values: >, <, >=, <=, ==, and !=.

==

type

string

This parameter is not applicable to Dubbo services.

N/A

name

string

This parameter is not applicable to Dubbo services.

N/A

CreateTime

integer

The timestamp when the rule was created. Unit: milliseconds.

1619007592013

UpdateTime

integer

The timestamp when the rule was updated. Unit: milliseconds.

1609434061000

ErrorCode

string

The error code. Valid values:

  • This parameter is not returned if the request is successful.

  • This parameter is returned if the request fails. For more information, see the Error codes section in this topic.

Code

string

The status of the interface or the POP error code. Valid values:

  • 2xx: The request is successful.

  • 3xx: The request is redirected.

  • 4xx: A request error occurs.

  • 5xx: A server error occurs.

200

Success

boolean

Indicates whether the grayscale rules were queried successfully. Valid values:

  • true: The rules were successfully queried.

  • false: The rules failed to be queried.

true

Examples

Success response

JSON format

{
  "RequestId": "9D29CBD0-45D3-410B-9826-52F86F90****",
  "Message": "success",
  "TraceId": "0a98a02315955564772843261e****",
  "Data": {
    "CurrentPage": 1,
    "PageSize": 1,
    "TotalSize": 1,
    "Result": [
      {
        "GreyTagRouteId": 1,
        "Name": "rule-name",
        "Description": "test",
        "ScRules": [
          {
            "path": "/path",
            "condition": "OR",
            "items": [
              {
                "type": "cookie",
                "name": "test",
                "operator": "rawvalue",
                "value": "test",
                "cond": "==",
                "index": 0,
                "expr": "N/A"
              }
            ]
          }
        ],
        "AlbRules": [
          {
            "ingressId": "23",
            "condition": "AND",
            "items": [
              {
                "type": "cookie",
                "name": "example",
                "operator": "rawvalue",
                "value": "test",
                "cond": "==",
                "index": 0,
                "expr": "N/A"
              }
            ],
            "serviceName": "s-6366-e3****-99**"
          }
        ],
        "DubboRules": [
          {
            "serviceName": "com.alibaba.edas.boot.EchoService",
            "group": "DUBBO",
            "version": "1.0.0",
            "methodName": "echo",
            "condition": "OR",
            "items": [
              {
                "index": 0,
                "expr": ".name",
                "operator": "rawvalue",
                "value": "test",
                "cond": "==",
                "type": "N/A",
                "name": "N/A"
              }
            ]
          }
        ],
        "CreateTime": 1619007592013,
        "UpdateTime": 1609434061000
      }
    ]
  },
  "ErrorCode": "空",
  "Code": "200",
  "Success": true
}

Error codes

HTTP status code

Error code

Error message

Description

400 InvalidParameter.NotEmpty You must specify the parameter %s.
400 InvalidParameter.Obviously The specified parameter is invalid {%s}.
400 InvalidParameter.WithMessage The parameter is invalid {%s}: %s

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.