All Products
Search
Document Center

Security Center:GetInterceptionRuleDetail

Last Updated:Jun 12, 2026

Mengkueri detail aturan pertahanan mikrosegmentasi.

Coba sekarang

Coba API ini di OpenAPI Explorer tanpa perlu penandatanganan manual. Panggilan yang berhasil akan secara otomatis menghasilkan contoh kode SDK sesuai dengan parameter Anda. Unduh kode tersebut dengan kredensial bawaan yang aman untuk penggunaan lokal.

Test

RAM authorization

Tabel berikut menjelaskan otorisasi yang diperlukan untuk memanggil API ini. Anda dapat menentukannya dalam kebijakan Resource Access Management (RAM). Kolom pada tabel dijelaskan sebagai berikut:

  • Action: Aksi yang dapat digunakan dalam elemen Action pada pernyataan kebijakan izin RAM untuk memberikan izin guna melakukan operasi tersebut.

  • API: API yang dapat Anda panggil untuk melakukan aksi tersebut.

  • Access level: Tingkat akses yang telah ditentukan untuk setiap API. Nilai yang valid: create, list, get, update, dan delete.

  • Resource type: Jenis resource yang mendukung otorisasi untuk melakukan aksi tersebut. Ini menunjukkan apakah aksi tersebut mendukung izin tingkat resource. Resource yang ditentukan harus kompatibel dengan aksi tersebut. Jika tidak, kebijakan tersebut tidak akan berlaku.

    • Untuk API dengan izin tingkat resource, jenis resource yang diperlukan ditandai dengan tanda bintang (*). Tentukan Nama Sumber Daya Alibaba Cloud (ARN) yang sesuai dalam elemen Resource pada kebijakan.

    • Untuk API tanpa izin tingkat resource, ditampilkan sebagai All Resources. Gunakan tanda bintang (*) dalam elemen Resource pada kebijakan.

  • Condition key: Kunci kondisi yang didefinisikan oleh layanan. Kunci ini memungkinkan kontrol granular, berlaku baik hanya untuk aksi maupun untuk aksi yang terkait dengan resource tertentu. Selain kunci kondisi spesifik layanan, Alibaba Cloud menyediakan serangkaian common condition keys yang berlaku di semua layanan yang didukung RAM.

  • Dependent action: Aksi dependen yang diperlukan untuk menjalankan aksi tersebut. Untuk menyelesaikan aksi tersebut, pengguna RAM atau role RAM harus memiliki izin untuk melakukan semua aksi dependen.

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:

  • suggest: aturan yang disarankan

  • customize: aturan kustom

Valid values:

  • suggest :

    suggest

  • customize :

    customize

customize

RuleSwitch

integer

Status sakelar aturan penjadwalan. Nilai yang valid:

  • 1: menunjukkan bahwa aturan diaktifkan.

  • 0: menunjukkan bahwa aturan dinonaktifkan.

Valid values:

  • 0 :

    0

  • 1 :

    1

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:

  • 0: mode observasi

  • 1: mode intersepsi

  • 2: mode peringatan

  • 3: mode izinkan

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.