Mendapatkan aturan canary release berdasarkan ID aturan.
Coba sekarang
Test
RAM authorization
|
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:
|
OR |
| items |
array<object> |
Condition list. |
|
|
object |
Condition list data. |
||
| type |
string |
Comparison type. Valid values:
|
cookie |
| name |
string |
Parameter name. |
test |
| operator |
string |
Operator. Valid values:
|
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:
|
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:
|
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:
|
.name |
| operator |
string |
Operator. Valid values:
|
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:
|
|
| Code |
string |
Kode status dari panggilan API atau kode error POP. Nilai yang valid:
|
200 |
| Success |
boolean |
Menunjukkan apakah permintaan berhasil. Nilai yang valid:
|
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.