All Products
Search
Document Center

DataWorks:ListResourceGroups

Last Updated:Jun 11, 2026

Mengkueri daftar kelompok sumber daya dengan tipe tertentu.

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

Tidak ada otorisasi untuk operasi ini. Jika Anda mengalami masalah saat menjalankan operasi ini, hubungi dukungan teknis.

Parameter permintaan

Parameter

Type

Required

Description

Example

ResourceGroupType

integer

No

Tipe kelompok sumber daya yang ingin Anda kueri. Nilai valid:

  • 0: DataWorks

  • 1: penjadwalan

  • 2: MaxCompute

  • 3: Platform for AI (PAI)

  • 4: Data Integration

  • 7: kelompok sumber daya Eksklusif untuk penjadwalan (ID dihasilkan untuk Sumber daya yang dibeli saat Anda membeli kelompok sumber daya Eksklusif untuk penjadwalan.)

  • 9: Studio Layanan Data

  • Nilai default: 1

Jika nilai menunjukkan Mesin komputasi, kelompok sumber daya yang akan dikueri adalah yang dibuat saat Anda membeli Mesin komputasi tersebut.

3

Keyword

string

No

Kata kunci yang digunakan untuk Pencocokan kabur berdasarkan nama dan pengenal kelompok sumber daya.

abc

BizExtKey

string

No

Kategori kelompok sumber daya. Nilai valid:

  • default: kelompok sumber daya Resource yang dibagikan

  • single: kelompok sumber daya Eksklusif.

default

ResourceManagerResourceGroupId

string

No

ID kelompok sumber daya.

rg-acfmzbn7pti3zfa

Tags

array<object>

No

Tag.

object

No

Key

string

No

The tag key.

Env

Value

string

No

The tag value.

Test

Elemen respons

Element

Type

Description

Example

object

The response parameters.

HttpStatusCode

integer

The HTTP status code.

200

RequestId

string

The request ID.

0bc1411515937635973****

Success

boolean

Indicates whether the request was successful.

true

Data

array<object>

The resource groups.

array<object>

Status

integer

The status of the resource group. Valid values:

  • 0: NORMAL, which indicates that the resource group is running or in service.

  • 1: STOP, which indicates that the resource group has expired and is frozen.

  • 2: DELETED, which indicates that the resource group is released or destroyed.

  • 3: CREATING, which indicates that the resource group is being created or started.

  • 4: CREATE_FAILED, which indicates that the resource group fails to be created or started.

  • 5: UPDATING, which indicates that the resource group is being scaled out or upgraded.

  • 6: UPDATE_FAILED, which indicates that the resource group fails to be scaled out or upgraded.

  • 7: DELETING, which indicates that the resource group is being released or destroyed.

  • 8: DELETE_FAILED, which indicates that the resource group fails to be released or destroyed.

  • 9: TIMEOUT, which indicates that the operation performed on the resource group times out. All operations may time out. This value is temporarily available only for DataService Studio.

0

UpdateTime

string

The time when the resource group was last updated.

Jul 9, 2018 2:43:37 PM

IsDefault

boolean

Indicates whether the resource group is the default resource group. Valid values:

  • true: The resource group is the default resource group.

  • false: The resource group is not the default resource group.

true

Cluster

string

The name of the cluster. This parameter is returned only if the type of the resource group is MaxCompute or PAI.

AY18G

EnableKp

boolean

Indicates whether the UID of an Alibaba Cloud account is used for access. Valid values:

  • true: The MaxCompute compute engine uses the UID of the Alibaba Cloud account as the display name of the account for access.

  • false: The MaxCompute compute engine uses the name of the Alibaba Cloud account as the display name of the account for access. The remaining values are useless. This parameter is returned only if the type of the resource group is MaxCompute.

false

ResourceGroupType

string

The type of the resource group. Valid values:

  • 0: DataWorks

  • 2: MaxCompute

  • 3: PAI

  • 4: Data Integration

  • 7: scheduling

  • 9: DataService Studio

3

CreateTime

string

The time when the cluster was created. Example: Jul 9, 2018 2:43:37 PM.

Jul 9, 2018 2:43:37 PM

Identifier

string

The identifier of the resource group.

e1815577-2f4e-4c5e-b29****

Mode

string

The mode of the resource group. Valid values:

  • ISOLATE: exclusive resource group that adopts the subscription billing method

  • SHARE: shared resource group that adopts the pay-as-you-go billing method

  • DEVELOP: resource group for developers

SHARE

BizExtKey

string

The category of the resource group. Valid values:

  • default: shared resource group

  • single: exclusive resource group

default

Sequence

integer

The sequence number of the resource group. Created resource groups are sorted in ascending order by sequence number.

300

Specs

object

The details of the resource group. The content enclosed in braces {} is the details of the resource group.

{}

Name

string

The name of the resource group.

abc

Id

integer

The resource group ID.

1234567

TenantId

integer

The tenant ID.

1234567

ResourceManagerResourceGroupId

string

The ID of your Alibaba Cloud resource group.

rg-acfmzbn7pti3zfa

Tags

array<object>

The tags.

object

Key

string

The tag key.

Env

Value

string

The tag value.

Test

Contoh

Respons sukses

JSONformat

{
  "HttpStatusCode": 200,
  "RequestId": "0bc1411515937635973****",
  "Success": true,
  "Data": [
    {
      "Status": 0,
      "UpdateTime": "Jul 9, 2018 2:43:37 PM",
      "IsDefault": true,
      "Cluster": "AY18G",
      "EnableKp": false,
      "ResourceGroupType": "3",
      "CreateTime": "Jul 9, 2018 2:43:37 PM",
      "Identifier": "e1815577-2f4e-4c5e-b29****",
      "Mode": "SHARE",
      "BizExtKey": "default",
      "Sequence": 300,
      "Specs": {},
      "Name": "abc",
      "Id": 1234567,
      "TenantId": 1234567,
      "ResourceManagerResourceGroupId": "rg-acfmzbn7pti3zfa",
      "Tags": [
        {
          "Key": "Env",
          "Value": "Test"
        }
      ]
    }
  ]
}

Kode kesalahan

HTTP status code

Error code

Error message

Description

400 Invalid.Tenant.ConnectionNotExists The connection does not exist.
400 Invalid.Tenant.ProjectNotExists The project does not exist.
400 Invalid.Tenant.UserNotInProject The user is not in the project.
403 Invalid.Tenant.UserIsNotProjectOwnerOrAdmin The user is not a project administrator or owner.
403 Invalid.Tenant.UserNotInTenant The user is not in tenant.

Lihat Error Codes untuk daftar lengkap.

Catatan rilis

Lihat Release Notes untuk daftar lengkap.