Mengkueri daftar sumber daya komputasi yang memenuhi informasi bisnis yang ditentukan.
Deskripsi operasi
-
Diperlukan DataWorks Basic Edition atau edisi yang lebih canggih.
-
Anda harus memiliki setidaknya salah satu peran berikut di ruang kerja DataWorks:
-
Tenant Owner, Workspace Administrator, Deploy, Developer, Visitor, Project Owner, O&M, Model Designer, Security Administrator, Data Analyst, Development Platform Administrator, Data Governance Administrator
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dataworks:ListComputeResources |
get |
*All Resource
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| ProjectId |
integer |
Yes |
ID ruang kerja DataWorks. |
21229 |
| Name |
string |
No |
Nama sumber daya komputasi. |
category name |
| Types |
array |
No |
Filter untuk tipe sumber daya komputasi. Anda dapat mengonfigurasi beberapa tipe untuk pemfilteran. |
|
|
string |
No |
Tipe sumber daya komputasi. |
hologres |
|
| EnvType |
string |
No |
Tipe lingkungan sumber daya komputasi. Nilai yang valid:
|
Dev |
| PageNumber |
integer |
No |
Nomor halaman yang akan dikueri. Nilai default adalah 1, yang menunjukkan halaman pertama. |
1 |
| PageSize |
integer |
No |
Jumlah entri per halaman. Nilai default adalah 10, dan nilai maksimum adalah 100. |
10 |
| SortBy |
string |
No |
Bidang yang digunakan untuk mengurutkan daftar sumber daya komputasi. Bidang yang didukung mencakup nama, waktu pembuatan, dan ID sumber daya komputasi.
Nilai default: CreateTime |
CreateTimeWithDefaultFirst |
| Order |
string |
No |
Arah pengurutan daftar sumber daya komputasi. Nilai yang valid:
Nilai default: Desc |
Asc |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Hasil yang dikembalikan. |
||
| RequestId |
string |
ID permintaan. Digunakan untuk menemukan log dan memecahkan masalah. |
7C352CB7-CD88-50CF-9D0D-E81BDF02XXXX |
| PagingInfo |
object |
Informasi paginasi. |
|
| TotalCount |
integer |
Jumlah total catatan. |
100 |
| PageSize |
integer |
Jumlah catatan per halaman. |
10 |
| PageNumber |
integer |
Nomor halaman saat ini. |
1 |
| ComputeResources |
array<object> |
Daftar sumber daya komputasi. Setiap elemen adalah grup sumber daya komputasi yang berisi informasi tentang lingkungan pengembangan (jika ada) dan lingkungan produksi. |
|
|
array<object> |
Informasi tentang grup sumber daya komputasi, yang mencakup sumber daya komputasi untuk lingkungan pengembangan (jika ada) dan lingkungan produksi. Sumber daya komputasi untuk lingkungan pengembangan dan produksi memiliki nama dan tipe yang sama tetapi ID yang berbeda. |
||
| Name |
string |
The name of the computing resource. |
cal_all_vemg_workflow_parallel |
| Type |
string |
The type of the computing resource. |
hologres |
| ComputeResource |
array<object> |
Details of a single computing resource. |
|
|
object |
Details of a single computing resource. |
||
| Id |
integer |
The computing resource ID, which is the unique identifier for the resource. |
8649832502405358603 |
| ConnectionProperties |
any |
The category of the added compute resource. Different types have different subtypes with corresponding parameter constraints. Examples: InstanceMode: The instance mode. UrlMode: The connection string mode. |
{\n \"clusterIdentifier\": \"c-da123456\",\n \"database\": \"testdb\",\n \"loginMode\":\"Anonymous\",\n \"defaultFS\":\"127.0.0.1\",\n \"envType\": \"Prod\"\n} |
| ConnectionPropertiesMode |
string |
The specific connection configuration details for the computing resource, including the connection address, access identity, and environment information. envType, which specifies the computing resource environment, is a property of this object. Valid values:
|
UrlMode |
| Description |
string |
The unique identifier of the computing resource. |
home_feed |
| CreateTime |
integer |
The creation time (timestamp). |
1624387842781448 |
| CreateUser |
string |
The creator ID. |
1648711113000 |
| ModifyTime |
integer |
The last modified time of the computing resource (timestamp). |
1624387842781448 |
| ModifyUser |
string |
The modifier ID. |
1648711113000 |
| WhetherDefault |
boolean |
Specifies whether it is the default compute resource. |
true |
Contoh
Respons sukses
JSONformat
{
"RequestId": "7C352CB7-CD88-50CF-9D0D-E81BDF02XXXX",
"PagingInfo": {
"TotalCount": 100,
"PageSize": 10,
"PageNumber": 1,
"ComputeResources": [
{
"Name": "cal_all_vemg_workflow_parallel",
"Type": "hologres",
"ComputeResource": [
{
"Id": 8649832502405359000,
"ConnectionProperties": "{\\n \\\"clusterIdentifier\\\": \\\"c-da123456\\\",\\n \\\"database\\\": \\\"testdb\\\",\\n \\\"loginMode\\\":\\\"Anonymous\\\",\\n \\\"defaultFS\\\":\\\"127.0.0.1\\\",\\n \\\"envType\\\": \\\"Prod\\\"\\n}",
"ConnectionPropertiesMode": "UrlMode",
"Description": "home_feed",
"CreateTime": 1624387842781448,
"CreateUser": "1648711113000",
"ModifyTime": 1624387842781448,
"ModifyUser": "1648711113000",
"WhetherDefault": true
}
]
}
]
}
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.