All Products
Search
Document Center

Resource Management:GetResourceConfiguration

Last Updated:Jun 10, 2026

Mengkueri konfigurasi Sumber daya dalam akun saat ini.

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

resourcecenter:GetResourceConfiguration

get

*All Resource

*

None None

Parameter permintaan

Parameter

Type

Required

Description

Example

ResourceRegionId

string

Yes

ID Wilayah Sumber daya.

cn-shanghai

ResourceType

string

Yes

Tipe Sumber daya.

Untuk informasi selengkapnya tentang tipe Sumber daya yang didukung oleh Resource Center, lihat Layanan yang bekerja dengan Resource Center.

ACS::VPC::RouteTable

ResourceId

string

Yes

ID Sumber daya.

eip-bp1kyg72m****

Elemen respons

Element

Type

Description

Example

object

The returned result.

AccountId

string

The ID of the Alibaba Cloud account to which the resource belongs.

151266687691****

Configuration

object

The configurations of the resource.

any

The configurations of the resource.

{\"uid\":\"191432722631****\",\"groupId\":\"MtxXXli4FfphQJyH9R3p00****\"}

CreateTime

string

The time when the resource was created.

2021-06-30T09:20:08Z

ExpireTime

string

The time when the resource expires.

2021-07-30T09:20:08Z

IpAddressAttributes

array<object>

The attributes of the IP address.

object

IpAddress

string

The IP address.

192.168.1.2

NetworkType

string

The network type. Valid values:

  • Public: the Internet

  • Private: internal network

Public

Version

string

The version.

Ipv4

IpAddresses

array

The IP addresses.

Catatan

Whether this parameter is returned is determined by the Alibaba Cloud service to which the resource belongs.

string

An IP address.

192.168.1.2

RegionId

string

The region ID of the resource.

cn-hangzhou

RequestId

string

The ID of the request.

F1CE0D52-32DA-531A-87A4-B9A5B68D5D8E

ResourceGroupId

string

The ID of the resource group to which the resource belongs.

rg-acfmv4k****

ResourceId

string

The ID of the resource.

vtb-uf6978gdqbi****

ResourceName

string

The name of the resource.

group1

ResourceType

string

The type of the resource.

ACS::VPC::VSwitch

Tags

array<object>

The tags of the resource.

object

A tag.

Key

string

The tag key.

test-key

Value

string

The tag value.

test-value

ZoneId

string

The zone ID of the resource.

cn-hangzhou-k

Contoh

Respons sukses

JSONformat

{
  "AccountId": "151266687691****",
  "Configuration": {
    "key": "{\\\"uid\\\":\\\"191432722631****\\\",\\\"groupId\\\":\\\"MtxXXli4FfphQJyH9R3p00****\\\"}"
  },
  "CreateTime": "2021-06-30T09:20:08Z",
  "ExpireTime": "2021-07-30T09:20:08Z",
  "IpAddressAttributes": [
    {
      "IpAddress": "192.168.1.2",
      "NetworkType": "Public",
      "Version": "Ipv4"
    }
  ],
  "IpAddresses": [
    "192.168.1.2"
  ],
  "RegionId": "cn-hangzhou",
  "RequestId": "F1CE0D52-32DA-531A-87A4-B9A5B68D5D8E",
  "ResourceGroupId": "rg-acfmv4k****",
  "ResourceId": "vtb-uf6978gdqbi****",
  "ResourceName": "group1",
  "ResourceType": "ACS::VPC::VSwitch",
  "Tags": [
    {
      "Key": "test-key",
      "Value": "test-value"
    }
  ],
  "ZoneId": "cn-hangzhou-k"
}

Kode kesalahan

HTTP status code

Error code

Error message

Description

400 NoPermission You are not authorized to perform this operation.
403 NoPermission.Resource The operator is not permitted for this resource. You are not authorized to perform operations on the resource.
404 NotExists.Resource The specified resource does not exist. The specified resource does not exist.
409 InvalidParameter.ResourceType The specified parameter ResourceType is not valid.

Lihat Error Codes untuk daftar lengkap.

Catatan rilis

Lihat Release Notes untuk daftar lengkap.