Mengkueri detail aturan pertahanan mikrosegmentasi.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-sas:GetInterceptionRuleDetail |
get |
*全部资源
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| ClusterId |
string |
Yes |
ID kluster kontainer yang ingin Anda kueri. Catatan
Anda dapat memanggil operasi DescribeGroupedContainerInstances untuk mendapatkan parameter ini. |
c7f60fdabc84xxx |
| RuleId |
string |
Yes |
ID aturan. Catatan
Anda dapat memanggil operasi ListInterceptionRulePage untuk mendapatkan parameter ini. |
500002 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
ID permintaan, yang merupakan pengenal unik yang dibuat oleh Alibaba Cloud untuk permintaan tersebut. ID dapat digunakan untuk memecahkan masalah dan menemukan lokasi masalah. |
9FBC6E47-7508-xxx |
| InterceptionRuleDetail |
object |
Detail aturan intersepsi. |
|
| RuleType |
string |
Tipe aturan. Nilai yang valid:
Valid values:
|
customize |
| RuleSwitch |
integer |
Status sakelar aturan penjadwalan. Nilai yang valid:
Valid values:
|
1 |
| RuleId |
integer |
ID aturan. |
467 |
| RuleName |
string |
Nama aturan. |
dmz-frontend-accept |
| SrcTarget |
object |
Objek jaringan sumber. |
|
| 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 |
Objek jaringan tujuan. |
|
| 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 |
Mode intersepsi. Nilai yang valid:
|
1 |
| OrderIndex |
integer |
Prioritas aturan. Nilai yang valid: 1 hingga 1000. Nilai yang lebih kecil menunjukkan prioritas yang lebih tinggi. |
1 |
Contoh
Respons sukses
JSONformat
{
"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
}
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 500 | ServerError | ServerError | |
| 403 | NoPermission | caller has no permission |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.