Mengkueri daftar kelompok sumber daya dengan tipe tertentu.
Coba sekarang
Test
RAM authorization
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| ResourceGroupType |
integer |
No |
Tipe kelompok sumber daya yang ingin Anda kueri. Nilai valid:
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 |
| 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 |
| 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 |
| 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:
|
false |
| ResourceGroupType |
string |
The type of the resource group. Valid values:
|
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:
|
SHARE |
| BizExtKey |
string |
The category of the resource group. Valid values:
|
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.