Obtient les détails d'une règle de défense de microsegmentation.
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
|
yundun-sas:GetInterceptionRuleDetail |
get |
*All Resource
|
Aucune | Aucune |
Paramètres de requête
|
Paramètre |
Type |
Requis |
Description |
Exemple |
| ClusterId |
string |
Oui |
L'identifiant du cluster de conteneurs. Remarque
Vous pouvez appeler l'opération DescribeGroupedContainerInstances pour interroger les identifiants des clusters de conteneurs. |
c7f60fdabc84xxx. |
| RuleId |
string |
Oui |
L'identifiant de la règle. Remarque
Vous pouvez appeler l'opération ListInterceptionRulePage pour interroger les identifiants des règles. |
500002 |
Éléments de réponse
|
Élément |
Type |
Description |
Exemple |
|
object |
|||
| RequestId |
string |
L'identifiant de la requête. |
9FBC6E47-7508-xxx. |
| InterceptionRuleDetail |
object |
Les détails de la règle. |
|
| RuleType |
string |
Le type de la règle. Valeurs valides :
Valeurs valides :
|
customize. |
| RuleSwitch |
integer |
L'état de la règle de défense. Valeurs valides :
Valeurs valides :
|
1 |
| RuleId |
integer |
L'identifiant de la règle. |
467 |
| RuleName |
string |
Le nom de la règle. |
dmz-frontend-accept. |
| SrcTarget |
object |
L'objet réseau source. |
|
| AppName |
string |
The name of the application. |
console |
| RuleType |
string |
The type of the rule. |
customize |
| TargetId |
integer |
The ID of the network object. |
300635 |
| TargetName |
string |
The name of the object. |
dmz |
| Namespace |
string |
The namespace to which the network object belongs. |
default |
| TargetType |
string |
The type of the network object. |
IMAGE |
| ImageList |
array |
The images of the network object. |
|
|
string |
An array that consists of images. |
arms-prom-operator:v0.1 |
|
| TagList |
array |
The labels specified for the network object. |
|
|
string |
The labels specified for the network object. |
service:be-v1 |
|
| DstTarget |
object |
L'objet réseau de destination. |
|
| AppName |
string |
The name of the application. |
console |
| RuleType |
string |
The type of the rule. |
customize |
| TargetId |
integer |
The ID of the network object. |
200014 |
| TargetName |
string |
The name of the object. |
demo4-be1 |
| Namespace |
string |
The namespace to which the network object belongs. |
kube-system |
| TargetType |
string |
The type of the network object. |
IMAGE |
| Ports |
array |
An array that consists of the port range of the destination network object. |
|
|
string |
The port range of the destination network object. |
80/8080 |
|
| ImageList |
array |
An array that consists of the name of the image specified for the network object. |
|
|
string |
The name of the image specified for the network object. |
bj_storage:nginx1 |
|
| TagList |
array |
An array that consists of the labels specified for the network object. |
|
|
string |
The labels specified for the network object. |
chart:ack-arms-prometheus-1.1.0 |
|
| InterceptType |
integer |
Le mode d'interception. Valeurs valides :
|
1 |
| OrderIndex |
integer |
La priorité de la règle. Valeurs valides : de 1 à 1000. Une valeur plus petite indique une priorité plus élevée. |
1 |
Exemples
JSON format
{
"RequestId": "9FBC6E47-7508-xxx",
"InterceptionRuleDetail": {
"RuleType": "customize",
"RuleSwitch": 1,
"RuleId": 467,
"RuleName": "dmz-frontend-accept",
"SrcTarget": {
"AppName": "console",
"RuleType": "customize",
"TargetId": 300635,
"TargetName": "dmz",
"Namespace": "default",
"TargetType": "IMAGE",
"ImageList": [
"arms-prom-operator:v0.1"
],
"TagList": [
"service:be-v1"
]
},
"DstTarget": {
"AppName": "console",
"RuleType": "customize",
"TargetId": 200014,
"TargetName": "demo4-be1",
"Namespace": "kube-system",
"TargetType": "IMAGE",
"Ports": [
"80/8080"
],
"ImageList": [
"bj_storage:nginx1"
],
"TagList": [
"chart:ack-arms-prometheus-1.1.0"
]
},
"InterceptType": 1,
"OrderIndex": 1
}
}
Codes d'erreur
|
Code de statut HTTP |
Code d'erreur |
Message d'erreur |
Description |
|---|---|---|---|
| 500 | ServerError | ServerError | |
| 403 | NoPermission | caller has no permission |
Consultez Codes d'erreur pour la liste complète.
Notes de version
Consultez Notes de version pour la liste complète.