Obtém uma regra de lançamento canário pelo ID da regra.
Experimente agora
Testar
Autorização RAM
|
Ação |
Nível de acesso |
Tipo de recurso |
Chave de condição |
Ação dependente |
|
sae:DescribeGreyTagRoute |
get |
*All Resource
|
Nenhuma | Nenhuma |
Sintaxe da solicitação
GET /pop/v1/sam/tagroute/greyTagRoute HTTP/1.1
Parâmetros da solicitação
|
Parâmetro |
Tipo |
Obrigatório |
Descrição |
Exemplo |
| GreyTagRouteId |
integer |
Sim |
O ID da regra. |
1 |
Elementos de resposta
|
Elemento |
Tipo |
Descrição |
Exemplo |
|
object |
Os dados retornados. |
||
| RequestId |
string |
O ID da solicitação. |
9D29CBD0-45D3-410B-9826-52F86F90**** |
| Message |
string |
A mensagem que indica o resultado da chamada. |
success |
| TraceId |
string |
O ID de rastreamento para consultar os detalhes de uma chamada. |
0a98a02315955564772843261e**** |
| Data |
object |
Os detalhes da regra canário. |
|
| GreyTagRouteId |
integer |
O ID globalmente único da regra canário. |
16 |
| Name |
string |
O nome da regra canário. |
rule-name |
| Description |
string |
A descrição da regra canário. |
test |
| ScRules |
array<object> |
As regras canário para a aplicação Spring Cloud. |
|
|
array<object> |
Um objeto que define uma regra canário. |
||
| 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> |
As regras canário para a instância do Application Load Balancer (ALB). |
|
|
array<object> |
Um objeto que define uma regra canário para uma instância 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> |
As regras canário para o serviço Dubbo. |
|
|
array<object> |
Um objeto que define uma regra canário. |
||
| 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 |
O timestamp de criação da regra, em milissegundos. |
1619007592013 |
| UpdateTime |
integer |
O timestamp da última atualização da regra, em milissegundos. |
1609434061000 |
| AppId |
string |
O ID da aplicação. |
3faaf993-7aed-4bcd-b189-625e6a5a**** |
| ErrorCode |
string |
O código de erro. Valores válidos:
|
|
| Code |
string |
O código de status da chamada de API ou um código de erro POP. Valores válidos:
|
200 |
| Success |
boolean |
Indica se a solicitação foi bem-sucedida. Valores válidos:
|
true |
Exemplos
Resposta de sucesso
JSON formato
{
"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
}
Códigos de erro
|
Código de status HTTP |
Código de erro |
Mensagem de erro |
Descrição |
|---|---|---|---|
| 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 |
Consulte Códigos de Erro para uma lista completa.
Notas de versão
Consulte Notas de Versão para uma lista completa.