All Products
Search
Document Center

Serverless App Engine:DescribeGreyTagRoute

Last Updated:Jun 11, 2026

Mendapatkan aturan canary release berdasarkan ID aturan.

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:DescribeGreyTagRoute

get

*全部资源

*

None None

Sintaks permintaan

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

Parameter permintaan

Parameter

Type

Required

Description

Example

GreyTagRouteId

integer

Yes

ID aturan.

1

Elemen respons

Element

Type

Description

Example

object

Data yang dikembalikan.

RequestId

string

ID permintaan.

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

Message

string

Pesan yang menunjukkan hasil panggilan.

success

TraceId

string

ID trace untuk menanyakan detail panggilan.

0a98a02315955564772843261e****

Data

object

Detail aturan canary.

GreyTagRouteId

integer

ID unik global dari aturan canary.

16

Name

string

Nama aturan canary.

rule-name

Description

string

Deskripsi aturan canary.

test

ScRules

array<object>

Aturan canary untuk aplikasi Spring Cloud.

array<object>

Objek yang mendefinisikan aturan canary.

path

string

Path for the Spring Cloud application grayscale rule.

/path

condition

string

Condition mode for the grayscale rule. Valid values:

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

  • OR: At least one condition in the condition list must be met.

OR

items

array<object>

Condition list.

object

Condition list data.

type

string

Comparison type. Valid values:

  • param: Parameter.

  • cookie: Cookie.

  • header: Header.

cookie

name

string

Parameter name.

test

operator

string

Operator. Valid values:

  • rawvalue: Direct comparison.

  • list: Whitelist.

  • mod: Modulo 100.

  • deterministic_proportional_steaming_division: Percentage.

rawvalue

value

string

Parameter value. The value obtained from type and name is compared with this value.

test

cond

string

Comparison operator. Valid values: >, <, >=, <=, ==, and !=.

==

index

integer

Not applicable to Spring Cloud applications.

N/A

expr

string

Not applicable to Spring Cloud applications.

N/A

AlbRules

array<object>

Aturan canary untuk instance Application Load Balancer (ALB).

array<object>

Objek yang mendefinisikan aturan canary untuk instance ALB.

serviceId

string

Routing service ID.

22

ingressId

string

Ingress routing ID.

23

condition

string

Condition mode for the grayscale rule. Only AND is supported. All conditions in the condition list must be met.

AND

items

array<object>

object

type

string

Comparison type. Valid values:

  • sourceIp: Source IP address.

  • cookie: Cookie.

  • header: Header.

cookie

name

string

Parameter name.

example

operator

string

Operator. Only rawvalue is supported: direct comparison.

rawvalue

value

string

Parameter value. The value obtained from type and name is compared with this value.

test

cond

string

Only == is supported.

==

index

integer

Not required for ALB applications.

N/A

expr

string

Not required for ALB applications.

N/A

DubboRules

array<object>

Aturan canary untuk layanan Dubbo.

array<object>

Objek yang mendefinisikan aturan canary.

serviceName

string

Dubbo service name.

com.alibaba.edas.boot.EchoService

group

string

Group for the Dubbo service associated with the grayscale rule.

DUBBO

version

string

Dubbo service version.

1.0.0

methodName

string

Method name for the Dubbo service.

echo

condition

string

Condition mode for the grayscale rule. Valid values:

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

  • OR: At least one condition in the condition list must be met.

OR

items

array<object>

Condition list.

object

Condition list data.

index

integer

Parameter index. Zero (0) indicates the first parameter.

0

expr

string

Expression to retrieve the parameter value. Valid values:

  • Empty: Use the current parameter value directly.

  • .name: Retrieve the name property of the parameter, equivalent to args0.getName().

  • .isEnabled(): Retrieve the enabled property of the parameter, equivalent to args0.isEnabled().

  • [0]: The parameter must be an array. Retrieve the first element, equivalent to args0[0]. Note: Do not include a leading period (.) before the bracket.

  • .get(0): The parameter must be a List. Retrieve the first element, equivalent to args0.get(0).

  • .get("key"): The parameter must be a Map. Retrieve the value for the specified key, equivalent to args0.get("key").

.name

operator

string

Operator. Valid values:

  • rawvalue: Direct comparison.

  • list: Whitelist.

  • mod: Modulo 100.

  • deterministic_proportional_steaming_division: Percentage.

rawvalue

value

string

Parameter value. The value obtained from expr and index is compared with this value.

test

cond

string

Comparison operator. Valid values: >, <, >=, <=, ==, and !=.

==

type

string

Not applicable to Dubbo services.

N/A

name

string

Not applicable to Dubbo services.

N/A

CreateTime

integer

Timestamp pembuatan aturan, dalam milidetik.

1619007592013

UpdateTime

integer

Timestamp pembaruan terakhir aturan, dalam milidetik.

1609434061000

AppId

string

ID aplikasi.

3faaf993-7aed-4bcd-b189-625e6a5a****

ErrorCode

string

Kode error. Nilai yang valid:

  • Parameter ini tidak dikembalikan jika permintaan berhasil.

  • Jika permintaan gagal, parameter ErrorCode dikembalikan. Untuk informasi lebih lanjut, lihat bagian Error codes di topik ini.

Code

string

Kode status dari panggilan API atau kode error POP. Nilai yang valid:

  • 2xx: Permintaan berhasil.

  • 3xx: Permintaan dialihkan.

  • 4xx: Terjadi error pada sisi klien.

  • 5xx: Terjadi error pada sisi server.

200

Success

boolean

Menunjukkan apakah permintaan berhasil. Nilai yang valid:

  • true: Permintaan berhasil.

  • false: Permintaan gagal.

true

Contoh

Respons sukses

JSONformat

{
  "RequestId": "9D29CBD0-45D3-410B-9826-52F86F90****",
  "Message": "success",
  "TraceId": "0a98a02315955564772843261e****",
  "Data": {
    "GreyTagRouteId": 16,
    "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": [
      {
        "serviceId": "22",
        "ingressId": "23",
        "condition": "AND",
        "items": [
          {
            "type": "cookie",
            "name": "example",
            "operator": "rawvalue",
            "value": "test",
            "cond": "==",
            "index": 0,
            "expr": "N/A"
          }
        ]
      }
    ],
    "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,
    "AppId": "3faaf993-7aed-4bcd-b189-625e6a5a****"
  },
  "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.