Consulta regras de defesa configuradas para o recurso de firewall de contêiner.
Experimente agora
Testar
Autorização RAM
|
Ação |
Nível de acesso |
Tipo de recurso |
Chave de condição |
Ação dependente |
|
yundun-sas:ListInterceptionRulePage |
get |
*All Resource
|
Nenhuma | Nenhuma |
Parâmetros da solicitação
|
Parâmetro |
Tipo |
Obrigatório |
Descrição |
Exemplo |
| ClusterId |
string |
Sim |
O ID do cluster de contêiner. |
cc41de13ab5474210bc0ce772a009**** |
| Criteria |
string |
Não |
A condição de consulta. |
80 |
| CriteriaType |
string |
Não |
O tipo da condição de consulta. Valores válidos:
|
DST_PORT |
| CurrentPage |
integer |
Sim |
O número da página a ser retornada. |
1 |
| PageSize |
integer |
Sim |
O número de entradas a serem retornadas em cada página. |
50 |
Elementos de resposta
|
Elemento |
Tipo |
Descrição |
Exemplo |
|
object |
|||
| RequestId |
string |
O ID da solicitação, que é usado para localizar e solucionar problemas. |
ACF97412-FD09-4D1F-994F-34DF12BR**** |
| PageInfo |
object |
As informações de paginação. |
|
| CurrentPage |
integer |
O número da página retornada. |
19 |
| PageSize |
integer |
O número de entradas retornadas por página. |
20 |
| TotalCount |
integer |
O número total de entradas retornadas. |
2 |
| Count |
integer |
O número de entradas retornadas na página atual. |
20 |
| InterceptionRuleList |
array<object> |
Um array que consiste em informações sobre as regras de defesa. |
|
|
array<object> |
As informações sobre a regra de defesa. |
||
| RuleType |
string |
O tipo da regra de defesa. |
customize |
| RuleSwitch |
integer |
O status da regra de defesa. Valores válidos:
|
1 |
| RuleId |
integer |
O ID da regra de defesa. |
30**** |
| RuleName |
string |
O nome da regra de defesa. |
test |
| SrcTarget |
object |
O objeto de rede de origem. |
|
| AppName |
string |
The name of the application. |
ack-jenkins-lawr**** |
| RuleType |
string |
The type of the defense rule. Valid values:
|
customize |
| TargetId |
integer |
The ID of the network object. |
40**** |
| TargetName |
string |
The name of the network object. |
mhh-te**** |
| Namespace |
string |
The namespace. |
jenkins |
| TargetType |
string |
The type of the affected assets. |
containerId |
| ImageList |
array |
An array that consists of the images of the network object. |
|
|
string |
The images. |
nginx:1.**** |
|
| TagList |
array |
An array that consists of tags added to the source network object. |
|
|
string |
The tags added to the source network object. |
bpm |
|
| DstTarget |
object |
O objeto de rede de destino. |
|
| AppName |
string |
The name of the application. |
console |
| RuleType |
string |
The type of the defense rule. Valid values:
|
customize |
| TargetId |
integer |
The ID of the network object. |
302001 |
| TargetName |
string |
The name of the network object. |
demo4**** |
| Namespace |
string |
The namespace. |
test |
| TargetType |
string |
The type of the network object. |
IMAGE |
| Ports |
array |
An array that consists of information about the ports used by the destination server. |
|
|
string |
The ports. |
{"tcp":"1234","udp":"5555"} |
|
| ImageList |
array |
An array that consists of the affected images. |
|
|
string |
The affected images. |
nacos:v2.0**** |
|
| TagList |
array |
An array that consists of tags added to the destination network object. |
|
|
string |
The tags added to the destination network object. |
111 |
|
| OrderIndex |
integer |
A ordem na qual as entradas são classificadas. |
1 |
| InterceptType |
integer |
O modo de interceptação. Valores válidos:
|
1 |
Exemplos
Resposta de sucesso
JSON formato
{
"RequestId": "ACF97412-FD09-4D1F-994F-34DF12BR****",
"PageInfo": {
"CurrentPage": 19,
"PageSize": 20,
"TotalCount": 2,
"Count": 20
},
"InterceptionRuleList": [
{
"RuleType": "customize",
"RuleSwitch": 1,
"RuleId": 0,
"RuleName": "test",
"SrcTarget": {
"AppName": "ack-jenkins-lawr****",
"RuleType": "customize",
"TargetId": 0,
"TargetName": "mhh-te****",
"Namespace": "jenkins",
"TargetType": "containerId",
"ImageList": [
"nginx:1.****"
],
"TagList": [
"bpm"
]
},
"DstTarget": {
"AppName": "console",
"RuleType": "customize",
"TargetId": 302001,
"TargetName": "demo4****",
"Namespace": "test",
"TargetType": "IMAGE",
"Ports": [
"{\"tcp\":\"1234\",\"udp\":\"5555\"}"
],
"ImageList": [
"nacos:v2.0****"
],
"TagList": [
"111"
]
},
"OrderIndex": 1,
"InterceptType": 1
}
]
}
Códigos de erro
|
Código de status HTTP |
Código de erro |
Mensagem de erro |
Descrição |
|---|---|---|---|
| 500 | ServerError | ServerError | |
| 403 | NoPermission | caller has no permission | You are not authorized to do this operation. |
Consulte Códigos de Erro para uma lista completa.
Notas de versão
Consulte Notas de Versão para uma lista completa.