All Products
Search
Document Center

Tair (Redis® OSS-Compatible):DescribeDBInstanceNetInfo

Last Updated:Jun 12, 2026

Menanyakan informasi jaringan dari instans ApsaraDB for Redis (kompatibel dengan Tair).

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

kvstore:DescribeDBInstanceNetInfo

get

*DBInstance

acs:kvstore:{#regionId}:{#accountId}:instance/{#instanceId}

None None

Parameter permintaan

Parameter

Type

Required

Description

Example

InstanceId

string

Yes

ID dari instans.

r-bp1zxszhcgatnx****

NetType

string

No

Elemen respons

Element

Type

Description

Example

object

InstanceNetworkType

string

Jenis jaringan dari instans. Nilai yang valid:

  • CLASSIC: jaringan klasik.

  • VPC: Virtual Private Cloud (VPC).

CLASSIC

RequestId

string

ID permintaan.

FC77D4E1-2A7C-4F0B-A4CC-CE0B9C314B9B

NetInfoItems

object

InstanceNetInfo

array<object>

Informasi jaringan dari instans.

object

Informasi jaringan dari instans.

DirectConnection

integer

Indicates whether the address is a private endpoint. Valid values:

  • 0: The address is not a private endpoint.

  • 1: The address is a private endpoint.

0

VSwitchId

string

The ID of the vSwitch.

vsw-bp1e7clcw529l773d****

DBInstanceNetType

string

The network type of the instance. Valid values:

  • 0: Internet

  • 1: classic network

  • 2: Virtual Private Cloud (VPC)

1

Upgradeable

string

The remaining validity period of the classic network endpoint. Unit: seconds.

Catatan

**A value of 0 indicates that the endpoint never expires.

0

ExpiredTime

string

The expiration time of the classic network endpoint. Unit: seconds.

5183778

ConnectionString

string

The endpoint of the instance.

r-bp1zxszhcgatnx****.redis.rds.aliyuncs.com

IPType

string

The network type of the IP address. Valid values:

  • Public: Internet

  • Inner: classic network

  • Private: VPC

Inner

VPCInstanceId

string

The instance ID.

r-bp1ky7j6qc7umk****

Port

string

The service port of the instance.

6379

VPCId

string

The ID of the VPC to which the instance belongs.

vpc-bp1nme44gek34slfc****

IPAddress

string

The IP address.

172.16.49.***

IsSlaveProxy

integer

Indicates whether the address is the endpoint for the secondary zone. Valid values: 1 and 0. A value of 1 indicates that the address is the endpoint for the secondary zone.

Catatan

This parameter is returned only after you enable the multi-zone read/write splitting architecture for the instance.

1

Contoh

Respons sukses

JSONformat

{
  "InstanceNetworkType": "CLASSIC",
  "RequestId": "FC77D4E1-2A7C-4F0B-A4CC-CE0B9C314B9B",
  "NetInfoItems": {
    "InstanceNetInfo": [
      {
        "DirectConnection": 0,
        "VSwitchId": "vsw-bp1e7clcw529l773d****",
        "DBInstanceNetType": "1",
        "Upgradeable": "0",
        "ExpiredTime": "5183778",
        "ConnectionString": "r-bp1zxszhcgatnx****.redis.rds.aliyuncs.com",
        "IPType": "Inner",
        "VPCInstanceId": "r-bp1ky7j6qc7umk****",
        "Port": "6379",
        "VPCId": "vpc-bp1nme44gek34slfc****",
        "IPAddress": "172.16.49.***",
        "IsSlaveProxy": 1
      }
    ]
  }
}

Respons error

JSONformat

{
 "RequestId":"314C4FB3-4256-424F-9AD9-1A6B3444160A",
 "InstanceNetworkType":"Classic",
 "NetInfoItems":{
   "InstanceNetInfo":[{
     "DBInstanceNetType":"1",
     "Port":"6379",
     "ConnectionString":"r-xxxxxxxxxxxxxxx.redis.rds.aliyuncs.com",
     "VPCId":"",
     "IPAddress":"xxx.xxx.xxx.xxx",
     "IPType":"Inner",
     "Upgradeable":"0"
   				   }]
   			 }
}

Kode kesalahan

Lihat Error Codes untuk daftar lengkap.

Catatan rilis

Lihat Release Notes untuk daftar lengkap.