All Products
Search
Document Center

Serverless App Engine:ListGreyTagRoute

Last Updated:Jun 11, 2026

Mengkueri detail aturan grayscale berdasarkan ID aplikasi.

Deskripsi operasi

Catatan

You can configure only one grayscale rule for each application.

Coba sekarang

Coba API ini di OpenAPI Explorer tanpa perlu penandatanganan manual. Panggilan yang berhasil akan secara otomatis menghasilkan contoh kode SDK sesuai dengan parameter Anda. Unduh kode tersebut dengan kredensial bawaan yang aman untuk penggunaan lokal.

Test

RAM authorization

Tabel berikut menjelaskan otorisasi yang diperlukan untuk memanggil API ini. Anda dapat menentukannya dalam kebijakan Resource Access Management (RAM). Kolom pada tabel dijelaskan sebagai berikut:

  • Action: Aksi yang dapat digunakan dalam elemen Action pada pernyataan kebijakan izin RAM untuk memberikan izin guna melakukan operasi tersebut.

  • API: API yang dapat Anda panggil untuk melakukan aksi tersebut.

  • Access level: Tingkat akses yang telah ditentukan untuk setiap API. Nilai yang valid: create, list, get, update, dan delete.

  • Resource type: Jenis resource yang mendukung otorisasi untuk melakukan aksi tersebut. Ini menunjukkan apakah aksi tersebut mendukung izin tingkat resource. Resource yang ditentukan harus kompatibel dengan aksi tersebut. Jika tidak, kebijakan tersebut tidak akan berlaku.

    • Untuk API dengan izin tingkat resource, jenis resource yang diperlukan ditandai dengan tanda bintang (*). Tentukan Nama Sumber Daya Alibaba Cloud (ARN) yang sesuai dalam elemen Resource pada kebijakan.

    • Untuk API tanpa izin tingkat resource, ditampilkan sebagai All Resources. Gunakan tanda bintang (*) dalam elemen Resource pada kebijakan.

  • Condition key: Kunci kondisi yang didefinisikan oleh layanan. Kunci ini memungkinkan kontrol granular, berlaku baik hanya untuk aksi maupun untuk aksi yang terkait dengan resource tertentu. Selain kunci kondisi spesifik layanan, Alibaba Cloud menyediakan serangkaian common condition keys yang berlaku di semua layanan yang didukung RAM.

  • Dependent action: Aksi dependen yang diperlukan untuk menjalankan aksi tersebut. Untuk menyelesaikan aksi tersebut, pengguna RAM atau role RAM harus memiliki izin untuk melakukan semua aksi dependen.

Action

Access level

Resource type

Condition key

Dependent action

sae:ListGreyTagRoute

get

*全部资源

*

None None

Sintaks permintaan

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

Parameter permintaan

Parameter

Type

Required

Description

Example

AppId

string

Yes

ID aplikasi.

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

  • Parameter ScRule.

ParameterTipeContohDeskripsi
conditionStringORPola kondisional aturan grayscale. Nilai valid:
- AND: Semua kondisi dalam daftar harus terpenuhi.
- OR: Salah satu kondisi dalam daftar dapat terpenuhi.
pathString/pathPath yang sesuai dengan aturan grayscale untuk aplikasi Spring Cloud.
itemsArray itemDaftar kondisi.

Parameter Item.

ParameterTipeContohDeskripsi
nameStringtestNama parameter.
condString==Operator perbandingan. Nilai valid: >, <, >=, <=, ==, dan !=
typeStringcookieTipe perbandingan. Nilai valid:
- param: Parameter.
- cookie: Cookie.
- header: Header.
valueStringtestNilai parameter. Nilai yang diperoleh berdasarkan type dan name dibandingkan dengan nilai ini.
operatorStringrawvalueOperator. Nilai valid:
- rawvalue: Perbandingan langsung.
- list: Daftar putih.
- mod: Operasi modulo 100.
- deterministic_proportional_steaming_division: Persentase.
  • Parameter DubboRule.

ParameterTipeContohDeskripsi
conditionStringORPola kondisional aturan grayscale. Nilai valid:
- AND: Semua kondisi dalam daftar harus terpenuhi.
- OR: Salah satu kondisi dalam daftar dapat terpenuhi.
methodNameStringechoNama metode layanan Dubbo.
serviceNameStringcom.alibaba.edas.boot.EchoServiceNama layanan Dubbo.
versionString1.0.0Versi layanan Dubbo.
itemsArray itemDaftar kondisi.
groupStringDUBBOKelompok layanan Dubbo yang sesuai dengan aturan grayscale.

Parameter Item.

ParameterTipeContohDeskripsi
indexInteger0Indeks parameter. 0 menunjukkan parameter pertama.
exprString.nameEkspresi yang digunakan untuk mendapatkan nilai parameter. Sintaks mengikuti Spring Expression Language (SpEL). Nilai valid:
- Kosongkan: Mendapatkan nilai parameter saat ini.
- .name: Mendapatkan properti name parameter. Ini setara dengan args0.getName().
- .isEnabled(): Mendapatkan properti enabled parameter. Ini setara dengan args0.isEnabled().
- [0]: Mendapatkan nilai pertama array. Ini setara dengan args0[0]. Perhatikan bahwa ekspresi tidak diawali dengan titik (.).
- **.get(0) **: Mendapatkan nilai pertama daftar. Ini setara dengan args0.get(0).
- .get("key"): Mendapatkan nilai yang sesuai dengan kunci tertentu dari map. Ini setara dengan args0.get("key").
condString==Operator perbandingan. Nilai valid: >, <, >=, <=, ==, dan !=
valueStringtestNilai parameter. Nilai yang diperoleh berdasarkan expr dan index dibandingkan dengan nilai ini.
operatorStringrawvalueOperator. Nilai valid:
- rawvalue: Perbandingan langsung.
- list: Daftar putih.
- mod: Operasi modulo 100.
- deterministic_proportional_steaming_division: Persentase.

Elemen respons

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 query succeeded.

  • true: The query succeeded.

  • false: The query failed.

true

Contoh

Respons sukses

JSONformat

{
  "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
}

Kode kesalahan

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

Lihat Error Codes untuk daftar lengkap.

Catatan rilis

Lihat Release Notes untuk daftar lengkap.