Obtient une règle de déploiement canari par identifiant de règle.
Testez maintenant
Testez cette API dans OpenAPI Explorer, sans signature manuelle. Les appels réussis génèrent automatiquement du code SDK correspondant à vos paramètres. Téléchargez-le avec une sécurité intégrée des identifiants pour une utilisation locale. Testez cette API dans OpenAPI Explorer, sans signature manuelle. Les appels réussis génèrent automatiquement du code SDK correspondant à vos paramètres. Téléchargez-le avec une sécurité intégrée des identifiants pour une utilisation locale.
Test
Autorisation RAM
|
sae:DescribeGreyTagRoute |
get |
*All Resource
|
Aucune | Aucune |
Syntaxe de la requête
GET /pop/v1/sam/tagroute/greyTagRoute HTTP/1.1
Paramètres de requête
|
Paramètre |
Type |
Requis |
Description |
Exemple |
| GreyTagRouteId |
integer |
Oui |
L'identifiant de la règle. |
1 |
Éléments de réponse
|
Élément |
Type |
Description |
Exemple |
|
object |
Les données renvoyées. |
||
| RequestId |
string |
L'identifiant de la requête. |
9D29CBD0-45D3-410B-9826-52F86F90**** |
| Message |
string |
Le message qui indique le résultat de l'appel. |
success |
| TraceId |
string |
L'identifiant de trace pour interroger les détails d'un appel. |
0a98a02315955564772843261e**** |
| Data |
object |
Les détails de la règle canari. |
|
| GreyTagRouteId |
integer |
L'identifiant unique global de la règle canari. |
16 |
| Name |
string |
Le nom de la règle canari. |
rule-name |
| Description |
string |
La description de la règle canari. |
test |
| ScRules |
array<object> |
Les règles canari pour l'application Spring Cloud. |
|
|
array<object> |
Un objet qui définit une règle canari. |
||
| path |
string |
The path to which the rule applies. |
/path |
| condition |
string |
The relationship between the conditions in the rule. Valid values:
|
OR |
| items |
array<object> |
The list of conditions. |
|
|
object |
An object that defines a single condition. |
||
| type |
string |
The type of request element to match against. Valid values:
|
cookie |
| name |
string |
The name of the element to match, as specified by the type parameter. For example, a header name or cookie name. |
test |
| operator |
string |
The matching operator. Valid values:
|
rawvalue |
| value |
string |
The value to match. This value is compared with the actual value of the element specified by type and name. |
test |
| cond |
string |
The comparison operator. Valid values are >, <, >=, <=, ==, and !=. |
== |
| index |
integer |
Not used in Spring Cloud applications. |
N/A |
| expr |
string |
Not used in Spring Cloud applications. |
N/A |
| AlbRules |
array<object> |
Les règles canari pour l'instance Application Load Balancer (ALB). |
|
|
array<object> |
Un objet qui définit une règle canari pour une instance ALB. |
||
| serviceId |
string |
The routing service ID. |
22 |
| ingressId |
string |
The ID of the Ingress. |
23 |
| condition |
string |
The relationship between the conditions in the canary rule. Only AND is supported, which indicates that all conditions must be met. |
AND |
| items |
array<object> |
The list of conditions. |
|
|
object |
An object that defines a single condition. |
||
| type |
string |
The type of request element to match against. Valid values:
|
cookie |
| name |
string |
The name of the element to match, such as a header or cookie name. This parameter is not used if type is set to sourceIp. |
example |
| operator |
string |
The matching operator. Only rawvalue is supported, which indicates a direct comparison. |
rawvalue |
| value |
string |
The value to match. This value is compared with the actual value of the element specified by type and name. |
test |
| cond |
string |
Currently supports ==. |
== |
| index |
integer |
Not required for ALB applications. |
N/A |
| expr |
string |
Not required for ALB applications. |
N/A |
| DubboRules |
array<object> |
Les règles canari pour le service Dubbo. |
|
|
array<object> |
Un objet qui définit une règle canari. |
||
| serviceName |
string |
The Dubbo service name. |
com.alibaba.edas.boot.EchoService |
| group |
string |
The service group to which the canary rule applies. |
DUBBO |
| version |
string |
The Dubbo service version. |
1.0.0 |
| methodName |
string |
The method name of the Dubbo service. |
echo |
| condition |
string |
The relationship between the conditions in the rule. Valid values:
|
OR |
| items |
array<object> |
The list of conditions. |
|
|
object |
An object that defines a single condition. |
||
| index |
integer |
The parameter index. |
0 |
| expr |
string |
The expression that is used to obtain the parameter value. Valid values:
|
.name |
| operator |
string |
The matching operator. Valid values:
|
rawvalue |
| value |
string |
The value to match. This value is compared with the actual value retrieved by using the specified expr and index. |
test |
| cond |
string |
The comparison operator. Valid values are >, <, >=, <=, ==, and !=. |
== |
| type |
string |
Not used in Dubbo services. |
N/A |
| name |
string |
Not used in Dubbo services. |
N/A |
| CreateTime |
integer |
L'horodatage de création de la règle, en millisecondes. |
1619007592013 |
| UpdateTime |
integer |
L'horodatage de la dernière mise à jour de la règle, en millisecondes. |
1609434061000 |
| AppId |
string |
L'identifiant de l'application. |
3faaf993-7aed-4bcd-b189-625e6a5a**** |
| ErrorCode |
string |
Le code d'erreur. Valeurs valides : |
|
| Code |
string |
Le code d'état de l'appel d'API ou un code d'erreur POP. Valeurs valides : |
200 |
| Success |
boolean |
Indique si la requête a abouti. Valeurs valides : |
true |
Exemples
JSON format
{
"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
}
Codes d'erreur
|
Code de statut HTTP |
Code d'erreur |
Message d'erreur |
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 |
Consultez Codes d'erreur pour la liste complète.
Notes de version
Consultez Notes de version pour la liste complète.