All Products
Search
Document Center

DataWorks:GetResourceGroup

Last Updated:Jun 11, 2026

Mengkueri informasi kelompok sumber daya berdasarkan ID.

Deskripsi operasi

DataWorks Basic Edition or a more advanced edition is required to use this feature.

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

dataworks:GetResourceGroup

get

*DwResourceGroup

acs:dataworks:{#regionId}:{#accountId}:dwresourcegroup/{#DwResourceGroupId}

None None

Parameter permintaan

Parameter

Type

Required

Description

Example

Id

string

Yes

ID kelompok sumber daya.

Serverless_res_group_524257424564736_6831777003XXXXX

Elemen respons

Element

Type

Description

Example

object

Schema of Response

Success

boolean

Indicates whether the request was successful.

true

ResourceGroup

object

The details about the resource group.

Id

string

The ID of the resource group.

Serverless_res_group_524257424564736_6831777003XXXXX

Name

string

The name of the resource group.

common_resource_group

Remark

string

The description of the resource group.

创建用于普通任务的通用资源组

PaymentType

string

The billing method of the resource group. Valid values: PrePaid and PostPaid. The value PrePaid indicates the subscription billing method, and the value PostPaid indicates the pay-as-you-go billing method.

PrePaid

Status

string

The status of the resource group. Valid values:

  • Normal: The resource group is running or in use.

  • Stop: The resource group is expired.

  • Deleted: The resource group is released or destroyed.

  • Creating: The resource group is being created.

  • CreateFailed: The resource group fails to be created.

  • Updating: The resource group is being scaled in or out, or the configurations of the resource group are being changed.

  • UpdateFailed: The resource group fails to be scaled out or upgraded.

  • Deleting: The resource group is being released or destroyed.

  • DeleteFailed: The resource group fails to be released or destroyed.

  • Timeout: The operations that are performed on the resource group time out.

  • Freezed: The resource group is frozen.

  • Starting: The resource group is being started.

Normal

Spec

object

The specifications of the resource group.

Standard

string

The number of compute units (CUs) in the resource group.

2CU

Amount

integer

The number of resources in the resource group.

1

ResourceGroupType

string

The type of the resource group. Valid values:

  • CommonV2: Serverless resource group.

  • ExclusiveDataIntegration: Exclusive resource group for Data Integration.

  • ExclusiveScheduler: Exclusive resource group for scheduling.

  • ExclusiveDataService: Exclusive resource group for DataService Studio.

CommonV2

OrderInstanceId

string

The instance ID of the order that is used to create the resource group.

c442b330-3b10-4584-959e-736e4edXXXXX

CreateUser

string

The ID of the account that is used to create the resource group.

11075500042XXXXX

CreateTime

integer

The time when the resource group was created. The value is a 64-bit timestamp.

1727055811000

DefaultVpcId

string

The ID of the virtual private cloud (VPC) with which the resource group is associated by default.

vpc-m2et4f3oc8msfbccXXXXX

DefaultVswitchId

string

The ID of the vSwitch with which the resource group is associated by default.

vsw-uf8usrhs7hjd9amsXXXXX

AliyunResourceGroupId

string

The ID of the Alibaba Cloud resource group.

rg-aek2kqofrgXXXXX

AliyunResourceTags

array<object>

The tags.

object

The tag.

Key

string

The tag key.

key

Value

string

The tag value.

value

RequestId

string

The request ID.

6A6CBE87-9F91-1323-B680-E7A7065XXXXX

Contoh

Respons sukses

JSONformat

{
  "Success": true,
  "ResourceGroup": {
    "Id": "Serverless_res_group_524257424564736_6831777003XXXXX",
    "Name": "common_resource_group",
    "Remark": "创建用于普通任务的通用资源组",
    "PaymentType": "PrePaid",
    "Status": "Normal",
    "Spec": {
      "Standard": "2CU",
      "Amount": 1
    },
    "ResourceGroupType": "CommonV2",
    "OrderInstanceId": "c442b330-3b10-4584-959e-736e4edXXXXX",
    "CreateUser": "11075500042XXXXX",
    "CreateTime": 1727055811000,
    "DefaultVpcId": "vpc-m2et4f3oc8msfbccXXXXX",
    "DefaultVswitchId": "vsw-uf8usrhs7hjd9amsXXXXX",
    "AliyunResourceGroupId": "rg-aek2kqofrgXXXXX",
    "AliyunResourceTags": [
      {
        "Key": "key",
        "Value": "value"
      }
    ]
  },
  "RequestId": "6A6CBE87-9F91-1323-B680-E7A7065XXXXX"
}

Kode kesalahan

Lihat Error Codes untuk daftar lengkap.

Catatan rilis

Lihat Release Notes untuk daftar lengkap.